@@ -10,14 +10,14 @@ |
||
10 | 10 | </label> |
11 | 11 | </th> |
12 | 12 | <td> |
13 | - <p><?php echo EEH_Form_Fields::select_input('default_reg_status', $reg_status_array, $default_reg_status ) ?></p> |
|
13 | + <p><?php echo EEH_Form_Fields::select_input('default_reg_status', $reg_status_array, $default_reg_status) ?></p> |
|
14 | 14 | <p class="description"> |
15 | 15 | <?php _e('This setting allows you to preselect what the default registration status setting is when creating an event. Note that changing this setting does NOT retroactively apply it to existing events.', 'event_espresso'); ?> |
16 | 16 | </p> |
17 | 17 | </td> |
18 | 18 | </tr> |
19 | 19 | |
20 | - <?php do_action( 'AHEE__event_settings__template', $template_args ); ?> |
|
20 | + <?php do_action('AHEE__event_settings__template', $template_args); ?> |
|
21 | 21 | |
22 | 22 | </tbody> |
23 | 23 | </table> |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | <span class="ticket-price-info-display ticket-price-dollar-sign-display"><?php echo $price_currency_symbol; ?></span> |
16 | 16 | </td> |
17 | 17 | <td> |
18 | - <?php if ( empty( $disabled ) ) : ?> |
|
18 | + <?php if (empty($disabled)) : ?> |
|
19 | 19 | <input type="text" size="1" class="edit-price-PRC_amount ee-small-text-inp ee-inp-right" name="edit_prices[<?php echo $ticketrow; ?>][1][PRC_amount]" value="<?php echo $PRC_amount; ?>"> |
20 | 20 | <?php else : ?> |
21 | 21 | <input type="text" size="1" class="edit-price-PRC_amount ee-small-text-inp ee-inp-right" name="disabled_price_amount" value="<?php echo $PRC_amount; ?>"<?php echo $disabled; ?>> |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | <input type="hidden" name="edit_prices[<?php echo $ticketrow; ?>][1][PRC_is_default]" class="edit-price-PRC_is_default" value="<?php echo $PRC_is_default; ?>"> |
28 | 28 | </td> |
29 | 29 | <td> |
30 | - <?php if ( empty( $disabled ) ) : ?> |
|
30 | + <?php if (empty($disabled)) : ?> |
|
31 | 31 | <input type="text" class="edit-ticket-TKT_qty ee-small-text-inp ee-inp-right" name="<?php echo $edit_ticketrow_name; ?>[<?php echo $ticketrow; ?>][TKT_qty]" value="<?php echo $TKT_qty; ?>"> |
32 | 32 | <?php else : ?> |
33 | 33 | <input type="text" class="edit-ticket-TKT_qty ee-small-text-inp ee-inp-right" name="disabled_tkt_qty" value="<?php echo $TKT_qty; ?>"<?php echo $disabled; ?>> |
@@ -17,8 +17,11 @@ discard block |
||
17 | 17 | <td> |
18 | 18 | <?php if ( empty( $disabled ) ) : ?> |
19 | 19 | <input type="text" size="1" class="edit-price-PRC_amount ee-small-text-inp ee-inp-right" name="edit_prices[<?php echo $ticketrow; ?>][1][PRC_amount]" value="<?php echo $PRC_amount; ?>"> |
20 | - <?php else : ?> |
|
21 | - <input type="text" size="1" class="edit-price-PRC_amount ee-small-text-inp ee-inp-right" name="disabled_price_amount" value="<?php echo $PRC_amount; ?>"<?php echo $disabled; ?>> |
|
20 | + <?php else { |
|
21 | + : ?> |
|
22 | + <input type="text" size="1" class="edit-price-PRC_amount ee-small-text-inp ee-inp-right" name="disabled_price_amount" value="<?php echo $PRC_amount; |
|
23 | +} |
|
24 | +?>"<?php echo $disabled; ?>> |
|
22 | 25 | <input type="hidden" size="1" class="edit-price-PRC_amount ee-small-text-inp ee-inp-right" name="edit_prices[<?php echo $ticketrow; ?>][1][PRC_amount]" value="<?php echo $PRC_amount; ?>"> |
23 | 26 | <?php endif; ?> |
24 | 27 | |
@@ -29,8 +32,11 @@ discard block |
||
29 | 32 | <td> |
30 | 33 | <?php if ( empty( $disabled ) ) : ?> |
31 | 34 | <input type="text" class="edit-ticket-TKT_qty ee-small-text-inp ee-inp-right" name="<?php echo $edit_ticketrow_name; ?>[<?php echo $ticketrow; ?>][TKT_qty]" value="<?php echo $TKT_qty; ?>"> |
32 | - <?php else : ?> |
|
33 | - <input type="text" class="edit-ticket-TKT_qty ee-small-text-inp ee-inp-right" name="disabled_tkt_qty" value="<?php echo $TKT_qty; ?>"<?php echo $disabled; ?>> |
|
35 | + <?php else { |
|
36 | + : ?> |
|
37 | + <input type="text" class="edit-ticket-TKT_qty ee-small-text-inp ee-inp-right" name="disabled_tkt_qty" value="<?php echo $TKT_qty; |
|
38 | +} |
|
39 | +?>"<?php echo $disabled; ?>> |
|
34 | 40 | <input type="hidden" class="edit-ticket-TKT_qty ee-small-text-inp ee-inp-right" name="<?php echo $edit_ticketrow_name; ?>[<?php echo $ticketrow; ?>][TKT_qty]" value="<?php echo $TKT_qty; ?>"> |
35 | 41 | <?php endif; ?> |
36 | 42 | </td> |
@@ -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 | /** |
@@ -33,12 +33,12 @@ discard block |
||
33 | 33 | |
34 | 34 | public function __construct() { |
35 | 35 | //define some constants |
36 | - define( 'GEN_SET_PG_SLUG', 'espresso_general_settings' ); |
|
37 | - define( 'GEN_SET_LABEL', __('General Settings', 'event_espresso')); |
|
38 | - define( 'GEN_SET_ADMIN', EE_ADMIN_PAGES . 'general_settings' . DS ); |
|
39 | - define( 'GEN_SET_ADMIN_URL', admin_url( 'admin.php?page=' . GEN_SET_PG_SLUG )); |
|
40 | - define( 'GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN . 'templates' . DS ); |
|
41 | - define( 'GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL . 'general_settings/assets/' ); |
|
36 | + define('GEN_SET_PG_SLUG', 'espresso_general_settings'); |
|
37 | + define('GEN_SET_LABEL', __('General Settings', 'event_espresso')); |
|
38 | + define('GEN_SET_ADMIN', EE_ADMIN_PAGES.'general_settings'.DS); |
|
39 | + define('GEN_SET_ADMIN_URL', admin_url('admin.php?page='.GEN_SET_PG_SLUG)); |
|
40 | + define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN.'templates'.DS); |
|
41 | + define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL.'general_settings/assets/'); |
|
42 | 42 | |
43 | 43 | parent::__construct(); |
44 | 44 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | protected function _set_menu_map() { |
51 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( array( |
|
51 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu(array( |
|
52 | 52 | 'menu_group' => 'settings', |
53 | 53 | 'menu_order' => 20, |
54 | 54 | 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
@@ -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,8 +1,8 @@ |
||
1 | 1 | <table id="general-setting-country-details-tbl" class="form-table"> |
2 | 2 | <tbody> |
3 | 3 | <?php |
4 | - foreach ( $inputs as $ID => $input ) { |
|
5 | - echo EEH_Form_Fields::generate_form_input( $input ); |
|
4 | + foreach ($inputs as $ID => $input) { |
|
5 | + echo EEH_Form_Fields::generate_form_input($input); |
|
6 | 6 | } |
7 | 7 | ?> |
8 | 8 | <tr> |
@@ -1,27 +1,27 @@ discard block |
||
1 | 1 | <table id="general-setting-country-states-tbl" class="form-table"> |
2 | 2 | <thead> |
3 | 3 | <tr> |
4 | - <th><?php _e( 'Code', 'event_espresso' );?></th> |
|
5 | - <th><?php _e( 'Name', 'event_espresso' );?></th> |
|
6 | - <th colspan="2"><span class="small-text"><?php _e( 'State Appears in<br/>Dropdown Select Lists ', 'event_espresso' );?></span></th> |
|
4 | + <th><?php _e('Code', 'event_espresso'); ?></th> |
|
5 | + <th><?php _e('Name', 'event_espresso'); ?></th> |
|
6 | + <th colspan="2"><span class="small-text"><?php _e('State Appears in<br/>Dropdown Select Lists ', 'event_espresso'); ?></span></th> |
|
7 | 7 | </tr> |
8 | 8 | </thead> |
9 | 9 | <tbody> |
10 | 10 | <?php |
11 | 11 | //EEH_Debug_Tools::printr( $states, '$states <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span>', 'auto' ); |
12 | - if ( $states ) { |
|
13 | - foreach ( $states as $STA_ID => $state ) { |
|
12 | + if ($states) { |
|
13 | + foreach ($states as $STA_ID => $state) { |
|
14 | 14 | ?> |
15 | 15 | <tr id="state-<?php echo $STA_ID; ?>-tr" class="country-state-columns"> |
16 | 16 | <?php |
17 | - foreach ( $state['inputs'] as $ID => $input ) { |
|
18 | - if ( $ID != 'STA_ID' && $ID != 'CNT_ISO' ) { |
|
19 | - echo EEH_Form_Fields::generate_form_input( $input ); |
|
17 | + foreach ($state['inputs'] as $ID => $input) { |
|
18 | + if ($ID != 'STA_ID' && $ID != 'CNT_ISO') { |
|
19 | + echo EEH_Form_Fields::generate_form_input($input); |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 | ?> |
23 | 23 | <td class="delete-state-td"> |
24 | - <a id="delete-state-<?php echo $STA_ID; ?>-lnk" class="dashicons dashicons-post-trash ee-icon-size-20 delete-state-lnk" rel="<?php echo $STA_ID; ?>" title="<?php esc_attr_e( 'Delete State #', 'event_espresso' ); ?><?php echo $STA_ID; ?>?" href="<?php echo $state['delete_state_url']; ?>"></a> |
|
24 | + <a id="delete-state-<?php echo $STA_ID; ?>-lnk" class="dashicons dashicons-post-trash ee-icon-size-20 delete-state-lnk" rel="<?php echo $STA_ID; ?>" title="<?php esc_attr_e('Delete State #', 'event_espresso'); ?><?php echo $STA_ID; ?>?" href="<?php echo $state['delete_state_url']; ?>"></a> |
|
25 | 25 | </td> |
26 | 26 | </tr> |
27 | 27 | <?php |
@@ -38,23 +38,23 @@ discard block |
||
38 | 38 | <table class="form-table add-new-state-tbl"> |
39 | 39 | <tbody> |
40 | 40 | <tr> |
41 | - <td colspan="2"><h4><?php _e( 'Add New State/Province', 'event_espresso' );?></h4></td> |
|
41 | + <td colspan="2"><h4><?php _e('Add New State/Province', 'event_espresso'); ?></h4></td> |
|
42 | 42 | </tr> |
43 | 43 | |
44 | 44 | <tr> |
45 | 45 | <td class="general-settings-country-state-input-td"> |
46 | - <label for="STA_abbrev_XXX"><?php _e( 'Code', 'event_espresso' );?></label><br /> |
|
46 | + <label for="STA_abbrev_XXX"><?php _e('Code', 'event_espresso'); ?></label><br /> |
|
47 | 47 | <input id="STA_abbrev-XXX" class="STA_abbrev mid-text " type="text" title="" value="" |
48 | 48 | name="STA_abbrev_XXX"> |
49 | 49 | </td> |
50 | 50 | <td class="general-settings-country-state-input-td"> |
51 | - <label for="STA_name_XXX"><?php _e( 'Name', 'event_espresso' );?></label><br/> |
|
51 | + <label for="STA_name_XXX"><?php _e('Name', 'event_espresso'); ?></label><br/> |
|
52 | 52 | <input id="STA_name-XXX" class="STA_name regular-text " type="text" title="" value="" name="STA_name_XXX"> |
53 | 53 | </td> |
54 | 54 | </tr> |
55 | 55 | <tr> |
56 | 56 | <td colspan="2"> |
57 | - <input type="submit" id="add-new-state-btn" class="secondary-button button right" value="<?php _e( 'Add New State/Province', 'event_espresso' );?>" /> |
|
57 | + <input type="submit" id="add-new-state-btn" class="secondary-button button right" value="<?php _e('Add New State/Province', 'event_espresso'); ?>" /> |
|
58 | 58 | |
59 | 59 | </td> |
60 | 60 | </tr> |
@@ -30,8 +30,7 @@ discard block |
||
30 | 30 | </tbody> |
31 | 31 | </table> |
32 | 32 | <?php |
33 | - } |
|
34 | - else { |
|
33 | + } else { |
|
35 | 34 | ?> |
36 | 35 | <ul> |
37 | 36 | <?php |
@@ -41,7 +40,7 @@ discard block |
||
41 | 40 | </ul> |
42 | 41 | <?php |
43 | 42 | } |
44 | - }else { |
|
43 | + } else { |
|
45 | 44 | //simple value |
46 | 45 | echo $data; |
47 | 46 | } |
@@ -86,8 +85,7 @@ discard block |
||
86 | 85 | }?> |
87 | 86 | </tbody> |
88 | 87 | <?php |
89 | - } |
|
90 | - else { |
|
88 | + } else { |
|
91 | 89 | ?> |
92 | 90 | <tbody> |
93 | 91 | <tr> |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | function ee_recurse_into_array_for_display($data) { |
13 | 13 | if (is_object($data) || $data instanceof __PHP_Incomplete_Class) {//is_object($incomplete_class) actually returns false, hence why we check for it |
14 | - $data = json_decode(json_encode($data), true); |
|
14 | + $data = json_decode(json_encode($data), true); |
|
15 | 15 | } |
16 | 16 | if (is_array($data)) { |
17 | 17 | if (EEH_Array::is_associative_array($data)) { |
@@ -23,10 +23,10 @@ discard block |
||
23 | 23 | ?> |
24 | 24 | <tr> |
25 | 25 | <td> |
26 | - <?php echo $data_key;?> |
|
26 | + <?php echo $data_key; ?> |
|
27 | 27 | </td> |
28 | 28 | <td> |
29 | - <?php ee_recurse_into_array_for_display($data_values);?> |
|
29 | + <?php ee_recurse_into_array_for_display($data_values); ?> |
|
30 | 30 | </td> |
31 | 31 | </tr> |
32 | 32 | <?php |
@@ -40,19 +40,19 @@ discard block |
||
40 | 40 | <ul> |
41 | 41 | <?php |
42 | 42 | foreach ($data as $datum) { |
43 | - echo "<li>";ee_recurse_into_array_for_display($datum);echo "</li>"; |
|
43 | + echo "<li>"; ee_recurse_into_array_for_display($datum); echo "</li>"; |
|
44 | 44 | }?> |
45 | 45 | </ul> |
46 | 46 | <?php |
47 | 47 | } |
48 | - }else { |
|
48 | + } else { |
|
49 | 49 | //simple value |
50 | 50 | echo $data; |
51 | 51 | } |
52 | 52 | } |
53 | 53 | ?> |
54 | 54 | <h1> |
55 | - <?php _e("System Information", "event_espresso");?> <a href="<?php echo $download_system_status_url;?>" class="button-secondary"><?php esc_html_e( 'Download to File', 'event_espresso' );?></a> |
|
55 | + <?php _e("System Information", "event_espresso"); ?> <a href="<?php echo $download_system_status_url; ?>" class="button-secondary"><?php esc_html_e('Download to File', 'event_espresso'); ?></a> |
|
56 | 56 | </h1> |
57 | 57 | <div class="padding"> |
58 | 58 |
@@ -1,29 +1,29 @@ |
||
1 | 1 | <?php if (!defined('EVENT_ESPRESSO_VERSION') ) |
2 | 2 | exit('NO direct script access allowed'); |
3 | 3 | /** |
4 | - * Event Espresso |
|
5 | - * |
|
6 | - * Event Registration and Management Plugin for Wordpress |
|
7 | - * |
|
8 | - * @package Event Espresso |
|
9 | - * @author Seth Shoultes |
|
10 | - * @copyright (c)2009-2012 Event Espresso All Rights Reserved. |
|
11 | - * @license @link http://eventespresso.com/support/terms-conditions/ ** see Plugin Licensing * * |
|
12 | - * @link http://www.eventespresso.com |
|
13 | - * @version 4.0 |
|
14 | - * |
|
15 | - * ------------------------------------------------------------------------ |
|
16 | - * |
|
17 | - * Messages_Admin_Page_Init |
|
18 | - * |
|
19 | - * for setup of the message admin pages |
|
20 | - * |
|
21 | - * @package Event Espresso |
|
22 | - * @subpackage includes/core/message/EE_Message_Admin_Page_Init.core.php |
|
23 | - * @author Darren Ethier |
|
24 | - * |
|
25 | - * ------------------------------------------------------------------------ |
|
26 | - */ |
|
4 | + * Event Espresso |
|
5 | + * |
|
6 | + * Event Registration and Management Plugin for Wordpress |
|
7 | + * |
|
8 | + * @package Event Espresso |
|
9 | + * @author Seth Shoultes |
|
10 | + * @copyright (c)2009-2012 Event Espresso All Rights Reserved. |
|
11 | + * @license @link http://eventespresso.com/support/terms-conditions/ ** see Plugin Licensing * * |
|
12 | + * @link http://www.eventespresso.com |
|
13 | + * @version 4.0 |
|
14 | + * |
|
15 | + * ------------------------------------------------------------------------ |
|
16 | + * |
|
17 | + * Messages_Admin_Page_Init |
|
18 | + * |
|
19 | + * for setup of the message admin pages |
|
20 | + * |
|
21 | + * @package Event Espresso |
|
22 | + * @subpackage includes/core/message/EE_Message_Admin_Page_Init.core.php |
|
23 | + * @author Darren Ethier |
|
24 | + * |
|
25 | + * ------------------------------------------------------------------------ |
|
26 | + */ |
|
27 | 27 | class Messages_Admin_Page_Init extends EE_Admin_Page_Init { |
28 | 28 | /** |
29 | 29 | *constructor |
@@ -1,5 +1,6 @@ |
||
1 | -<?php if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
1 | +<?php if (!defined('EVENT_ESPRESSO_VERSION') ) { |
|
2 | 2 | exit('NO direct script access allowed'); |
3 | +} |
|
3 | 4 | /** |
4 | 5 | * Event Espresso |
5 | 6 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
1 | +<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
2 | 2 | exit('NO direct script access allowed'); |
3 | 3 | /** |
4 | 4 | * Event Espresso |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * |
25 | 25 | * ------------------------------------------------------------------------ |
26 | 26 | */ |
27 | -class Messages_Admin_Page_Init extends EE_Admin_Page_Init { |
|
27 | +class Messages_Admin_Page_Init extends EE_Admin_Page_Init { |
|
28 | 28 | /** |
29 | 29 | *constructor |
30 | 30 | *@Constructor |
@@ -33,18 +33,18 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function __construct() { |
35 | 35 | |
36 | - do_action( 'AHEE_log', __FILE__, __FUNCTION__, '' ); |
|
36 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
37 | 37 | |
38 | - if ( ! defined( 'EE_MSG_PG_SLUG' ) ) { |
|
38 | + if ( ! defined('EE_MSG_PG_SLUG')) { |
|
39 | 39 | |
40 | - define( 'EE_MSG_PG_SLUG', 'espresso_messages' ); |
|
41 | - define( 'EE_MSG_PG_NAME', ucwords( str_replace( '_', '', EE_MSG_PG_SLUG ) ) ); |
|
42 | - define( 'EE_MSG_ADMIN', EE_ADMIN_PAGES . 'messages' . DS ); |
|
43 | - define( 'EE_MSG_ADMIN_URL', admin_url( 'admin.php?page=' . EE_MSG_PG_SLUG ) ); |
|
44 | - define( 'EE_MSG_ASSETS_PATH', EE_MSG_ADMIN . 'assets' . DS ); |
|
45 | - define( 'EE_MSG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'messages/assets/' ); |
|
46 | - define( 'EE_MSG_TEMPLATE_PATH', EE_MSG_ADMIN . 'templates' . DS ); |
|
47 | - define( 'EE_MSG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'messages/templates/' ); |
|
40 | + define('EE_MSG_PG_SLUG', 'espresso_messages'); |
|
41 | + define('EE_MSG_PG_NAME', ucwords(str_replace('_', '', EE_MSG_PG_SLUG))); |
|
42 | + define('EE_MSG_ADMIN', EE_ADMIN_PAGES.'messages'.DS); |
|
43 | + define('EE_MSG_ADMIN_URL', admin_url('admin.php?page='.EE_MSG_PG_SLUG)); |
|
44 | + define('EE_MSG_ASSETS_PATH', EE_MSG_ADMIN.'assets'.DS); |
|
45 | + define('EE_MSG_ASSETS_URL', EE_ADMIN_PAGES_URL.'messages/assets/'); |
|
46 | + define('EE_MSG_TEMPLATE_PATH', EE_MSG_ADMIN.'templates'.DS); |
|
47 | + define('EE_MSG_TEMPLATE_URL', EE_ADMIN_PAGES_URL.'messages/templates/'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | parent::__construct(); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | |
62 | 62 | protected function _set_menu_map() { |
63 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( array( |
|
63 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu(array( |
|
64 | 64 | 'menu_group' => 'management', |
65 | 65 | 'menu_order' => 10, |
66 | 66 | 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
@@ -1,31 +1,31 @@ |
||
1 | 1 | |
2 | 2 | <ul class="subsubsub"> |
3 | - <?php foreach ( $view_RLs as $vw ) : ?> |
|
4 | - <li class="<?php echo $vw['slug']; ?>"><a class="<?php echo $vw['class']; ?>" href="<?php echo $vw['url'];?>"><?php echo $vw['label']; ?><span class="count">(<?php echo $vw['count']; ?>)</span></a></li> |
|
3 | + <?php foreach ($view_RLs as $vw) : ?> |
|
4 | + <li class="<?php echo $vw['slug']; ?>"><a class="<?php echo $vw['class']; ?>" href="<?php echo $vw['url']; ?>"><?php echo $vw['label']; ?><span class="count">(<?php echo $vw['count']; ?>)</span></a></li> |
|
5 | 5 | <?php endforeach; ?> |
6 | 6 | <li> |
7 | 7 | </li> |
8 | 8 | </ul> |
9 | 9 | <div class="clear"></div> |
10 | 10 | <div id="ee-messenger-filters-dv"> |
11 | - <form id="ee-messenger-filters-frm" action="<?php echo $ee_msg_overview_url;?>" method="post" name="ee-messenger-filters-frm"> |
|
11 | + <form id="ee-messenger-filters-frm" action="<?php echo $ee_msg_overview_url; ?>" method="post" name="ee-messenger-filters-frm"> |
|
12 | 12 | <select name="ee_messenger_filter_by" id="ee_messenger_filter_by"> |
13 | - <?php foreach ( $active_messengers as $messenger => $args ) : ?> |
|
14 | - <option value="<?php echo $messenger; ?>"><?php echo ucwords(str_replace('_', ' ', $messenger) ); ?></option> |
|
13 | + <?php foreach ($active_messengers as $messenger => $args) : ?> |
|
14 | + <option value="<?php echo $messenger; ?>"><?php echo ucwords(str_replace('_', ' ', $messenger)); ?></option> |
|
15 | 15 | <?php endforeach; ?> |
16 | 16 | </select> |
17 | 17 | <input id="submit-ee-messenger-filters-sbmt" class="button-secondary" type="submit" value="Filter Messenger"> |
18 | 18 | |
19 | 19 | <select name="ee_message_type_filter_by" id="ee_message_type_filter_by"> |
20 | - <?php foreach ( $active_message_types as $message_type => $args ) : ?> |
|
21 | - <option value="<?php echo $message_type; ?>"><?php echo ucwords(str_replace('_', ' ', $message_type) ); ?></option> |
|
20 | + <?php foreach ($active_message_types as $message_type => $args) : ?> |
|
21 | + <option value="<?php echo $message_type; ?>"><?php echo ucwords(str_replace('_', ' ', $message_type)); ?></option> |
|
22 | 22 | <?php endforeach; ?> |
23 | 23 | </select> |
24 | 24 | <input id="submit-ee-message-type-filters-sbmt" class="button-secondary" type="submit" value="Filter Message Type"> |
25 | 25 | </form> |
26 | 26 | </div> |
27 | 27 | |
28 | - <form id="ee-messages-overview-frm" action="<?php echo $ee_msg_overview_url;?>" method="get"> |
|
28 | + <form id="ee-messages-overview-frm" action="<?php echo $ee_msg_overview_url; ?>" method="get"> |
|
29 | 29 | <input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>" /> |
30 | 30 | <input type="hidden" id="per_page" name="per_page" value="" /> |
31 | 31 | <?php echo $list_table->display(); ?> |
@@ -1,32 +1,32 @@ |
||
1 | 1 | <div id="admin-primary-mbox-dv" class="admin-primary-mbox-dv"> |
2 | 2 | |
3 | - <h4 class="admin-primary-mbox-h4"><?php echo ($event_name) ? $event_name . ' Custom Template' : ''; ?></h4> |
|
3 | + <h4 class="admin-primary-mbox-h4"><?php echo ($event_name) ? $event_name.' Custom Template' : ''; ?></h4> |
|
4 | 4 | <p><?php echo $action_message; ?></p> |
5 | 5 | |
6 | 6 | <form id="ee-msg-add-message-template-frm" action="<?php echo $edit_message_template_form_url; ?>" method="post"> |
7 | 7 | <input type="hidden" id="evt_id" name="EVT_ID" value="<?php echo ($EVT_ID) ? $EVT_ID : ''; ?>" /> |
8 | - <?php if ( isset( $hidden_fields ) ) echo $hidden_fields; ?> |
|
8 | + <?php if (isset($hidden_fields)) echo $hidden_fields; ?> |
|
9 | 9 | |
10 | 10 | <!--active_messengers --> |
11 | 11 | <label for="MTP_messenger"><?php _e('Select Messenger', 'event_espresso'); ?></label> |
12 | 12 | <select name="MTP_messenger" id="MTP-messenger"> |
13 | - <?php foreach ( $active_messengers as $messenger => $values ) : ?> |
|
14 | - <option value="<?php echo $messenger; ?>"><?php echo ucwords(str_replace('_', ' ', $messenger) ); ?></option> |
|
13 | + <?php foreach ($active_messengers as $messenger => $values) : ?> |
|
14 | + <option value="<?php echo $messenger; ?>"><?php echo ucwords(str_replace('_', ' ', $messenger)); ?></option> |
|
15 | 15 | <?php endforeach; ?> |
16 | 16 | </select> |
17 | 17 | |
18 | 18 | <label for="MTP_message_type"><?php _e('Select Message Type', 'event_espresso'); ?></label> |
19 | 19 | <select name="MTP_message_type" id="MTP-message-type"> |
20 | - <?php foreach ( $active_message_types as $message_type => $values ) : ?> |
|
21 | - <option value="<?php echo $message_type; ?>"><?php echo ucwords(str_replace('_', ' ', $message_type) ); ?></option> |
|
20 | + <?php foreach ($active_message_types as $message_type => $values) : ?> |
|
21 | + <option value="<?php echo $message_type; ?>"><?php echo ucwords(str_replace('_', ' ', $message_type)); ?></option> |
|
22 | 22 | <?php endforeach; ?> |
23 | 23 | </select> |
24 | 24 | |
25 | 25 | <!-- events if we don't have an EVENT_ID --> |
26 | - <?php if ( !empty( $active_events ) ) : ?> |
|
26 | + <?php if ( ! empty($active_events)) : ?> |
|
27 | 27 | <label for="EVT_ID_select"><?php _e('Select Event', 'event_espresso'); ?></label> |
28 | 28 | <select name="EVT_ID" id="EVT_ID_select"> |
29 | - <?php foreach ( $active_events as $event ) : ?> |
|
29 | + <?php foreach ($active_events as $event) : ?> |
|
30 | 30 | <option value="<?php echo $event->event_id; ?>"><?php echo $event->event_name; ?></option> |
31 | 31 | <?php endforeach; ?> |
32 | 32 | </select> |
@@ -5,7 +5,10 @@ |
||
5 | 5 | |
6 | 6 | <form id="ee-msg-add-message-template-frm" action="<?php echo $edit_message_template_form_url; ?>" method="post"> |
7 | 7 | <input type="hidden" id="evt_id" name="EVT_ID" value="<?php echo ($EVT_ID) ? $EVT_ID : ''; ?>" /> |
8 | - <?php if ( isset( $hidden_fields ) ) echo $hidden_fields; ?> |
|
8 | + <?php if ( isset( $hidden_fields ) ) { |
|
9 | + echo $hidden_fields; |
|
10 | +} |
|
11 | +?> |
|
9 | 12 | |
10 | 13 | <!--active_messengers --> |
11 | 14 | <label for="MTP_messenger"><?php _e('Select Messenger', 'event_espresso'); ?></label> |