I know that is a little confusing so here is an example
My plugin
Code: Select all
<?php
function smarty_cms_function_test($params, &$smarty) {
include("test.php");
}
function smarty_cms_help_function_test() {
?>
<h3>What does this do?</h3>
<p>Include a file</p>
<h3>How do I use it?</h3>
<p>This is just a basic tag plugin. You would insert it into your template or page like so: <code>{test}</code>
<h3>What parameters does it take?</h3>
<?php
}
function smarty_cms_about_function_test() {
?>
<p>Author: Brady</p>
<p>Version: 1.0</p>
<?php
}
?>
Code: Select all
<?php
echo "I can't see this";
?>