Nick
07-21-2009, 09:38 PM
In order for users to save their customizations from unwanted overwrites when plugins are upgraded, Hotaru allows them to move files out of a plugin and into their theme, where those files will still work equally well (explained here (http://hotarucms.org/showthread.php?t=26)).
To use this functionality correctly, please follow these rules:
1. Put all template files in a folder called "templates".
Use like this:
$h->displayTemplate('template_name'); // No file extension
2. Put all language files in a folder called "languages".
For a single file, name it pluginname_language.php, e.g. "submit_language.php".
Language files are automatically included when each plugin function is called.
Read more about language files here (http://hotarucms.org/showthread.php?t=44).
3. Put all css files in a folder called "css".
For a single css file name plugin_name.css, include them in a header_include function like this:
$h->includeCss();For additional .css files named other_name.css, include each like this:
$h->includeCss('filename'); // No file extensions
4. Put all .js files in a folder called "javascript".
For a single javascript file name plugin_name.js, include them in a header_include function like this:
$h->include_js();For additional .js files named other_name.js, include each like this:
$h->include_js('filename'); // No file extensions
To use this functionality correctly, please follow these rules:
1. Put all template files in a folder called "templates".
Use like this:
$h->displayTemplate('template_name'); // No file extension
2. Put all language files in a folder called "languages".
For a single file, name it pluginname_language.php, e.g. "submit_language.php".
Language files are automatically included when each plugin function is called.
Read more about language files here (http://hotarucms.org/showthread.php?t=44).
3. Put all css files in a folder called "css".
For a single css file name plugin_name.css, include them in a header_include function like this:
$h->includeCss();For additional .css files named other_name.css, include each like this:
$h->includeCss('filename'); // No file extensions
4. Put all .js files in a folder called "javascript".
For a single javascript file name plugin_name.js, include them in a header_include function like this:
$h->include_js();For additional .js files named other_name.js, include each like this:
$h->include_js('filename'); // No file extensions