We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

indianocean on 01/26/08


Tagged

php ee ExpressionEngine


Versions (?)


Plugin template for Expressionengine


Published in: PHP 


  1. <?php
  2.  
  3. /*
  4. =====================================================
  5.  ExpressionEngine - by pMachine
  6. -----------------------------------------------------
  7.  http://www.pmachine.com/
  8. =====================================================
  9.  
  10. ======================================
  11. = Plugin created by Indianocean =
  12. === http://theurl.com ====
  13. === info@theurl.com ====
  14. ======================================
  15.  
  16. =====================================================
  17. This work is licensed under a
  18. Creative Commons Attribution-ShareAlike 2.5 License.
  19. - http://creativecommons.org/licenses/by-sa/2.5/
  20. =====================================================
  21. */
  22.  
  23. $plugin_info = array(
  24. 'pi_name' => 'Plugin Name',
  25. 'pi_version' => '1.0',
  26. 'pi_author' => 'Indianocean',
  27. 'pi_author_url' => 'http://lemonkick.com/',
  28. 'pi_description' => 'The Dexcription',
  29. 'pi_usage' => archive_list::usage()
  30. );
  31.  
  32. class Archive_list
  33. {
  34. var $return_data = "";
  35.  
  36. function Archive_list($str = '')
  37. {
  38. global $TMPL;
  39.  
  40. $this->return_data = "<b>" . $TMPL->tagdata . "</b>";
  41. }
  42.  
  43. // ----------------------------------------
  44. // Plugin Usage
  45. // ----------------------------------------
  46. function usage()
  47. {
  48. ?>
  49. Blah Blah
  50. <?php
  51. $buffer = ob_get_contents();
  52.  
  53.  
  54. return $buffer;
  55. }
  56. }
  57. ?>

Report this snippet 

You need to login to post a comment.