Updated class and class methods names to be compliant with format specifications
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 22 Mar 2019 19:44:45 +0000 (15:44 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 22 Mar 2019 19:44:45 +0000 (15:44 -0400)
models/front/registrations/registration.php
setup/registerAdminScriptStyle.php
setup/registerFrontScriptStyle.php
views/front/registrations/registration.html

index bca56df..db8b028 100755 (executable)
          * Enqueue required scripts
          */
         // Select frontRegApp.js script to be enqueued
-        glmScriptRegistry::select( glmScriptType::Script, 'RegApp' );
+        GlmScriptRegistry::selectScript( GlmScriptType::Script, 'RegApp' );
 
         // If we're using Leaflet - Enqueue Leaflet scripts and styles
         if ( $this->config['settings']['selected_map_interface'] == 1 ) {
-            glmScriptRegistry::select( glmScriptType::Style, 'Leaflet' );
-            glmScriptRegistry::select( glmScriptType::Script, 'Leaflet' );
-            glmScriptRegistry::select( glmScriptType::Style, 'LeafletControlLoading' );
-            glmScriptRegistry::select( glmScriptType::Script, 'LeafletControlLoading' );
+            GlmScriptRegistry::selectScript( GlmScriptType::Style, 'Leaflet' );
+            GlmScriptRegistry::selectScript( GlmScriptType::Script, 'Leaflet' );
+            GlmScriptRegistry::selectScript( GlmScriptType::Style, 'LeafletControlLoading' );
+            GlmScriptRegistry::selectScript( GlmScriptType::Script, 'LeafletControlLoading' );
         }
 
         // If we're using Google Maps - Enqueue Google Maps script
         if ( $this->config['settings']['selected_map_interface'] == 2 ) {
-            glmScriptRegistry::select( glmScriptType::Script, 'GoogleMapsAPI' );
+            GlmScriptRegistry::selectScript( GlmScriptType::Script, 'GoogleMapsAPI' );
         }
 
         // Get any provided option
index 26ee514..cf5243c 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 /**
- * This file registers scripts and styles with the glmScriptRegistry.
+ * This file registers scripts and styles with the GlmScriptRegistry.
  *
  * Scripts and Styles are added to the registry to ensure consistancy and avoid duplication.
  * This process only lists them in the registry. A further step of calling the enqueue()
@@ -28,7 +28,7 @@
  * it may be the same for a matching script and style (the plugin slug and type prefix the
  * 'handle' provided below to make them actually unique).
  *
- * int     type      Required type enumerated (see glmScriptType above)
+ * int     type      Required type enumerated (see GlmScriptType above)
  * string  handle    Required handle (name) for this script (no spaces or punctuation)
  *                      Handles must be unique for a particular type
  *                      A matching script and style may have the same handle
@@ -50,9 +50,9 @@
  *
  * Example - Please add multi-line comment above each with script src for reference
  *
- *  glmScriptRegistry::add(
+ *  GlmScriptRegistry::addScript(
  *      [
- *          'type' => glmScriptType::Script,
+ *          'type' => GlmScriptType::Script,
  *          'handle' => 'RegApp',
  *          'src' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_URL . '/js/frontRegApp.js',
  *          'deps' => array(
index b3189d9..f5b1fe1 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 /**
- * This file registers scripts and styles with the glmScriptRegistry.
+ * This file registers scripts and styles with the GlmScriptRegistry.
  *
  * Scripts and Styles are added to the registry to ensure consistancy and avoid duplication.
  * This process only lists them in the registry. A further step of calling the enqueue()
@@ -28,7 +28,7 @@
  * it may be the same for a matching script and style (the plugin slug and type prefix the
  * 'handle' provided below to make them actually unique).
  *
- * int     type      Required type enumerated (see glmScriptType above)
+ * int     type      Required type enumerated (see GlmScriptType above)
  * string  handle    Required handle (name) for this script (no spaces or punctuation)
  *                      Handles must be unique for a particular type
  *                      A matching script and style may have the same handle
@@ -50,9 +50,9 @@
  *
  * Example - Please add multi-line comment above each with script src for reference
  *
- *  glmScriptRegistry::add(
+ *  GlmScriptRegistry::addScript(
  *      [
- *          'type' => glmScriptType::Script,
+ *          'type' => GlmScriptType::Script,
  *          'handle' => 'RegApp',
  *          'src' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_URL . '/js/frontRegApp.js',
  *          'deps' => array(
@@ -76,9 +76,9 @@
 /*
  * {registrations}/js/frontRegApp.js
  */
-glmScriptRegistry::add(
+GlmScriptRegistry::addScript(
     [
-        'type' => glmScriptType::Script,
+        'type' => GlmScriptType::Script,
         'handle' => 'RegApp',
         'src' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_URL . '/js/frontRegApp.js',
         'deps' => array(
index 3179a15..e5d1c64 100755 (executable)
@@ -59,7 +59,7 @@
                                 <br> {if $regEvent.locations.city.name}{$regEvent.locations.city.name}{/if}, {$regEvent.locations.state.name} {$regEvent.locations.zip}
                             </div>
                         {/if}
-                        {if ($standAlone && $regEvent.contact_name) || (!$standAlone && $regEvent.lname) || $regEvent.contact_email || $regEvent.contact_phone}
+                        {if ($standAlone && $regEvent.contact_name) || (!$standAlone && $regEvent.contact_lname) || $regEvent.contact_email || $regEvent.contact_phone}
                             <div class="glm-reg-contact-container glm-row">
                                 <div class="small-12 columns glm-reg-event-profile-details glm-reg-contact-name glm-reg-contact-details glm-reg-has-icon"> <b>Contact &amp; More Info</b></div>
                             {if $standAlone}