Porting Over Smarty Templates
To port over a Smarty plugin for use in the HTMLe system, follow these simple steps:

  1. Change the name of the primary function from "smarty_function_..." to "HTMLe_..." (for example, smarty_function_demo would become HTMLe_demo)
  2. Remove the "&$smarty" parameter from the function, leaving $params intact. (so your function would look like: HTMLe_demo($params) { ... } )
  3. Rename the file, removing the "function." from in front of the plugin name (so function.demo.php would become just demo.php)
  4. Test the plugin to make sure everything works and enjoy! SMILE

 

WORDPRESS

Optional: for use with the WordPress HTMLe admin panel, you may also modify the Smarty Plugin comments located at the top of the page to include (each on its own line):

  • File: name of the file including ".php"
  • Type: whether the plugin is a function or a class
  • Name: the name of the plugin
  • Purpose: what the plugin does
  • Author: who developed the plugin
  • Example: how to use the plugin (include ALL optional attributes)
  • Required: required attributes in order for the plugin to work
  • Special: any special parameters or tags the plugin takes