// Load Smarty Template support
$smarty = new smartyTemplateSupport();
- // Add standard template parameters
- require GLM_MEMBERS_PLUGIN_SETUP_PATH.'/standardTemplateParams.php';
+ // Add standard parameters from any registered plugin/add-on that has a standardTemplateParams.php file
+ foreach ($this->config['addOns'] as $a) {
+ $paramsScript = $a['dir'].'/setup/standardTemplateParams.php';
+ if (is_file($paramsScript)) {
+ require_once $paramsScript;
+ }
+ }
// Add data from model to Smarty template
if (is_array($results['data']) && count($results['data']) > 0) {
// Load Smarty Template support
$smarty = new smartyTemplateSupport();
- // Add standard parameters
- require GLM_MEMBERS_PLUGIN_SETUP_PATH.'/standardTemplateParams.php';
+ // Add standard parameters from any registered plugin/add-on that has a standardTemplateParams.php file
+ foreach ($this->config['addOns'] as $a) {
+ $paramsScript = $a['dir'].'/setup/standardTemplateParams.php';
+ if (is_file($paramsScript)) {
+ require_once $paramsScript;
+ }
+ }
// Add data from model to Smarty template
if (is_array($results['data']) && count($results['data']) > 0) {
(none)
== Changelog ==
+= (pending) =
+* Now automatically loading setup/standardTemplateParams.php from each registered plugin if the file exists
+
= 2.11.1 - 2 =
* Bug fixes in the smarty templates.