@@ -15,76 +15,76 @@ |
||
15 | 15 | class Venues_Edit_Category_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Edit Venue Category Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'venue-edit-category-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Edit Venue Category Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'venue-edit-category-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | - protected function _set_tour_stops() |
|
25 | - { |
|
26 | - $this->_stops = array( |
|
27 | - 10 => array( |
|
28 | - 'content' => $this->_stop_one(), |
|
29 | - ), |
|
30 | - 20 => array( |
|
31 | - 'id' => 'category_name', |
|
32 | - 'content' => $this->_category_name_stop(), |
|
33 | - 'options' => array( |
|
34 | - 'tipLocation' => 'right', |
|
35 | - 'tipAdjustmentY' => -55, |
|
36 | - 'tipAdjustmentX' => 5, |
|
37 | - ), |
|
38 | - ), |
|
39 | - 30 => array( |
|
40 | - 'id' => 'cat_id', |
|
41 | - 'content' => $this->_category_id_stop(), |
|
42 | - 'options' => array( |
|
43 | - 'tipLocation' => 'right', |
|
44 | - 'tipAdjustmentY' => -55, |
|
45 | - 'tipAdjustmentX' => 5, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 40 => array( |
|
49 | - 'id' => 'category_desc', |
|
50 | - 'content' => $this->_category_editor_stop(), |
|
51 | - 'options' => array( |
|
52 | - 'tipLocation' => 'top', |
|
53 | - 'tipAdjustmentY' => -75, |
|
54 | - 'tipAdjustmentX' => 250, |
|
55 | - ), |
|
56 | - ), |
|
57 | - ); |
|
58 | - } |
|
24 | + protected function _set_tour_stops() |
|
25 | + { |
|
26 | + $this->_stops = array( |
|
27 | + 10 => array( |
|
28 | + 'content' => $this->_stop_one(), |
|
29 | + ), |
|
30 | + 20 => array( |
|
31 | + 'id' => 'category_name', |
|
32 | + 'content' => $this->_category_name_stop(), |
|
33 | + 'options' => array( |
|
34 | + 'tipLocation' => 'right', |
|
35 | + 'tipAdjustmentY' => -55, |
|
36 | + 'tipAdjustmentX' => 5, |
|
37 | + ), |
|
38 | + ), |
|
39 | + 30 => array( |
|
40 | + 'id' => 'cat_id', |
|
41 | + 'content' => $this->_category_id_stop(), |
|
42 | + 'options' => array( |
|
43 | + 'tipLocation' => 'right', |
|
44 | + 'tipAdjustmentY' => -55, |
|
45 | + 'tipAdjustmentX' => 5, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 40 => array( |
|
49 | + 'id' => 'category_desc', |
|
50 | + 'content' => $this->_category_editor_stop(), |
|
51 | + 'options' => array( |
|
52 | + 'tipLocation' => 'top', |
|
53 | + 'tipAdjustmentY' => -75, |
|
54 | + 'tipAdjustmentX' => 250, |
|
55 | + ), |
|
56 | + ), |
|
57 | + ); |
|
58 | + } |
|
59 | 59 | |
60 | 60 | |
61 | - protected function _stop_one() |
|
62 | - { |
|
63 | - $content = '<h3>' . __('Edit Venue Category', 'event_espresso') . '</h3>'; |
|
64 | - $content .= '<p>' |
|
65 | - . __( |
|
66 | - 'This tour of the Edit Venue Category page will provide an overview of the different areas of the screen to help you understand what they are used for.', |
|
67 | - 'event_espresso' |
|
68 | - ) . '</p>'; |
|
69 | - return $content; |
|
70 | - } |
|
61 | + protected function _stop_one() |
|
62 | + { |
|
63 | + $content = '<h3>' . __('Edit Venue Category', 'event_espresso') . '</h3>'; |
|
64 | + $content .= '<p>' |
|
65 | + . __( |
|
66 | + 'This tour of the Edit Venue Category page will provide an overview of the different areas of the screen to help you understand what they are used for.', |
|
67 | + 'event_espresso' |
|
68 | + ) . '</p>'; |
|
69 | + return $content; |
|
70 | + } |
|
71 | 71 | |
72 | - protected function _category_name_stop() |
|
73 | - { |
|
74 | - return '<p>' . __('Edit the name for your venue category.', 'event_espresso') . '</p>'; |
|
75 | - } |
|
72 | + protected function _category_name_stop() |
|
73 | + { |
|
74 | + return '<p>' . __('Edit the name for your venue category.', 'event_espresso') . '</p>'; |
|
75 | + } |
|
76 | 76 | |
77 | - protected function _category_id_stop() |
|
78 | - { |
|
79 | - return '<p>' . __('View the unique ID for your category (cannot be changed).', 'event_espresso') . '</p>'; |
|
80 | - } |
|
77 | + protected function _category_id_stop() |
|
78 | + { |
|
79 | + return '<p>' . __('View the unique ID for your category (cannot be changed).', 'event_espresso') . '</p>'; |
|
80 | + } |
|
81 | 81 | |
82 | - protected function _category_editor_stop() |
|
83 | - { |
|
84 | - return '<p>' |
|
85 | - . __( |
|
86 | - 'The rich text editor can be used to edit information about your venue category. Images and links can also be added or removed along with your text.', |
|
87 | - 'event_espresso' |
|
88 | - ) . '</p>'; |
|
89 | - } |
|
82 | + protected function _category_editor_stop() |
|
83 | + { |
|
84 | + return '<p>' |
|
85 | + . __( |
|
86 | + 'The rich text editor can be used to edit information about your venue category. Images and links can also be added or removed along with your text.', |
|
87 | + 'event_espresso' |
|
88 | + ) . '</p>'; |
|
89 | + } |
|
90 | 90 | } |
@@ -60,23 +60,23 @@ discard block |
||
60 | 60 | |
61 | 61 | protected function _stop_one() |
62 | 62 | { |
63 | - $content = '<h3>' . __('Edit Venue Category', 'event_espresso') . '</h3>'; |
|
63 | + $content = '<h3>'.__('Edit Venue Category', 'event_espresso').'</h3>'; |
|
64 | 64 | $content .= '<p>' |
65 | 65 | . __( |
66 | 66 | 'This tour of the Edit Venue Category page will provide an overview of the different areas of the screen to help you understand what they are used for.', |
67 | 67 | 'event_espresso' |
68 | - ) . '</p>'; |
|
68 | + ).'</p>'; |
|
69 | 69 | return $content; |
70 | 70 | } |
71 | 71 | |
72 | 72 | protected function _category_name_stop() |
73 | 73 | { |
74 | - return '<p>' . __('Edit the name for your venue category.', 'event_espresso') . '</p>'; |
|
74 | + return '<p>'.__('Edit the name for your venue category.', 'event_espresso').'</p>'; |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | protected function _category_id_stop() |
78 | 78 | { |
79 | - return '<p>' . __('View the unique ID for your category (cannot be changed).', 'event_espresso') . '</p>'; |
|
79 | + return '<p>'.__('View the unique ID for your category (cannot be changed).', 'event_espresso').'</p>'; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | protected function _category_editor_stop() |
@@ -85,6 +85,6 @@ discard block |
||
85 | 85 | . __( |
86 | 86 | 'The rich text editor can be used to edit information about your venue category. Images and links can also be added or removed along with your text.', |
87 | 87 | 'event_espresso' |
88 | - ) . '</p>'; |
|
88 | + ).'</p>'; |
|
89 | 89 | } |
90 | 90 | } |
@@ -15,144 +15,144 @@ |
||
15 | 15 | class Venues_Categories_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Venue Categories Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'venue-categories-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Venue Categories Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'venue-categories-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | - protected function _set_tour_stops() |
|
25 | - { |
|
26 | - $this->_stops = array( |
|
27 | - 10 => array( |
|
28 | - 'content' => $this->_start(), |
|
29 | - ), |
|
30 | - 20 => array( |
|
31 | - 'id' => 'id', |
|
32 | - 'content' => $this->_id_stop(), |
|
33 | - 'options' => array( |
|
34 | - 'tipLocation' => 'top', |
|
35 | - 'tipAdjustmentX' => -20, |
|
36 | - 'tipAdjustmentY' => -30, |
|
37 | - ), |
|
38 | - ), |
|
39 | - 30 => array( |
|
40 | - 'id' => 'name', |
|
41 | - 'content' => $this->_name_stop(), |
|
42 | - 'options' => array( |
|
43 | - 'tipLocation' => 'top', |
|
44 | - 'tipAdjustmentX' => -5, |
|
45 | - 'tipAdjustmentY' => -30, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 40 => array( |
|
49 | - 'id' => 'shortcode', |
|
50 | - 'content' => $this->_shortcode_stop(), |
|
51 | - 'options' => array( |
|
52 | - 'tipLocation' => 'top', |
|
53 | - 'tipAdjustmentX' => 5, |
|
54 | - 'tipAdjustmentY' => -30, |
|
55 | - ), |
|
56 | - ), |
|
57 | - 50 => array( |
|
58 | - 'id' => 'count', |
|
59 | - 'content' => $this->_count_stop(), |
|
60 | - 'options' => array( |
|
61 | - 'tipLocation' => 'top', |
|
62 | - 'tipAdjustmentX' => 5, |
|
63 | - 'tipAdjustmentY' => -30, |
|
64 | - ), |
|
65 | - ), |
|
66 | - 60 => array( |
|
67 | - 'class' => 'bulkactions', |
|
68 | - 'content' => $this->_bulk_actions_stop(), |
|
69 | - 'options' => array( |
|
70 | - 'tipLocation' => 'top', |
|
71 | - 'tipAdjustmentX' => 25, |
|
72 | - 'tipAdjustmentY' => -35, |
|
73 | - ), |
|
74 | - ), |
|
75 | - 70 => array( |
|
76 | - 'id' => 'event-espresso_page_espresso_venues-search-input', |
|
77 | - 'content' => $this->_search_stop(), |
|
78 | - 'options' => array( |
|
79 | - 'tipLocation' => 'left', |
|
80 | - 'tipAdjustmentY' => -50, |
|
81 | - 'tipAdjustmentX' => -15, |
|
82 | - ), |
|
83 | - ), |
|
84 | - 80 => array( |
|
85 | - 'id' => 'add-new-category', |
|
86 | - 'content' => $this->_new_category_stop(), |
|
87 | - 'options' => array( |
|
88 | - 'tipLocation' => 'right', |
|
89 | - 'tipAdjustmentY' => -50, |
|
90 | - 'tipAdjustmentX' => 10, |
|
91 | - ), |
|
92 | - ), |
|
93 | - ); |
|
94 | - } |
|
24 | + protected function _set_tour_stops() |
|
25 | + { |
|
26 | + $this->_stops = array( |
|
27 | + 10 => array( |
|
28 | + 'content' => $this->_start(), |
|
29 | + ), |
|
30 | + 20 => array( |
|
31 | + 'id' => 'id', |
|
32 | + 'content' => $this->_id_stop(), |
|
33 | + 'options' => array( |
|
34 | + 'tipLocation' => 'top', |
|
35 | + 'tipAdjustmentX' => -20, |
|
36 | + 'tipAdjustmentY' => -30, |
|
37 | + ), |
|
38 | + ), |
|
39 | + 30 => array( |
|
40 | + 'id' => 'name', |
|
41 | + 'content' => $this->_name_stop(), |
|
42 | + 'options' => array( |
|
43 | + 'tipLocation' => 'top', |
|
44 | + 'tipAdjustmentX' => -5, |
|
45 | + 'tipAdjustmentY' => -30, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 40 => array( |
|
49 | + 'id' => 'shortcode', |
|
50 | + 'content' => $this->_shortcode_stop(), |
|
51 | + 'options' => array( |
|
52 | + 'tipLocation' => 'top', |
|
53 | + 'tipAdjustmentX' => 5, |
|
54 | + 'tipAdjustmentY' => -30, |
|
55 | + ), |
|
56 | + ), |
|
57 | + 50 => array( |
|
58 | + 'id' => 'count', |
|
59 | + 'content' => $this->_count_stop(), |
|
60 | + 'options' => array( |
|
61 | + 'tipLocation' => 'top', |
|
62 | + 'tipAdjustmentX' => 5, |
|
63 | + 'tipAdjustmentY' => -30, |
|
64 | + ), |
|
65 | + ), |
|
66 | + 60 => array( |
|
67 | + 'class' => 'bulkactions', |
|
68 | + 'content' => $this->_bulk_actions_stop(), |
|
69 | + 'options' => array( |
|
70 | + 'tipLocation' => 'top', |
|
71 | + 'tipAdjustmentX' => 25, |
|
72 | + 'tipAdjustmentY' => -35, |
|
73 | + ), |
|
74 | + ), |
|
75 | + 70 => array( |
|
76 | + 'id' => 'event-espresso_page_espresso_venues-search-input', |
|
77 | + 'content' => $this->_search_stop(), |
|
78 | + 'options' => array( |
|
79 | + 'tipLocation' => 'left', |
|
80 | + 'tipAdjustmentY' => -50, |
|
81 | + 'tipAdjustmentX' => -15, |
|
82 | + ), |
|
83 | + ), |
|
84 | + 80 => array( |
|
85 | + 'id' => 'add-new-category', |
|
86 | + 'content' => $this->_new_category_stop(), |
|
87 | + 'options' => array( |
|
88 | + 'tipLocation' => 'right', |
|
89 | + 'tipAdjustmentY' => -50, |
|
90 | + 'tipAdjustmentX' => 10, |
|
91 | + ), |
|
92 | + ), |
|
93 | + ); |
|
94 | + } |
|
95 | 95 | |
96 | 96 | |
97 | - protected function _start() |
|
98 | - { |
|
99 | - $content = '<h3>' . __('Venue Overview', 'event_espresso') . '</h3>'; |
|
100 | - $content .= '<p>' |
|
101 | - . __( |
|
102 | - '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.', |
|
103 | - 'event_espresso' |
|
104 | - ) . '</p>'; |
|
105 | - return $content; |
|
106 | - } |
|
97 | + protected function _start() |
|
98 | + { |
|
99 | + $content = '<h3>' . __('Venue Overview', 'event_espresso') . '</h3>'; |
|
100 | + $content .= '<p>' |
|
101 | + . __( |
|
102 | + '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.', |
|
103 | + 'event_espresso' |
|
104 | + ) . '</p>'; |
|
105 | + return $content; |
|
106 | + } |
|
107 | 107 | |
108 | - protected function _id_stop() |
|
109 | - { |
|
110 | - return '<p>' |
|
111 | - . __( |
|
112 | - 'View the venue category ID. Can be sorted by ascending or descending order.', |
|
113 | - 'event_espresso' |
|
114 | - ) . '</p>'; |
|
115 | - } |
|
108 | + protected function _id_stop() |
|
109 | + { |
|
110 | + return '<p>' |
|
111 | + . __( |
|
112 | + 'View the venue category ID. Can be sorted by ascending or descending order.', |
|
113 | + 'event_espresso' |
|
114 | + ) . '</p>'; |
|
115 | + } |
|
116 | 116 | |
117 | - protected function _name_stop() |
|
118 | - { |
|
119 | - return '<p>' |
|
120 | - . __( |
|
121 | - 'View the name of each venue category. Can be sorted by ascending or descending order.', |
|
122 | - 'event_espresso' |
|
123 | - ) . '</p>'; |
|
124 | - } |
|
117 | + protected function _name_stop() |
|
118 | + { |
|
119 | + return '<p>' |
|
120 | + . __( |
|
121 | + 'View the name of each venue category. Can be sorted by ascending or descending order.', |
|
122 | + 'event_espresso' |
|
123 | + ) . '</p>'; |
|
124 | + } |
|
125 | 125 | |
126 | - protected function _shortcode_stop() |
|
127 | - { |
|
128 | - return '<p>' |
|
129 | - . __( |
|
130 | - 'View the shortcode for a venue category. This shortcode can be added to an event, WordPress post, or WordPress page. ', |
|
131 | - 'event_espresso' |
|
132 | - ) . '</p>'; |
|
133 | - } |
|
126 | + protected function _shortcode_stop() |
|
127 | + { |
|
128 | + return '<p>' |
|
129 | + . __( |
|
130 | + 'View the shortcode for a venue category. This shortcode can be added to an event, WordPress post, or WordPress page. ', |
|
131 | + 'event_espresso' |
|
132 | + ) . '</p>'; |
|
133 | + } |
|
134 | 134 | |
135 | - protected function _count_stop() |
|
136 | - { |
|
137 | - return '<p>' . __('View the number of venues that are associated with a category.', 'event_espresso') . '</p>'; |
|
138 | - } |
|
135 | + protected function _count_stop() |
|
136 | + { |
|
137 | + return '<p>' . __('View the number of venues that are associated with a category.', 'event_espresso') . '</p>'; |
|
138 | + } |
|
139 | 139 | |
140 | - protected function _bulk_actions_stop() |
|
141 | - { |
|
142 | - return '<p>' . __('Perform bulk actions to multiple venue categories.', 'event_espresso') . '</p>'; |
|
143 | - } |
|
140 | + protected function _bulk_actions_stop() |
|
141 | + { |
|
142 | + return '<p>' . __('Perform bulk actions to multiple venue categories.', 'event_espresso') . '</p>'; |
|
143 | + } |
|
144 | 144 | |
145 | - protected function _search_stop() |
|
146 | - { |
|
147 | - return '<p>' |
|
148 | - . __( |
|
149 | - 'Search through venues categories. The following sources will be searched: Venue Category ID, Venue Category Name, Venue Shortcode, and Venue Count.', |
|
150 | - 'event_espresso' |
|
151 | - ) . '</p>'; |
|
152 | - } |
|
145 | + protected function _search_stop() |
|
146 | + { |
|
147 | + return '<p>' |
|
148 | + . __( |
|
149 | + 'Search through venues categories. The following sources will be searched: Venue Category ID, Venue Category Name, Venue Shortcode, and Venue Count.', |
|
150 | + 'event_espresso' |
|
151 | + ) . '</p>'; |
|
152 | + } |
|
153 | 153 | |
154 | - protected function _new_category_stop() |
|
155 | - { |
|
156 | - return '<p>' . __('Click here to add a new venue category.', 'event_espresso') . '</p>'; |
|
157 | - } |
|
154 | + protected function _new_category_stop() |
|
155 | + { |
|
156 | + return '<p>' . __('Click here to add a new venue category.', 'event_espresso') . '</p>'; |
|
157 | + } |
|
158 | 158 | } |
@@ -96,12 +96,12 @@ discard block |
||
96 | 96 | |
97 | 97 | protected function _start() |
98 | 98 | { |
99 | - $content = '<h3>' . __('Venue Overview', 'event_espresso') . '</h3>'; |
|
99 | + $content = '<h3>'.__('Venue Overview', 'event_espresso').'</h3>'; |
|
100 | 100 | $content .= '<p>' |
101 | 101 | . __( |
102 | 102 | '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.', |
103 | 103 | 'event_espresso' |
104 | - ) . '</p>'; |
|
104 | + ).'</p>'; |
|
105 | 105 | return $content; |
106 | 106 | } |
107 | 107 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | . __( |
112 | 112 | 'View the venue category ID. Can be sorted by ascending or descending order.', |
113 | 113 | 'event_espresso' |
114 | - ) . '</p>'; |
|
114 | + ).'</p>'; |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | protected function _name_stop() |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | . __( |
121 | 121 | 'View the name of each venue category. Can be sorted by ascending or descending order.', |
122 | 122 | 'event_espresso' |
123 | - ) . '</p>'; |
|
123 | + ).'</p>'; |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | protected function _shortcode_stop() |
@@ -129,17 +129,17 @@ discard block |
||
129 | 129 | . __( |
130 | 130 | 'View the shortcode for a venue category. This shortcode can be added to an event, WordPress post, or WordPress page. ', |
131 | 131 | 'event_espresso' |
132 | - ) . '</p>'; |
|
132 | + ).'</p>'; |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | protected function _count_stop() |
136 | 136 | { |
137 | - return '<p>' . __('View the number of venues that are associated with a category.', 'event_espresso') . '</p>'; |
|
137 | + return '<p>'.__('View the number of venues that are associated with a category.', 'event_espresso').'</p>'; |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | protected function _bulk_actions_stop() |
141 | 141 | { |
142 | - return '<p>' . __('Perform bulk actions to multiple venue categories.', 'event_espresso') . '</p>'; |
|
142 | + return '<p>'.__('Perform bulk actions to multiple venue categories.', 'event_espresso').'</p>'; |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | protected function _search_stop() |
@@ -148,11 +148,11 @@ discard block |
||
148 | 148 | . __( |
149 | 149 | 'Search through venues categories. The following sources will be searched: Venue Category ID, Venue Category Name, Venue Shortcode, and Venue Count.', |
150 | 150 | 'event_espresso' |
151 | - ) . '</p>'; |
|
151 | + ).'</p>'; |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | protected function _new_category_stop() |
155 | 155 | { |
156 | - return '<p>' . __('Click here to add a new venue category.', 'event_espresso') . '</p>'; |
|
156 | + return '<p>'.__('Click here to add a new venue category.', 'event_espresso').'</p>'; |
|
157 | 157 | } |
158 | 158 | } |
@@ -16,234 +16,234 @@ |
||
16 | 16 | class Venues_Admin_List_Table extends EE_Admin_List_Table |
17 | 17 | { |
18 | 18 | |
19 | - public function __construct($admin_page) |
|
20 | - { |
|
21 | - parent::__construct($admin_page); |
|
22 | - } |
|
23 | - |
|
24 | - |
|
25 | - protected function _setup_data() |
|
26 | - { |
|
27 | - $this->_data = $this->_admin_page->get_venues($this->_per_page); |
|
28 | - $this->_all_data_count = $this->_admin_page->get_venues($this->_per_page, true); |
|
29 | - } |
|
30 | - |
|
31 | - |
|
32 | - protected function _set_properties() |
|
33 | - { |
|
34 | - $this->_wp_list_args = array( |
|
35 | - 'singular' => __('Event Venue', 'event_espresso'), |
|
36 | - 'plural' => __('Event Venues', 'event_espresso'), |
|
37 | - 'ajax' => true, // for now, |
|
38 | - 'screen' => $this->_admin_page->get_current_screen()->id, |
|
39 | - ); |
|
40 | - |
|
41 | - $this->_columns = array( |
|
42 | - 'cb' => '<input type="checkbox" />', |
|
43 | - 'id' => __('ID', 'event_espresso'), |
|
44 | - 'name' => __('Name', 'event_espresso'), |
|
45 | - 'address' => __('Address', 'event_espresso'), |
|
46 | - 'city' => __('City', 'event_espresso'), |
|
47 | - 'capacity' => __('Capacity', 'event_espresso'), |
|
48 | - // 'shortcode' => __('Shortcode', 'event_espresso'), |
|
49 | - ); |
|
50 | - |
|
51 | - $this->_sortable_columns = array( |
|
52 | - 'id' => array('id' => true), |
|
53 | - 'name' => array('name' => false), |
|
54 | - 'city' => array('city' => false), |
|
55 | - 'capacity' => array('capacity' => false), |
|
56 | - ); |
|
57 | - |
|
58 | - $this->_hidden_columns = array(); |
|
59 | - } |
|
60 | - |
|
61 | - |
|
62 | - // todo... add _venue_status in here (which we'll define a EE_Admin_CPT_List_Table for common properties) |
|
63 | - protected function _get_table_filters() |
|
64 | - { |
|
65 | - return array(); |
|
66 | - } |
|
67 | - |
|
68 | - |
|
69 | - protected function _add_view_counts() |
|
70 | - { |
|
71 | - $this->_views['all']['count'] = EEM_Venue::instance()->count(); |
|
72 | - if (EE_Registry::instance()->CAP->current_user_can('ee_delete_venues', 'espresso_venues_trash_venues')) { |
|
73 | - $this->_views['trash']['count'] = EEM_Venue::instance()->count_deleted(); |
|
74 | - } |
|
75 | - } |
|
76 | - |
|
77 | - |
|
78 | - public function column_cb($item) |
|
79 | - { |
|
80 | - |
|
81 | - return $item->count_related('Event') > 0 && $item->get('status') === 'trash' |
|
82 | - ? '<span class="ee-lock-icon"></span>' |
|
83 | - : sprintf( |
|
84 | - '<input type="checkbox" name="venue_id[]" value="%s" />', |
|
85 | - $item->ID() |
|
86 | - ); |
|
87 | - } |
|
88 | - |
|
89 | - |
|
90 | - public function column_id($item) |
|
91 | - { |
|
92 | - $content = $item->ID(); |
|
93 | - $content .= ' <span class="show-on-mobile-view-only">' . $item->name() . '</span>'; |
|
94 | - return $content; |
|
95 | - } |
|
96 | - |
|
97 | - |
|
98 | - public function column_name($item) |
|
99 | - { |
|
100 | - $edit_query_args = array( |
|
101 | - 'action' => 'edit', |
|
102 | - 'post' => $item->ID(), |
|
103 | - ); |
|
104 | - |
|
105 | - $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_VENUES_ADMIN_URL); |
|
106 | - |
|
107 | - $statuses = EEM_Venue::instance()->get_status_array(); |
|
108 | - $actions = $this->_column_name_action_setup($item); |
|
109 | - $content = EE_Registry::instance()->CAP->current_user_can('ee_edit_venue', 'espresso_venues_edit', $item->ID()) |
|
110 | - ? '<strong><a class="row-title" href="' . $edit_link . '">' . stripslashes_deep( |
|
111 | - $item->name() |
|
112 | - ) . '</a></strong>' : $item->name(); |
|
113 | - $content .= $item->status() == 'draft' ? ' - <span class="post-state">' . $statuses['draft'] . '</span>' : ''; |
|
114 | - $content .= $this->row_actions($actions); |
|
115 | - return $content; |
|
116 | - } |
|
117 | - |
|
118 | - |
|
119 | - /** |
|
120 | - * Used to setup the actions for the Venue name column |
|
121 | - * |
|
122 | - * @param EE_Venue $item |
|
123 | - * @return array() |
|
124 | - */ |
|
125 | - protected function _column_name_action_setup(EE_Venue $item) |
|
126 | - { |
|
127 | - $actions = array(); |
|
128 | - |
|
129 | - if (EE_Registry::instance()->CAP->current_user_can('ee_edit_venue', 'espresso_venues_edit', $item->ID())) { |
|
130 | - $edit_query_args = array( |
|
131 | - 'action' => 'edit', |
|
132 | - 'post' => $item->ID(), |
|
133 | - ); |
|
134 | - $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_VENUES_ADMIN_URL); |
|
135 | - $actions['edit'] = '<a href="' . $edit_link . '" title="' . esc_attr__( |
|
136 | - 'Edit Venue', |
|
137 | - 'event_espresso' |
|
138 | - ) . '">' . __('Edit', 'event_espresso') . '</a>'; |
|
139 | - } |
|
140 | - |
|
141 | - |
|
142 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
143 | - 'ee_delete_venue', |
|
144 | - 'espresso_venues_trash_venue', |
|
145 | - $item->ID() |
|
146 | - )) { |
|
147 | - $trash_event_query_arg = array( |
|
148 | - 'action' => 'trash_venue', |
|
149 | - 'VNU_ID' => $item->ID(), |
|
150 | - ); |
|
151 | - $trash_venue_link = EE_Admin_Page::add_query_args_and_nonce($trash_event_query_arg, EE_VENUES_ADMIN_URL); |
|
152 | - } |
|
153 | - |
|
154 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
155 | - 'ee_delete_venue', |
|
156 | - 'espresso_venues_restore_venue', |
|
157 | - $item->ID() |
|
158 | - )) { |
|
159 | - $restore_venue_query_args = array( |
|
160 | - 'action' => 'restore_venue', |
|
161 | - 'VNU_ID' => $item->ID(), |
|
162 | - ); |
|
163 | - $restore_venue_link = EE_Admin_Page::add_query_args_and_nonce( |
|
164 | - $restore_venue_query_args, |
|
165 | - EE_VENUES_ADMIN_URL |
|
166 | - ); |
|
167 | - } |
|
168 | - |
|
169 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
170 | - 'ee_delete_venue', |
|
171 | - 'espresso_venues_delete_venue', |
|
172 | - $item->ID() |
|
173 | - )) { |
|
174 | - $delete_venue_query_args = array( |
|
175 | - 'action' => 'delete_venue', |
|
176 | - 'VNU_ID' => $item->ID(), |
|
177 | - ); |
|
178 | - $delete_venue_link = EE_Admin_Page::add_query_args_and_nonce($delete_venue_query_args, EE_VENUES_ADMIN_URL); |
|
179 | - } |
|
180 | - |
|
181 | - $view_link = get_permalink($item->ID()); |
|
182 | - |
|
183 | - switch ($item->get('status')) { |
|
184 | - case 'trash': |
|
185 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
186 | - 'ee_delete_venue', |
|
187 | - 'espresso_venues_restore_venue', |
|
188 | - $item->ID() |
|
189 | - )) { |
|
190 | - $actions['restore_from_trash'] = '<a href="' . $restore_venue_link . '" title="' . esc_attr__( |
|
191 | - 'Restore from Trash', |
|
192 | - 'event_espresso' |
|
193 | - ) . '">' . __('Restore from Trash', 'event_espresso') . '</a>'; |
|
194 | - } |
|
195 | - if ($item->count_related('Event') === 0 && EE_Registry::instance()->CAP->current_user_can( |
|
196 | - 'ee_delete_venue', |
|
197 | - 'espresso_venues_delete_venue', |
|
198 | - $item->ID() |
|
199 | - )) { |
|
200 | - $actions['delete permanently'] = '<a href="' . $delete_venue_link . '" title="' . esc_attr__( |
|
201 | - 'Delete Permanently', |
|
202 | - 'event_espresso' |
|
203 | - ) . '">' . __('Delete Permanently', 'event_espresso') . '</a>'; |
|
204 | - } |
|
205 | - break; |
|
206 | - default: |
|
207 | - $actions['view'] = '<a href="' . $view_link . '" title="' . esc_attr__( |
|
208 | - 'View Venue', |
|
209 | - 'event_espresso' |
|
210 | - ) . '">' . __('View', 'event_espresso') . '</a>'; |
|
211 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
212 | - 'ee_delete_venue', |
|
213 | - 'espresso_venues_trash_venue', |
|
214 | - $item->ID() |
|
215 | - )) { |
|
216 | - $actions['move to trash'] = '<a href="' . $trash_venue_link . '" title="' . esc_attr__( |
|
217 | - 'Trash Event', |
|
218 | - 'event_espresso' |
|
219 | - ) . '">' . __('Trash', 'event_espresso') . '</a>'; |
|
220 | - } |
|
221 | - } |
|
222 | - return $actions; |
|
223 | - } |
|
224 | - |
|
225 | - |
|
226 | - public function column_address($item) |
|
227 | - { |
|
228 | - return $item->address(); |
|
229 | - } |
|
230 | - |
|
231 | - |
|
232 | - public function column_city($item) |
|
233 | - { |
|
234 | - return $item->city(); |
|
235 | - } |
|
236 | - |
|
237 | - |
|
238 | - public function column_capacity($item) |
|
239 | - { |
|
240 | - return $item->capacity(); |
|
241 | - } |
|
242 | - |
|
243 | - |
|
244 | - public function column_shortcode($item) |
|
245 | - { |
|
246 | - $content = '[ESPRESSO_VENUE id=' . $item->ID() . ']'; |
|
247 | - return $content; |
|
248 | - } |
|
19 | + public function __construct($admin_page) |
|
20 | + { |
|
21 | + parent::__construct($admin_page); |
|
22 | + } |
|
23 | + |
|
24 | + |
|
25 | + protected function _setup_data() |
|
26 | + { |
|
27 | + $this->_data = $this->_admin_page->get_venues($this->_per_page); |
|
28 | + $this->_all_data_count = $this->_admin_page->get_venues($this->_per_page, true); |
|
29 | + } |
|
30 | + |
|
31 | + |
|
32 | + protected function _set_properties() |
|
33 | + { |
|
34 | + $this->_wp_list_args = array( |
|
35 | + 'singular' => __('Event Venue', 'event_espresso'), |
|
36 | + 'plural' => __('Event Venues', 'event_espresso'), |
|
37 | + 'ajax' => true, // for now, |
|
38 | + 'screen' => $this->_admin_page->get_current_screen()->id, |
|
39 | + ); |
|
40 | + |
|
41 | + $this->_columns = array( |
|
42 | + 'cb' => '<input type="checkbox" />', |
|
43 | + 'id' => __('ID', 'event_espresso'), |
|
44 | + 'name' => __('Name', 'event_espresso'), |
|
45 | + 'address' => __('Address', 'event_espresso'), |
|
46 | + 'city' => __('City', 'event_espresso'), |
|
47 | + 'capacity' => __('Capacity', 'event_espresso'), |
|
48 | + // 'shortcode' => __('Shortcode', 'event_espresso'), |
|
49 | + ); |
|
50 | + |
|
51 | + $this->_sortable_columns = array( |
|
52 | + 'id' => array('id' => true), |
|
53 | + 'name' => array('name' => false), |
|
54 | + 'city' => array('city' => false), |
|
55 | + 'capacity' => array('capacity' => false), |
|
56 | + ); |
|
57 | + |
|
58 | + $this->_hidden_columns = array(); |
|
59 | + } |
|
60 | + |
|
61 | + |
|
62 | + // todo... add _venue_status in here (which we'll define a EE_Admin_CPT_List_Table for common properties) |
|
63 | + protected function _get_table_filters() |
|
64 | + { |
|
65 | + return array(); |
|
66 | + } |
|
67 | + |
|
68 | + |
|
69 | + protected function _add_view_counts() |
|
70 | + { |
|
71 | + $this->_views['all']['count'] = EEM_Venue::instance()->count(); |
|
72 | + if (EE_Registry::instance()->CAP->current_user_can('ee_delete_venues', 'espresso_venues_trash_venues')) { |
|
73 | + $this->_views['trash']['count'] = EEM_Venue::instance()->count_deleted(); |
|
74 | + } |
|
75 | + } |
|
76 | + |
|
77 | + |
|
78 | + public function column_cb($item) |
|
79 | + { |
|
80 | + |
|
81 | + return $item->count_related('Event') > 0 && $item->get('status') === 'trash' |
|
82 | + ? '<span class="ee-lock-icon"></span>' |
|
83 | + : sprintf( |
|
84 | + '<input type="checkbox" name="venue_id[]" value="%s" />', |
|
85 | + $item->ID() |
|
86 | + ); |
|
87 | + } |
|
88 | + |
|
89 | + |
|
90 | + public function column_id($item) |
|
91 | + { |
|
92 | + $content = $item->ID(); |
|
93 | + $content .= ' <span class="show-on-mobile-view-only">' . $item->name() . '</span>'; |
|
94 | + return $content; |
|
95 | + } |
|
96 | + |
|
97 | + |
|
98 | + public function column_name($item) |
|
99 | + { |
|
100 | + $edit_query_args = array( |
|
101 | + 'action' => 'edit', |
|
102 | + 'post' => $item->ID(), |
|
103 | + ); |
|
104 | + |
|
105 | + $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_VENUES_ADMIN_URL); |
|
106 | + |
|
107 | + $statuses = EEM_Venue::instance()->get_status_array(); |
|
108 | + $actions = $this->_column_name_action_setup($item); |
|
109 | + $content = EE_Registry::instance()->CAP->current_user_can('ee_edit_venue', 'espresso_venues_edit', $item->ID()) |
|
110 | + ? '<strong><a class="row-title" href="' . $edit_link . '">' . stripslashes_deep( |
|
111 | + $item->name() |
|
112 | + ) . '</a></strong>' : $item->name(); |
|
113 | + $content .= $item->status() == 'draft' ? ' - <span class="post-state">' . $statuses['draft'] . '</span>' : ''; |
|
114 | + $content .= $this->row_actions($actions); |
|
115 | + return $content; |
|
116 | + } |
|
117 | + |
|
118 | + |
|
119 | + /** |
|
120 | + * Used to setup the actions for the Venue name column |
|
121 | + * |
|
122 | + * @param EE_Venue $item |
|
123 | + * @return array() |
|
124 | + */ |
|
125 | + protected function _column_name_action_setup(EE_Venue $item) |
|
126 | + { |
|
127 | + $actions = array(); |
|
128 | + |
|
129 | + if (EE_Registry::instance()->CAP->current_user_can('ee_edit_venue', 'espresso_venues_edit', $item->ID())) { |
|
130 | + $edit_query_args = array( |
|
131 | + 'action' => 'edit', |
|
132 | + 'post' => $item->ID(), |
|
133 | + ); |
|
134 | + $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_VENUES_ADMIN_URL); |
|
135 | + $actions['edit'] = '<a href="' . $edit_link . '" title="' . esc_attr__( |
|
136 | + 'Edit Venue', |
|
137 | + 'event_espresso' |
|
138 | + ) . '">' . __('Edit', 'event_espresso') . '</a>'; |
|
139 | + } |
|
140 | + |
|
141 | + |
|
142 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
143 | + 'ee_delete_venue', |
|
144 | + 'espresso_venues_trash_venue', |
|
145 | + $item->ID() |
|
146 | + )) { |
|
147 | + $trash_event_query_arg = array( |
|
148 | + 'action' => 'trash_venue', |
|
149 | + 'VNU_ID' => $item->ID(), |
|
150 | + ); |
|
151 | + $trash_venue_link = EE_Admin_Page::add_query_args_and_nonce($trash_event_query_arg, EE_VENUES_ADMIN_URL); |
|
152 | + } |
|
153 | + |
|
154 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
155 | + 'ee_delete_venue', |
|
156 | + 'espresso_venues_restore_venue', |
|
157 | + $item->ID() |
|
158 | + )) { |
|
159 | + $restore_venue_query_args = array( |
|
160 | + 'action' => 'restore_venue', |
|
161 | + 'VNU_ID' => $item->ID(), |
|
162 | + ); |
|
163 | + $restore_venue_link = EE_Admin_Page::add_query_args_and_nonce( |
|
164 | + $restore_venue_query_args, |
|
165 | + EE_VENUES_ADMIN_URL |
|
166 | + ); |
|
167 | + } |
|
168 | + |
|
169 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
170 | + 'ee_delete_venue', |
|
171 | + 'espresso_venues_delete_venue', |
|
172 | + $item->ID() |
|
173 | + )) { |
|
174 | + $delete_venue_query_args = array( |
|
175 | + 'action' => 'delete_venue', |
|
176 | + 'VNU_ID' => $item->ID(), |
|
177 | + ); |
|
178 | + $delete_venue_link = EE_Admin_Page::add_query_args_and_nonce($delete_venue_query_args, EE_VENUES_ADMIN_URL); |
|
179 | + } |
|
180 | + |
|
181 | + $view_link = get_permalink($item->ID()); |
|
182 | + |
|
183 | + switch ($item->get('status')) { |
|
184 | + case 'trash': |
|
185 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
186 | + 'ee_delete_venue', |
|
187 | + 'espresso_venues_restore_venue', |
|
188 | + $item->ID() |
|
189 | + )) { |
|
190 | + $actions['restore_from_trash'] = '<a href="' . $restore_venue_link . '" title="' . esc_attr__( |
|
191 | + 'Restore from Trash', |
|
192 | + 'event_espresso' |
|
193 | + ) . '">' . __('Restore from Trash', 'event_espresso') . '</a>'; |
|
194 | + } |
|
195 | + if ($item->count_related('Event') === 0 && EE_Registry::instance()->CAP->current_user_can( |
|
196 | + 'ee_delete_venue', |
|
197 | + 'espresso_venues_delete_venue', |
|
198 | + $item->ID() |
|
199 | + )) { |
|
200 | + $actions['delete permanently'] = '<a href="' . $delete_venue_link . '" title="' . esc_attr__( |
|
201 | + 'Delete Permanently', |
|
202 | + 'event_espresso' |
|
203 | + ) . '">' . __('Delete Permanently', 'event_espresso') . '</a>'; |
|
204 | + } |
|
205 | + break; |
|
206 | + default: |
|
207 | + $actions['view'] = '<a href="' . $view_link . '" title="' . esc_attr__( |
|
208 | + 'View Venue', |
|
209 | + 'event_espresso' |
|
210 | + ) . '">' . __('View', 'event_espresso') . '</a>'; |
|
211 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
212 | + 'ee_delete_venue', |
|
213 | + 'espresso_venues_trash_venue', |
|
214 | + $item->ID() |
|
215 | + )) { |
|
216 | + $actions['move to trash'] = '<a href="' . $trash_venue_link . '" title="' . esc_attr__( |
|
217 | + 'Trash Event', |
|
218 | + 'event_espresso' |
|
219 | + ) . '">' . __('Trash', 'event_espresso') . '</a>'; |
|
220 | + } |
|
221 | + } |
|
222 | + return $actions; |
|
223 | + } |
|
224 | + |
|
225 | + |
|
226 | + public function column_address($item) |
|
227 | + { |
|
228 | + return $item->address(); |
|
229 | + } |
|
230 | + |
|
231 | + |
|
232 | + public function column_city($item) |
|
233 | + { |
|
234 | + return $item->city(); |
|
235 | + } |
|
236 | + |
|
237 | + |
|
238 | + public function column_capacity($item) |
|
239 | + { |
|
240 | + return $item->capacity(); |
|
241 | + } |
|
242 | + |
|
243 | + |
|
244 | + public function column_shortcode($item) |
|
245 | + { |
|
246 | + $content = '[ESPRESSO_VENUE id=' . $item->ID() . ']'; |
|
247 | + return $content; |
|
248 | + } |
|
249 | 249 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | public function column_id($item) |
91 | 91 | { |
92 | 92 | $content = $item->ID(); |
93 | - $content .= ' <span class="show-on-mobile-view-only">' . $item->name() . '</span>'; |
|
93 | + $content .= ' <span class="show-on-mobile-view-only">'.$item->name().'</span>'; |
|
94 | 94 | return $content; |
95 | 95 | } |
96 | 96 | |
@@ -107,10 +107,10 @@ discard block |
||
107 | 107 | $statuses = EEM_Venue::instance()->get_status_array(); |
108 | 108 | $actions = $this->_column_name_action_setup($item); |
109 | 109 | $content = EE_Registry::instance()->CAP->current_user_can('ee_edit_venue', 'espresso_venues_edit', $item->ID()) |
110 | - ? '<strong><a class="row-title" href="' . $edit_link . '">' . stripslashes_deep( |
|
110 | + ? '<strong><a class="row-title" href="'.$edit_link.'">'.stripslashes_deep( |
|
111 | 111 | $item->name() |
112 | - ) . '</a></strong>' : $item->name(); |
|
113 | - $content .= $item->status() == 'draft' ? ' - <span class="post-state">' . $statuses['draft'] . '</span>' : ''; |
|
112 | + ).'</a></strong>' : $item->name(); |
|
113 | + $content .= $item->status() == 'draft' ? ' - <span class="post-state">'.$statuses['draft'].'</span>' : ''; |
|
114 | 114 | $content .= $this->row_actions($actions); |
115 | 115 | return $content; |
116 | 116 | } |
@@ -132,10 +132,10 @@ discard block |
||
132 | 132 | 'post' => $item->ID(), |
133 | 133 | ); |
134 | 134 | $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_VENUES_ADMIN_URL); |
135 | - $actions['edit'] = '<a href="' . $edit_link . '" title="' . esc_attr__( |
|
135 | + $actions['edit'] = '<a href="'.$edit_link.'" title="'.esc_attr__( |
|
136 | 136 | 'Edit Venue', |
137 | 137 | 'event_espresso' |
138 | - ) . '">' . __('Edit', 'event_espresso') . '</a>'; |
|
138 | + ).'">'.__('Edit', 'event_espresso').'</a>'; |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | |
@@ -187,36 +187,36 @@ discard block |
||
187 | 187 | 'espresso_venues_restore_venue', |
188 | 188 | $item->ID() |
189 | 189 | )) { |
190 | - $actions['restore_from_trash'] = '<a href="' . $restore_venue_link . '" title="' . esc_attr__( |
|
190 | + $actions['restore_from_trash'] = '<a href="'.$restore_venue_link.'" title="'.esc_attr__( |
|
191 | 191 | 'Restore from Trash', |
192 | 192 | 'event_espresso' |
193 | - ) . '">' . __('Restore from Trash', 'event_espresso') . '</a>'; |
|
193 | + ).'">'.__('Restore from Trash', 'event_espresso').'</a>'; |
|
194 | 194 | } |
195 | 195 | if ($item->count_related('Event') === 0 && EE_Registry::instance()->CAP->current_user_can( |
196 | 196 | 'ee_delete_venue', |
197 | 197 | 'espresso_venues_delete_venue', |
198 | 198 | $item->ID() |
199 | 199 | )) { |
200 | - $actions['delete permanently'] = '<a href="' . $delete_venue_link . '" title="' . esc_attr__( |
|
200 | + $actions['delete permanently'] = '<a href="'.$delete_venue_link.'" title="'.esc_attr__( |
|
201 | 201 | 'Delete Permanently', |
202 | 202 | 'event_espresso' |
203 | - ) . '">' . __('Delete Permanently', 'event_espresso') . '</a>'; |
|
203 | + ).'">'.__('Delete Permanently', 'event_espresso').'</a>'; |
|
204 | 204 | } |
205 | 205 | break; |
206 | 206 | default: |
207 | - $actions['view'] = '<a href="' . $view_link . '" title="' . esc_attr__( |
|
207 | + $actions['view'] = '<a href="'.$view_link.'" title="'.esc_attr__( |
|
208 | 208 | 'View Venue', |
209 | 209 | 'event_espresso' |
210 | - ) . '">' . __('View', 'event_espresso') . '</a>'; |
|
210 | + ).'">'.__('View', 'event_espresso').'</a>'; |
|
211 | 211 | if (EE_Registry::instance()->CAP->current_user_can( |
212 | 212 | 'ee_delete_venue', |
213 | 213 | 'espresso_venues_trash_venue', |
214 | 214 | $item->ID() |
215 | 215 | )) { |
216 | - $actions['move to trash'] = '<a href="' . $trash_venue_link . '" title="' . esc_attr__( |
|
216 | + $actions['move to trash'] = '<a href="'.$trash_venue_link.'" title="'.esc_attr__( |
|
217 | 217 | 'Trash Event', |
218 | 218 | 'event_espresso' |
219 | - ) . '">' . __('Trash', 'event_espresso') . '</a>'; |
|
219 | + ).'">'.__('Trash', 'event_espresso').'</a>'; |
|
220 | 220 | } |
221 | 221 | } |
222 | 222 | return $actions; |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | |
244 | 244 | public function column_shortcode($item) |
245 | 245 | { |
246 | - $content = '[ESPRESSO_VENUE id=' . $item->ID() . ']'; |
|
246 | + $content = '[ESPRESSO_VENUE id='.$item->ID().']'; |
|
247 | 247 | return $content; |
248 | 248 | } |
249 | 249 | } |
@@ -17,120 +17,120 @@ |
||
17 | 17 | { |
18 | 18 | |
19 | 19 | |
20 | - protected function _setup_data() |
|
21 | - { |
|
22 | - $this->_data = $this->_admin_page->get_categories($this->_per_page, $this->_current_page); |
|
23 | - $this->_all_data_count = $this->_admin_page->get_categories($this->_per_page, $this->_current_page, true); |
|
24 | - } |
|
25 | - |
|
26 | - |
|
27 | - protected function _set_properties() |
|
28 | - { |
|
29 | - $this->_wp_list_args = array( |
|
30 | - 'singular' => __('venue category', 'event_espresso'), |
|
31 | - 'plural' => __('venue categories', 'event_espresso'), |
|
32 | - 'ajax' => true, // for now, |
|
33 | - 'screen' => $this->_admin_page->get_current_screen()->id, |
|
34 | - ); |
|
35 | - |
|
36 | - $this->_columns = array( |
|
37 | - 'cb' => '<input type="checkbox" />', |
|
38 | - 'id' => __('ID', 'event_espresso'), |
|
39 | - 'name' => __('Name', 'event_espresso'), |
|
40 | - // 'shortcode' => __('Shortcode', 'event_espresso'), |
|
41 | - 'count' => __('Venues', 'event_espresso'), |
|
42 | - ); |
|
43 | - |
|
44 | - $this->_sortable_columns = array( |
|
45 | - 'id' => array('Term.term_id' => true), |
|
46 | - 'name' => array('Term.slug' => false), |
|
47 | - 'count' => array('term_count' => false), |
|
48 | - ); |
|
49 | - |
|
50 | - $this->_hidden_columns = array(); |
|
51 | - } |
|
52 | - |
|
53 | - |
|
54 | - // not needed |
|
55 | - protected function _get_table_filters() |
|
56 | - { |
|
57 | - return array(); |
|
58 | - } |
|
59 | - |
|
60 | - |
|
61 | - protected function _add_view_counts() |
|
62 | - { |
|
63 | - $this->_views['all']['count'] = $this->_all_data_count; |
|
64 | - } |
|
65 | - |
|
66 | - |
|
67 | - public function column_cb($item) |
|
68 | - { |
|
69 | - return sprintf('<input type="checkbox" name="VEN_CAT_ID[]" value="%s" />', $item->get('term_id')); |
|
70 | - } |
|
71 | - |
|
72 | - |
|
73 | - public function column_id($item) |
|
74 | - { |
|
75 | - $content = $item->get('term_id'); |
|
76 | - $content .= ' <span class="show-on-mobile-view-only">' . $item->get_first_related('Term')->get( |
|
77 | - 'name' |
|
78 | - ) . '</span>'; |
|
79 | - return $content; |
|
80 | - } |
|
81 | - |
|
82 | - |
|
83 | - public function column_name($item) |
|
84 | - { |
|
85 | - $edit_query_args = array( |
|
86 | - 'action' => 'edit_category', |
|
87 | - 'VEN_CAT_ID' => $item->get('term_id'), |
|
88 | - ); |
|
89 | - |
|
90 | - $delete_query_args = array( |
|
91 | - 'action' => 'delete_category', |
|
92 | - 'VEN_CAT_ID' => $item->get('term_id'), |
|
93 | - ); |
|
94 | - |
|
95 | - $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_VENUES_ADMIN_URL); |
|
96 | - $delete_link = EE_Admin_Page::add_query_args_and_nonce($delete_query_args, EE_VENUES_ADMIN_URL); |
|
97 | - |
|
98 | - $actions = array( |
|
99 | - 'edit' => '<a href="' . $edit_link . '" title="' . esc_attr__( |
|
100 | - 'Edit Category', |
|
101 | - 'event_espresso' |
|
102 | - ) . '">' . __('Edit', 'event_espresso') . '</a>', |
|
103 | - ); |
|
104 | - |
|
105 | - |
|
106 | - $actions['delete'] = '<a href="' . $delete_link . '" title="' . esc_attr__( |
|
107 | - 'Delete Category', |
|
108 | - 'event_espresso' |
|
109 | - ) . '">' . __('Delete', 'event_espresso') . '</a>'; |
|
110 | - |
|
111 | - $content = '<strong><a class="row-title" href="' . $edit_link . '">' . $item->get_first_related('Term')->get( |
|
112 | - 'name' |
|
113 | - ) . '</a></strong>'; |
|
114 | - $content .= $this->row_actions($actions); |
|
115 | - return $content; |
|
116 | - } |
|
117 | - |
|
118 | - |
|
119 | - public function column_shortcode($item) |
|
120 | - { |
|
121 | - $content = '[EVENT_ESPRESSO_CATEGORY category_id="' . $item->get_first_related('Term')->get('slug') . '"]'; |
|
122 | - return $content; |
|
123 | - } |
|
124 | - |
|
125 | - |
|
126 | - public function column_count($item) |
|
127 | - { |
|
128 | - $e_args = array( |
|
129 | - 'action' => 'default', |
|
130 | - 'category' => $item->get_first_related('Term')->ID(), |
|
131 | - ); |
|
132 | - $e_link = EE_Admin_Page::add_query_args_and_nonce($e_args, EE_VENUES_ADMIN_URL); |
|
133 | - $content = '<a href="' . $e_link . '">' . $item->get('term_count') . '</a>'; |
|
134 | - return $content; |
|
135 | - } |
|
20 | + protected function _setup_data() |
|
21 | + { |
|
22 | + $this->_data = $this->_admin_page->get_categories($this->_per_page, $this->_current_page); |
|
23 | + $this->_all_data_count = $this->_admin_page->get_categories($this->_per_page, $this->_current_page, true); |
|
24 | + } |
|
25 | + |
|
26 | + |
|
27 | + protected function _set_properties() |
|
28 | + { |
|
29 | + $this->_wp_list_args = array( |
|
30 | + 'singular' => __('venue category', 'event_espresso'), |
|
31 | + 'plural' => __('venue categories', 'event_espresso'), |
|
32 | + 'ajax' => true, // for now, |
|
33 | + 'screen' => $this->_admin_page->get_current_screen()->id, |
|
34 | + ); |
|
35 | + |
|
36 | + $this->_columns = array( |
|
37 | + 'cb' => '<input type="checkbox" />', |
|
38 | + 'id' => __('ID', 'event_espresso'), |
|
39 | + 'name' => __('Name', 'event_espresso'), |
|
40 | + // 'shortcode' => __('Shortcode', 'event_espresso'), |
|
41 | + 'count' => __('Venues', 'event_espresso'), |
|
42 | + ); |
|
43 | + |
|
44 | + $this->_sortable_columns = array( |
|
45 | + 'id' => array('Term.term_id' => true), |
|
46 | + 'name' => array('Term.slug' => false), |
|
47 | + 'count' => array('term_count' => false), |
|
48 | + ); |
|
49 | + |
|
50 | + $this->_hidden_columns = array(); |
|
51 | + } |
|
52 | + |
|
53 | + |
|
54 | + // not needed |
|
55 | + protected function _get_table_filters() |
|
56 | + { |
|
57 | + return array(); |
|
58 | + } |
|
59 | + |
|
60 | + |
|
61 | + protected function _add_view_counts() |
|
62 | + { |
|
63 | + $this->_views['all']['count'] = $this->_all_data_count; |
|
64 | + } |
|
65 | + |
|
66 | + |
|
67 | + public function column_cb($item) |
|
68 | + { |
|
69 | + return sprintf('<input type="checkbox" name="VEN_CAT_ID[]" value="%s" />', $item->get('term_id')); |
|
70 | + } |
|
71 | + |
|
72 | + |
|
73 | + public function column_id($item) |
|
74 | + { |
|
75 | + $content = $item->get('term_id'); |
|
76 | + $content .= ' <span class="show-on-mobile-view-only">' . $item->get_first_related('Term')->get( |
|
77 | + 'name' |
|
78 | + ) . '</span>'; |
|
79 | + return $content; |
|
80 | + } |
|
81 | + |
|
82 | + |
|
83 | + public function column_name($item) |
|
84 | + { |
|
85 | + $edit_query_args = array( |
|
86 | + 'action' => 'edit_category', |
|
87 | + 'VEN_CAT_ID' => $item->get('term_id'), |
|
88 | + ); |
|
89 | + |
|
90 | + $delete_query_args = array( |
|
91 | + 'action' => 'delete_category', |
|
92 | + 'VEN_CAT_ID' => $item->get('term_id'), |
|
93 | + ); |
|
94 | + |
|
95 | + $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_VENUES_ADMIN_URL); |
|
96 | + $delete_link = EE_Admin_Page::add_query_args_and_nonce($delete_query_args, EE_VENUES_ADMIN_URL); |
|
97 | + |
|
98 | + $actions = array( |
|
99 | + 'edit' => '<a href="' . $edit_link . '" title="' . esc_attr__( |
|
100 | + 'Edit Category', |
|
101 | + 'event_espresso' |
|
102 | + ) . '">' . __('Edit', 'event_espresso') . '</a>', |
|
103 | + ); |
|
104 | + |
|
105 | + |
|
106 | + $actions['delete'] = '<a href="' . $delete_link . '" title="' . esc_attr__( |
|
107 | + 'Delete Category', |
|
108 | + 'event_espresso' |
|
109 | + ) . '">' . __('Delete', 'event_espresso') . '</a>'; |
|
110 | + |
|
111 | + $content = '<strong><a class="row-title" href="' . $edit_link . '">' . $item->get_first_related('Term')->get( |
|
112 | + 'name' |
|
113 | + ) . '</a></strong>'; |
|
114 | + $content .= $this->row_actions($actions); |
|
115 | + return $content; |
|
116 | + } |
|
117 | + |
|
118 | + |
|
119 | + public function column_shortcode($item) |
|
120 | + { |
|
121 | + $content = '[EVENT_ESPRESSO_CATEGORY category_id="' . $item->get_first_related('Term')->get('slug') . '"]'; |
|
122 | + return $content; |
|
123 | + } |
|
124 | + |
|
125 | + |
|
126 | + public function column_count($item) |
|
127 | + { |
|
128 | + $e_args = array( |
|
129 | + 'action' => 'default', |
|
130 | + 'category' => $item->get_first_related('Term')->ID(), |
|
131 | + ); |
|
132 | + $e_link = EE_Admin_Page::add_query_args_and_nonce($e_args, EE_VENUES_ADMIN_URL); |
|
133 | + $content = '<a href="' . $e_link . '">' . $item->get('term_count') . '</a>'; |
|
134 | + return $content; |
|
135 | + } |
|
136 | 136 | } |
@@ -73,9 +73,9 @@ discard block |
||
73 | 73 | public function column_id($item) |
74 | 74 | { |
75 | 75 | $content = $item->get('term_id'); |
76 | - $content .= ' <span class="show-on-mobile-view-only">' . $item->get_first_related('Term')->get( |
|
76 | + $content .= ' <span class="show-on-mobile-view-only">'.$item->get_first_related('Term')->get( |
|
77 | 77 | 'name' |
78 | - ) . '</span>'; |
|
78 | + ).'</span>'; |
|
79 | 79 | return $content; |
80 | 80 | } |
81 | 81 | |
@@ -96,21 +96,21 @@ discard block |
||
96 | 96 | $delete_link = EE_Admin_Page::add_query_args_and_nonce($delete_query_args, EE_VENUES_ADMIN_URL); |
97 | 97 | |
98 | 98 | $actions = array( |
99 | - 'edit' => '<a href="' . $edit_link . '" title="' . esc_attr__( |
|
99 | + 'edit' => '<a href="'.$edit_link.'" title="'.esc_attr__( |
|
100 | 100 | 'Edit Category', |
101 | 101 | 'event_espresso' |
102 | - ) . '">' . __('Edit', 'event_espresso') . '</a>', |
|
102 | + ).'">'.__('Edit', 'event_espresso').'</a>', |
|
103 | 103 | ); |
104 | 104 | |
105 | 105 | |
106 | - $actions['delete'] = '<a href="' . $delete_link . '" title="' . esc_attr__( |
|
106 | + $actions['delete'] = '<a href="'.$delete_link.'" title="'.esc_attr__( |
|
107 | 107 | 'Delete Category', |
108 | 108 | 'event_espresso' |
109 | - ) . '">' . __('Delete', 'event_espresso') . '</a>'; |
|
109 | + ).'">'.__('Delete', 'event_espresso').'</a>'; |
|
110 | 110 | |
111 | - $content = '<strong><a class="row-title" href="' . $edit_link . '">' . $item->get_first_related('Term')->get( |
|
111 | + $content = '<strong><a class="row-title" href="'.$edit_link.'">'.$item->get_first_related('Term')->get( |
|
112 | 112 | 'name' |
113 | - ) . '</a></strong>'; |
|
113 | + ).'</a></strong>'; |
|
114 | 114 | $content .= $this->row_actions($actions); |
115 | 115 | return $content; |
116 | 116 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | public function column_shortcode($item) |
120 | 120 | { |
121 | - $content = '[EVENT_ESPRESSO_CATEGORY category_id="' . $item->get_first_related('Term')->get('slug') . '"]'; |
|
121 | + $content = '[EVENT_ESPRESSO_CATEGORY category_id="'.$item->get_first_related('Term')->get('slug').'"]'; |
|
122 | 122 | return $content; |
123 | 123 | } |
124 | 124 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | 'category' => $item->get_first_related('Term')->ID(), |
131 | 131 | ); |
132 | 132 | $e_link = EE_Admin_Page::add_query_args_and_nonce($e_args, EE_VENUES_ADMIN_URL); |
133 | - $content = '<a href="' . $e_link . '">' . $item->get('term_count') . '</a>'; |
|
133 | + $content = '<a href="'.$e_link.'">'.$item->get('term_count').'</a>'; |
|
134 | 134 | return $content; |
135 | 135 | } |
136 | 136 | } |
@@ -15,77 +15,77 @@ |
||
15 | 15 | class Event_Add_Category_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Add New Category Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'event-add-category-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Add New Category Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'event-add-category-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_stop_one(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'category_name', |
|
33 | - 'content' => $this->_stop_two(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'right', |
|
36 | - 'tipAdjustmentY' => -55, |
|
37 | - 'tipAdjustmentX' => 5, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'id' => 'cat_id', |
|
42 | - 'content' => $this->_stop_three(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'right', |
|
45 | - 'tipAdjustmentY' => -55, |
|
46 | - 'tipAdjustmentX' => 5, |
|
47 | - ), |
|
48 | - ), |
|
49 | - 40 => array( |
|
50 | - 'id' => 'category_desc', |
|
51 | - 'content' => $this->_stop_four(), |
|
52 | - 'options' => array( |
|
53 | - 'tipLocation' => 'top', |
|
54 | - 'tipAdjustmentY' => -75, |
|
55 | - 'tipAdjustmentX' => 250, |
|
56 | - ), |
|
57 | - ), |
|
58 | - ); |
|
59 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_stop_one(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'category_name', |
|
33 | + 'content' => $this->_stop_two(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'right', |
|
36 | + 'tipAdjustmentY' => -55, |
|
37 | + 'tipAdjustmentX' => 5, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'id' => 'cat_id', |
|
42 | + 'content' => $this->_stop_three(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'right', |
|
45 | + 'tipAdjustmentY' => -55, |
|
46 | + 'tipAdjustmentX' => 5, |
|
47 | + ), |
|
48 | + ), |
|
49 | + 40 => array( |
|
50 | + 'id' => 'category_desc', |
|
51 | + 'content' => $this->_stop_four(), |
|
52 | + 'options' => array( |
|
53 | + 'tipLocation' => 'top', |
|
54 | + 'tipAdjustmentY' => -75, |
|
55 | + 'tipAdjustmentX' => 250, |
|
56 | + ), |
|
57 | + ), |
|
58 | + ); |
|
59 | + } |
|
60 | 60 | |
61 | 61 | |
62 | - protected function _stop_one() |
|
63 | - { |
|
64 | - $content = '<h3>' . __('Add New Event Category', 'event_espresso') . '</h3>'; |
|
65 | - $content .= '<p>' |
|
66 | - . __( |
|
67 | - 'This tour of the Add New Event Category page will go over different areas of the screen to help you understand what they are used for.', |
|
68 | - 'event_espresso' |
|
69 | - ) . '</p>'; |
|
70 | - return $content; |
|
71 | - } |
|
62 | + protected function _stop_one() |
|
63 | + { |
|
64 | + $content = '<h3>' . __('Add New Event Category', 'event_espresso') . '</h3>'; |
|
65 | + $content .= '<p>' |
|
66 | + . __( |
|
67 | + 'This tour of the Add New Event Category page will go over different areas of the screen to help you understand what they are used for.', |
|
68 | + 'event_espresso' |
|
69 | + ) . '</p>'; |
|
70 | + return $content; |
|
71 | + } |
|
72 | 72 | |
73 | - protected function _stop_two() |
|
74 | - { |
|
75 | - return '<p>' . __('Enter a name for your new category.', 'event_espresso') . '</p>'; |
|
76 | - } |
|
73 | + protected function _stop_two() |
|
74 | + { |
|
75 | + return '<p>' . __('Enter a name for your new category.', 'event_espresso') . '</p>'; |
|
76 | + } |
|
77 | 77 | |
78 | - protected function _stop_three() |
|
79 | - { |
|
80 | - return '<p>' . __('Enter a unique ID for your new category.', 'event_espresso') . '</p>'; |
|
81 | - } |
|
78 | + protected function _stop_three() |
|
79 | + { |
|
80 | + return '<p>' . __('Enter a unique ID for your new category.', 'event_espresso') . '</p>'; |
|
81 | + } |
|
82 | 82 | |
83 | - protected function _stop_four() |
|
84 | - { |
|
85 | - return '<p>' |
|
86 | - . __( |
|
87 | - 'The rich text editor can be used to add information about your category. Images and links can also be added along with your text.', |
|
88 | - 'event_espresso' |
|
89 | - ) . '</p>'; |
|
90 | - } |
|
83 | + protected function _stop_four() |
|
84 | + { |
|
85 | + return '<p>' |
|
86 | + . __( |
|
87 | + 'The rich text editor can be used to add information about your category. Images and links can also be added along with your text.', |
|
88 | + 'event_espresso' |
|
89 | + ) . '</p>'; |
|
90 | + } |
|
91 | 91 | } |
@@ -61,23 +61,23 @@ discard block |
||
61 | 61 | |
62 | 62 | protected function _stop_one() |
63 | 63 | { |
64 | - $content = '<h3>' . __('Add New Event Category', 'event_espresso') . '</h3>'; |
|
64 | + $content = '<h3>'.__('Add New Event Category', 'event_espresso').'</h3>'; |
|
65 | 65 | $content .= '<p>' |
66 | 66 | . __( |
67 | 67 | 'This tour of the Add New Event Category page will go over different areas of the screen to help you understand what they are used for.', |
68 | 68 | 'event_espresso' |
69 | - ) . '</p>'; |
|
69 | + ).'</p>'; |
|
70 | 70 | return $content; |
71 | 71 | } |
72 | 72 | |
73 | 73 | protected function _stop_two() |
74 | 74 | { |
75 | - return '<p>' . __('Enter a name for your new category.', 'event_espresso') . '</p>'; |
|
75 | + return '<p>'.__('Enter a name for your new category.', 'event_espresso').'</p>'; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | protected function _stop_three() |
79 | 79 | { |
80 | - return '<p>' . __('Enter a unique ID for your new category.', 'event_espresso') . '</p>'; |
|
80 | + return '<p>'.__('Enter a unique ID for your new category.', 'event_espresso').'</p>'; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | protected function _stop_four() |
@@ -86,6 +86,6 @@ discard block |
||
86 | 86 | . __( |
87 | 87 | 'The rich text editor can be used to add information about your category. Images and links can also be added along with your text.', |
88 | 88 | 'event_espresso' |
89 | - ) . '</p>'; |
|
89 | + ).'</p>'; |
|
90 | 90 | } |
91 | 91 | } |
@@ -15,219 +15,219 @@ |
||
15 | 15 | class Event_Editor_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Event Editor Tour', 'event_espresso'); |
|
21 | - $this->_slug = $this->_is_caf ? 'event-editor-caf-joyride' : 'event-editor-joyride'; |
|
22 | - } |
|
23 | - |
|
24 | - |
|
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'titlewrap', |
|
33 | - 'content' => $this->_event_title_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'bottom', |
|
36 | - 'tipAdjustmentY' => -40, |
|
37 | - ), |
|
38 | - ), |
|
39 | - 30 => array( |
|
40 | - 'id' => 'wp-content-editor-tools', |
|
41 | - 'content' => $this->_event_description_stop(), |
|
42 | - 'options' => array( |
|
43 | - 'tipLocation' => 'right', |
|
44 | - ), |
|
45 | - ), |
|
46 | - 35 => array( |
|
47 | - 'id' => 'espresso_event_editor_tickets', |
|
48 | - 'content' => $this->_event_pricing_stop(), |
|
49 | - 'options' => array( |
|
50 | - 'tipLocation' => 'top', |
|
51 | - 'tipAdjustmentY' => -30, |
|
52 | - ), |
|
53 | - ), |
|
54 | - 40 => array( |
|
55 | - 'id' => 'espresso_events_Venues_Hooks_venue_metabox_metabox', |
|
56 | - 'content' => $this->_event_venues_caf(), |
|
57 | - 'options' => array( |
|
58 | - 'tipLocation' => 'top', |
|
59 | - 'tipAdjustmentY' => -30, |
|
60 | - ), |
|
61 | - ), |
|
62 | - 50 => array( |
|
63 | - 'id' => 'espresso_events_Pricing_Hooks_pricing_metabox_metabox', |
|
64 | - 'content' => $this->_event_pricing_caf(), |
|
65 | - 'options' => array( |
|
66 | - 'tipLocation' => 'top', |
|
67 | - 'tipAdjustmentY' => -30, |
|
68 | - ), |
|
69 | - ), |
|
70 | - 60 => array( |
|
71 | - 'id' => 'tagsdiv-post_tag', |
|
72 | - 'content' => $this->_event_post_tag_stop(), |
|
73 | - 'options' => array( |
|
74 | - 'tipLocation' => 'left', |
|
75 | - ), |
|
76 | - ), |
|
77 | - 70 => array( |
|
78 | - 'id' => 'espresso_event_categoriesdiv', |
|
79 | - 'content' => $this->_event_categories_stop(), |
|
80 | - 'options' => array( |
|
81 | - 'tipLocation' => 'left', |
|
82 | - ), |
|
83 | - ), |
|
84 | - |
|
85 | - 80 => array( |
|
86 | - 'id' => $this->_is_caf ? 'espresso_events_Registration_Form_Hooks_Extend_primary_questions_metabox' |
|
87 | - : 'espresso_events_Registration_Form_Hooks_primary_questions_metabox', |
|
88 | - 'content' => $this->_primary_question_stop_caf(), |
|
89 | - 'options' => array( |
|
90 | - 'tipLocation' => 'left', |
|
91 | - ), |
|
92 | - ), |
|
93 | - 90 => array( |
|
94 | - 'id' => 'espresso_events_Registration_Form_Hooks_Extend_additional_questions_metabox', |
|
95 | - 'content' => $this->_additional_questions_stop_caf(), |
|
96 | - 'options' => array( |
|
97 | - 'tipLocation' => 'left', |
|
98 | - ), |
|
99 | - ), |
|
100 | - 100 => array( |
|
101 | - 'id' => 'postimagediv', |
|
102 | - 'content' => $this->_featured_image_stop(), |
|
103 | - 'options' => array( |
|
104 | - 'tipLocation' => 'left', |
|
105 | - ), |
|
106 | - ), |
|
107 | - 110 => array( |
|
108 | - 'id' => 'espresso_event_editor_event_options', |
|
109 | - 'content' => $this->_event_registration_options_stop(), |
|
110 | - 'options' => array( |
|
111 | - 'tipLocation' => 'left', |
|
112 | - ), |
|
113 | - ), |
|
114 | - 120 => array( |
|
115 | - 'id' => 'submitpost', |
|
116 | - 'content' => $this->_publish_event_stop(), |
|
117 | - 'options' => array( |
|
118 | - 'tipLocation' => 'left', |
|
119 | - ), |
|
120 | - ), |
|
121 | - |
|
122 | - ); |
|
123 | - } |
|
124 | - |
|
125 | - |
|
126 | - protected function _start() |
|
127 | - { |
|
128 | - $content = '<h3>' . __('Event Editor', 'event_espresso') . '</h3>'; |
|
129 | - $content .= '<p>' |
|
130 | - . __( |
|
131 | - 'This tour of the Event Editor will provide an overview of the different areas of the screen to help you understand what they are used for. Let\'s get started on setting up your first event with Event Espresso!', |
|
132 | - 'event_espresso' |
|
133 | - ) . '</p>'; |
|
134 | - return $content; |
|
135 | - } |
|
136 | - |
|
137 | - protected function _event_title_stop() |
|
138 | - { |
|
139 | - return '<p>Enter the title for your event in this field.</p>'; |
|
140 | - } |
|
141 | - |
|
142 | - protected function _event_description_stop() |
|
143 | - { |
|
144 | - return '<p>' |
|
145 | - . __( |
|
146 | - 'The rich text editor can be used to add information about your event. Images and links can also be added along with your text.', |
|
147 | - 'event_espresso' |
|
148 | - ) . '</p>'; |
|
149 | - } |
|
150 | - |
|
151 | - protected function _event_venues_caf() |
|
152 | - { |
|
153 | - return '<p>' |
|
154 | - . __( |
|
155 | - 'In this section, you can select the venue that is hosting your event.', |
|
156 | - 'event_espresso' |
|
157 | - ) . '</p>'; |
|
158 | - } |
|
159 | - |
|
160 | - protected function _event_venues_stop() |
|
161 | - { |
|
162 | - return '<p>' |
|
163 | - . __( |
|
164 | - 'In this section, you can enter information about the venue that is hosting your event.', |
|
165 | - 'event_espresso' |
|
166 | - ) . '</p>'; |
|
167 | - } |
|
168 | - |
|
169 | - protected function _event_pricing_stop() |
|
170 | - { |
|
171 | - return '<p>' |
|
172 | - . __( |
|
173 | - 'Use the Event Datetime & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
|
174 | - 'event_espresso' |
|
175 | - ) . '</p>'; |
|
176 | - } |
|
177 | - |
|
178 | - protected function _event_pricing_caf() |
|
179 | - { |
|
180 | - return '<p>' |
|
181 | - . __( |
|
182 | - 'Use the Event Datetimes & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
|
183 | - 'event_espresso' |
|
184 | - ) . '</p>'; |
|
185 | - } |
|
186 | - |
|
187 | - protected function _event_registration_options_stop() |
|
188 | - { |
|
189 | - return '<p>' . __('Setup custom options for your event registration.', 'event_espresso') . '</p>'; |
|
190 | - } |
|
191 | - |
|
192 | - protected function _event_post_tag_stop() |
|
193 | - { |
|
194 | - return '<p>' . __('Quickly add tags to your event.', 'event_espresso') . '</p>'; |
|
195 | - } |
|
196 | - |
|
197 | - protected function _event_categories_stop() |
|
198 | - { |
|
199 | - return '<p>' . __('Events can also be categorized if you wish.', 'event_espresso') . '</p>'; |
|
200 | - } |
|
201 | - |
|
202 | - protected function _primary_question_stop_caf() |
|
203 | - { |
|
204 | - return '<p>' |
|
205 | - . __( |
|
206 | - 'Use the questions group to request information from your primary registrant.', |
|
207 | - 'event_espresso' |
|
208 | - ) . '</p>'; |
|
209 | - } |
|
210 | - |
|
211 | - protected function _additional_questions_stop_caf() |
|
212 | - { |
|
213 | - return '<p>' |
|
214 | - . __( |
|
215 | - 'Use the questions group to request information from your additional registrant.', |
|
216 | - 'event_espresso' |
|
217 | - ) . '</p>'; |
|
218 | - } |
|
219 | - |
|
220 | - protected function _featured_image_stop() |
|
221 | - { |
|
222 | - return '<p>' . __('Set a feature image for your event here.', 'event_espresso') . '</p>'; |
|
223 | - } |
|
224 | - |
|
225 | - protected function _publish_event_stop() |
|
226 | - { |
|
227 | - return '<p>' |
|
228 | - . __( |
|
229 | - 'Easily control the state of your event. The main states are Published, Pending Review, and Draft. Additional states are Cancelled, Postponed, and Sold Out.', |
|
230 | - 'event_espresso' |
|
231 | - ) . '</p>'; |
|
232 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Event Editor Tour', 'event_espresso'); |
|
21 | + $this->_slug = $this->_is_caf ? 'event-editor-caf-joyride' : 'event-editor-joyride'; |
|
22 | + } |
|
23 | + |
|
24 | + |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'titlewrap', |
|
33 | + 'content' => $this->_event_title_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'bottom', |
|
36 | + 'tipAdjustmentY' => -40, |
|
37 | + ), |
|
38 | + ), |
|
39 | + 30 => array( |
|
40 | + 'id' => 'wp-content-editor-tools', |
|
41 | + 'content' => $this->_event_description_stop(), |
|
42 | + 'options' => array( |
|
43 | + 'tipLocation' => 'right', |
|
44 | + ), |
|
45 | + ), |
|
46 | + 35 => array( |
|
47 | + 'id' => 'espresso_event_editor_tickets', |
|
48 | + 'content' => $this->_event_pricing_stop(), |
|
49 | + 'options' => array( |
|
50 | + 'tipLocation' => 'top', |
|
51 | + 'tipAdjustmentY' => -30, |
|
52 | + ), |
|
53 | + ), |
|
54 | + 40 => array( |
|
55 | + 'id' => 'espresso_events_Venues_Hooks_venue_metabox_metabox', |
|
56 | + 'content' => $this->_event_venues_caf(), |
|
57 | + 'options' => array( |
|
58 | + 'tipLocation' => 'top', |
|
59 | + 'tipAdjustmentY' => -30, |
|
60 | + ), |
|
61 | + ), |
|
62 | + 50 => array( |
|
63 | + 'id' => 'espresso_events_Pricing_Hooks_pricing_metabox_metabox', |
|
64 | + 'content' => $this->_event_pricing_caf(), |
|
65 | + 'options' => array( |
|
66 | + 'tipLocation' => 'top', |
|
67 | + 'tipAdjustmentY' => -30, |
|
68 | + ), |
|
69 | + ), |
|
70 | + 60 => array( |
|
71 | + 'id' => 'tagsdiv-post_tag', |
|
72 | + 'content' => $this->_event_post_tag_stop(), |
|
73 | + 'options' => array( |
|
74 | + 'tipLocation' => 'left', |
|
75 | + ), |
|
76 | + ), |
|
77 | + 70 => array( |
|
78 | + 'id' => 'espresso_event_categoriesdiv', |
|
79 | + 'content' => $this->_event_categories_stop(), |
|
80 | + 'options' => array( |
|
81 | + 'tipLocation' => 'left', |
|
82 | + ), |
|
83 | + ), |
|
84 | + |
|
85 | + 80 => array( |
|
86 | + 'id' => $this->_is_caf ? 'espresso_events_Registration_Form_Hooks_Extend_primary_questions_metabox' |
|
87 | + : 'espresso_events_Registration_Form_Hooks_primary_questions_metabox', |
|
88 | + 'content' => $this->_primary_question_stop_caf(), |
|
89 | + 'options' => array( |
|
90 | + 'tipLocation' => 'left', |
|
91 | + ), |
|
92 | + ), |
|
93 | + 90 => array( |
|
94 | + 'id' => 'espresso_events_Registration_Form_Hooks_Extend_additional_questions_metabox', |
|
95 | + 'content' => $this->_additional_questions_stop_caf(), |
|
96 | + 'options' => array( |
|
97 | + 'tipLocation' => 'left', |
|
98 | + ), |
|
99 | + ), |
|
100 | + 100 => array( |
|
101 | + 'id' => 'postimagediv', |
|
102 | + 'content' => $this->_featured_image_stop(), |
|
103 | + 'options' => array( |
|
104 | + 'tipLocation' => 'left', |
|
105 | + ), |
|
106 | + ), |
|
107 | + 110 => array( |
|
108 | + 'id' => 'espresso_event_editor_event_options', |
|
109 | + 'content' => $this->_event_registration_options_stop(), |
|
110 | + 'options' => array( |
|
111 | + 'tipLocation' => 'left', |
|
112 | + ), |
|
113 | + ), |
|
114 | + 120 => array( |
|
115 | + 'id' => 'submitpost', |
|
116 | + 'content' => $this->_publish_event_stop(), |
|
117 | + 'options' => array( |
|
118 | + 'tipLocation' => 'left', |
|
119 | + ), |
|
120 | + ), |
|
121 | + |
|
122 | + ); |
|
123 | + } |
|
124 | + |
|
125 | + |
|
126 | + protected function _start() |
|
127 | + { |
|
128 | + $content = '<h3>' . __('Event Editor', 'event_espresso') . '</h3>'; |
|
129 | + $content .= '<p>' |
|
130 | + . __( |
|
131 | + 'This tour of the Event Editor will provide an overview of the different areas of the screen to help you understand what they are used for. Let\'s get started on setting up your first event with Event Espresso!', |
|
132 | + 'event_espresso' |
|
133 | + ) . '</p>'; |
|
134 | + return $content; |
|
135 | + } |
|
136 | + |
|
137 | + protected function _event_title_stop() |
|
138 | + { |
|
139 | + return '<p>Enter the title for your event in this field.</p>'; |
|
140 | + } |
|
141 | + |
|
142 | + protected function _event_description_stop() |
|
143 | + { |
|
144 | + return '<p>' |
|
145 | + . __( |
|
146 | + 'The rich text editor can be used to add information about your event. Images and links can also be added along with your text.', |
|
147 | + 'event_espresso' |
|
148 | + ) . '</p>'; |
|
149 | + } |
|
150 | + |
|
151 | + protected function _event_venues_caf() |
|
152 | + { |
|
153 | + return '<p>' |
|
154 | + . __( |
|
155 | + 'In this section, you can select the venue that is hosting your event.', |
|
156 | + 'event_espresso' |
|
157 | + ) . '</p>'; |
|
158 | + } |
|
159 | + |
|
160 | + protected function _event_venues_stop() |
|
161 | + { |
|
162 | + return '<p>' |
|
163 | + . __( |
|
164 | + 'In this section, you can enter information about the venue that is hosting your event.', |
|
165 | + 'event_espresso' |
|
166 | + ) . '</p>'; |
|
167 | + } |
|
168 | + |
|
169 | + protected function _event_pricing_stop() |
|
170 | + { |
|
171 | + return '<p>' |
|
172 | + . __( |
|
173 | + 'Use the Event Datetime & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
|
174 | + 'event_espresso' |
|
175 | + ) . '</p>'; |
|
176 | + } |
|
177 | + |
|
178 | + protected function _event_pricing_caf() |
|
179 | + { |
|
180 | + return '<p>' |
|
181 | + . __( |
|
182 | + 'Use the Event Datetimes & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
|
183 | + 'event_espresso' |
|
184 | + ) . '</p>'; |
|
185 | + } |
|
186 | + |
|
187 | + protected function _event_registration_options_stop() |
|
188 | + { |
|
189 | + return '<p>' . __('Setup custom options for your event registration.', 'event_espresso') . '</p>'; |
|
190 | + } |
|
191 | + |
|
192 | + protected function _event_post_tag_stop() |
|
193 | + { |
|
194 | + return '<p>' . __('Quickly add tags to your event.', 'event_espresso') . '</p>'; |
|
195 | + } |
|
196 | + |
|
197 | + protected function _event_categories_stop() |
|
198 | + { |
|
199 | + return '<p>' . __('Events can also be categorized if you wish.', 'event_espresso') . '</p>'; |
|
200 | + } |
|
201 | + |
|
202 | + protected function _primary_question_stop_caf() |
|
203 | + { |
|
204 | + return '<p>' |
|
205 | + . __( |
|
206 | + 'Use the questions group to request information from your primary registrant.', |
|
207 | + 'event_espresso' |
|
208 | + ) . '</p>'; |
|
209 | + } |
|
210 | + |
|
211 | + protected function _additional_questions_stop_caf() |
|
212 | + { |
|
213 | + return '<p>' |
|
214 | + . __( |
|
215 | + 'Use the questions group to request information from your additional registrant.', |
|
216 | + 'event_espresso' |
|
217 | + ) . '</p>'; |
|
218 | + } |
|
219 | + |
|
220 | + protected function _featured_image_stop() |
|
221 | + { |
|
222 | + return '<p>' . __('Set a feature image for your event here.', 'event_espresso') . '</p>'; |
|
223 | + } |
|
224 | + |
|
225 | + protected function _publish_event_stop() |
|
226 | + { |
|
227 | + return '<p>' |
|
228 | + . __( |
|
229 | + 'Easily control the state of your event. The main states are Published, Pending Review, and Draft. Additional states are Cancelled, Postponed, and Sold Out.', |
|
230 | + 'event_espresso' |
|
231 | + ) . '</p>'; |
|
232 | + } |
|
233 | 233 | } |
@@ -125,12 +125,12 @@ discard block |
||
125 | 125 | |
126 | 126 | protected function _start() |
127 | 127 | { |
128 | - $content = '<h3>' . __('Event Editor', 'event_espresso') . '</h3>'; |
|
128 | + $content = '<h3>'.__('Event Editor', 'event_espresso').'</h3>'; |
|
129 | 129 | $content .= '<p>' |
130 | 130 | . __( |
131 | 131 | 'This tour of the Event Editor will provide an overview of the different areas of the screen to help you understand what they are used for. Let\'s get started on setting up your first event with Event Espresso!', |
132 | 132 | 'event_espresso' |
133 | - ) . '</p>'; |
|
133 | + ).'</p>'; |
|
134 | 134 | return $content; |
135 | 135 | } |
136 | 136 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | . __( |
146 | 146 | 'The rich text editor can be used to add information about your event. Images and links can also be added along with your text.', |
147 | 147 | 'event_espresso' |
148 | - ) . '</p>'; |
|
148 | + ).'</p>'; |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | protected function _event_venues_caf() |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | . __( |
155 | 155 | 'In this section, you can select the venue that is hosting your event.', |
156 | 156 | 'event_espresso' |
157 | - ) . '</p>'; |
|
157 | + ).'</p>'; |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | protected function _event_venues_stop() |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | . __( |
164 | 164 | 'In this section, you can enter information about the venue that is hosting your event.', |
165 | 165 | 'event_espresso' |
166 | - ) . '</p>'; |
|
166 | + ).'</p>'; |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | protected function _event_pricing_stop() |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | . __( |
173 | 173 | 'Use the Event Datetime & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
174 | 174 | 'event_espresso' |
175 | - ) . '</p>'; |
|
175 | + ).'</p>'; |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | protected function _event_pricing_caf() |
@@ -181,22 +181,22 @@ discard block |
||
181 | 181 | . __( |
182 | 182 | 'Use the Event Datetimes & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
183 | 183 | 'event_espresso' |
184 | - ) . '</p>'; |
|
184 | + ).'</p>'; |
|
185 | 185 | } |
186 | 186 | |
187 | 187 | protected function _event_registration_options_stop() |
188 | 188 | { |
189 | - return '<p>' . __('Setup custom options for your event registration.', 'event_espresso') . '</p>'; |
|
189 | + return '<p>'.__('Setup custom options for your event registration.', 'event_espresso').'</p>'; |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | protected function _event_post_tag_stop() |
193 | 193 | { |
194 | - return '<p>' . __('Quickly add tags to your event.', 'event_espresso') . '</p>'; |
|
194 | + return '<p>'.__('Quickly add tags to your event.', 'event_espresso').'</p>'; |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | protected function _event_categories_stop() |
198 | 198 | { |
199 | - return '<p>' . __('Events can also be categorized if you wish.', 'event_espresso') . '</p>'; |
|
199 | + return '<p>'.__('Events can also be categorized if you wish.', 'event_espresso').'</p>'; |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | protected function _primary_question_stop_caf() |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | . __( |
206 | 206 | 'Use the questions group to request information from your primary registrant.', |
207 | 207 | 'event_espresso' |
208 | - ) . '</p>'; |
|
208 | + ).'</p>'; |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | protected function _additional_questions_stop_caf() |
@@ -214,12 +214,12 @@ discard block |
||
214 | 214 | . __( |
215 | 215 | 'Use the questions group to request information from your additional registrant.', |
216 | 216 | 'event_espresso' |
217 | - ) . '</p>'; |
|
217 | + ).'</p>'; |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | protected function _featured_image_stop() |
221 | 221 | { |
222 | - return '<p>' . __('Set a feature image for your event here.', 'event_espresso') . '</p>'; |
|
222 | + return '<p>'.__('Set a feature image for your event here.', 'event_espresso').'</p>'; |
|
223 | 223 | } |
224 | 224 | |
225 | 225 | protected function _publish_event_stop() |
@@ -228,6 +228,6 @@ discard block |
||
228 | 228 | . __( |
229 | 229 | 'Easily control the state of your event. The main states are Published, Pending Review, and Draft. Additional states are Cancelled, Postponed, and Sold Out.', |
230 | 230 | 'event_espresso' |
231 | - ) . '</p>'; |
|
231 | + ).'</p>'; |
|
232 | 232 | } |
233 | 233 | } |
@@ -15,212 +15,212 @@ |
||
15 | 15 | class Templates_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Templates Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'templates-settings-joyride'; |
|
22 | - } |
|
23 | - |
|
24 | - protected function _set_tour_stops() |
|
25 | - { |
|
26 | - $this->_stops = array( |
|
27 | - 10 => array( |
|
28 | - 'content' => $this->_start(), |
|
29 | - ), |
|
30 | - 15 => array( |
|
31 | - 'id' => 'display_status_banner_single', |
|
32 | - 'content' => $this->_default_status_banner_single_stop(), |
|
33 | - 'options' => array( |
|
34 | - 'tipLocation' => 'right', |
|
35 | - 'tipAdjustmentY' => -50, |
|
36 | - 'tipAdjustmentX' => 15, |
|
37 | - ), |
|
38 | - ), |
|
39 | - 20 => array( |
|
40 | - 'id' => 'default_type', |
|
41 | - 'content' => $this->_default_view_stop(), |
|
42 | - 'options' => array( |
|
43 | - 'tipLocation' => 'right', |
|
44 | - 'tipAdjustmentY' => -50, |
|
45 | - 'tipAdjustmentX' => 15, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 30 => array( |
|
49 | - 'id' => 'event_list_grid_size', |
|
50 | - 'content' => $this->_event_list_grid_size_stop(), |
|
51 | - 'options' => array( |
|
52 | - 'tipLocation' => 'right', |
|
53 | - 'tipAdjustmentY' => -50, |
|
54 | - 'tipAdjustmentX' => 15, |
|
55 | - ), |
|
56 | - ), |
|
57 | - 40 => array( |
|
58 | - 'id' => 'display_description_in_event_list', |
|
59 | - 'content' => $this->_display_description_stop(), |
|
60 | - 'options' => array( |
|
61 | - 'tipLocation' => 'right', |
|
62 | - 'tipAdjustmentY' => -50, |
|
63 | - 'tipAdjustmentX' => 15, |
|
64 | - ), |
|
65 | - ), |
|
66 | - 50 => array( |
|
67 | - 'id' => 'display_address_in_event_list', |
|
68 | - 'content' => $this->_display_address_stop(), |
|
69 | - 'options' => array( |
|
70 | - 'tipLocation' => 'right', |
|
71 | - 'tipAdjustmentY' => -50, |
|
72 | - 'tipAdjustmentX' => 15, |
|
73 | - ), |
|
74 | - ), |
|
75 | - 60 => array( |
|
76 | - 'id' => 'display_venue_details_in_event_list', |
|
77 | - 'content' => $this->_display_venue_stop(), |
|
78 | - 'options' => array( |
|
79 | - 'tipLocation' => 'right', |
|
80 | - 'tipAdjustmentY' => -50, |
|
81 | - 'tipAdjustmentX' => 15, |
|
82 | - ), |
|
83 | - ), |
|
84 | - 70 => array( |
|
85 | - 'id' => 'display_expired_events', |
|
86 | - 'content' => $this->_display_expired_events_stop(), |
|
87 | - 'options' => array( |
|
88 | - 'tipLocation' => 'right', |
|
89 | - 'tipAdjustmentY' => -50, |
|
90 | - 'tipAdjustmentX' => 15, |
|
91 | - ), |
|
92 | - ), |
|
93 | - 80 => array( |
|
94 | - 'id' => 'event_listings_url', |
|
95 | - 'content' => $this->_event_listings_url_stop(), |
|
96 | - 'options' => array( |
|
97 | - 'tipLocation' => 'right', |
|
98 | - 'tipAdjustmentY' => -50, |
|
99 | - 'tipAdjustmentX' => 15, |
|
100 | - ), |
|
101 | - ), |
|
102 | - 90 => array( |
|
103 | - 'id' => 'reset_event_list_settings', |
|
104 | - 'content' => $this->_reset_event_list_settings_stop(), |
|
105 | - 'options' => array( |
|
106 | - 'tipLocation' => 'right', |
|
107 | - 'tipAdjustmentY' => -50, |
|
108 | - 'tipAdjustmentX' => 15, |
|
109 | - ), |
|
110 | - ), |
|
111 | - 100 => array( |
|
112 | - 'id' => 'display_status_banner', |
|
113 | - 'content' => $this->_display_status_banner_stop(), |
|
114 | - 'options' => array( |
|
115 | - 'tipLocation' => 'right', |
|
116 | - 'tipAdjustmentY' => -50, |
|
117 | - 'tipAdjustmentX' => 15, |
|
118 | - ), |
|
119 | - ), |
|
120 | - 110 => array( |
|
121 | - 'id' => 'display_address_in_regform', |
|
122 | - 'content' => $this->_display_address_in_reg_form_stop(), |
|
123 | - 'options' => array( |
|
124 | - 'tipLocation' => 'right', |
|
125 | - 'tipAdjustmentY' => -50, |
|
126 | - 'tipAdjustmentX' => 15, |
|
127 | - ), |
|
128 | - ), |
|
129 | - ); |
|
130 | - } |
|
131 | - |
|
132 | - |
|
133 | - protected function _start() |
|
134 | - { |
|
135 | - $content = '<h3>' . __('Template Settings', 'event_espresso') . '</h3>'; |
|
136 | - $content .= '<p>' |
|
137 | - . __( |
|
138 | - 'This tour of the Templates Page will go over different areas of the screen to help you understand what they are used for.', |
|
139 | - 'event_espresso' |
|
140 | - ) . '</p>'; |
|
141 | - return $content; |
|
142 | - } |
|
143 | - |
|
144 | - protected function _default_status_banner_single_stop() |
|
145 | - { |
|
146 | - return '<p>' |
|
147 | - . __( |
|
148 | - 'Specify whether event status banners should be shown next to the title on the single event page.', |
|
149 | - 'event_espresso' |
|
150 | - ) . '</p>'; |
|
151 | - } |
|
152 | - |
|
153 | - protected function _default_view_stop() |
|
154 | - { |
|
155 | - return '<p>' . __('Define how your basic event list will appear.', 'event_espresso') . '</p>'; |
|
156 | - } |
|
157 | - |
|
158 | - protected function _event_list_grid_size_stop() |
|
159 | - { |
|
160 | - return '<p>' |
|
161 | - . __( |
|
162 | - 'If you have selected grid view in the option above, then you can use these settings to change the size of the grids.', |
|
163 | - 'event_espresso' |
|
164 | - ) . '</p>'; |
|
165 | - } |
|
166 | - |
|
167 | - protected function _display_description_stop() |
|
168 | - { |
|
169 | - return '<p>' . __('Specify whether descriptions be shown on the event list.', 'event_espresso') . '</p>'; |
|
170 | - } |
|
171 | - |
|
172 | - protected function _display_address_stop() |
|
173 | - { |
|
174 | - return '<p>' |
|
175 | - . __( |
|
176 | - 'Specify whether the venue address be displayed on the event list.', |
|
177 | - 'event_espresso' |
|
178 | - ) . '</p>'; |
|
179 | - } |
|
180 | - |
|
181 | - protected function _display_venue_stop() |
|
182 | - { |
|
183 | - return '<p>' |
|
184 | - . __( |
|
185 | - 'Specify whether the venue information be displayed on the event list.', |
|
186 | - 'event_espresso' |
|
187 | - ) . '</p>'; |
|
188 | - } |
|
189 | - |
|
190 | - protected function _display_expired_events_stop() |
|
191 | - { |
|
192 | - return '<p>' . __('Should expired events be shown on the default event list.', 'event_espresso') . '</p>'; |
|
193 | - } |
|
194 | - |
|
195 | - protected function _event_listings_url_stop() |
|
196 | - { |
|
197 | - return '<p>' . __('This is the website address (URL) for your event listings page.', 'event_espresso') . '</p>'; |
|
198 | - } |
|
199 | - |
|
200 | - protected function _reset_event_list_settings_stop() |
|
201 | - { |
|
202 | - return '<p>' |
|
203 | - . __( |
|
204 | - 'Notice: When this option is set to yes, any customization from the above settings will be lost and your event list settings will be set to default.', |
|
205 | - 'event_espresso' |
|
206 | - ) . '</p>'; |
|
207 | - } |
|
208 | - |
|
209 | - protected function _display_status_banner_stop() |
|
210 | - { |
|
211 | - return '<p>' |
|
212 | - . __( |
|
213 | - 'Specify whether event status banners should be shown next to the title on the event list page.', |
|
214 | - 'event_espresso' |
|
215 | - ) . '</p>'; |
|
216 | - } |
|
217 | - |
|
218 | - protected function _display_address_in_reg_form_stop() |
|
219 | - { |
|
220 | - return '<p>' |
|
221 | - . __( |
|
222 | - 'Specify whether the address for a venue be shown on the single registration page.', |
|
223 | - 'event_espresso' |
|
224 | - ) . '</p>'; |
|
225 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Templates Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'templates-settings-joyride'; |
|
22 | + } |
|
23 | + |
|
24 | + protected function _set_tour_stops() |
|
25 | + { |
|
26 | + $this->_stops = array( |
|
27 | + 10 => array( |
|
28 | + 'content' => $this->_start(), |
|
29 | + ), |
|
30 | + 15 => array( |
|
31 | + 'id' => 'display_status_banner_single', |
|
32 | + 'content' => $this->_default_status_banner_single_stop(), |
|
33 | + 'options' => array( |
|
34 | + 'tipLocation' => 'right', |
|
35 | + 'tipAdjustmentY' => -50, |
|
36 | + 'tipAdjustmentX' => 15, |
|
37 | + ), |
|
38 | + ), |
|
39 | + 20 => array( |
|
40 | + 'id' => 'default_type', |
|
41 | + 'content' => $this->_default_view_stop(), |
|
42 | + 'options' => array( |
|
43 | + 'tipLocation' => 'right', |
|
44 | + 'tipAdjustmentY' => -50, |
|
45 | + 'tipAdjustmentX' => 15, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 30 => array( |
|
49 | + 'id' => 'event_list_grid_size', |
|
50 | + 'content' => $this->_event_list_grid_size_stop(), |
|
51 | + 'options' => array( |
|
52 | + 'tipLocation' => 'right', |
|
53 | + 'tipAdjustmentY' => -50, |
|
54 | + 'tipAdjustmentX' => 15, |
|
55 | + ), |
|
56 | + ), |
|
57 | + 40 => array( |
|
58 | + 'id' => 'display_description_in_event_list', |
|
59 | + 'content' => $this->_display_description_stop(), |
|
60 | + 'options' => array( |
|
61 | + 'tipLocation' => 'right', |
|
62 | + 'tipAdjustmentY' => -50, |
|
63 | + 'tipAdjustmentX' => 15, |
|
64 | + ), |
|
65 | + ), |
|
66 | + 50 => array( |
|
67 | + 'id' => 'display_address_in_event_list', |
|
68 | + 'content' => $this->_display_address_stop(), |
|
69 | + 'options' => array( |
|
70 | + 'tipLocation' => 'right', |
|
71 | + 'tipAdjustmentY' => -50, |
|
72 | + 'tipAdjustmentX' => 15, |
|
73 | + ), |
|
74 | + ), |
|
75 | + 60 => array( |
|
76 | + 'id' => 'display_venue_details_in_event_list', |
|
77 | + 'content' => $this->_display_venue_stop(), |
|
78 | + 'options' => array( |
|
79 | + 'tipLocation' => 'right', |
|
80 | + 'tipAdjustmentY' => -50, |
|
81 | + 'tipAdjustmentX' => 15, |
|
82 | + ), |
|
83 | + ), |
|
84 | + 70 => array( |
|
85 | + 'id' => 'display_expired_events', |
|
86 | + 'content' => $this->_display_expired_events_stop(), |
|
87 | + 'options' => array( |
|
88 | + 'tipLocation' => 'right', |
|
89 | + 'tipAdjustmentY' => -50, |
|
90 | + 'tipAdjustmentX' => 15, |
|
91 | + ), |
|
92 | + ), |
|
93 | + 80 => array( |
|
94 | + 'id' => 'event_listings_url', |
|
95 | + 'content' => $this->_event_listings_url_stop(), |
|
96 | + 'options' => array( |
|
97 | + 'tipLocation' => 'right', |
|
98 | + 'tipAdjustmentY' => -50, |
|
99 | + 'tipAdjustmentX' => 15, |
|
100 | + ), |
|
101 | + ), |
|
102 | + 90 => array( |
|
103 | + 'id' => 'reset_event_list_settings', |
|
104 | + 'content' => $this->_reset_event_list_settings_stop(), |
|
105 | + 'options' => array( |
|
106 | + 'tipLocation' => 'right', |
|
107 | + 'tipAdjustmentY' => -50, |
|
108 | + 'tipAdjustmentX' => 15, |
|
109 | + ), |
|
110 | + ), |
|
111 | + 100 => array( |
|
112 | + 'id' => 'display_status_banner', |
|
113 | + 'content' => $this->_display_status_banner_stop(), |
|
114 | + 'options' => array( |
|
115 | + 'tipLocation' => 'right', |
|
116 | + 'tipAdjustmentY' => -50, |
|
117 | + 'tipAdjustmentX' => 15, |
|
118 | + ), |
|
119 | + ), |
|
120 | + 110 => array( |
|
121 | + 'id' => 'display_address_in_regform', |
|
122 | + 'content' => $this->_display_address_in_reg_form_stop(), |
|
123 | + 'options' => array( |
|
124 | + 'tipLocation' => 'right', |
|
125 | + 'tipAdjustmentY' => -50, |
|
126 | + 'tipAdjustmentX' => 15, |
|
127 | + ), |
|
128 | + ), |
|
129 | + ); |
|
130 | + } |
|
131 | + |
|
132 | + |
|
133 | + protected function _start() |
|
134 | + { |
|
135 | + $content = '<h3>' . __('Template Settings', 'event_espresso') . '</h3>'; |
|
136 | + $content .= '<p>' |
|
137 | + . __( |
|
138 | + 'This tour of the Templates Page will go over different areas of the screen to help you understand what they are used for.', |
|
139 | + 'event_espresso' |
|
140 | + ) . '</p>'; |
|
141 | + return $content; |
|
142 | + } |
|
143 | + |
|
144 | + protected function _default_status_banner_single_stop() |
|
145 | + { |
|
146 | + return '<p>' |
|
147 | + . __( |
|
148 | + 'Specify whether event status banners should be shown next to the title on the single event page.', |
|
149 | + 'event_espresso' |
|
150 | + ) . '</p>'; |
|
151 | + } |
|
152 | + |
|
153 | + protected function _default_view_stop() |
|
154 | + { |
|
155 | + return '<p>' . __('Define how your basic event list will appear.', 'event_espresso') . '</p>'; |
|
156 | + } |
|
157 | + |
|
158 | + protected function _event_list_grid_size_stop() |
|
159 | + { |
|
160 | + return '<p>' |
|
161 | + . __( |
|
162 | + 'If you have selected grid view in the option above, then you can use these settings to change the size of the grids.', |
|
163 | + 'event_espresso' |
|
164 | + ) . '</p>'; |
|
165 | + } |
|
166 | + |
|
167 | + protected function _display_description_stop() |
|
168 | + { |
|
169 | + return '<p>' . __('Specify whether descriptions be shown on the event list.', 'event_espresso') . '</p>'; |
|
170 | + } |
|
171 | + |
|
172 | + protected function _display_address_stop() |
|
173 | + { |
|
174 | + return '<p>' |
|
175 | + . __( |
|
176 | + 'Specify whether the venue address be displayed on the event list.', |
|
177 | + 'event_espresso' |
|
178 | + ) . '</p>'; |
|
179 | + } |
|
180 | + |
|
181 | + protected function _display_venue_stop() |
|
182 | + { |
|
183 | + return '<p>' |
|
184 | + . __( |
|
185 | + 'Specify whether the venue information be displayed on the event list.', |
|
186 | + 'event_espresso' |
|
187 | + ) . '</p>'; |
|
188 | + } |
|
189 | + |
|
190 | + protected function _display_expired_events_stop() |
|
191 | + { |
|
192 | + return '<p>' . __('Should expired events be shown on the default event list.', 'event_espresso') . '</p>'; |
|
193 | + } |
|
194 | + |
|
195 | + protected function _event_listings_url_stop() |
|
196 | + { |
|
197 | + return '<p>' . __('This is the website address (URL) for your event listings page.', 'event_espresso') . '</p>'; |
|
198 | + } |
|
199 | + |
|
200 | + protected function _reset_event_list_settings_stop() |
|
201 | + { |
|
202 | + return '<p>' |
|
203 | + . __( |
|
204 | + 'Notice: When this option is set to yes, any customization from the above settings will be lost and your event list settings will be set to default.', |
|
205 | + 'event_espresso' |
|
206 | + ) . '</p>'; |
|
207 | + } |
|
208 | + |
|
209 | + protected function _display_status_banner_stop() |
|
210 | + { |
|
211 | + return '<p>' |
|
212 | + . __( |
|
213 | + 'Specify whether event status banners should be shown next to the title on the event list page.', |
|
214 | + 'event_espresso' |
|
215 | + ) . '</p>'; |
|
216 | + } |
|
217 | + |
|
218 | + protected function _display_address_in_reg_form_stop() |
|
219 | + { |
|
220 | + return '<p>' |
|
221 | + . __( |
|
222 | + 'Specify whether the address for a venue be shown on the single registration page.', |
|
223 | + 'event_espresso' |
|
224 | + ) . '</p>'; |
|
225 | + } |
|
226 | 226 | } |
@@ -132,12 +132,12 @@ discard block |
||
132 | 132 | |
133 | 133 | protected function _start() |
134 | 134 | { |
135 | - $content = '<h3>' . __('Template Settings', 'event_espresso') . '</h3>'; |
|
135 | + $content = '<h3>'.__('Template Settings', 'event_espresso').'</h3>'; |
|
136 | 136 | $content .= '<p>' |
137 | 137 | . __( |
138 | 138 | 'This tour of the Templates Page will go over different areas of the screen to help you understand what they are used for.', |
139 | 139 | 'event_espresso' |
140 | - ) . '</p>'; |
|
140 | + ).'</p>'; |
|
141 | 141 | return $content; |
142 | 142 | } |
143 | 143 | |
@@ -147,12 +147,12 @@ discard block |
||
147 | 147 | . __( |
148 | 148 | 'Specify whether event status banners should be shown next to the title on the single event page.', |
149 | 149 | 'event_espresso' |
150 | - ) . '</p>'; |
|
150 | + ).'</p>'; |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | protected function _default_view_stop() |
154 | 154 | { |
155 | - return '<p>' . __('Define how your basic event list will appear.', 'event_espresso') . '</p>'; |
|
155 | + return '<p>'.__('Define how your basic event list will appear.', 'event_espresso').'</p>'; |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | protected function _event_list_grid_size_stop() |
@@ -161,12 +161,12 @@ discard block |
||
161 | 161 | . __( |
162 | 162 | 'If you have selected grid view in the option above, then you can use these settings to change the size of the grids.', |
163 | 163 | 'event_espresso' |
164 | - ) . '</p>'; |
|
164 | + ).'</p>'; |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | protected function _display_description_stop() |
168 | 168 | { |
169 | - return '<p>' . __('Specify whether descriptions be shown on the event list.', 'event_espresso') . '</p>'; |
|
169 | + return '<p>'.__('Specify whether descriptions be shown on the event list.', 'event_espresso').'</p>'; |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | protected function _display_address_stop() |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | . __( |
176 | 176 | 'Specify whether the venue address be displayed on the event list.', |
177 | 177 | 'event_espresso' |
178 | - ) . '</p>'; |
|
178 | + ).'</p>'; |
|
179 | 179 | } |
180 | 180 | |
181 | 181 | protected function _display_venue_stop() |
@@ -184,17 +184,17 @@ discard block |
||
184 | 184 | . __( |
185 | 185 | 'Specify whether the venue information be displayed on the event list.', |
186 | 186 | 'event_espresso' |
187 | - ) . '</p>'; |
|
187 | + ).'</p>'; |
|
188 | 188 | } |
189 | 189 | |
190 | 190 | protected function _display_expired_events_stop() |
191 | 191 | { |
192 | - return '<p>' . __('Should expired events be shown on the default event list.', 'event_espresso') . '</p>'; |
|
192 | + return '<p>'.__('Should expired events be shown on the default event list.', 'event_espresso').'</p>'; |
|
193 | 193 | } |
194 | 194 | |
195 | 195 | protected function _event_listings_url_stop() |
196 | 196 | { |
197 | - return '<p>' . __('This is the website address (URL) for your event listings page.', 'event_espresso') . '</p>'; |
|
197 | + return '<p>'.__('This is the website address (URL) for your event listings page.', 'event_espresso').'</p>'; |
|
198 | 198 | } |
199 | 199 | |
200 | 200 | protected function _reset_event_list_settings_stop() |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | . __( |
204 | 204 | 'Notice: When this option is set to yes, any customization from the above settings will be lost and your event list settings will be set to default.', |
205 | 205 | 'event_espresso' |
206 | - ) . '</p>'; |
|
206 | + ).'</p>'; |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | protected function _display_status_banner_stop() |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | . __( |
213 | 213 | 'Specify whether event status banners should be shown next to the title on the event list page.', |
214 | 214 | 'event_espresso' |
215 | - ) . '</p>'; |
|
215 | + ).'</p>'; |
|
216 | 216 | } |
217 | 217 | |
218 | 218 | protected function _display_address_in_reg_form_stop() |
@@ -221,6 +221,6 @@ discard block |
||
221 | 221 | . __( |
222 | 222 | 'Specify whether the address for a venue be shown on the single registration page.', |
223 | 223 | 'event_espresso' |
224 | - ) . '</p>'; |
|
224 | + ).'</p>'; |
|
225 | 225 | } |
226 | 226 | } |
@@ -15,60 +15,60 @@ |
||
15 | 15 | class Event_Import_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Import Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'event-import-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Import Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'event-import-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_stop_one(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'content' => $this->_stop_two(), |
|
33 | - ), |
|
34 | - 30 => array( |
|
35 | - 'content' => $this->_stop_three(), |
|
36 | - ), |
|
37 | - 40 => array( |
|
38 | - 'content' => $this->_stop_four(), |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_stop_one(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'content' => $this->_stop_two(), |
|
33 | + ), |
|
34 | + 30 => array( |
|
35 | + 'content' => $this->_stop_three(), |
|
36 | + ), |
|
37 | + 40 => array( |
|
38 | + 'content' => $this->_stop_four(), |
|
39 | 39 | |
40 | - ), |
|
41 | - ); |
|
42 | - } |
|
40 | + ), |
|
41 | + ); |
|
42 | + } |
|
43 | 43 | |
44 | 44 | |
45 | - protected function _stop_one() |
|
46 | - { |
|
47 | - $content = '<h3>' . __('Import', 'event_espresso') . '</h3>'; |
|
48 | - $content .= '<p>' . __('Learn how to import information into Event Espresso.', 'event_espresso') . '</p>'; |
|
49 | - return $content; |
|
50 | - } |
|
45 | + protected function _stop_one() |
|
46 | + { |
|
47 | + $content = '<h3>' . __('Import', 'event_espresso') . '</h3>'; |
|
48 | + $content .= '<p>' . __('Learn how to import information into Event Espresso.', 'event_espresso') . '</p>'; |
|
49 | + return $content; |
|
50 | + } |
|
51 | 51 | |
52 | - protected function _stop_two() |
|
53 | - { |
|
54 | - return '<p>' |
|
55 | - . __( |
|
56 | - 'A sample CSV file can be downloaded by creating an event through the Event Editor and then saving that event. Then return to the Event Overview screen and hover of the name of the event and click on Export.', |
|
57 | - 'event_espresso' |
|
58 | - ) . '</p>'; |
|
59 | - } |
|
52 | + protected function _stop_two() |
|
53 | + { |
|
54 | + return '<p>' |
|
55 | + . __( |
|
56 | + 'A sample CSV file can be downloaded by creating an event through the Event Editor and then saving that event. Then return to the Event Overview screen and hover of the name of the event and click on Export.', |
|
57 | + 'event_espresso' |
|
58 | + ) . '</p>'; |
|
59 | + } |
|
60 | 60 | |
61 | - protected function _stop_three() |
|
62 | - { |
|
63 | - return '<p>' |
|
64 | - . __( |
|
65 | - 'Click on Choose File and browse to the location of your CSV file on your computer.', |
|
66 | - 'event_espresso' |
|
67 | - ) . '</p>'; |
|
68 | - } |
|
61 | + protected function _stop_three() |
|
62 | + { |
|
63 | + return '<p>' |
|
64 | + . __( |
|
65 | + 'Click on Choose File and browse to the location of your CSV file on your computer.', |
|
66 | + 'event_espresso' |
|
67 | + ) . '</p>'; |
|
68 | + } |
|
69 | 69 | |
70 | - protected function _stop_four() |
|
71 | - { |
|
72 | - return '<p>' . __('Click on Upload File.', 'event_espresso') . '</p>'; |
|
73 | - } |
|
70 | + protected function _stop_four() |
|
71 | + { |
|
72 | + return '<p>' . __('Click on Upload File.', 'event_espresso') . '</p>'; |
|
73 | + } |
|
74 | 74 | } |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | |
45 | 45 | protected function _stop_one() |
46 | 46 | { |
47 | - $content = '<h3>' . __('Import', 'event_espresso') . '</h3>'; |
|
48 | - $content .= '<p>' . __('Learn how to import information into Event Espresso.', 'event_espresso') . '</p>'; |
|
47 | + $content = '<h3>'.__('Import', 'event_espresso').'</h3>'; |
|
48 | + $content .= '<p>'.__('Learn how to import information into Event Espresso.', 'event_espresso').'</p>'; |
|
49 | 49 | return $content; |
50 | 50 | } |
51 | 51 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | . __( |
56 | 56 | 'A sample CSV file can be downloaded by creating an event through the Event Editor and then saving that event. Then return to the Event Overview screen and hover of the name of the event and click on Export.', |
57 | 57 | 'event_espresso' |
58 | - ) . '</p>'; |
|
58 | + ).'</p>'; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | protected function _stop_three() |
@@ -64,11 +64,11 @@ discard block |
||
64 | 64 | . __( |
65 | 65 | 'Click on Choose File and browse to the location of your CSV file on your computer.', |
66 | 66 | 'event_espresso' |
67 | - ) . '</p>'; |
|
67 | + ).'</p>'; |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | protected function _stop_four() |
71 | 71 | { |
72 | - return '<p>' . __('Click on Upload File.', 'event_espresso') . '</p>'; |
|
72 | + return '<p>'.__('Click on Upload File.', 'event_espresso').'</p>'; |
|
73 | 73 | } |
74 | 74 | } |
@@ -15,55 +15,55 @@ |
||
15 | 15 | class Event_Default_Settings_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Default Settings Tour', 'event_espresso'); |
|
21 | - $this->_slug = $this->_is_caf ? 'event-default-settings-caf-joyride' : 'event-default-settings-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Default Settings Tour', 'event_espresso'); |
|
21 | + $this->_slug = $this->_is_caf ? 'event-default-settings-caf-joyride' : 'event-default-settings-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_stop_one(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'default_reg_status', |
|
33 | - 'content' => $this->_stop_two(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'right', |
|
36 | - 'tipAdjustmentY' => -50, |
|
37 | - 'tipAdjustmentX' => 15, |
|
38 | - ), |
|
39 | - ), |
|
40 | - ); |
|
41 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_stop_one(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'default_reg_status', |
|
33 | + 'content' => $this->_stop_two(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'right', |
|
36 | + 'tipAdjustmentY' => -50, |
|
37 | + 'tipAdjustmentX' => 15, |
|
38 | + ), |
|
39 | + ), |
|
40 | + ); |
|
41 | + } |
|
42 | 42 | |
43 | 43 | |
44 | - protected function _stop_one() |
|
45 | - { |
|
46 | - $content = '<h3>' . __('Event Default Settings', 'event_espresso') . '</h3>'; |
|
47 | - $content .= '<p>' |
|
48 | - . __( |
|
49 | - 'This tour of the Default Settings page will go over different areas of the screen to help you understand what they are used for.', |
|
50 | - 'event_espresso' |
|
51 | - ) . '</p>'; |
|
52 | - return $content; |
|
53 | - } |
|
44 | + protected function _stop_one() |
|
45 | + { |
|
46 | + $content = '<h3>' . __('Event Default Settings', 'event_espresso') . '</h3>'; |
|
47 | + $content .= '<p>' |
|
48 | + . __( |
|
49 | + 'This tour of the Default Settings page will go over different areas of the screen to help you understand what they are used for.', |
|
50 | + 'event_espresso' |
|
51 | + ) . '</p>'; |
|
52 | + return $content; |
|
53 | + } |
|
54 | 54 | |
55 | - // Options below are showing in full caps. Manually adding statuses and leaving code as is. |
|
56 | - protected function _stop_two() |
|
57 | - { |
|
58 | - return '<p>' |
|
59 | - . sprintf( |
|
60 | - __( |
|
61 | - 'Specify whether the default registration status be set to Approved, Not Approved, or Pending Payment.', |
|
62 | - 'event_espresso' |
|
63 | - ), |
|
64 | - EEH_Template::pretty_status(EEM_Registration::status_id_not_approved, 'lowercase'), |
|
65 | - EEH_Template::pretty_status(EEM_Registration::status_id_pending_payment, 'lowercase'), |
|
66 | - EEH_Template::pretty_status(EEM_Registration::status_id_approved, 'lowercase') |
|
67 | - ) . '</p>'; |
|
68 | - } |
|
55 | + // Options below are showing in full caps. Manually adding statuses and leaving code as is. |
|
56 | + protected function _stop_two() |
|
57 | + { |
|
58 | + return '<p>' |
|
59 | + . sprintf( |
|
60 | + __( |
|
61 | + 'Specify whether the default registration status be set to Approved, Not Approved, or Pending Payment.', |
|
62 | + 'event_espresso' |
|
63 | + ), |
|
64 | + EEH_Template::pretty_status(EEM_Registration::status_id_not_approved, 'lowercase'), |
|
65 | + EEH_Template::pretty_status(EEM_Registration::status_id_pending_payment, 'lowercase'), |
|
66 | + EEH_Template::pretty_status(EEM_Registration::status_id_approved, 'lowercase') |
|
67 | + ) . '</p>'; |
|
68 | + } |
|
69 | 69 | } |
@@ -43,12 +43,12 @@ discard block |
||
43 | 43 | |
44 | 44 | protected function _stop_one() |
45 | 45 | { |
46 | - $content = '<h3>' . __('Event Default Settings', 'event_espresso') . '</h3>'; |
|
46 | + $content = '<h3>'.__('Event Default Settings', 'event_espresso').'</h3>'; |
|
47 | 47 | $content .= '<p>' |
48 | 48 | . __( |
49 | 49 | 'This tour of the Default Settings page will go over different areas of the screen to help you understand what they are used for.', |
50 | 50 | 'event_espresso' |
51 | - ) . '</p>'; |
|
51 | + ).'</p>'; |
|
52 | 52 | return $content; |
53 | 53 | } |
54 | 54 | |
@@ -64,6 +64,6 @@ discard block |
||
64 | 64 | EEH_Template::pretty_status(EEM_Registration::status_id_not_approved, 'lowercase'), |
65 | 65 | EEH_Template::pretty_status(EEM_Registration::status_id_pending_payment, 'lowercase'), |
66 | 66 | EEH_Template::pretty_status(EEM_Registration::status_id_approved, 'lowercase') |
67 | - ) . '</p>'; |
|
67 | + ).'</p>'; |
|
68 | 68 | } |
69 | 69 | } |