@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * ------------------------------------------------------------------------ |
25 | 25 | */ |
26 | -class Pricing_Admin_Page_Init extends EE_Admin_Page_Init { |
|
26 | +class Pricing_Admin_Page_Init extends EE_Admin_Page_Init { |
|
27 | 27 | |
28 | 28 | |
29 | 29 | |
@@ -36,20 +36,20 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function __construct() { |
38 | 38 | |
39 | - do_action( 'AHEE_log', __FILE__, __FUNCTION__, '' ); |
|
39 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
40 | 40 | |
41 | - define( 'PRICING_PG_SLUG', 'pricing' ); |
|
42 | - define( 'PRICING_LABEL', __('Pricing', 'event_espresso')); |
|
43 | - define( 'PRICING_PG_NAME', ucwords( str_replace( '_', '', PRICING_PG_SLUG ))); |
|
44 | - define( 'PRICING_ADMIN', EE_CORE_CAF_ADMIN . 'new' . DS . PRICING_PG_SLUG . DS ); |
|
45 | - define( 'PRICING_ADMIN_URL', admin_url( 'admin.php?page=' . PRICING_PG_SLUG )); |
|
46 | - define( 'PRICING_ASSETS_PATH', PRICING_ADMIN . 'assets' . DS ); |
|
47 | - define( 'PRICING_ASSETS_URL', EE_CORE_CAF_ADMIN_URL . 'new' . DS . PRICING_PG_SLUG .'/assets/' ); |
|
48 | - define( 'PRICING_TEMPLATE_PATH', PRICING_ADMIN . 'templates' . DS ); |
|
49 | - define( 'PRICING_TEMPLATE_URL', EE_CORE_CAF_ADMIN_URL . 'new' . DS . PRICING_PG_SLUG . DS . 'templates/' ); |
|
41 | + define('PRICING_PG_SLUG', 'pricing'); |
|
42 | + define('PRICING_LABEL', __('Pricing', 'event_espresso')); |
|
43 | + define('PRICING_PG_NAME', ucwords(str_replace('_', '', PRICING_PG_SLUG))); |
|
44 | + define('PRICING_ADMIN', EE_CORE_CAF_ADMIN.'new'.DS.PRICING_PG_SLUG.DS); |
|
45 | + define('PRICING_ADMIN_URL', admin_url('admin.php?page='.PRICING_PG_SLUG)); |
|
46 | + define('PRICING_ASSETS_PATH', PRICING_ADMIN.'assets'.DS); |
|
47 | + define('PRICING_ASSETS_URL', EE_CORE_CAF_ADMIN_URL.'new'.DS.PRICING_PG_SLUG.'/assets/'); |
|
48 | + define('PRICING_TEMPLATE_PATH', PRICING_ADMIN.'templates'.DS); |
|
49 | + define('PRICING_TEMPLATE_URL', EE_CORE_CAF_ADMIN_URL.'new'.DS.PRICING_PG_SLUG.DS.'templates/'); |
|
50 | 50 | |
51 | 51 | parent::__construct(); |
52 | - $this->_folder_path = EE_CORE_CAF_ADMIN . 'new' . DS . $this->_folder_name . DS; |
|
52 | + $this->_folder_path = EE_CORE_CAF_ADMIN.'new'.DS.$this->_folder_name.DS; |
|
53 | 53 | |
54 | 54 | } |
55 | 55 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | |
66 | 66 | protected function _set_menu_map() { |
67 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( array( |
|
67 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu(array( |
|
68 | 68 | 'menu_group' => 'management', |
69 | 69 | 'menu_order' => 20, |
70 | 70 | 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed'); |
|
1 | +<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
2 | + exit('No direct script access allowed'); |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Event Espresso |
4 | 6 | * |
@@ -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 | /** |
@@ -78,25 +78,25 @@ discard block |
||
78 | 78 | |
79 | 79 | |
80 | 80 | protected function _start() { |
81 | - $content = '<h3>' . __('Add New Default Price', 'event_espresso') . '</h3>'; |
|
82 | - $content .= '<p>' . __('This tour of the add new default price page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>'; |
|
81 | + $content = '<h3>'.__('Add New Default Price', 'event_espresso').'</h3>'; |
|
82 | + $content .= '<p>'.__('This tour of the add new default price page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>'; |
|
83 | 83 | return $content; |
84 | 84 | } |
85 | 85 | |
86 | 86 | protected function _price_type_stop() { |
87 | - return '<p>' . __('Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.', 'event_espresso') . '</p>'; |
|
87 | + return '<p>'.__('Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.', 'event_espresso').'</p>'; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | protected function _price_name_stop() { |
91 | - return '<p>' . __('The name of the price, discount, tax, or surcharge that will be seen by your customers.', 'event_espresso') . '</p>'; |
|
91 | + return '<p>'.__('The name of the price, discount, tax, or surcharge that will be seen by your customers.', 'event_espresso').'</p>'; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | protected function _price_description_stop() { |
95 | - return '<p>' . __('View the price type (price, discount, tax or surcharge) description.', 'event_espresso') . '</p>'; |
|
95 | + return '<p>'.__('View the price type (price, discount, tax or surcharge) description.', 'event_espresso').'</p>'; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | protected function _price_amount_stop() { |
99 | - return '<p>' . __('The ticket amount before any deductions.', 'event_espresso') . '</p>'; |
|
99 | + return '<p>'.__('The ticket amount before any deductions.', 'event_espresso').'</p>'; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | } |
103 | 103 | \ 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 | /** |
@@ -78,25 +78,25 @@ discard block |
||
78 | 78 | |
79 | 79 | |
80 | 80 | protected function _start() { |
81 | - $content = '<h3>' . __('Add New Price Type', 'event_espresso') . '</h3>'; |
|
82 | - $content .= '<p>' . __('This tour of the Add New Price Type page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>'; |
|
81 | + $content = '<h3>'.__('Add New Price Type', 'event_espresso').'</h3>'; |
|
82 | + $content .= '<p>'.__('This tour of the Add New Price Type page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>'; |
|
83 | 83 | return $content; |
84 | 84 | } |
85 | 85 | |
86 | 86 | protected function _basic_type_stop() { |
87 | - return '<p>' . __('Set a price type to be a discount, surcharge, or tax.', 'event_espresso') . '</p>'; |
|
87 | + return '<p>'.__('Set a price type to be a discount, surcharge, or tax.', 'event_espresso').'</p>'; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | protected function _price_type_name_stop() { |
91 | - return '<p>' . __('The name of the price type.', 'event_espresso') . '</p>'; |
|
91 | + return '<p>'.__('The name of the price type.', 'event_espresso').'</p>'; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | protected function _percentage_dollar_amount_stop() { |
95 | - return '<p>' . __('Set a price type to be percentage-based or a fixed amount.', 'event_espresso') . '</p>'; |
|
95 | + return '<p>'.__('Set a price type to be percentage-based or a fixed amount.', 'event_espresso').'</p>'; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | protected function _order_of_application_stop() { |
99 | - return '<p>' . __('Set the order of application for a price type.', 'event_espresso') . '</p>'; |
|
99 | + return '<p>'.__('Set the order of application for a price type.', 'event_espresso').'</p>'; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | } |
103 | 103 | \ 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 | /** |
@@ -99,33 +99,33 @@ discard block |
||
99 | 99 | |
100 | 100 | |
101 | 101 | protected function _start() { |
102 | - $content = '<h3>' . __('Default Pricing', 'event_espresso') . '</h3>'; |
|
103 | - $content .= '<p>' . __('This tour of the Default Pricing page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>'; |
|
102 | + $content = '<h3>'.__('Default Pricing', 'event_espresso').'</h3>'; |
|
103 | + $content .= '<p>'.__('This tour of the Default Pricing page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>'; |
|
104 | 104 | return $content; |
105 | 105 | } |
106 | 106 | |
107 | 107 | protected function _name_column_stop() { |
108 | - return '<p>' . __('The name of the price, discount, tax, or surcharge that will be seen by your customers. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>'; |
|
108 | + return '<p>'.__('The name of the price, discount, tax, or surcharge that will be seen by your customers. Can be sorted in ascending or descending order.', 'event_espresso').'</p>'; |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | protected function _type_column_stop() { |
112 | - return '<p>' . __('Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>'; |
|
112 | + return '<p>'.__('Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs. Can be sorted in ascending or descending order.', 'event_espresso').'</p>'; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | protected function _description_column_stop() { |
116 | - return '<p>' . __('View the price type (price, discount, tax or surcharge) description.', 'event_espresso') . '</p>'; |
|
116 | + return '<p>'.__('View the price type (price, discount, tax or surcharge) description.', 'event_espresso').'</p>'; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | protected function _amount_column_stop() { |
120 | - return '<p>' . __('The ticket amount before any deductions. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>'; |
|
120 | + return '<p>'.__('The ticket amount before any deductions. Can be sorted in ascending or descending order.', 'event_espresso').'</p>'; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | protected function _bulk_actions_stop() { |
124 | - return '<p>' . __('Perform bulk actions to multiple price types.', 'event_espresso') . '</p>'; |
|
124 | + return '<p>'.__('Perform bulk actions to multiple price types.', 'event_espresso').'</p>'; |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | protected function _search_stop() { |
128 | - return '<p>' . __('Search through default pricing. The following sources will be searched: Price Name, Price Type, Price Description, and Price Amount.', 'event_espresso') . '</p>'; |
|
128 | + return '<p>'.__('Search through default pricing. The following sources will be searched: Price Name, Price Type, Price Description, and Price Amount.', 'event_espresso').'</p>'; |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | } |
132 | 132 | \ 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 | /** |
@@ -78,25 +78,25 @@ discard block |
||
78 | 78 | |
79 | 79 | |
80 | 80 | protected function _start() { |
81 | - $content = '<h3>' . __('Edit Default Price', 'event_espresso') . '</h3>'; |
|
82 | - $content .= '<p>' . __('This tour of the Edit Default Price page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>'; |
|
81 | + $content = '<h3>'.__('Edit Default Price', 'event_espresso').'</h3>'; |
|
82 | + $content .= '<p>'.__('This tour of the Edit Default Price page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>'; |
|
83 | 83 | return $content; |
84 | 84 | } |
85 | 85 | |
86 | 86 | protected function _price_type_stop() { |
87 | - return '<p>' . __('Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.', 'event_espresso') . '</p>'; |
|
87 | + return '<p>'.__('Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.', 'event_espresso').'</p>'; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | protected function _price_name_stop() { |
91 | - return '<p>' . __('The name of the price, discount, tax, or surcharge that will be seen by your customers.', 'event_espresso') . '</p>'; |
|
91 | + return '<p>'.__('The name of the price, discount, tax, or surcharge that will be seen by your customers.', 'event_espresso').'</p>'; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | protected function _price_description_stop() { |
95 | - return '<p>' . __('View the price type (price, discount, tax or surcharge) description.', 'event_espresso') . '</p>'; |
|
95 | + return '<p>'.__('View the price type (price, discount, tax or surcharge) description.', 'event_espresso').'</p>'; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | protected function _price_amount_stop() { |
99 | - return '<p>' . __('The ticket amount before any deductions.', 'event_espresso') . '</p>'; |
|
99 | + return '<p>'.__('The ticket amount before any deductions.', 'event_espresso').'</p>'; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | } |
103 | 103 | \ 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 | /** |
@@ -78,25 +78,25 @@ discard block |
||
78 | 78 | |
79 | 79 | |
80 | 80 | protected function _start() { |
81 | - $content = '<h3>' . __('Edit Price Type', 'event_espresso') . '</h3>'; |
|
82 | - $content .= '<p>' . __('This tour of the Edit Price Type page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>'; |
|
81 | + $content = '<h3>'.__('Edit Price Type', 'event_espresso').'</h3>'; |
|
82 | + $content .= '<p>'.__('This tour of the Edit Price Type page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>'; |
|
83 | 83 | return $content; |
84 | 84 | } |
85 | 85 | |
86 | 86 | protected function _basic_type_stop() { |
87 | - return '<p>' . __('Set a price type to be a discount, surcharge, or tax.', 'event_espresso') . '</p>'; |
|
87 | + return '<p>'.__('Set a price type to be a discount, surcharge, or tax.', 'event_espresso').'</p>'; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | protected function _price_type_name_stop() { |
91 | - return '<p>' . __('The name of the price type.', 'event_espresso') . '</p>'; |
|
91 | + return '<p>'.__('The name of the price type.', 'event_espresso').'</p>'; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | protected function _percentage_dollar_amount_stop() { |
95 | - return '<p>' . __('Set a price type to be percentage-based or a fixed amount.', 'event_espresso') . '</p>'; |
|
95 | + return '<p>'.__('Set a price type to be percentage-based or a fixed amount.', 'event_espresso').'</p>'; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | protected function _order_of_application_stop() { |
99 | - return '<p>' . __('Set the order of application for a price type.', 'event_espresso') . '</p>'; |
|
99 | + return '<p>'.__('Set the order of application for a price type.', 'event_espresso').'</p>'; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | } |
103 | 103 | \ 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 | /** |
@@ -99,37 +99,37 @@ discard block |
||
99 | 99 | |
100 | 100 | |
101 | 101 | protected function _start() { |
102 | - $content = '<h3>' . __('Price Types', 'event_espresso') . '</h3>'; |
|
103 | - $content .= '<p>' . __('This tour of the Price Types page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>'; |
|
102 | + $content = '<h3>'.__('Price Types', 'event_espresso').'</h3>'; |
|
103 | + $content .= '<p>'.__('This tour of the Price Types page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>'; |
|
104 | 104 | return $content; |
105 | 105 | } |
106 | 106 | |
107 | 107 | protected function _name_column_stop() { |
108 | - return '<p>' . __('The name of the price type. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>'; |
|
108 | + return '<p>'.__('The name of the price type. Can be sorted in ascending or descending order.', 'event_espresso').'</p>'; |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | protected function _base_type_stop() { |
112 | - return '<p>' . __('View if a price type is a discount, surcharge, or tax.', 'event_espresso') . '</p>'; |
|
112 | + return '<p>'.__('View if a price type is a discount, surcharge, or tax.', 'event_espresso').'</p>'; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | protected function _member_column_stop() { |
116 | - return '<p>' . __('Here you can see if the discount/surcharge is percentage based or a flat monetary amount.', 'event_espresso') . '</p>'; |
|
116 | + return '<p>'.__('Here you can see if the discount/surcharge is percentage based or a flat monetary amount.', 'event_espresso').'</p>'; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | protected function _percent_column_stop() { |
120 | - return '<p>' . __('View if the discount, surcharge, or tax is percentage-based or a fixed amount.', 'event_espresso') . '</p>'; |
|
120 | + return '<p>'.__('View if the discount, surcharge, or tax is percentage-based or a fixed amount.', 'event_espresso').'</p>'; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | protected function _order_column_stop() { |
124 | - return '<p>' . __('View the order in which each discount, surcharge, or tax will be applied to the base ticket cost. Zero (0) means it will be applied first.', 'event_espresso') . '</p>'; |
|
124 | + return '<p>'.__('View the order in which each discount, surcharge, or tax will be applied to the base ticket cost. Zero (0) means it will be applied first.', 'event_espresso').'</p>'; |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | protected function _bulk_actions_stop() { |
128 | - return '<p>' . __('Perform bulk actions to multiple price types.', 'event_espresso') . '</p>'; |
|
128 | + return '<p>'.__('Perform bulk actions to multiple price types.', 'event_espresso').'</p>'; |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | protected function _search_stop() { |
132 | - return '<p>' . __('Search through price types. The following source will be searched: Price Type Name.', 'event_espresso') . '</p>'; |
|
132 | + return '<p>'.__('Search through price types. The following source will be searched: Price Type Name.', 'event_espresso').'</p>'; |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | } |
136 | 136 | \ 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 @@ |
||
1 | 1 | <?php echo $price_modifier_selector; ?> |
2 | -<?php if ( $disabled ) : ?> |
|
2 | +<?php if ($disabled) : ?> |
|
3 | 3 | <input type="hidden" name="<?php echo $main_name; ?>" value="<?php echo $selected_price_type_id; ?>"> |
4 | 4 | <?php endif; ?> |
5 | 5 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | <span class="ticket-price-info-display ticket-price-dollar-sign-display"<?php echo $show_currency_symbol; ?>><?php echo $price_currency_symbol; ?></span> |
18 | 18 | </td> |
19 | 19 | <td> |
20 | - <?php if ( $disabled ) : ?> |
|
20 | + <?php if ($disabled) : ?> |
|
21 | 21 | <input type="hidden" size="1" class="edit-price-PRC_amount ee-numeric" name="<?php echo $edit_prices_name; ?>[<?php echo $tkt_row; ?>][<?php echo $PRC_order; ?>][PRC_amount]" value="<?php echo $PRC_amount; ?>"> |
22 | 22 | <input type="text" size="1" class="edit-price-PRC_amount ee-numeric" name="prices_archive[<?php echo $tkt_row; ?>][<?php echo $PRC_order; ?>][PRC_amount]" value="<?php echo $PRC_amount; ?>" disabled> |
23 | 23 | <?php else : ?> |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | <span class="ticket-price-info-display ticket-price-percentage-char-display"<?php echo $show_percentage; ?>>%</span> |
29 | 29 | </td> |
30 | 30 | <td> |
31 | - <?php if ( $disabled ) : ?> |
|
31 | + <?php if ($disabled) : ?> |
|
32 | 32 | <span class="ee-lock-icon"></span> |
33 | 33 | <?php else : ?> |
34 | 34 | <!-- <span class="gear-icon dashicons dashicons-admin-generic clickable" data-ticket-row="<?php echo $tkt_row; ?>" data-context="price" data-price-row="<?php echo $PRC_order; ?>"></span> --> |
@@ -20,8 +20,11 @@ discard block |
||
20 | 20 | <?php if ( $disabled ) : ?> |
21 | 21 | <input type="hidden" size="1" class="edit-price-PRC_amount ee-numeric" name="<?php echo $edit_prices_name; ?>[<?php echo $tkt_row; ?>][<?php echo $PRC_order; ?>][PRC_amount]" value="<?php echo $PRC_amount; ?>"> |
22 | 22 | <input type="text" size="1" class="edit-price-PRC_amount ee-numeric" name="prices_archive[<?php echo $tkt_row; ?>][<?php echo $PRC_order; ?>][PRC_amount]" value="<?php echo $PRC_amount; ?>" disabled> |
23 | - <?php else : ?> |
|
24 | - <input type="text" size="1" class="edit-price-PRC_amount ee-numeric" name="<?php echo $edit_prices_name; ?>[<?php echo $tkt_row; ?>][<?php echo $PRC_order; ?>][PRC_amount]" value="<?php echo $PRC_amount; ?>"> |
|
23 | + <?php else { |
|
24 | + : ?> |
|
25 | + <input type="text" size="1" class="edit-price-PRC_amount ee-numeric" name="<?php echo $edit_prices_name; |
|
26 | +} |
|
27 | +?>[<?php echo $tkt_row; ?>][<?php echo $PRC_order; ?>][PRC_amount]" value="<?php echo $PRC_amount; ?>"> |
|
25 | 28 | <?php endif; ?> |
26 | 29 | </td> |
27 | 30 | <td> |
@@ -30,8 +33,11 @@ discard block |
||
30 | 33 | <td> |
31 | 34 | <?php if ( $disabled ) : ?> |
32 | 35 | <span class="ee-lock-icon"></span> |
33 | - <?php else : ?> |
|
34 | - <!-- <span class="gear-icon dashicons dashicons-admin-generic clickable" data-ticket-row="<?php echo $tkt_row; ?>" data-context="price" data-price-row="<?php echo $PRC_order; ?>"></span> --> |
|
36 | + <?php else { |
|
37 | + : ?> |
|
38 | + <!-- <span class="gear-icon dashicons dashicons-admin-generic clickable" data-ticket-row="<?php echo $tkt_row; |
|
39 | +} |
|
40 | +?>" data-context="price" data-price-row="<?php echo $PRC_order; ?>"></span> --> |
|
35 | 41 | <span class="trash-icon dashicons dashicons-post-trash clickable" data-ticket-row="<?php echo $tkt_row; ?>" data-context="price" data-price-row="<?php echo $PRC_order; ?>"<?php echo $show_trash_icon; ?>></span> |
36 | 42 | <button data-ticket-row="<?php echo $tkt_row; ?>" data-price-row="<?php echo $PRC_order; ?>" data-context="price" class="ee-create-button"<?php echo $show_create_button; ?>><strong>+</strong></button> |
37 | 43 | <?php endif; ?> |