* 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
*/
/**
- * 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()
* 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
*
* 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(
*/
/**
- * 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()
* 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
*
* 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(
/*
* {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(
<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 & More Info</b></div>
{if $standAlone}