@@ -15,107 +15,107 @@ |
||
15 | 15 | class Critical_Pages_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Critical Pages Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'critical-pages-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Critical Pages Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'critical-pages-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' => 'reg_page_id', |
|
32 | - 'content' => $this->_reg_page_id_stop(), |
|
33 | - 'options' => array( |
|
34 | - 'tipLocation' => 'right', |
|
35 | - 'tipAdjustmentY' => -50, |
|
36 | - 'tipAdjustmentX' => 15, |
|
37 | - ), |
|
38 | - ), |
|
39 | - 30 => array( |
|
40 | - 'id' => 'txn_page_id', |
|
41 | - 'content' => $this->_txn_page_id_stop(), |
|
42 | - 'options' => array( |
|
43 | - 'tipLocation' => 'right', |
|
44 | - 'tipAdjustmentY' => -50, |
|
45 | - 'tipAdjustmentX' => 15, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 40 => array( |
|
49 | - 'id' => 'thank_you_page_id', |
|
50 | - 'content' => $this->_thank_you_page_id_stop(), |
|
51 | - 'options' => array( |
|
52 | - 'tipLocation' => 'right', |
|
53 | - 'tipAdjustmentY' => -50, |
|
54 | - 'tipAdjustmentX' => 15, |
|
55 | - ), |
|
56 | - ), |
|
57 | - 50 => array( |
|
58 | - 'id' => 'cancel_page_id', |
|
59 | - 'content' => $this->_cancel_page_id_stop(), |
|
60 | - 'options' => array( |
|
61 | - 'tipLocation' => 'right', |
|
62 | - 'tipAdjustmentY' => -50, |
|
63 | - 'tipAdjustmentX' => 15, |
|
64 | - ), |
|
65 | - ), |
|
66 | - ); |
|
67 | - } |
|
24 | + protected function _set_tour_stops() |
|
25 | + { |
|
26 | + $this->_stops = array( |
|
27 | + 10 => array( |
|
28 | + 'content' => $this->_start(), |
|
29 | + ), |
|
30 | + 20 => array( |
|
31 | + 'id' => 'reg_page_id', |
|
32 | + 'content' => $this->_reg_page_id_stop(), |
|
33 | + 'options' => array( |
|
34 | + 'tipLocation' => 'right', |
|
35 | + 'tipAdjustmentY' => -50, |
|
36 | + 'tipAdjustmentX' => 15, |
|
37 | + ), |
|
38 | + ), |
|
39 | + 30 => array( |
|
40 | + 'id' => 'txn_page_id', |
|
41 | + 'content' => $this->_txn_page_id_stop(), |
|
42 | + 'options' => array( |
|
43 | + 'tipLocation' => 'right', |
|
44 | + 'tipAdjustmentY' => -50, |
|
45 | + 'tipAdjustmentX' => 15, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 40 => array( |
|
49 | + 'id' => 'thank_you_page_id', |
|
50 | + 'content' => $this->_thank_you_page_id_stop(), |
|
51 | + 'options' => array( |
|
52 | + 'tipLocation' => 'right', |
|
53 | + 'tipAdjustmentY' => -50, |
|
54 | + 'tipAdjustmentX' => 15, |
|
55 | + ), |
|
56 | + ), |
|
57 | + 50 => array( |
|
58 | + 'id' => 'cancel_page_id', |
|
59 | + 'content' => $this->_cancel_page_id_stop(), |
|
60 | + 'options' => array( |
|
61 | + 'tipLocation' => 'right', |
|
62 | + 'tipAdjustmentY' => -50, |
|
63 | + 'tipAdjustmentX' => 15, |
|
64 | + ), |
|
65 | + ), |
|
66 | + ); |
|
67 | + } |
|
68 | 68 | |
69 | 69 | |
70 | - protected function _start() |
|
71 | - { |
|
72 | - $content = '<h3>' . __('Critical Pages', 'event_espresso') . '</h3>'; |
|
73 | - $content .= '<p>' |
|
74 | - . __( |
|
75 | - 'This section lists the pages that Event Espresso needs in order to function. Should you wish to change a page that is used you will need to move the shortcode to the new page and then allocate it here. Otherwise your registrations will not work correctly.', |
|
76 | - 'event_espresso' |
|
77 | - ) . '</p>'; |
|
78 | - $content .= '<p>' |
|
79 | - . __( |
|
80 | - 'This section also provides a status of the page to show you at a glance if something is not right.', |
|
81 | - 'event_espresso' |
|
82 | - ) . '</p>'; |
|
83 | - return $content; |
|
84 | - } |
|
70 | + protected function _start() |
|
71 | + { |
|
72 | + $content = '<h3>' . __('Critical Pages', 'event_espresso') . '</h3>'; |
|
73 | + $content .= '<p>' |
|
74 | + . __( |
|
75 | + 'This section lists the pages that Event Espresso needs in order to function. Should you wish to change a page that is used you will need to move the shortcode to the new page and then allocate it here. Otherwise your registrations will not work correctly.', |
|
76 | + 'event_espresso' |
|
77 | + ) . '</p>'; |
|
78 | + $content .= '<p>' |
|
79 | + . __( |
|
80 | + 'This section also provides a status of the page to show you at a glance if something is not right.', |
|
81 | + 'event_espresso' |
|
82 | + ) . '</p>'; |
|
83 | + return $content; |
|
84 | + } |
|
85 | 85 | |
86 | - protected function _reg_page_id_stop() |
|
87 | - { |
|
88 | - return '<p>' |
|
89 | - . __( |
|
90 | - 'This page processes the registrations and is required, even if it is not visible in your menus. ', |
|
91 | - 'event_espresso' |
|
92 | - ) . '</p>'; |
|
93 | - } |
|
86 | + protected function _reg_page_id_stop() |
|
87 | + { |
|
88 | + return '<p>' |
|
89 | + . __( |
|
90 | + 'This page processes the registrations and is required, even if it is not visible in your menus. ', |
|
91 | + 'event_espresso' |
|
92 | + ) . '</p>'; |
|
93 | + } |
|
94 | 94 | |
95 | - protected function _txn_page_id_stop() |
|
96 | - { |
|
97 | - return '<p>' |
|
98 | - . __( |
|
99 | - 'This page processes payments. It should not be visible on your menus, and the page should not contain anything other than the shortcode.', |
|
100 | - 'event_espresso' |
|
101 | - ) . '</p>'; |
|
102 | - } |
|
95 | + protected function _txn_page_id_stop() |
|
96 | + { |
|
97 | + return '<p>' |
|
98 | + . __( |
|
99 | + 'This page processes payments. It should not be visible on your menus, and the page should not contain anything other than the shortcode.', |
|
100 | + 'event_espresso' |
|
101 | + ) . '</p>'; |
|
102 | + } |
|
103 | 103 | |
104 | - protected function _thank_you_page_id_stop() |
|
105 | - { |
|
106 | - return '<p>' |
|
107 | - . __( |
|
108 | - 'This page is displayed after a successful transaction. Feel free to add extra content to this page to personalise it!', |
|
109 | - 'event_espresso' |
|
110 | - ) . '</p>'; |
|
111 | - } |
|
104 | + protected function _thank_you_page_id_stop() |
|
105 | + { |
|
106 | + return '<p>' |
|
107 | + . __( |
|
108 | + 'This page is displayed after a successful transaction. Feel free to add extra content to this page to personalise it!', |
|
109 | + 'event_espresso' |
|
110 | + ) . '</p>'; |
|
111 | + } |
|
112 | 112 | |
113 | - protected function _cancel_page_id_stop() |
|
114 | - { |
|
115 | - return '<p>' |
|
116 | - . __( |
|
117 | - 'This page is displayed after an unsuccessful transaction. Feel free to add extra content to this page to personalise it!', |
|
118 | - 'event_espresso' |
|
119 | - ) . '</p>'; |
|
120 | - } |
|
113 | + protected function _cancel_page_id_stop() |
|
114 | + { |
|
115 | + return '<p>' |
|
116 | + . __( |
|
117 | + 'This page is displayed after an unsuccessful transaction. Feel free to add extra content to this page to personalise it!', |
|
118 | + 'event_espresso' |
|
119 | + ) . '</p>'; |
|
120 | + } |
|
121 | 121 | } |
@@ -69,17 +69,17 @@ discard block |
||
69 | 69 | |
70 | 70 | protected function _start() |
71 | 71 | { |
72 | - $content = '<h3>' . __('Critical Pages', 'event_espresso') . '</h3>'; |
|
72 | + $content = '<h3>'.__('Critical Pages', 'event_espresso').'</h3>'; |
|
73 | 73 | $content .= '<p>' |
74 | 74 | . __( |
75 | 75 | 'This section lists the pages that Event Espresso needs in order to function. Should you wish to change a page that is used you will need to move the shortcode to the new page and then allocate it here. Otherwise your registrations will not work correctly.', |
76 | 76 | 'event_espresso' |
77 | - ) . '</p>'; |
|
77 | + ).'</p>'; |
|
78 | 78 | $content .= '<p>' |
79 | 79 | . __( |
80 | 80 | 'This section also provides a status of the page to show you at a glance if something is not right.', |
81 | 81 | 'event_espresso' |
82 | - ) . '</p>'; |
|
82 | + ).'</p>'; |
|
83 | 83 | return $content; |
84 | 84 | } |
85 | 85 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | . __( |
90 | 90 | 'This page processes the registrations and is required, even if it is not visible in your menus. ', |
91 | 91 | 'event_espresso' |
92 | - ) . '</p>'; |
|
92 | + ).'</p>'; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | protected function _txn_page_id_stop() |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | . __( |
99 | 99 | 'This page processes payments. It should not be visible on your menus, and the page should not contain anything other than the shortcode.', |
100 | 100 | 'event_espresso' |
101 | - ) . '</p>'; |
|
101 | + ).'</p>'; |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | protected function _thank_you_page_id_stop() |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | . __( |
108 | 108 | 'This page is displayed after a successful transaction. Feel free to add extra content to this page to personalise it!', |
109 | 109 | 'event_espresso' |
110 | - ) . '</p>'; |
|
110 | + ).'</p>'; |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | protected function _cancel_page_id_stop() |
@@ -116,6 +116,6 @@ discard block |
||
116 | 116 | . __( |
117 | 117 | 'This page is displayed after an unsuccessful transaction. Feel free to add extra content to this page to personalise it!', |
118 | 118 | 'event_espresso' |
119 | - ) . '</p>'; |
|
119 | + ).'</p>'; |
|
120 | 120 | } |
121 | 121 | } |
@@ -15,136 +15,136 @@ |
||
15 | 15 | class Your_Organization_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Your Organization Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'your-organization-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Your Organization Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'your-organization-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 30 => array( |
|
32 | - 'id' => 'contact_info_h4', |
|
33 | - 'content' => $this->_contact_information_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'left', |
|
36 | - 'tipAdjustmentY' => -50, |
|
37 | - 'tipAdjustmentX' => 15, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 40 => array( |
|
41 | - 'id' => 'upload_image', |
|
42 | - 'content' => $this->_upload_image_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'right', |
|
45 | - 'tipAdjustmentY' => -50, |
|
46 | - 'tipAdjustmentX' => 15, |
|
47 | - ), |
|
48 | - ), |
|
49 | - 50 => array( |
|
50 | - 'id' => 'organization_facebook', |
|
51 | - 'content' => $this->_organization_facebook_stop(), |
|
52 | - 'options' => array( |
|
53 | - 'tipLocation' => 'right', |
|
54 | - 'tipAdjustmentY' => -50, |
|
55 | - 'tipAdjustmentX' => 15, |
|
56 | - ), |
|
57 | - ), |
|
58 | - 60 => array( |
|
59 | - 'id' => 'ueip_optin', |
|
60 | - 'content' => $this->_ueip_option_stop(), |
|
61 | - 'options' => array( |
|
62 | - 'tipLocation' => 'right', |
|
63 | - 'tipAdjustmentY' => -50, |
|
64 | - 'tipAdjustmentX' => 15, |
|
65 | - ), |
|
66 | - ), |
|
67 | - 70 => array( |
|
68 | - 'id' => 'espresso_major_buttons_wrapper', |
|
69 | - 'content' => $this->_end_tour_stop(), |
|
70 | - 'options' => array( |
|
71 | - 'tipLocation' => 'right', |
|
72 | - 'tipAdjustmentY' => -50, |
|
73 | - 'tipAdjustmentX' => 185, |
|
74 | - ), |
|
75 | - ), |
|
76 | - ); |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 30 => array( |
|
32 | + 'id' => 'contact_info_h4', |
|
33 | + 'content' => $this->_contact_information_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'left', |
|
36 | + 'tipAdjustmentY' => -50, |
|
37 | + 'tipAdjustmentX' => 15, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 40 => array( |
|
41 | + 'id' => 'upload_image', |
|
42 | + 'content' => $this->_upload_image_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'right', |
|
45 | + 'tipAdjustmentY' => -50, |
|
46 | + 'tipAdjustmentX' => 15, |
|
47 | + ), |
|
48 | + ), |
|
49 | + 50 => array( |
|
50 | + 'id' => 'organization_facebook', |
|
51 | + 'content' => $this->_organization_facebook_stop(), |
|
52 | + 'options' => array( |
|
53 | + 'tipLocation' => 'right', |
|
54 | + 'tipAdjustmentY' => -50, |
|
55 | + 'tipAdjustmentX' => 15, |
|
56 | + ), |
|
57 | + ), |
|
58 | + 60 => array( |
|
59 | + 'id' => 'ueip_optin', |
|
60 | + 'content' => $this->_ueip_option_stop(), |
|
61 | + 'options' => array( |
|
62 | + 'tipLocation' => 'right', |
|
63 | + 'tipAdjustmentY' => -50, |
|
64 | + 'tipAdjustmentX' => 15, |
|
65 | + ), |
|
66 | + ), |
|
67 | + 70 => array( |
|
68 | + 'id' => 'espresso_major_buttons_wrapper', |
|
69 | + 'content' => $this->_end_tour_stop(), |
|
70 | + 'options' => array( |
|
71 | + 'tipLocation' => 'right', |
|
72 | + 'tipAdjustmentY' => -50, |
|
73 | + 'tipAdjustmentX' => 185, |
|
74 | + ), |
|
75 | + ), |
|
76 | + ); |
|
77 | 77 | |
78 | - if (is_main_site()) { |
|
79 | - $this->_stops[20] = array( |
|
80 | - 'id' => 'site_license_key', |
|
81 | - 'content' => $this->_site_license_key_stop(), |
|
82 | - 'options' => array( |
|
83 | - 'tipLocation' => 'right', |
|
84 | - 'tipAdjustmentY' => -50, |
|
85 | - 'tipAdjustmentX' => 15, |
|
86 | - ), |
|
87 | - ); |
|
88 | - } |
|
89 | - ksort($this->_stops); |
|
90 | - } |
|
78 | + if (is_main_site()) { |
|
79 | + $this->_stops[20] = array( |
|
80 | + 'id' => 'site_license_key', |
|
81 | + 'content' => $this->_site_license_key_stop(), |
|
82 | + 'options' => array( |
|
83 | + 'tipLocation' => 'right', |
|
84 | + 'tipAdjustmentY' => -50, |
|
85 | + 'tipAdjustmentX' => 15, |
|
86 | + ), |
|
87 | + ); |
|
88 | + } |
|
89 | + ksort($this->_stops); |
|
90 | + } |
|
91 | 91 | |
92 | 92 | |
93 | - protected function _start() |
|
94 | - { |
|
95 | - $content = '<h3>' . __('Organization Settings', 'event_espresso') . '</h3>'; |
|
96 | - $content .= '<p>' |
|
97 | - . __( |
|
98 | - 'This tour of the Your Organization page will go over different areas of the screen to help you understand what they are used for.', |
|
99 | - 'event_espresso' |
|
100 | - ) . '</p>'; |
|
93 | + protected function _start() |
|
94 | + { |
|
95 | + $content = '<h3>' . __('Organization Settings', 'event_espresso') . '</h3>'; |
|
96 | + $content .= '<p>' |
|
97 | + . __( |
|
98 | + 'This tour of the Your Organization page will go over different areas of the screen to help you understand what they are used for.', |
|
99 | + 'event_espresso' |
|
100 | + ) . '</p>'; |
|
101 | 101 | |
102 | - return $content; |
|
103 | - } |
|
102 | + return $content; |
|
103 | + } |
|
104 | 104 | |
105 | - protected function _site_license_key_stop() |
|
106 | - { |
|
107 | - return '<p>' |
|
108 | - . __( |
|
109 | - 'Enter your support license key here to enable one-click updates.', |
|
110 | - 'event_espresso' |
|
111 | - ) . '</p>'; |
|
112 | - } |
|
105 | + protected function _site_license_key_stop() |
|
106 | + { |
|
107 | + return '<p>' |
|
108 | + . __( |
|
109 | + 'Enter your support license key here to enable one-click updates.', |
|
110 | + 'event_espresso' |
|
111 | + ) . '</p>'; |
|
112 | + } |
|
113 | 113 | |
114 | - protected function _contact_information_stop() |
|
115 | - { |
|
116 | - return '<p>' |
|
117 | - . __( |
|
118 | - 'You can change your business / organization information below. Be sure to keep this information updated as it is used in other areas of the site. Adjusting the country option here will update your currency settings. More options are available in the Countries tab.', |
|
119 | - 'event_espresso' |
|
120 | - ) . '</p>'; |
|
121 | - } |
|
114 | + protected function _contact_information_stop() |
|
115 | + { |
|
116 | + return '<p>' |
|
117 | + . __( |
|
118 | + 'You can change your business / organization information below. Be sure to keep this information updated as it is used in other areas of the site. Adjusting the country option here will update your currency settings. More options are available in the Countries tab.', |
|
119 | + 'event_espresso' |
|
120 | + ) . '</p>'; |
|
121 | + } |
|
122 | 122 | |
123 | - protected function _upload_image_stop() |
|
124 | - { |
|
125 | - return '<p>' . __('Add a logo. This can be used for invoices and tickets.', 'event_espresso') . '</p>'; |
|
126 | - } |
|
123 | + protected function _upload_image_stop() |
|
124 | + { |
|
125 | + return '<p>' . __('Add a logo. This can be used for invoices and tickets.', 'event_espresso') . '</p>'; |
|
126 | + } |
|
127 | 127 | |
128 | - protected function _organization_facebook_stop() |
|
129 | - { |
|
130 | - return '<p>' . __('Add links to various social media networks.', 'event_espresso') . '</p>'; |
|
131 | - } |
|
128 | + protected function _organization_facebook_stop() |
|
129 | + { |
|
130 | + return '<p>' . __('Add links to various social media networks.', 'event_espresso') . '</p>'; |
|
131 | + } |
|
132 | 132 | |
133 | - protected function _ueip_option_stop() |
|
134 | - { |
|
135 | - return '<p>' |
|
136 | - . __( |
|
137 | - 'Help us to help you! Sign up to the User eXperience Improvement Program and send us anonymous data that will help us improve Event Espresso.', |
|
138 | - 'event_espresso' |
|
139 | - ) . '</p>'; |
|
140 | - } |
|
133 | + protected function _ueip_option_stop() |
|
134 | + { |
|
135 | + return '<p>' |
|
136 | + . __( |
|
137 | + 'Help us to help you! Sign up to the User eXperience Improvement Program and send us anonymous data that will help us improve Event Espresso.', |
|
138 | + 'event_espresso' |
|
139 | + ) . '</p>'; |
|
140 | + } |
|
141 | 141 | |
142 | - protected function _end_tour_stop() |
|
143 | - { |
|
144 | - return '<p>' |
|
145 | - . __( |
|
146 | - 'You are almost done updating Your Organization information. Click on the Save button to save changes and then go to the Payment Methods screen so you can setup a payment gateway.', |
|
147 | - 'event_espresso' |
|
148 | - ) . '</p>'; |
|
149 | - } |
|
142 | + protected function _end_tour_stop() |
|
143 | + { |
|
144 | + return '<p>' |
|
145 | + . __( |
|
146 | + 'You are almost done updating Your Organization information. Click on the Save button to save changes and then go to the Payment Methods screen so you can setup a payment gateway.', |
|
147 | + 'event_espresso' |
|
148 | + ) . '</p>'; |
|
149 | + } |
|
150 | 150 | } |
@@ -92,12 +92,12 @@ discard block |
||
92 | 92 | |
93 | 93 | protected function _start() |
94 | 94 | { |
95 | - $content = '<h3>' . __('Organization Settings', 'event_espresso') . '</h3>'; |
|
95 | + $content = '<h3>'.__('Organization Settings', 'event_espresso').'</h3>'; |
|
96 | 96 | $content .= '<p>' |
97 | 97 | . __( |
98 | 98 | 'This tour of the Your Organization page will go over different areas of the screen to help you understand what they are used for.', |
99 | 99 | 'event_espresso' |
100 | - ) . '</p>'; |
|
100 | + ).'</p>'; |
|
101 | 101 | |
102 | 102 | return $content; |
103 | 103 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | . __( |
109 | 109 | 'Enter your support license key here to enable one-click updates.', |
110 | 110 | 'event_espresso' |
111 | - ) . '</p>'; |
|
111 | + ).'</p>'; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | protected function _contact_information_stop() |
@@ -117,17 +117,17 @@ discard block |
||
117 | 117 | . __( |
118 | 118 | 'You can change your business / organization information below. Be sure to keep this information updated as it is used in other areas of the site. Adjusting the country option here will update your currency settings. More options are available in the Countries tab.', |
119 | 119 | 'event_espresso' |
120 | - ) . '</p>'; |
|
120 | + ).'</p>'; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | protected function _upload_image_stop() |
124 | 124 | { |
125 | - return '<p>' . __('Add a logo. This can be used for invoices and tickets.', 'event_espresso') . '</p>'; |
|
125 | + return '<p>'.__('Add a logo. This can be used for invoices and tickets.', 'event_espresso').'</p>'; |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | protected function _organization_facebook_stop() |
129 | 129 | { |
130 | - return '<p>' . __('Add links to various social media networks.', 'event_espresso') . '</p>'; |
|
130 | + return '<p>'.__('Add links to various social media networks.', 'event_espresso').'</p>'; |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | protected function _ueip_option_stop() |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | . __( |
137 | 137 | 'Help us to help you! Sign up to the User eXperience Improvement Program and send us anonymous data that will help us improve Event Espresso.', |
138 | 138 | 'event_espresso' |
139 | - ) . '</p>'; |
|
139 | + ).'</p>'; |
|
140 | 140 | } |
141 | 141 | |
142 | 142 | protected function _end_tour_stop() |
@@ -145,6 +145,6 @@ discard block |
||
145 | 145 | . __( |
146 | 146 | 'You are almost done updating Your Organization information. Click on the Save button to save changes and then go to the Payment Methods screen so you can setup a payment gateway.', |
147 | 147 | 'event_espresso' |
148 | - ) . '</p>'; |
|
148 | + ).'</p>'; |
|
149 | 149 | } |
150 | 150 | } |
@@ -15,137 +15,137 @@ |
||
15 | 15 | class Message_Templates_Edit_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Message Template Editor Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'messages-templates-edit-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' => 'submit-msg-context-switcher-sbmt', |
|
33 | - 'content' => $this->_context_switcher_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'bottom', |
|
36 | - 'tipAdjustmentY' => -30, |
|
37 | - 'tipAdjustmentX' => -60, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'class' => 'messages-preview-button"', |
|
42 | - 'content' => $this->_preview_button_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'bottom', |
|
45 | - 'tipAdjustmentY' => -30, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 40 => array( |
|
49 | - 'content' => $this->_template_area_stop(), |
|
50 | - 'options' => array( |
|
51 | - 'tipAdjustmentY' => -100, |
|
52 | - 'tipAdjustmentX' => -60, |
|
53 | - ), |
|
54 | - ), |
|
55 | - 50 => array( |
|
56 | - 'id' => 'mtp_valid_shortcodes', |
|
57 | - 'content' => $this->_mtp_valid_shortcodes_stop(), |
|
58 | - 'options' => array( |
|
59 | - 'tipLocation' => 'left', |
|
60 | - 'tipAdjustmentY' => -50, |
|
61 | - 'tipAdjustmentX' => -15, |
|
62 | - ), |
|
63 | - ), |
|
64 | - 60 => array( |
|
65 | - 'id' => 'mtp_extra_actions', |
|
66 | - 'content' => $this->_mtp_extra_actions_stop(), |
|
67 | - 'options' => array( |
|
68 | - 'tipLocation' => 'left', |
|
69 | - 'tipAdjustmentY' => -50, |
|
70 | - 'tipAdjustmentX' => -15, |
|
71 | - ), |
|
72 | - ), |
|
73 | - 70 => array( |
|
74 | - 'id' => 'espresso_espresso_messages_editor_overview', |
|
75 | - 'content' => $this->_update_metabox_stop(), |
|
76 | - 'options' => array( |
|
77 | - 'tipLocation' => 'left', |
|
78 | - 'tipAdjustmentY' => -50, |
|
79 | - 'tipAdjustmentX' => -15, |
|
80 | - ), |
|
81 | - ), |
|
82 | - ); |
|
83 | - } |
|
84 | - |
|
85 | - |
|
86 | - protected function _start() |
|
87 | - { |
|
88 | - $content = '<h3>' . __('Message Template Editor', 'event_espresso') . '</h3>'; |
|
89 | - $content .= '<p>' |
|
90 | - . __( |
|
91 | - 'This tour of the Message Template Editor page will go over different areas of the screen to help you understand what they are used for.', |
|
92 | - 'event_espresso' |
|
93 | - ) . '</p>'; |
|
94 | - return $content; |
|
95 | - } |
|
96 | - |
|
97 | - |
|
98 | - protected function _context_switcher_stop() |
|
99 | - { |
|
100 | - return '<p>' |
|
101 | - . __( |
|
102 | - 'This dropdown allows you to swap between the different recipients templates that are available in this message type. Be sure to save changes befor switching to a different context.', |
|
103 | - 'event_espresso' |
|
104 | - ) . '</p>'; |
|
105 | - } |
|
106 | - |
|
107 | - |
|
108 | - protected function _preview_button_stop() |
|
109 | - { |
|
110 | - return '<p>' |
|
111 | - . __( |
|
112 | - 'Clicking this button will show you a preview of how your message will look.', |
|
113 | - 'event_espresso' |
|
114 | - ) . '</p>'; |
|
115 | - } |
|
116 | - |
|
117 | - |
|
118 | - protected function _template_area_stop() |
|
119 | - { |
|
120 | - return '<p>' |
|
121 | - . __( |
|
122 | - 'Depending on the messenger (recipient) and the message type, the main screen can show different boxes. Overall the screen allows you to confirm who the messages go to and who from, and the actual content of the message.', |
|
123 | - 'event_espresso' |
|
124 | - ) . '</p>'; |
|
125 | - } |
|
126 | - |
|
127 | - protected function _mtp_valid_shortcodes_stop() |
|
128 | - { |
|
129 | - return '<p>' |
|
130 | - . __( |
|
131 | - 'These shortcodes allow you to quickly add data into your messages, without touching code. From emails, to ticket details, to your company logo, building messages with shortcodes is easy and fast.', |
|
132 | - 'event_espresso' |
|
133 | - ) . '</p>'; |
|
134 | - } |
|
135 | - |
|
136 | - |
|
137 | - protected function _mtp_extra_actions_stop() |
|
138 | - { |
|
139 | - return '<p>' |
|
140 | - . __( |
|
141 | - 'Here you will find miscellaneous options to assist you, including a test send button and a reset button.', |
|
142 | - 'event_espresso' |
|
143 | - ) . '</p>'; |
|
144 | - } |
|
145 | - |
|
146 | - |
|
147 | - protected function _update_metabox_stop() |
|
148 | - { |
|
149 | - return '<p>' . __('When done creating your message, click here to save it.', 'event_espresso') . '</p>'; |
|
150 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Message Template Editor Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'messages-templates-edit-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' => 'submit-msg-context-switcher-sbmt', |
|
33 | + 'content' => $this->_context_switcher_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'bottom', |
|
36 | + 'tipAdjustmentY' => -30, |
|
37 | + 'tipAdjustmentX' => -60, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'class' => 'messages-preview-button"', |
|
42 | + 'content' => $this->_preview_button_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'bottom', |
|
45 | + 'tipAdjustmentY' => -30, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 40 => array( |
|
49 | + 'content' => $this->_template_area_stop(), |
|
50 | + 'options' => array( |
|
51 | + 'tipAdjustmentY' => -100, |
|
52 | + 'tipAdjustmentX' => -60, |
|
53 | + ), |
|
54 | + ), |
|
55 | + 50 => array( |
|
56 | + 'id' => 'mtp_valid_shortcodes', |
|
57 | + 'content' => $this->_mtp_valid_shortcodes_stop(), |
|
58 | + 'options' => array( |
|
59 | + 'tipLocation' => 'left', |
|
60 | + 'tipAdjustmentY' => -50, |
|
61 | + 'tipAdjustmentX' => -15, |
|
62 | + ), |
|
63 | + ), |
|
64 | + 60 => array( |
|
65 | + 'id' => 'mtp_extra_actions', |
|
66 | + 'content' => $this->_mtp_extra_actions_stop(), |
|
67 | + 'options' => array( |
|
68 | + 'tipLocation' => 'left', |
|
69 | + 'tipAdjustmentY' => -50, |
|
70 | + 'tipAdjustmentX' => -15, |
|
71 | + ), |
|
72 | + ), |
|
73 | + 70 => array( |
|
74 | + 'id' => 'espresso_espresso_messages_editor_overview', |
|
75 | + 'content' => $this->_update_metabox_stop(), |
|
76 | + 'options' => array( |
|
77 | + 'tipLocation' => 'left', |
|
78 | + 'tipAdjustmentY' => -50, |
|
79 | + 'tipAdjustmentX' => -15, |
|
80 | + ), |
|
81 | + ), |
|
82 | + ); |
|
83 | + } |
|
84 | + |
|
85 | + |
|
86 | + protected function _start() |
|
87 | + { |
|
88 | + $content = '<h3>' . __('Message Template Editor', 'event_espresso') . '</h3>'; |
|
89 | + $content .= '<p>' |
|
90 | + . __( |
|
91 | + 'This tour of the Message Template Editor page will go over different areas of the screen to help you understand what they are used for.', |
|
92 | + 'event_espresso' |
|
93 | + ) . '</p>'; |
|
94 | + return $content; |
|
95 | + } |
|
96 | + |
|
97 | + |
|
98 | + protected function _context_switcher_stop() |
|
99 | + { |
|
100 | + return '<p>' |
|
101 | + . __( |
|
102 | + 'This dropdown allows you to swap between the different recipients templates that are available in this message type. Be sure to save changes befor switching to a different context.', |
|
103 | + 'event_espresso' |
|
104 | + ) . '</p>'; |
|
105 | + } |
|
106 | + |
|
107 | + |
|
108 | + protected function _preview_button_stop() |
|
109 | + { |
|
110 | + return '<p>' |
|
111 | + . __( |
|
112 | + 'Clicking this button will show you a preview of how your message will look.', |
|
113 | + 'event_espresso' |
|
114 | + ) . '</p>'; |
|
115 | + } |
|
116 | + |
|
117 | + |
|
118 | + protected function _template_area_stop() |
|
119 | + { |
|
120 | + return '<p>' |
|
121 | + . __( |
|
122 | + 'Depending on the messenger (recipient) and the message type, the main screen can show different boxes. Overall the screen allows you to confirm who the messages go to and who from, and the actual content of the message.', |
|
123 | + 'event_espresso' |
|
124 | + ) . '</p>'; |
|
125 | + } |
|
126 | + |
|
127 | + protected function _mtp_valid_shortcodes_stop() |
|
128 | + { |
|
129 | + return '<p>' |
|
130 | + . __( |
|
131 | + 'These shortcodes allow you to quickly add data into your messages, without touching code. From emails, to ticket details, to your company logo, building messages with shortcodes is easy and fast.', |
|
132 | + 'event_espresso' |
|
133 | + ) . '</p>'; |
|
134 | + } |
|
135 | + |
|
136 | + |
|
137 | + protected function _mtp_extra_actions_stop() |
|
138 | + { |
|
139 | + return '<p>' |
|
140 | + . __( |
|
141 | + 'Here you will find miscellaneous options to assist you, including a test send button and a reset button.', |
|
142 | + 'event_espresso' |
|
143 | + ) . '</p>'; |
|
144 | + } |
|
145 | + |
|
146 | + |
|
147 | + protected function _update_metabox_stop() |
|
148 | + { |
|
149 | + return '<p>' . __('When done creating your message, click here to save it.', 'event_espresso') . '</p>'; |
|
150 | + } |
|
151 | 151 | } |
@@ -85,12 +85,12 @@ discard block |
||
85 | 85 | |
86 | 86 | protected function _start() |
87 | 87 | { |
88 | - $content = '<h3>' . __('Message Template Editor', 'event_espresso') . '</h3>'; |
|
88 | + $content = '<h3>'.__('Message Template Editor', 'event_espresso').'</h3>'; |
|
89 | 89 | $content .= '<p>' |
90 | 90 | . __( |
91 | 91 | 'This tour of the Message Template Editor page will go over different areas of the screen to help you understand what they are used for.', |
92 | 92 | 'event_espresso' |
93 | - ) . '</p>'; |
|
93 | + ).'</p>'; |
|
94 | 94 | return $content; |
95 | 95 | } |
96 | 96 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | . __( |
102 | 102 | 'This dropdown allows you to swap between the different recipients templates that are available in this message type. Be sure to save changes befor switching to a different context.', |
103 | 103 | 'event_espresso' |
104 | - ) . '</p>'; |
|
104 | + ).'</p>'; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | . __( |
112 | 112 | 'Clicking this button will show you a preview of how your message will look.', |
113 | 113 | 'event_espresso' |
114 | - ) . '</p>'; |
|
114 | + ).'</p>'; |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | . __( |
122 | 122 | 'Depending on the messenger (recipient) and the message type, the main screen can show different boxes. Overall the screen allows you to confirm who the messages go to and who from, and the actual content of the message.', |
123 | 123 | 'event_espresso' |
124 | - ) . '</p>'; |
|
124 | + ).'</p>'; |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | protected function _mtp_valid_shortcodes_stop() |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | . __( |
131 | 131 | 'These shortcodes allow you to quickly add data into your messages, without touching code. From emails, to ticket details, to your company logo, building messages with shortcodes is easy and fast.', |
132 | 132 | 'event_espresso' |
133 | - ) . '</p>'; |
|
133 | + ).'</p>'; |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | |
@@ -140,12 +140,12 @@ discard block |
||
140 | 140 | . __( |
141 | 141 | 'Here you will find miscellaneous options to assist you, including a test send button and a reset button.', |
142 | 142 | 'event_espresso' |
143 | - ) . '</p>'; |
|
143 | + ).'</p>'; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | |
147 | 147 | protected function _update_metabox_stop() |
148 | 148 | { |
149 | - return '<p>' . __('When done creating your message, click here to save it.', 'event_espresso') . '</p>'; |
|
149 | + return '<p>'.__('When done creating your message, click here to save it.', 'event_espresso').'</p>'; |
|
150 | 150 | } |
151 | 151 | } |
@@ -15,112 +15,112 @@ |
||
15 | 15 | class Messages_Settings_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Messages Settings Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'messages-settings-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Messages Settings Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'messages-settings-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'class' => 'messenger_links', |
|
33 | - 'content' => $this->_messenger_links_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'bottom', |
|
36 | - 'tipAdjustmentX' => -5, |
|
37 | - 'tipAdjustmentY' => -25, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'id' => 'espresso_email_settings', |
|
42 | - 'content' => $this->_email_settings_metabox_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'top', |
|
45 | - 'tipAdjustmentX' => 20, |
|
46 | - 'tipAdjustmentY' => -30, |
|
47 | - ), |
|
48 | - ), |
|
49 | - 40 => array( |
|
50 | - 'id' => 'on-off-email', |
|
51 | - 'content' => $this->_on_off_toggle_stop(), |
|
52 | - 'options' => array( |
|
53 | - 'tipLocation' => 'left', |
|
54 | - 'tipAdjustmentY' => -50, |
|
55 | - 'tipAdjustmentX' => -15, |
|
56 | - ), |
|
57 | - ), |
|
58 | - 50 => array( |
|
59 | - 'id' => 'active-message-types', |
|
60 | - 'content' => $this->_active_mts_container_stop(), |
|
61 | - 'options' => array( |
|
62 | - 'tipLocation' => 'top', |
|
63 | - 'tipAdjustmentY' => -30, |
|
64 | - ), |
|
65 | - ), |
|
66 | - 60 => array( |
|
67 | - 'id' => 'inactive-message-types', |
|
68 | - 'content' => $this->_inactive_mts_container_stop(), |
|
69 | - 'options' => array( |
|
70 | - 'tipLocation' => 'left', |
|
71 | - 'tipAdjustmentY' => -50, |
|
72 | - 'tipAdjustmentX' => -15, |
|
73 | - ), |
|
74 | - ), |
|
75 | - ); |
|
76 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'class' => 'messenger_links', |
|
33 | + 'content' => $this->_messenger_links_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'bottom', |
|
36 | + 'tipAdjustmentX' => -5, |
|
37 | + 'tipAdjustmentY' => -25, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'id' => 'espresso_email_settings', |
|
42 | + 'content' => $this->_email_settings_metabox_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'top', |
|
45 | + 'tipAdjustmentX' => 20, |
|
46 | + 'tipAdjustmentY' => -30, |
|
47 | + ), |
|
48 | + ), |
|
49 | + 40 => array( |
|
50 | + 'id' => 'on-off-email', |
|
51 | + 'content' => $this->_on_off_toggle_stop(), |
|
52 | + 'options' => array( |
|
53 | + 'tipLocation' => 'left', |
|
54 | + 'tipAdjustmentY' => -50, |
|
55 | + 'tipAdjustmentX' => -15, |
|
56 | + ), |
|
57 | + ), |
|
58 | + 50 => array( |
|
59 | + 'id' => 'active-message-types', |
|
60 | + 'content' => $this->_active_mts_container_stop(), |
|
61 | + 'options' => array( |
|
62 | + 'tipLocation' => 'top', |
|
63 | + 'tipAdjustmentY' => -30, |
|
64 | + ), |
|
65 | + ), |
|
66 | + 60 => array( |
|
67 | + 'id' => 'inactive-message-types', |
|
68 | + 'content' => $this->_inactive_mts_container_stop(), |
|
69 | + 'options' => array( |
|
70 | + 'tipLocation' => 'left', |
|
71 | + 'tipAdjustmentY' => -50, |
|
72 | + 'tipAdjustmentX' => -15, |
|
73 | + ), |
|
74 | + ), |
|
75 | + ); |
|
76 | + } |
|
77 | 77 | |
78 | 78 | |
79 | - protected function _start() |
|
80 | - { |
|
81 | - $content = '<h3>' . __('Messages Settings', 'event_espresso') . '</h3>'; |
|
82 | - $content .= '<p>' |
|
83 | - . __( |
|
84 | - 'This tour of the Messages Settings page will go over different areas of the screen to help you understand what they are used for.', |
|
85 | - 'event_espresso' |
|
86 | - ) . '</p>'; |
|
87 | - return $content; |
|
88 | - } |
|
79 | + protected function _start() |
|
80 | + { |
|
81 | + $content = '<h3>' . __('Messages Settings', 'event_espresso') . '</h3>'; |
|
82 | + $content .= '<p>' |
|
83 | + . __( |
|
84 | + 'This tour of the Messages Settings page will go over different areas of the screen to help you understand what they are used for.', |
|
85 | + 'event_espresso' |
|
86 | + ) . '</p>'; |
|
87 | + return $content; |
|
88 | + } |
|
89 | 89 | |
90 | - protected function _messenger_links_stop() |
|
91 | - { |
|
92 | - return '<p>' . __('Available messengers are shown above.', 'event_espresso') . '</p>'; |
|
93 | - } |
|
90 | + protected function _messenger_links_stop() |
|
91 | + { |
|
92 | + return '<p>' . __('Available messengers are shown above.', 'event_espresso') . '</p>'; |
|
93 | + } |
|
94 | 94 | |
95 | - protected function _email_settings_metabox_stop() |
|
96 | - { |
|
97 | - return '<p>' . __('View the different message types that are currently active.', 'event_espresso') . '</p>'; |
|
98 | - } |
|
95 | + protected function _email_settings_metabox_stop() |
|
96 | + { |
|
97 | + return '<p>' . __('View the different message types that are currently active.', 'event_espresso') . '</p>'; |
|
98 | + } |
|
99 | 99 | |
100 | - protected function _on_off_toggle_stop() |
|
101 | - { |
|
102 | - return '<p>' |
|
103 | - . __( |
|
104 | - 'This toggle will turn all messages on or off for this message type.', |
|
105 | - 'event_espresso' |
|
106 | - ) . '</p>'; |
|
107 | - } |
|
100 | + protected function _on_off_toggle_stop() |
|
101 | + { |
|
102 | + return '<p>' |
|
103 | + . __( |
|
104 | + 'This toggle will turn all messages on or off for this message type.', |
|
105 | + 'event_espresso' |
|
106 | + ) . '</p>'; |
|
107 | + } |
|
108 | 108 | |
109 | - protected function _active_mts_container_stop() |
|
110 | - { |
|
111 | - return '<p>' |
|
112 | - . __( |
|
113 | - 'These are your active message types. Click them to see a description and settings for each one.', |
|
114 | - 'event_espresso' |
|
115 | - ) . '</p>'; |
|
116 | - } |
|
109 | + protected function _active_mts_container_stop() |
|
110 | + { |
|
111 | + return '<p>' |
|
112 | + . __( |
|
113 | + 'These are your active message types. Click them to see a description and settings for each one.', |
|
114 | + 'event_espresso' |
|
115 | + ) . '</p>'; |
|
116 | + } |
|
117 | 117 | |
118 | - protected function _inactive_mts_container_stop() |
|
119 | - { |
|
120 | - return '<p>' |
|
121 | - . __( |
|
122 | - 'Drag message types here to deactivate them. Drag them from here to the active box to reactivate them.', |
|
123 | - 'event_espresso' |
|
124 | - ) . '</p>'; |
|
125 | - } |
|
118 | + protected function _inactive_mts_container_stop() |
|
119 | + { |
|
120 | + return '<p>' |
|
121 | + . __( |
|
122 | + 'Drag message types here to deactivate them. Drag them from here to the active box to reactivate them.', |
|
123 | + 'event_espresso' |
|
124 | + ) . '</p>'; |
|
125 | + } |
|
126 | 126 | } |
@@ -78,23 +78,23 @@ discard block |
||
78 | 78 | |
79 | 79 | protected function _start() |
80 | 80 | { |
81 | - $content = '<h3>' . __('Messages Settings', 'event_espresso') . '</h3>'; |
|
81 | + $content = '<h3>'.__('Messages Settings', 'event_espresso').'</h3>'; |
|
82 | 82 | $content .= '<p>' |
83 | 83 | . __( |
84 | 84 | 'This tour of the Messages Settings page will go over different areas of the screen to help you understand what they are used for.', |
85 | 85 | 'event_espresso' |
86 | - ) . '</p>'; |
|
86 | + ).'</p>'; |
|
87 | 87 | return $content; |
88 | 88 | } |
89 | 89 | |
90 | 90 | protected function _messenger_links_stop() |
91 | 91 | { |
92 | - return '<p>' . __('Available messengers are shown above.', 'event_espresso') . '</p>'; |
|
92 | + return '<p>'.__('Available messengers are shown above.', 'event_espresso').'</p>'; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | protected function _email_settings_metabox_stop() |
96 | 96 | { |
97 | - return '<p>' . __('View the different message types that are currently active.', 'event_espresso') . '</p>'; |
|
97 | + return '<p>'.__('View the different message types that are currently active.', 'event_espresso').'</p>'; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | protected function _on_off_toggle_stop() |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | . __( |
104 | 104 | 'This toggle will turn all messages on or off for this message type.', |
105 | 105 | 'event_espresso' |
106 | - ) . '</p>'; |
|
106 | + ).'</p>'; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | protected function _active_mts_container_stop() |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | . __( |
113 | 113 | 'These are your active message types. Click them to see a description and settings for each one.', |
114 | 114 | 'event_espresso' |
115 | - ) . '</p>'; |
|
115 | + ).'</p>'; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | protected function _inactive_mts_container_stop() |
@@ -121,6 +121,6 @@ discard block |
||
121 | 121 | . __( |
122 | 122 | 'Drag message types here to deactivate them. Drag them from here to the active box to reactivate them.', |
123 | 123 | 'event_espresso' |
124 | - ) . '</p>'; |
|
124 | + ).'</p>'; |
|
125 | 125 | } |
126 | 126 | } |
@@ -15,131 +15,131 @@ |
||
15 | 15 | class Messages_Overview_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Messages Overview Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'messages-overview-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Messages Overview Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'messages-overview-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 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' => 'event', |
|
33 | - 'content' => $this->event_column_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'top', |
|
36 | - 'tipAdjustmentX' => -5, |
|
37 | - 'tipAdjustmentY' => -30, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'id' => 'message_type', |
|
42 | - 'content' => $this->_message_type_column_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'top', |
|
45 | - 'tipAdjustmentX' => 20, |
|
46 | - 'tipAdjustmentY' => -30, |
|
47 | - ), |
|
48 | - ), |
|
49 | - 40 => array( |
|
50 | - 'id' => 'messenger', |
|
51 | - 'content' => $this->_messenger_column_stop(), |
|
52 | - 'options' => array( |
|
53 | - 'tipLocation' => 'top', |
|
54 | - 'tipAdjustmentX' => 5, |
|
55 | - 'tipAdjustmentY' => -30, |
|
56 | - ), |
|
57 | - ), |
|
58 | - 50 => array( |
|
59 | - 'id' => 'description', |
|
60 | - 'content' => $this->_description_column_stop(), |
|
61 | - 'options' => array( |
|
62 | - 'tipLocation' => 'top', |
|
63 | - 'tipAdjustmentX' => 5, |
|
64 | - 'tipAdjustmentY' => -30, |
|
65 | - ), |
|
66 | - ), |
|
67 | - 60 => array( |
|
68 | - 'class' => 'bulkactions', |
|
69 | - 'content' => $this->_bulk_actions_stop(), |
|
70 | - 'options' => array( |
|
71 | - 'tipLocation' => 'top', |
|
72 | - 'tipAdjustmentX' => 25, |
|
73 | - 'tipAdjustmentY' => -35, |
|
74 | - ), |
|
75 | - ), |
|
76 | - 70 => array( |
|
77 | - 'id' => 'ee_messenger_filter_by', |
|
78 | - 'content' => $this->_filters_stop(), |
|
79 | - 'options' => array( |
|
80 | - 'tipLocation' => 'top', |
|
81 | - 'tipAdjustmentX' => 25, |
|
82 | - 'tipAdjustmentY' => -30, |
|
83 | - ), |
|
84 | - ), |
|
85 | - ); |
|
86 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'event', |
|
33 | + 'content' => $this->event_column_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'top', |
|
36 | + 'tipAdjustmentX' => -5, |
|
37 | + 'tipAdjustmentY' => -30, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'id' => 'message_type', |
|
42 | + 'content' => $this->_message_type_column_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'top', |
|
45 | + 'tipAdjustmentX' => 20, |
|
46 | + 'tipAdjustmentY' => -30, |
|
47 | + ), |
|
48 | + ), |
|
49 | + 40 => array( |
|
50 | + 'id' => 'messenger', |
|
51 | + 'content' => $this->_messenger_column_stop(), |
|
52 | + 'options' => array( |
|
53 | + 'tipLocation' => 'top', |
|
54 | + 'tipAdjustmentX' => 5, |
|
55 | + 'tipAdjustmentY' => -30, |
|
56 | + ), |
|
57 | + ), |
|
58 | + 50 => array( |
|
59 | + 'id' => 'description', |
|
60 | + 'content' => $this->_description_column_stop(), |
|
61 | + 'options' => array( |
|
62 | + 'tipLocation' => 'top', |
|
63 | + 'tipAdjustmentX' => 5, |
|
64 | + 'tipAdjustmentY' => -30, |
|
65 | + ), |
|
66 | + ), |
|
67 | + 60 => array( |
|
68 | + 'class' => 'bulkactions', |
|
69 | + 'content' => $this->_bulk_actions_stop(), |
|
70 | + 'options' => array( |
|
71 | + 'tipLocation' => 'top', |
|
72 | + 'tipAdjustmentX' => 25, |
|
73 | + 'tipAdjustmentY' => -35, |
|
74 | + ), |
|
75 | + ), |
|
76 | + 70 => array( |
|
77 | + 'id' => 'ee_messenger_filter_by', |
|
78 | + 'content' => $this->_filters_stop(), |
|
79 | + 'options' => array( |
|
80 | + 'tipLocation' => 'top', |
|
81 | + 'tipAdjustmentX' => 25, |
|
82 | + 'tipAdjustmentY' => -30, |
|
83 | + ), |
|
84 | + ), |
|
85 | + ); |
|
86 | + } |
|
87 | 87 | |
88 | 88 | |
89 | - protected function _start() |
|
90 | - { |
|
91 | - $content = '<h3>' . __('Messages Overview', 'event_espresso') . '</h3>'; |
|
92 | - $content .= '<p>' |
|
93 | - . __( |
|
94 | - 'This tour of the Messages Overview page will go over different areas of the screen to help you understand what they are used for.', |
|
95 | - 'event_espresso' |
|
96 | - ) . '</p>'; |
|
97 | - return $content; |
|
98 | - } |
|
89 | + protected function _start() |
|
90 | + { |
|
91 | + $content = '<h3>' . __('Messages Overview', 'event_espresso') . '</h3>'; |
|
92 | + $content .= '<p>' |
|
93 | + . __( |
|
94 | + 'This tour of the Messages Overview page will go over different areas of the screen to help you understand what they are used for.', |
|
95 | + 'event_espresso' |
|
96 | + ) . '</p>'; |
|
97 | + return $content; |
|
98 | + } |
|
99 | 99 | |
100 | - protected function event_column_stop() |
|
101 | - { |
|
102 | - return '<p>' |
|
103 | - . __( |
|
104 | - 'View if a message is associated with one event or multiple events. Can be sorted in ascending and descending order.', |
|
105 | - 'event_espresso' |
|
106 | - ) . '</p>'; |
|
107 | - } |
|
100 | + protected function event_column_stop() |
|
101 | + { |
|
102 | + return '<p>' |
|
103 | + . __( |
|
104 | + 'View if a message is associated with one event or multiple events. Can be sorted in ascending and descending order.', |
|
105 | + 'event_espresso' |
|
106 | + ) . '</p>'; |
|
107 | + } |
|
108 | 108 | |
109 | - protected function _message_type_column_stop() |
|
110 | - { |
|
111 | - return '<p>' |
|
112 | - . __( |
|
113 | - 'View the type of message. Can be sorted in ascending or descending order.', |
|
114 | - 'event_espresso' |
|
115 | - ) . '</p>'; |
|
116 | - } |
|
109 | + protected function _message_type_column_stop() |
|
110 | + { |
|
111 | + return '<p>' |
|
112 | + . __( |
|
113 | + 'View the type of message. Can be sorted in ascending or descending order.', |
|
114 | + 'event_espresso' |
|
115 | + ) . '</p>'; |
|
116 | + } |
|
117 | 117 | |
118 | - protected function _messenger_column_stop() |
|
119 | - { |
|
120 | - return '<p>' |
|
121 | - . __( |
|
122 | - 'View who messages will be sent to. Can be sorted in ascending or descending order.', |
|
123 | - 'event_espresso' |
|
124 | - ) . '</p>'; |
|
125 | - } |
|
118 | + protected function _messenger_column_stop() |
|
119 | + { |
|
120 | + return '<p>' |
|
121 | + . __( |
|
122 | + 'View who messages will be sent to. Can be sorted in ascending or descending order.', |
|
123 | + 'event_espresso' |
|
124 | + ) . '</p>'; |
|
125 | + } |
|
126 | 126 | |
127 | - protected function _description_column_stop() |
|
128 | - { |
|
129 | - return '<p>' . __('View the description for each message type.', 'event_espresso') . '</p>'; |
|
130 | - } |
|
127 | + protected function _description_column_stop() |
|
128 | + { |
|
129 | + return '<p>' . __('View the description for each message type.', 'event_espresso') . '</p>'; |
|
130 | + } |
|
131 | 131 | |
132 | - protected function _bulk_actions_stop() |
|
133 | - { |
|
134 | - return '<p>' . __('Perform bulk actions to multiple message types.', 'event_espresso') . '</p>'; |
|
135 | - } |
|
132 | + protected function _bulk_actions_stop() |
|
133 | + { |
|
134 | + return '<p>' . __('Perform bulk actions to multiple message types.', 'event_espresso') . '</p>'; |
|
135 | + } |
|
136 | 136 | |
137 | - protected function _filters_stop() |
|
138 | - { |
|
139 | - return '<p>' |
|
140 | - . __( |
|
141 | - 'You can filter by different notifications by making a selection below and clicking on the filter button. To reset your selection, just click on the reset filters button.', |
|
142 | - 'event_espresso' |
|
143 | - ) . '</p>'; |
|
144 | - } |
|
137 | + protected function _filters_stop() |
|
138 | + { |
|
139 | + return '<p>' |
|
140 | + . __( |
|
141 | + 'You can filter by different notifications by making a selection below and clicking on the filter button. To reset your selection, just click on the reset filters button.', |
|
142 | + 'event_espresso' |
|
143 | + ) . '</p>'; |
|
144 | + } |
|
145 | 145 | } |
@@ -88,12 +88,12 @@ discard block |
||
88 | 88 | |
89 | 89 | protected function _start() |
90 | 90 | { |
91 | - $content = '<h3>' . __('Messages Overview', 'event_espresso') . '</h3>'; |
|
91 | + $content = '<h3>'.__('Messages Overview', 'event_espresso').'</h3>'; |
|
92 | 92 | $content .= '<p>' |
93 | 93 | . __( |
94 | 94 | 'This tour of the Messages Overview page will go over different areas of the screen to help you understand what they are used for.', |
95 | 95 | 'event_espresso' |
96 | - ) . '</p>'; |
|
96 | + ).'</p>'; |
|
97 | 97 | return $content; |
98 | 98 | } |
99 | 99 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | . __( |
104 | 104 | 'View if a message is associated with one event or multiple events. Can be sorted in ascending and descending order.', |
105 | 105 | 'event_espresso' |
106 | - ) . '</p>'; |
|
106 | + ).'</p>'; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | protected function _message_type_column_stop() |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | . __( |
113 | 113 | 'View the type of message. Can be sorted in ascending or descending order.', |
114 | 114 | 'event_espresso' |
115 | - ) . '</p>'; |
|
115 | + ).'</p>'; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | protected function _messenger_column_stop() |
@@ -121,17 +121,17 @@ discard block |
||
121 | 121 | . __( |
122 | 122 | 'View who messages will be sent to. Can be sorted in ascending or descending order.', |
123 | 123 | 'event_espresso' |
124 | - ) . '</p>'; |
|
124 | + ).'</p>'; |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | protected function _description_column_stop() |
128 | 128 | { |
129 | - return '<p>' . __('View the description for each message type.', 'event_espresso') . '</p>'; |
|
129 | + return '<p>'.__('View the description for each message type.', 'event_espresso').'</p>'; |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | protected function _bulk_actions_stop() |
133 | 133 | { |
134 | - return '<p>' . __('Perform bulk actions to multiple message types.', 'event_espresso') . '</p>'; |
|
134 | + return '<p>'.__('Perform bulk actions to multiple message types.', 'event_espresso').'</p>'; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | protected function _filters_stop() |
@@ -140,6 +140,6 @@ discard block |
||
140 | 140 | . __( |
141 | 141 | 'You can filter by different notifications by making a selection below and clicking on the filter button. To reset your selection, just click on the reset filters button.', |
142 | 142 | 'event_espresso' |
143 | - ) . '</p>'; |
|
143 | + ).'</p>'; |
|
144 | 144 | } |
145 | 145 | } |
@@ -16,36 +16,36 @@ |
||
16 | 16 | { |
17 | 17 | |
18 | 18 | |
19 | - public function __construct() |
|
20 | - { |
|
21 | - // define some help/support page related constants |
|
22 | - define('EE_SUPPORT_PG_SLUG', 'espresso_support'); |
|
23 | - define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG)); |
|
24 | - define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/'); |
|
25 | - define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/'); |
|
26 | - define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/'); |
|
27 | - parent::__construct(); |
|
28 | - } |
|
19 | + public function __construct() |
|
20 | + { |
|
21 | + // define some help/support page related constants |
|
22 | + define('EE_SUPPORT_PG_SLUG', 'espresso_support'); |
|
23 | + define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG)); |
|
24 | + define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/'); |
|
25 | + define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/'); |
|
26 | + define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/'); |
|
27 | + parent::__construct(); |
|
28 | + } |
|
29 | 29 | |
30 | - protected function _set_init_properties() |
|
31 | - { |
|
32 | - $this->label = __('Help & Support', 'event_espresso'); |
|
33 | - } |
|
30 | + protected function _set_init_properties() |
|
31 | + { |
|
32 | + $this->label = __('Help & Support', 'event_espresso'); |
|
33 | + } |
|
34 | 34 | |
35 | - protected function _set_menu_map() |
|
36 | - { |
|
37 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
38 | - array( |
|
39 | - 'menu_group' => 'extras', |
|
40 | - 'menu_order' => 30, |
|
41 | - 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
42 | - 'parent_slug' => 'espresso_events', |
|
43 | - 'menu_slug' => EE_SUPPORT_PG_SLUG, |
|
44 | - 'menu_label' => __('Help & Support', 'event_espresso'), |
|
45 | - 'capability' => 'ee_read_ee', |
|
46 | - 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
47 | - 'admin_init_page' => $this, |
|
48 | - ) |
|
49 | - ); |
|
50 | - } |
|
35 | + protected function _set_menu_map() |
|
36 | + { |
|
37 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
38 | + array( |
|
39 | + 'menu_group' => 'extras', |
|
40 | + 'menu_order' => 30, |
|
41 | + 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
42 | + 'parent_slug' => 'espresso_events', |
|
43 | + 'menu_slug' => EE_SUPPORT_PG_SLUG, |
|
44 | + 'menu_label' => __('Help & Support', 'event_espresso'), |
|
45 | + 'capability' => 'ee_read_ee', |
|
46 | + 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
47 | + 'admin_init_page' => $this, |
|
48 | + ) |
|
49 | + ); |
|
50 | + } |
|
51 | 51 | } |
@@ -20,10 +20,10 @@ |
||
20 | 20 | { |
21 | 21 | // define some help/support page related constants |
22 | 22 | define('EE_SUPPORT_PG_SLUG', 'espresso_support'); |
23 | - define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG)); |
|
24 | - define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/'); |
|
25 | - define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/'); |
|
26 | - define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/'); |
|
23 | + define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page='.EE_SUPPORT_PG_SLUG)); |
|
24 | + define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES.'support/templates/'); |
|
25 | + define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES.'support/'); |
|
26 | + define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL.'support/assets/'); |
|
27 | 27 | parent::__construct(); |
28 | 28 | } |
29 | 29 |
@@ -13,242 +13,242 @@ |
||
13 | 13 | { |
14 | 14 | |
15 | 15 | |
16 | - protected function _init_page_props() |
|
17 | - { |
|
18 | - $this->page_slug = EE_SUPPORT_PG_SLUG; |
|
19 | - $this->page_label = esc_html__('Help & Support', 'event_espresso'); |
|
20 | - $this->_admin_base_url = EE_SUPPORT_ADMIN_URL; |
|
21 | - $this->_admin_base_path = EE_SUPPORT_ADMIN; |
|
22 | - } |
|
23 | - |
|
24 | - |
|
25 | - protected function _ajax_hooks() |
|
26 | - { |
|
27 | - } |
|
28 | - |
|
29 | - |
|
30 | - protected function _define_page_props() |
|
31 | - { |
|
32 | - $this->_labels = array(); |
|
33 | - $this->_admin_page_title = $this->page_label; |
|
34 | - } |
|
35 | - |
|
36 | - |
|
37 | - protected function _set_page_routes() |
|
38 | - { |
|
39 | - $this->_page_routes = array( |
|
40 | - 'default' => array( |
|
41 | - 'func' => '_contact_support', |
|
42 | - 'capability' => 'ee_read_ee', |
|
43 | - ), |
|
44 | - 'developers' => array( |
|
45 | - 'func' => '_developers', |
|
46 | - 'capability' => 'ee_read_ee', |
|
47 | - ), |
|
48 | - 'shortcodes' => array( |
|
49 | - 'func' => '_shortcodes', |
|
50 | - 'capability' => 'ee_read_ee', |
|
51 | - ), |
|
52 | - ); |
|
53 | - } |
|
54 | - |
|
55 | - |
|
56 | - protected function _set_page_config() |
|
57 | - { |
|
58 | - $this->_page_config = array( |
|
59 | - 'default' => array( |
|
60 | - 'nav' => array( |
|
61 | - 'label' => esc_html__('Support', 'event_espresso'), |
|
62 | - 'order' => 30, |
|
63 | - ), |
|
64 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_support_boxes')), |
|
65 | - 'require_nonce' => false, |
|
66 | - ), |
|
67 | - 'developers' => array( |
|
68 | - 'nav' => array( |
|
69 | - 'label' => esc_html__('Developers', 'event_espresso'), |
|
70 | - 'order' => 50, |
|
71 | - ), |
|
72 | - 'metaboxes' => $this->_default_espresso_metaboxes, |
|
73 | - 'require_nonce' => false, |
|
74 | - ), |
|
75 | - 'shortcodes' => array( |
|
76 | - 'nav' => array( |
|
77 | - 'label' => esc_html__('Shortcodes', 'event_espresso'), |
|
78 | - 'order' => 60, |
|
79 | - ), |
|
80 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_shortcodes_boxes')), |
|
81 | - 'require_nonce' => false, |
|
82 | - ), |
|
83 | - ); |
|
84 | - } |
|
85 | - |
|
86 | - |
|
87 | - // none of the below group are currently used for Support pages |
|
88 | - protected function _add_screen_options() |
|
89 | - { |
|
90 | - } |
|
91 | - |
|
92 | - |
|
93 | - protected function _add_feature_pointers() |
|
94 | - { |
|
95 | - } |
|
96 | - |
|
97 | - |
|
98 | - public function admin_init() |
|
99 | - { |
|
100 | - } |
|
101 | - |
|
102 | - |
|
103 | - public function admin_notices() |
|
104 | - { |
|
105 | - } |
|
106 | - |
|
107 | - |
|
108 | - public function admin_footer_scripts() |
|
109 | - { |
|
110 | - } |
|
111 | - |
|
112 | - |
|
113 | - public function load_scripts_styles() |
|
114 | - { |
|
115 | - } |
|
116 | - |
|
117 | - |
|
118 | - protected function _installation() |
|
119 | - { |
|
120 | - $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_installation.template.php'; |
|
121 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
122 | - $template_path, |
|
123 | - '', |
|
124 | - true |
|
125 | - ); |
|
126 | - $this->display_admin_page_with_sidebar(); |
|
127 | - } |
|
128 | - |
|
129 | - |
|
130 | - protected function _resources() |
|
131 | - { |
|
132 | - $this->display_admin_page_with_sidebar(); |
|
133 | - } |
|
134 | - |
|
135 | - |
|
136 | - protected function _add_settings_metabox($box, $label, array $args) |
|
137 | - { |
|
138 | - add_meta_box( |
|
139 | - "espresso_{$box}_settings", |
|
140 | - $label, |
|
141 | - function ($post, $metabox) { |
|
142 | - echo EEH_Template::display_template( |
|
143 | - $metabox['args']['template_path'], |
|
144 | - $metabox['args']['template_args'], |
|
145 | - true |
|
146 | - ); |
|
147 | - }, |
|
148 | - $this->_current_screen->id, |
|
149 | - 'normal', |
|
150 | - 'high', |
|
151 | - apply_filters( |
|
152 | - "FHEE__Support_Admin_Page___add_settings_metabox__{$box}_args_array", |
|
153 | - $args |
|
154 | - ) |
|
155 | - ); |
|
156 | - } |
|
157 | - |
|
158 | - |
|
159 | - protected function _resources_boxes() |
|
160 | - { |
|
161 | - $boxes = apply_filters( |
|
162 | - 'FHEE__Support_Admin_Page___resources_boxes__boxes_array', |
|
163 | - array( |
|
164 | - 'favorite_theme_developers' => esc_html__('Favorite Theme Developers', 'event_espresso'), |
|
165 | - 'highly_recommended_themes' => esc_html__('Highly Recommended Themes', 'event_espresso'), |
|
166 | - 'hire_developer' => esc_html__('Hire a Developer', 'event_espresso'), |
|
167 | - 'partners' => esc_html__('Partners', 'event_espresso'), |
|
168 | - 'recommended_plugins' => esc_html__('Recommended Plugins', 'event_espresso'), |
|
169 | - 'other_resources' => esc_html__('Other Resources', 'event_espresso'), |
|
170 | - ) |
|
171 | - ); |
|
172 | - foreach ($boxes as $box => $label) { |
|
173 | - $this->_add_settings_metabox( |
|
174 | - $box, |
|
175 | - $label, |
|
176 | - array( |
|
177 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
178 | - 'template_args' => $this->_template_args, |
|
179 | - ) |
|
180 | - ); |
|
181 | - } |
|
182 | - } |
|
183 | - |
|
184 | - |
|
185 | - protected function _shortcodes() |
|
186 | - { |
|
187 | - $this->display_admin_page_with_sidebar(); |
|
188 | - } |
|
189 | - |
|
190 | - |
|
191 | - protected function _shortcodes_boxes() |
|
192 | - { |
|
193 | - $boxes = apply_filters( |
|
194 | - 'FHEE__Support_Admin_Page___shortcodes_boxes__boxes_array', |
|
195 | - array( |
|
196 | - 'shortcodes_event_listings' => esc_html__('Event Listings', 'event_espresso'), |
|
197 | - 'shortcodes_ticket_selector' => esc_html__('Event Ticket Selector', 'event_espresso'), |
|
198 | - 'shortcodes_category' => esc_html__('Event Categories', 'event_espresso'), |
|
199 | - 'shortcodes_attendee' => esc_html__('Event Attendees', 'event_espresso') |
|
200 | - /*'shortcodes_single_events' => esc_html__('Single Events', 'event_espresso'),*/ |
|
201 | - /*'shortcodes_attendee_listings' => esc_html__('Attendee Listings', 'event_espresso'),*/ |
|
202 | - ) |
|
203 | - ); |
|
204 | - foreach ($boxes as $box => $label) { |
|
205 | - $this->_add_settings_metabox( |
|
206 | - $box, |
|
207 | - $label, |
|
208 | - array( |
|
209 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
210 | - 'template_args' => $this->_template_args, |
|
211 | - ) |
|
212 | - ); |
|
213 | - } |
|
214 | - } |
|
215 | - |
|
216 | - |
|
217 | - protected function _contact_support() |
|
218 | - { |
|
219 | - $this->display_admin_page_with_sidebar(); |
|
220 | - } |
|
221 | - |
|
222 | - |
|
223 | - protected function _support_boxes() |
|
224 | - { |
|
225 | - $boxes = apply_filters( |
|
226 | - 'FHEE__Support_Admin_Page___support_boxes__boxes_array', |
|
227 | - array( |
|
228 | - 'contact_support' => esc_html__('Contact Support', 'event_espresso'), |
|
229 | - 'important_information' => esc_html__('Important Information', 'event_espresso'), |
|
230 | - ) |
|
231 | - ); |
|
232 | - foreach ($boxes as $box => $label) { |
|
233 | - $this->_add_settings_metabox( |
|
234 | - $box, |
|
235 | - $label, |
|
236 | - array( |
|
237 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
238 | - 'template_args' => $this->_template_args, |
|
239 | - ) |
|
240 | - ); |
|
241 | - } |
|
242 | - } |
|
243 | - |
|
244 | - |
|
245 | - protected function _developers() |
|
246 | - { |
|
247 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
248 | - EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'developers_admin_details.template.php', |
|
249 | - array(), |
|
250 | - true |
|
251 | - ); |
|
252 | - $this->display_admin_page_with_sidebar(); |
|
253 | - } |
|
16 | + protected function _init_page_props() |
|
17 | + { |
|
18 | + $this->page_slug = EE_SUPPORT_PG_SLUG; |
|
19 | + $this->page_label = esc_html__('Help & Support', 'event_espresso'); |
|
20 | + $this->_admin_base_url = EE_SUPPORT_ADMIN_URL; |
|
21 | + $this->_admin_base_path = EE_SUPPORT_ADMIN; |
|
22 | + } |
|
23 | + |
|
24 | + |
|
25 | + protected function _ajax_hooks() |
|
26 | + { |
|
27 | + } |
|
28 | + |
|
29 | + |
|
30 | + protected function _define_page_props() |
|
31 | + { |
|
32 | + $this->_labels = array(); |
|
33 | + $this->_admin_page_title = $this->page_label; |
|
34 | + } |
|
35 | + |
|
36 | + |
|
37 | + protected function _set_page_routes() |
|
38 | + { |
|
39 | + $this->_page_routes = array( |
|
40 | + 'default' => array( |
|
41 | + 'func' => '_contact_support', |
|
42 | + 'capability' => 'ee_read_ee', |
|
43 | + ), |
|
44 | + 'developers' => array( |
|
45 | + 'func' => '_developers', |
|
46 | + 'capability' => 'ee_read_ee', |
|
47 | + ), |
|
48 | + 'shortcodes' => array( |
|
49 | + 'func' => '_shortcodes', |
|
50 | + 'capability' => 'ee_read_ee', |
|
51 | + ), |
|
52 | + ); |
|
53 | + } |
|
54 | + |
|
55 | + |
|
56 | + protected function _set_page_config() |
|
57 | + { |
|
58 | + $this->_page_config = array( |
|
59 | + 'default' => array( |
|
60 | + 'nav' => array( |
|
61 | + 'label' => esc_html__('Support', 'event_espresso'), |
|
62 | + 'order' => 30, |
|
63 | + ), |
|
64 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_support_boxes')), |
|
65 | + 'require_nonce' => false, |
|
66 | + ), |
|
67 | + 'developers' => array( |
|
68 | + 'nav' => array( |
|
69 | + 'label' => esc_html__('Developers', 'event_espresso'), |
|
70 | + 'order' => 50, |
|
71 | + ), |
|
72 | + 'metaboxes' => $this->_default_espresso_metaboxes, |
|
73 | + 'require_nonce' => false, |
|
74 | + ), |
|
75 | + 'shortcodes' => array( |
|
76 | + 'nav' => array( |
|
77 | + 'label' => esc_html__('Shortcodes', 'event_espresso'), |
|
78 | + 'order' => 60, |
|
79 | + ), |
|
80 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_shortcodes_boxes')), |
|
81 | + 'require_nonce' => false, |
|
82 | + ), |
|
83 | + ); |
|
84 | + } |
|
85 | + |
|
86 | + |
|
87 | + // none of the below group are currently used for Support pages |
|
88 | + protected function _add_screen_options() |
|
89 | + { |
|
90 | + } |
|
91 | + |
|
92 | + |
|
93 | + protected function _add_feature_pointers() |
|
94 | + { |
|
95 | + } |
|
96 | + |
|
97 | + |
|
98 | + public function admin_init() |
|
99 | + { |
|
100 | + } |
|
101 | + |
|
102 | + |
|
103 | + public function admin_notices() |
|
104 | + { |
|
105 | + } |
|
106 | + |
|
107 | + |
|
108 | + public function admin_footer_scripts() |
|
109 | + { |
|
110 | + } |
|
111 | + |
|
112 | + |
|
113 | + public function load_scripts_styles() |
|
114 | + { |
|
115 | + } |
|
116 | + |
|
117 | + |
|
118 | + protected function _installation() |
|
119 | + { |
|
120 | + $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_installation.template.php'; |
|
121 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
122 | + $template_path, |
|
123 | + '', |
|
124 | + true |
|
125 | + ); |
|
126 | + $this->display_admin_page_with_sidebar(); |
|
127 | + } |
|
128 | + |
|
129 | + |
|
130 | + protected function _resources() |
|
131 | + { |
|
132 | + $this->display_admin_page_with_sidebar(); |
|
133 | + } |
|
134 | + |
|
135 | + |
|
136 | + protected function _add_settings_metabox($box, $label, array $args) |
|
137 | + { |
|
138 | + add_meta_box( |
|
139 | + "espresso_{$box}_settings", |
|
140 | + $label, |
|
141 | + function ($post, $metabox) { |
|
142 | + echo EEH_Template::display_template( |
|
143 | + $metabox['args']['template_path'], |
|
144 | + $metabox['args']['template_args'], |
|
145 | + true |
|
146 | + ); |
|
147 | + }, |
|
148 | + $this->_current_screen->id, |
|
149 | + 'normal', |
|
150 | + 'high', |
|
151 | + apply_filters( |
|
152 | + "FHEE__Support_Admin_Page___add_settings_metabox__{$box}_args_array", |
|
153 | + $args |
|
154 | + ) |
|
155 | + ); |
|
156 | + } |
|
157 | + |
|
158 | + |
|
159 | + protected function _resources_boxes() |
|
160 | + { |
|
161 | + $boxes = apply_filters( |
|
162 | + 'FHEE__Support_Admin_Page___resources_boxes__boxes_array', |
|
163 | + array( |
|
164 | + 'favorite_theme_developers' => esc_html__('Favorite Theme Developers', 'event_espresso'), |
|
165 | + 'highly_recommended_themes' => esc_html__('Highly Recommended Themes', 'event_espresso'), |
|
166 | + 'hire_developer' => esc_html__('Hire a Developer', 'event_espresso'), |
|
167 | + 'partners' => esc_html__('Partners', 'event_espresso'), |
|
168 | + 'recommended_plugins' => esc_html__('Recommended Plugins', 'event_espresso'), |
|
169 | + 'other_resources' => esc_html__('Other Resources', 'event_espresso'), |
|
170 | + ) |
|
171 | + ); |
|
172 | + foreach ($boxes as $box => $label) { |
|
173 | + $this->_add_settings_metabox( |
|
174 | + $box, |
|
175 | + $label, |
|
176 | + array( |
|
177 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
178 | + 'template_args' => $this->_template_args, |
|
179 | + ) |
|
180 | + ); |
|
181 | + } |
|
182 | + } |
|
183 | + |
|
184 | + |
|
185 | + protected function _shortcodes() |
|
186 | + { |
|
187 | + $this->display_admin_page_with_sidebar(); |
|
188 | + } |
|
189 | + |
|
190 | + |
|
191 | + protected function _shortcodes_boxes() |
|
192 | + { |
|
193 | + $boxes = apply_filters( |
|
194 | + 'FHEE__Support_Admin_Page___shortcodes_boxes__boxes_array', |
|
195 | + array( |
|
196 | + 'shortcodes_event_listings' => esc_html__('Event Listings', 'event_espresso'), |
|
197 | + 'shortcodes_ticket_selector' => esc_html__('Event Ticket Selector', 'event_espresso'), |
|
198 | + 'shortcodes_category' => esc_html__('Event Categories', 'event_espresso'), |
|
199 | + 'shortcodes_attendee' => esc_html__('Event Attendees', 'event_espresso') |
|
200 | + /*'shortcodes_single_events' => esc_html__('Single Events', 'event_espresso'),*/ |
|
201 | + /*'shortcodes_attendee_listings' => esc_html__('Attendee Listings', 'event_espresso'),*/ |
|
202 | + ) |
|
203 | + ); |
|
204 | + foreach ($boxes as $box => $label) { |
|
205 | + $this->_add_settings_metabox( |
|
206 | + $box, |
|
207 | + $label, |
|
208 | + array( |
|
209 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
210 | + 'template_args' => $this->_template_args, |
|
211 | + ) |
|
212 | + ); |
|
213 | + } |
|
214 | + } |
|
215 | + |
|
216 | + |
|
217 | + protected function _contact_support() |
|
218 | + { |
|
219 | + $this->display_admin_page_with_sidebar(); |
|
220 | + } |
|
221 | + |
|
222 | + |
|
223 | + protected function _support_boxes() |
|
224 | + { |
|
225 | + $boxes = apply_filters( |
|
226 | + 'FHEE__Support_Admin_Page___support_boxes__boxes_array', |
|
227 | + array( |
|
228 | + 'contact_support' => esc_html__('Contact Support', 'event_espresso'), |
|
229 | + 'important_information' => esc_html__('Important Information', 'event_espresso'), |
|
230 | + ) |
|
231 | + ); |
|
232 | + foreach ($boxes as $box => $label) { |
|
233 | + $this->_add_settings_metabox( |
|
234 | + $box, |
|
235 | + $label, |
|
236 | + array( |
|
237 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
238 | + 'template_args' => $this->_template_args, |
|
239 | + ) |
|
240 | + ); |
|
241 | + } |
|
242 | + } |
|
243 | + |
|
244 | + |
|
245 | + protected function _developers() |
|
246 | + { |
|
247 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
248 | + EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'developers_admin_details.template.php', |
|
249 | + array(), |
|
250 | + true |
|
251 | + ); |
|
252 | + $this->display_admin_page_with_sidebar(); |
|
253 | + } |
|
254 | 254 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | protected function _installation() |
119 | 119 | { |
120 | - $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_installation.template.php'; |
|
120 | + $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH.'support_admin_details_installation.template.php'; |
|
121 | 121 | $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
122 | 122 | $template_path, |
123 | 123 | '', |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | add_meta_box( |
139 | 139 | "espresso_{$box}_settings", |
140 | 140 | $label, |
141 | - function ($post, $metabox) { |
|
141 | + function($post, $metabox) { |
|
142 | 142 | echo EEH_Template::display_template( |
143 | 143 | $metabox['args']['template_path'], |
144 | 144 | $metabox['args']['template_args'], |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | $box, |
175 | 175 | $label, |
176 | 176 | array( |
177 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
177 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH."support_admin_details_{$box}.template.php", |
|
178 | 178 | 'template_args' => $this->_template_args, |
179 | 179 | ) |
180 | 180 | ); |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | $box, |
207 | 207 | $label, |
208 | 208 | array( |
209 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
209 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH."support_admin_details_{$box}.template.php", |
|
210 | 210 | 'template_args' => $this->_template_args, |
211 | 211 | ) |
212 | 212 | ); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | $box, |
235 | 235 | $label, |
236 | 236 | array( |
237 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
237 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH."support_admin_details_{$box}.template.php", |
|
238 | 238 | 'template_args' => $this->_template_args, |
239 | 239 | ) |
240 | 240 | ); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | protected function _developers() |
246 | 246 | { |
247 | 247 | $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
248 | - EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'developers_admin_details.template.php', |
|
248 | + EE_SUPPORT_ADMIN_TEMPLATE_PATH.'developers_admin_details.template.php', |
|
249 | 249 | array(), |
250 | 250 | true |
251 | 251 | ); |
@@ -9,9 +9,9 @@ discard block |
||
9 | 9 | <strong>[ESPRESSO_EVENT_ATTENDEES]</strong><br> |
10 | 10 | <p class="description"> |
11 | 11 | <?php _e( |
12 | - 'With no parameters, this shows the attendees for the earliest active event, or if no active event, the earliest upcoming event. If it is used in Event Description, then it will show the attendees for that event.', |
|
13 | - 'event_espresso' |
|
14 | - ); ?> |
|
12 | + 'With no parameters, this shows the attendees for the earliest active event, or if no active event, the earliest upcoming event. If it is used in Event Description, then it will show the attendees for that event.', |
|
13 | + 'event_espresso' |
|
14 | + ); ?> |
|
15 | 15 | </p> |
16 | 16 | <br> |
17 | 17 | </li> |
@@ -40,18 +40,18 @@ discard block |
||
40 | 40 | <strong>[ESPRESSO_EVENT_ATTENDEES status=RAP]</strong><br> |
41 | 41 | <p class="description"> |
42 | 42 | <?php _e( |
43 | - 'You can list attendees that have a specific registration status (use status code) or use "all" to return all attendees regardless of status. Default when you don\'t have this parameter set is to only return attendees attached to approved contacts.', |
|
44 | - 'event_espresso' |
|
45 | - ); ?> |
|
43 | + 'You can list attendees that have a specific registration status (use status code) or use "all" to return all attendees regardless of status. Default when you don\'t have this parameter set is to only return attendees attached to approved contacts.', |
|
44 | + 'event_espresso' |
|
45 | + ); ?> |
|
46 | 46 | </p> |
47 | 47 | <p> |
48 | 48 | <?php _e('The statuses you can use are:', 'event_espresso'); ?> |
49 | 49 | <br> |
50 | 50 | <?php |
51 | - foreach (EEM_Registration::reg_status_array(array(), true) as $status_code => $status_label) { |
|
52 | - echo '<strong>' . $status_code . ':</strong>' . ' ' . $status_label . '<br>'; |
|
53 | - } |
|
54 | - ?> |
|
51 | + foreach (EEM_Registration::reg_status_array(array(), true) as $status_code => $status_label) { |
|
52 | + echo '<strong>' . $status_code . ':</strong>' . ' ' . $status_label . '<br>'; |
|
53 | + } |
|
54 | + ?> |
|
55 | 55 | |
56 | 56 | </p> |
57 | 57 | <br> |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | <strong>[ESPRESSO_EVENT_ATTENDEES display_on_archives=true]</strong><br> |
61 | 61 | <p class="description"> |
62 | 62 | <?php _e( |
63 | - 'Will display the attendees list when events are viewed on archive pages.', |
|
64 | - 'event_espresso' |
|
65 | - ); ?> |
|
63 | + 'Will display the attendees list when events are viewed on archive pages.', |
|
64 | + 'event_espresso' |
|
65 | + ); ?> |
|
66 | 66 | </p> |
67 | 67 | <br> |
68 | 68 | </li> |
@@ -49,7 +49,7 @@ |
||
49 | 49 | <br> |
50 | 50 | <?php |
51 | 51 | foreach (EEM_Registration::reg_status_array(array(), true) as $status_code => $status_label) { |
52 | - echo '<strong>' . $status_code . ':</strong>' . ' ' . $status_label . '<br>'; |
|
52 | + echo '<strong>'.$status_code.':</strong>'.' '.$status_label.'<br>'; |
|
53 | 53 | } |
54 | 54 | ?> |
55 | 55 |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <div class="padding"> |
2 | 2 | <!-- <p><?php _e( |
3 | - 'Download the <a href="https://eventespresso.com/wp-content/plugins/download-monitor/download.php?id=2">Installation Guide</a> as a PDF', |
|
4 | - 'event_espresso' |
|
5 | - ); ?></p> --> |
|
3 | + 'Download the <a href="https://eventespresso.com/wp-content/plugins/download-monitor/download.php?id=2">Installation Guide</a> as a PDF', |
|
4 | + 'event_espresso' |
|
5 | + ); ?></p> --> |
|
6 | 6 | <p> |
7 | 7 | <?php _e('For the latest installation instructions please visit:', 'event_espresso'); ?> |
8 | 8 | <a href="https://eventespresso.com/wiki/installing-event-espresso/" target="_blank">https://eventespresso.com/wiki/installing-event-espresso/</a> |