@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
| 2 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
| 3 | 3 | exit('NO direct script access allowed'); |
| 4 | 4 | |
| 5 | 5 | /** |
@@ -109,8 +109,8 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | |
| 111 | 111 | protected function _stop_one() { |
| 112 | - $content = '<h3>' . __('Edit Venue', 'event_espresso') . '</h3>'; |
|
| 113 | - $content .= '<p>' . __('This tour of the Venue Editor page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>'; |
|
| 112 | + $content = '<h3>'.__('Edit Venue', 'event_espresso').'</h3>'; |
|
| 113 | + $content .= '<p>'.__('This tour of the Venue Editor page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>'; |
|
| 114 | 114 | return $content; |
| 115 | 115 | } |
| 116 | 116 | |
@@ -119,35 +119,35 @@ discard block |
||
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | protected function _venue_editor_stop() { |
| 122 | - return '<p>' . __('The rich text editor can be used to edit information about your venue. Images and links can also be added or removed along with your text.', 'event_espresso') . '</p>'; |
|
| 122 | + return '<p>'.__('The rich text editor can be used to edit information about your venue. Images and links can also be added or removed along with your text.', 'event_espresso').'</p>'; |
|
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | protected function _venue_tags_stop() { |
| 126 | - return '<p>' . __('Quickly edit tags for your venue.', 'event_espresso') . '</p>'; |
|
| 126 | + return '<p>'.__('Quickly edit tags for your venue.', 'event_espresso').'</p>'; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | protected function _venue_categories_stop() { |
| 130 | - return '<p>' . __('Venues can also be categorized if you wish.', 'event_espresso') . '</p>'; |
|
| 130 | + return '<p>'.__('Venues can also be categorized if you wish.', 'event_espresso').'</p>'; |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | protected function _venue_physical_location_stop() { |
| 134 | - return '<p>' . __('Edit the physical address for your venue.', 'event_espresso') . '</p>'; |
|
| 134 | + return '<p>'.__('Edit the physical address for your venue.', 'event_espresso').'</p>'; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | protected function _venue_gmap_stop() { |
| 138 | - return '<p>' . __('Enable or disable a Google Map for your venue.', 'event_espresso') . '</p>'; |
|
| 138 | + return '<p>'.__('Enable or disable a Google Map for your venue.', 'event_espresso').'</p>'; |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | protected function _venue_virtual_location_stop() { |
| 142 | - return '<p>' . __('Setup a virtual location for your venue.', 'event_espresso') . '</p>'; |
|
| 142 | + return '<p>'.__('Setup a virtual location for your venue.', 'event_espresso').'</p>'; |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | protected function _stop_featured_image() { |
| 146 | - return '<p>' . __('Set a feature image for your venue here.', 'event_espresso') . '</p>'; |
|
| 146 | + return '<p>'.__('Set a feature image for your venue here.', 'event_espresso').'</p>'; |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | protected function _stop_publish_box() { |
| 150 | - return '<p>' . __('Easily control the status of your venue. The main options are Published, Pending Review, and Draft.', 'event_espresso') . '</p>'; |
|
| 150 | + return '<p>'.__('Easily control the status of your venue. The main options are Published, Pending Review, and Draft.', 'event_espresso').'</p>'; |
|
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | } |
| 154 | 154 | \ No newline at end of file |
@@ -1,6 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
| 2 | +if (!defined('EVENT_ESPRESSO_VERSION') ) { |
|
| 3 | 3 | exit('NO direct script access allowed'); |
| 4 | +} |
|
| 4 | 5 | |
| 5 | 6 | /** |
| 6 | 7 | * Event Espresso |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
| 2 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
| 3 | 3 | exit('NO direct script access allowed'); |
| 4 | 4 | |
| 5 | 5 | /** |
@@ -125,44 +125,44 @@ discard block |
||
| 125 | 125 | |
| 126 | 126 | |
| 127 | 127 | protected function _start() { |
| 128 | - $content = '<h3>' . __('Venue Overview', 'event_espresso') . '</h3>'; |
|
| 129 | - $content .= '<p>' . __('This tour of the Venues Overview page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>'; |
|
| 128 | + $content = '<h3>'.__('Venue Overview', 'event_espresso').'</h3>'; |
|
| 129 | + $content .= '<p>'.__('This tour of the Venues Overview page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>'; |
|
| 130 | 130 | return $content; |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | protected function _id_stop() { |
| 134 | - return '<p>' . __('View the venue ID. Can be sorted by ascending or descending order.', 'event_espresso') . '</p>'; |
|
| 134 | + return '<p>'.__('View the venue ID. Can be sorted by ascending or descending order.', 'event_espresso').'</p>'; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | protected function _name_stop() { |
| 138 | - return '<p>' . __('View the name of each venue. Can be sorted by ascending or descending order.', 'event_espresso') . '</p>'; |
|
| 138 | + return '<p>'.__('View the name of each venue. Can be sorted by ascending or descending order.', 'event_espresso').'</p>'; |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | protected function _address_stop() { |
| 142 | - return '<p>' . __('View the address for each venue.', 'event_espresso') . '</p>'; |
|
| 142 | + return '<p>'.__('View the address for each venue.', 'event_espresso').'</p>'; |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | protected function _city_stop() { |
| 146 | - return '<p>' . __('View the city for each venue. Can be sorted by ascending or descending order.', 'event_espresso') . '</p>'; |
|
| 146 | + return '<p>'.__('View the city for each venue. Can be sorted by ascending or descending order.', 'event_espresso').'</p>'; |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | protected function _capacity_stop() { |
| 150 | - return '<p>' . __('View the capacity for each venue. Can be sorted by ascending or descending order.', 'event_espresso') . '</p>'; |
|
| 150 | + return '<p>'.__('View the capacity for each venue. Can be sorted by ascending or descending order.', 'event_espresso').'</p>'; |
|
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | protected function _shortcode_stop() { |
| 154 | - return '<p>' . __('View the shortcode for a venue. This shortcode can be added to an event, WordPress post, or WordPress page. ', 'event_espresso') . '</p>'; |
|
| 154 | + return '<p>'.__('View the shortcode for a venue. This shortcode can be added to an event, WordPress post, or WordPress page. ', 'event_espresso').'</p>'; |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | protected function _bulk_actions_stop() { |
| 158 | - return '<p>' . __('Perform bulk actions to multiple venues.', 'event_espresso') . '</p>'; |
|
| 158 | + return '<p>'.__('Perform bulk actions to multiple venues.', 'event_espresso').'</p>'; |
|
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | protected function _search_stop() { |
| 162 | - return '<p>' . __('Search through venues. The following sources will be searched: Venue Name, Venue Description, Venue Short Description, Venue Address, Venue City, Venue Zip/Postal Code, Venue Phone, Venue URL, Venue Virtual Phone, Venue Google Map link, Event Name, Event Description, Event Phone, and Event External URL.', 'event_espresso') . '</p>'; |
|
| 162 | + return '<p>'.__('Search through venues. The following sources will be searched: Venue Name, Venue Description, Venue Short Description, Venue Address, Venue City, Venue Zip/Postal Code, Venue Phone, Venue URL, Venue Virtual Phone, Venue Google Map link, Event Name, Event Description, Event Phone, and Event External URL.', 'event_espresso').'</p>'; |
|
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | protected function _new_venue_stop() { |
| 166 | - return '<p>' . __('Click here to add a new venue.', 'event_espresso') . '</p>'; |
|
| 166 | + return '<p>'.__('Click here to add a new venue.', 'event_espresso').'</p>'; |
|
| 167 | 167 | } |
| 168 | 168 | } |
| 169 | 169 | \ No newline at end of file |
@@ -1,6 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
| 2 | +if (!defined('EVENT_ESPRESSO_VERSION') ) { |
|
| 3 | 3 | exit('NO direct script access allowed'); |
| 4 | +} |
|
| 4 | 5 | |
| 5 | 6 | /** |
| 6 | 7 | * Event Espresso |
@@ -3,11 +3,11 @@ discard block |
||
| 3 | 3 | <td valign="top" class="use-ven-manager"> |
| 4 | 4 | <label><?php _e('Select from Venue Manager List', 'event_espresso'); ?></label> |
| 5 | 5 | <?php echo $venue_selector; ?> |
| 6 | - <?php foreach ( $venues as $venue ) : |
|
| 6 | + <?php foreach ($venues as $venue) : |
|
| 7 | 7 | $selected = $evt_venue_id == $venue->ID() ? '' : ' style="display:none;"'; |
| 8 | - $edit_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action' => 'edit', 'post' => $venue->ID() ), EE_VENUES_ADMIN_URL ); |
|
| 9 | - $state_name = is_object( $venue->state_obj() ) ? $venue->state_obj()->name() : NULL; |
|
| 10 | - $country_name = is_object( $venue->country_obj() ) ? $venue->country_obj()->name() : NULL; |
|
| 8 | + $edit_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'edit', 'post' => $venue->ID()), EE_VENUES_ADMIN_URL); |
|
| 9 | + $state_name = is_object($venue->state_obj()) ? $venue->state_obj()->name() : NULL; |
|
| 10 | + $country_name = is_object($venue->country_obj()) ? $venue->country_obj()->name() : NULL; |
|
| 11 | 11 | ?> |
| 12 | 12 | <fieldset id="eebox_<?php echo $venue->ID(); ?>" class="eebox"<?php echo $selected; ?>> |
| 13 | 13 | <ul class="address-view"> |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | <span><?php _e('State:', 'event_espresso'); ?></span> <?php echo $state_name; ?><br /> |
| 19 | 19 | <span><?php _e('Country:', 'event_espresso'); ?></span> <?php echo $country_name; ?><br /> |
| 20 | 20 | <span><?php _e('Venue ID:', 'event_espresso'); ?></span> <?php echo $venue->ID(); ?><br /></p> |
| 21 | - <!-- <?php printf( __('This venue\'s shortcode: %s[ESPRESSO_VENUE id="%d"]%s', 'event_espresso'), '<strong class="highlight">', $venue->ID(), '</strong>' ); ?><br /> --> |
|
| 21 | + <!-- <?php printf(__('This venue\'s shortcode: %s[ESPRESSO_VENUE id="%d"]%s', 'event_espresso'), '<strong class="highlight">', $venue->ID(), '</strong>'); ?><br /> --> |
|
| 22 | 22 | <a href="<?php echo $edit_url; ?>" target="_blank"><?php _e('Edit this Venue', 'event_espresso'); ?></a> |
| 23 | 23 | </li> |
| 24 | 24 | </ul> |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | <tr> |
| 3 | 3 | <td valign="top"> |
| 4 | 4 | <fieldset> |
| 5 | - <?php if( isset( EE_Registry::instance()->CFG->map_settings ) && isset( EE_Registry::instance()->CFG->map_settings->use_google_maps ) && EE_Registry::instance()->CFG->map_settings->use_google_maps ) { ?> |
|
| 5 | + <?php if (isset(EE_Registry::instance()->CFG->map_settings) && isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) && EE_Registry::instance()->CFG->map_settings->use_google_maps) { ?> |
|
| 6 | 6 | <p> |
| 7 | 7 | <label for="enable_for_gmap"> |
| 8 | 8 | <?php _e('Display Google Map for this venue? ', 'event_espresso') ?> |
@@ -14,11 +14,11 @@ discard block |
||
| 14 | 14 | <input type="text" name="vnu_google_map_link" value="<?php echo $vnu_google_map_link; ?>" class="all-options" /> |
| 15 | 15 | </p> --> |
| 16 | 16 | <?php } ?> |
| 17 | - <?php if( ! isset( EE_Registry::instance()->CFG->map_settings ) || ! isset( EE_Registry::instance()->CFG->map_settings->use_google_maps ) || ! EE_Registry::instance()->CFG->map_settings->use_google_maps ) { ?> |
|
| 17 | + <?php if ( ! isset(EE_Registry::instance()->CFG->map_settings) || ! isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) || ! EE_Registry::instance()->CFG->map_settings->use_google_maps) { ?> |
|
| 18 | 18 | <p class="ee-notice"> |
| 19 | 19 | <?php |
| 20 | 20 | echo sprintf( |
| 21 | - __('To display a Google Map for event venues, go to %sEvent Espresso General Settings%sGoogle Maps%s, and set "Activate Google Maps" to "Yes"', 'event_espresso' ), |
|
| 21 | + __('To display a Google Map for event venues, go to %sEvent Espresso General Settings%sGoogle Maps%s, and set "Activate Google Maps" to "Yes"', 'event_espresso'), |
|
| 22 | 22 | '<b>', |
| 23 | 23 | '</b> » <b>', |
| 24 | 24 | '</b>' |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | <tbody> |
| 34 | 34 | <tr> |
| 35 | 35 | <td> |
| 36 | - <h2><?php printf( __('Hello, %s:', 'event_espresso'), '[RECIPIENT_FNAME]' ); ?></h2> |
|
| 36 | + <h2><?php printf(__('Hello, %s:', 'event_espresso'), '[RECIPIENT_FNAME]'); ?></h2> |
|
| 37 | 37 | <p class="lead"><?php _e("We've got a few things we want to share with you!", 'event_espresso'); ?></p> |
| 38 | 38 | <div> |
| 39 | 39 | [NEWSLETTER_CONTENT] |
@@ -1,1 +1,1 @@ |
||
| 1 | -<?php printf( __('Message from %s', 'event_espresso'), EE_Registry::instance()->CFG->organization->get_pretty( 'name' ) ); ?> |
|
| 1 | +<?php printf(__('Message from %s', 'event_espresso'), EE_Registry::instance()->CFG->organization->get_pretty('name')); ?> |
|
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | //remove unwanted transaction shortcode |
| 81 | 81 | foreach ( $this->_valid_shortcodes as $context => $shortcodes ) { |
| 82 | 82 | if( ($key = array_search('transaction', $shortcodes) ) !== false) { |
| 83 | - unset($this->_valid_shortcodes[$context][$key]); |
|
| 83 | + unset($this->_valid_shortcodes[$context][$key]); |
|
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
| 3 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
| 4 | 4 | exit('NO direct script access allowed'); |
| 5 | 5 | |
| 6 | 6 | /** |
@@ -78,8 +78,8 @@ discard block |
||
| 78 | 78 | parent::_set_valid_shortcodes(); |
| 79 | 79 | |
| 80 | 80 | //remove unwanted transaction shortcode |
| 81 | - foreach ( $this->_valid_shortcodes as $context => $shortcodes ) { |
|
| 82 | - if( ($key = array_search('transaction', $shortcodes) ) !== false) { |
|
| 81 | + foreach ($this->_valid_shortcodes as $context => $shortcodes) { |
|
| 82 | + if (($key = array_search('transaction', $shortcodes)) !== false) { |
|
| 83 | 83 | unset($this->_valid_shortcodes[$context][$key]); |
| 84 | 84 | } |
| 85 | 85 | } |
@@ -1,6 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
| 2 | +if (!defined('EVENT_ESPRESSO_VERSION') ) { |
|
| 3 | 3 | exit('NO direct script access allowed'); |
| 4 | +} |
|
| 4 | 5 | |
| 5 | 6 | /** |
| 6 | 7 | * Event Espresso |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
| 3 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
| 4 | 4 | exit('NO direct script access allowed'); |
| 5 | 5 | |
| 6 | 6 | /** |
@@ -30,11 +30,11 @@ discard block |
||
| 30 | 30 | class EE_Messages_Email_Cancelled_Registration_Validator extends EE_Messages_Validator { |
| 31 | 31 | |
| 32 | 32 | |
| 33 | - public function __construct( $fields, $context ) { |
|
| 33 | + public function __construct($fields, $context) { |
|
| 34 | 34 | $this->_m_name = 'email'; |
| 35 | 35 | $this->_mt_name = 'cancelled_registration'; |
| 36 | 36 | |
| 37 | - parent::__construct( $fields, $context ); |
|
| 37 | + parent::__construct($fields, $context); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -46,9 +46,9 @@ discard block |
||
| 46 | 46 | 'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list'), |
| 47 | 47 | 'required' => array('[EVENT_LIST]') |
| 48 | 48 | ); |
| 49 | - $this->_MSGR->set_validator_config( $new_config ); |
|
| 49 | + $this->_MSGR->set_validator_config($new_config); |
|
| 50 | 50 | |
| 51 | - if ( $this->_context != 'admin' ) |
|
| 51 | + if ($this->_context != 'admin') |
|
| 52 | 52 | $this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list'); |
| 53 | 53 | |
| 54 | 54 | $this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]'); |
@@ -1,7 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
| 3 | +if (!defined('EVENT_ESPRESSO_VERSION') ) { |
|
| 4 | 4 | exit('NO direct script access allowed'); |
| 5 | +} |
|
| 5 | 6 | |
| 6 | 7 | /** |
| 7 | 8 | * Event Espresso |
@@ -48,8 +49,9 @@ discard block |
||
| 48 | 49 | ); |
| 49 | 50 | $this->_MSGR->set_validator_config( $new_config ); |
| 50 | 51 | |
| 51 | - if ( $this->_context != 'admin' ) |
|
| 52 | - $this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list'); |
|
| 52 | + if ( $this->_context != 'admin' ) { |
|
| 53 | + $this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list'); |
|
| 54 | + } |
|
| 53 | 55 | |
| 54 | 56 | $this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]'); |
| 55 | 57 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
| 3 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
| 4 | 4 | exit('NO direct script access allowed'); |
| 5 | 5 | |
| 6 | 6 | /** |
@@ -30,11 +30,11 @@ discard block |
||
| 30 | 30 | class EE_Messages_Email_Declined_Registration_Validator extends EE_Messages_Validator { |
| 31 | 31 | |
| 32 | 32 | |
| 33 | - public function __construct( $fields, $context ) { |
|
| 33 | + public function __construct($fields, $context) { |
|
| 34 | 34 | $this->_m_name = 'email'; |
| 35 | 35 | $this->_mt_name = 'declined_registration'; |
| 36 | 36 | |
| 37 | - parent::__construct( $fields, $context ); |
|
| 37 | + parent::__construct($fields, $context); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -47,9 +47,9 @@ discard block |
||
| 47 | 47 | 'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list'), |
| 48 | 48 | 'required' => array('[EVENT_LIST]') |
| 49 | 49 | ); |
| 50 | - $this->_MSGR->set_validator_config( $new_config ); |
|
| 50 | + $this->_MSGR->set_validator_config($new_config); |
|
| 51 | 51 | |
| 52 | - if ( $this->_context != 'admin' ) |
|
| 52 | + if ($this->_context != 'admin') |
|
| 53 | 53 | $this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list'); |
| 54 | 54 | |
| 55 | 55 | $this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]'); |
@@ -1,7 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
| 3 | +if (!defined('EVENT_ESPRESSO_VERSION') ) { |
|
| 4 | 4 | exit('NO direct script access allowed'); |
| 5 | +} |
|
| 5 | 6 | |
| 6 | 7 | /** |
| 7 | 8 | * Event Espresso |
@@ -48,8 +49,9 @@ discard block |
||
| 48 | 49 | ); |
| 49 | 50 | $this->_MSGR->set_validator_config( $new_config ); |
| 50 | 51 | |
| 51 | - if ( $this->_context != 'admin' ) |
|
| 52 | - $this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list'); |
|
| 52 | + if ( $this->_context != 'admin' ) { |
|
| 53 | + $this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list'); |
|
| 54 | + } |
|
| 53 | 55 | |
| 54 | 56 | $this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]'); |
| 55 | 57 | } |