Made siteBaseURL a standard template parameter
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 26 Feb 2016 16:01:58 +0000 (11:01 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 26 Feb 2016 16:01:58 +0000 (11:01 -0500)
config/plugin.ini
controllers/admin.php
controllers/front.php
models/front/members/list.php

index ff84c06..ff3949e 100644 (file)
@@ -230,9 +230,9 @@ month_bit['December'] = 11
 ; Week of Month - numbers are an exponent of 2 that represent the bit position
 week[0] = 'First'
 week[1] = 'Second'
-week[3] = 'Third'
-week[4] = 'Fourth'
-week[5] = 'Fifth'
+week[2] = 'Third'
+week[3] = 'Fourth'
+week[4] = 'Fifth'
 
 week_bit['First'] = 0
 week_bit['Second'] = 1
@@ -240,6 +240,18 @@ week_bit['Third'] = 2
 week_bit['Fourth'] = 3
 week_bit['Fifth'] = 4
 
+; Day of Month - numbers are an exponent of 2 that represent the bit position
+day_of_month[0] = 'First'
+day_of_month[1] = 'Second'
+day_of_month[2] = 'Third'
+day_of_month[3] = 'Fourth'
+day_of_month[4] = 'Fifth'
+day_of_month[5] = 'Sixth'
+day_of_month[6] = 'Seventh'
+day_of_month[7] = 'Eighth'
+day_of_month[8] = 'Nineth'
+day_of_month[9] = 'Tenth'
+day_of_month[10] = 'Eleventh'
 
 
 
index d2ce71c..9e50510 100644 (file)
@@ -829,6 +829,7 @@ class glmMembersAdmin extends GlmPluginSupport
         $smarty->templateAssign ( 'addOnTabs', $addOnTabs);
         $smarty->templateAssign ( 'adminDebug', GLM_MEMBERS_PLUGIN_ADMIN_DEBUG);
         $smarty->templateAssign ( 'adminURL', GLM_MEMBERS_PLUGIN_ADMIN_URL);
+        $smarty->templateAssign ( 'siteBaseURL', GLM_MEMBERS_SITE_BASE_URL);
         $smarty->templateAssign ( 'baseURL', GLM_MEMBERS_PLUGIN_BASE_URL);
         $smarty->templateAssign ( 'thisURL', GLM_MEMBERS_PLUGIN_CURRENT_URL );
         $smarty->templateAssign ( 'thisPage', (isset($_REQUEST['page']) ? $_REQUEST['page']: '') );
index 4d5f875..e809927 100644 (file)
@@ -449,6 +449,7 @@ class glmMembersFront extends GlmPluginSupport
         // Add standard parameters
         $smarty->templateAssign ( 'errorMsg', $errorMsg);
         $smarty->templateAssign ( 'frontDebug', GLM_MEMBERS_PLUGIN_FRONT_DEBUG);
+        $smarty->templateAssign ( 'siteBaseURL', GLM_MEMBERS_SITE_BASE_URL);
         $smarty->templateAssign ( 'baseURL', GLM_MEMBERS_PLUGIN_BASE_URL);
         $smarty->templateAssign ( 'thisURL', GLM_MEMBERS_PLUGIN_CURRENT_URL );
         $smarty->templateAssign ( 'glmPluginName', GLM_MEMBERS_PLUGIN_NAME );
index f42bf87..f7c368c 100644 (file)
@@ -456,7 +456,6 @@ class GlmMembersFront_members_list extends GlmDataMemberInfo
 
         // Compile template data
         $templateData = array(
-            'siteBaseUrl' => GLM_MEMBERS_SITE_BASE_URL,
             'haveMembers' => $haveMembers,
             'members' => $list,
             'haveFilter' => $haveFilter,