diff --git wordcamp.org/public_html/wp-content/plugins/wordcamp-dashboard-widgets/wordcamp-dashboard-widgets.php wordcamp.org/public_html/wp-content/plugins/wordcamp-dashboard-widgets/wordcamp-dashboard-widgets.php
index 6089a75f..fd1062b1 100644
|
|
class WordCamp_Dashboard_Widgets { |
24 | 24 | if ( $this->show_wordcamp_reminders() ) { |
25 | 25 | wp_add_dashboard_widget( |
26 | 26 | 'wordcamp_reminders', |
27 | | 'WordCamp Reminders', |
| 27 | __( 'WordCamp Reminders', 'wordcamporg' ), |
28 | 28 | array( $this, 'render_wordcamp_reminders' ) |
29 | 29 | ); |
30 | 30 | } |
31 | 31 | |
32 | 32 | wp_add_dashboard_widget( |
33 | 33 | 'new_wordcamporg_tools', |
34 | | 'New WordCamp.org Tools', |
| 34 | __( 'New WordCamp.org Tools', 'wordcamporg' ), |
35 | 35 | array( $this, 'render_new_wordcamporg_tools' ) |
36 | 36 | ); |
37 | 37 | |
… |
… |
class WordCamp_Dashboard_Widgets { |
100 | 100 | $published_pages = get_posts( array( |
101 | 101 | 'post_type' => 'page', |
102 | 102 | 'post_status' => 'publish', |
103 | | 'posts_per_page' => -1 |
| 103 | 'posts_per_page' => -1, |
104 | 104 | ) ); |
105 | 105 | |
106 | 106 | foreach ( $published_pages as $page ) { |
… |
… |
class WordCamp_Dashboard_Widgets { |
140 | 140 | protected function prioritize_wordcamp_widgets() { |
141 | 141 | global $wp_meta_boxes; |
142 | 142 | |
143 | | // Move WordCamp Reminders to the top of the primary column |
| 143 | // Move WordCamp Reminders to the top of the primary column. |
144 | 144 | if ( isset( $wp_meta_boxes['dashboard']['normal']['core']['wordcamp_reminders'] ) ) { |
145 | 145 | $reminders_temp = $wp_meta_boxes['dashboard']['normal']['core']['wordcamp_reminders']; |
146 | 146 | unset( $wp_meta_boxes['dashboard']['normal']['core']['wordcamp_reminders'] ); |
… |
… |
class WordCamp_Dashboard_Widgets { |
151 | 151 | ); |
152 | 152 | } |
153 | 153 | |
154 | | // Move WordCamp Organizer Survey to the top of the side column |
| 154 | // Move WordCamp Organizer Survey to the top of the side column. |
155 | 155 | if ( isset( $wp_meta_boxes['dashboard']['normal']['core']['new_wordcamporg_tools'] ) ) { |
156 | 156 | $wp_meta_boxes['dashboard']['side']['core'] = array_merge( |
157 | 157 | array( 'new_wordcamporg_tools' => $wp_meta_boxes['dashboard']['normal']['core']['new_wordcamporg_tools'] ), |
… |
… |
class WordCamp_Dashboard_Widgets { |
170 | 170 | |
171 | 171 | <ul class="ul-disc"> |
172 | 172 | <?php if ( $this->need_central_about_info ) : ?> |
173 | | <li>Please send us <a href="https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/your-page-on-central-wordcamp-org/">the "about" text and banner image</a> for your central.wordcamp.org page.</a></li> |
| 173 | <li> |
| 174 | <?php |
| 175 | printf( |
| 176 | __( 'Please send us <a href="%s">the "about" text and banner image</a> for your central.wordcamp.org page.', 'wordcamporg' ), |
| 177 | 'https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/your-page-on-central-wordcamp-org/' |
| 178 | ); |
| 179 | ?> |
| 180 | </li> |
174 | 181 | <?php endif; ?> |
175 | 182 | |
176 | 183 | <?php if ( in_array( 'attendees', $this->needed_pages ) ) : ?> |
177 | | <li>Tickets are on sale now! Don’t forget to <a href="https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/using-camptix-event-ticketing-plugin/#attendees-list">publish an Attendees page</a>, so everyone can see what amazing people are coming to your WordCamp.</li> |
| 184 | <li> |
| 185 | <?php |
| 186 | printf( |
| 187 | __( 'Tickets are on sale now! Don’t forget to <a href="%s">publish an Attendees page</a>, so everyone can see what amazing people are coming to your WordCamp.', 'wordcamporg' ), |
| 188 | 'https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/using-camptix-event-ticketing-plugin/#attendees-list' |
| 189 | ); |
| 190 | ?> |
| 191 | </li> |
178 | 192 | <?php endif; ?> |
179 | 193 | |
180 | 194 | <?php if ( in_array( 'schedule', $this->needed_pages ) ) : ?> |
181 | | <li>Tickets sell a lot faster when people can see who's speaking at your WordCamp. How about <a href="https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/custom-tools-for-building-wordcamp-content/#schedule">publishing a schedule</a> today?</li> |
| 195 | <li> |
| 196 | <?php |
| 197 | printf( |
| 198 | __( 'Tickets sell a lot faster when people can see who’s speaking at your WordCamp. How about <a href="%s">publishing a schedule</a> today?', 'wordcamporg' ), |
| 199 | 'https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/custom-tools-for-building-wordcamp-content/#schedule' |
| 200 | ); |
| 201 | ?> |
| 202 | </li> |
182 | 203 | <?php endif; ?> |
183 | 204 | </ul> |
184 | 205 | |
… |
… |
class WordCamp_Dashboard_Widgets { |
192 | 213 | ?> |
193 | 214 | |
194 | 215 | <p> |
195 | | <?php _e( "Here are some of the tools we've recently launched to help you organize:", 'wordcamporg' ); ?> |
| 216 | <?php esc_html_e( 'Here are some of the tools we’ve recently launched to help you organize:', 'wordcamporg' ); ?> |
196 | 217 | </p> |
197 | 218 | |
198 | 219 | <ul class="ul-disc"> |
199 | | <li><a href="https://make.wordpress.org/community/2016/04/26/new-tool-for-creating-personalized-wordcamp-badges/">Create personalized attendee badges</a>.</li> |
200 | | <li><a href="https://make.wordpress.org/community/2016/03/01/new-automated-payments-and-invoicing/">Invoice sponsors, pay vendors, and get reimbursed</a>.</li> |
201 | | <li><a href="https://make.wordpress.org/community/2015/07/09/site-cloner-v1-is-now-available/">Quickly clone another WordCamp site</a> instead of building yours from scratch.</li> |
202 | | <li><a href="https://make.wordpress.org/community/2015/11/24/remote-css-plugin-launched-on-wordcamp-org/">Edit CSS in your local environment</a> and manage it in a GitHub repository.</li> |
| 220 | <li> |
| 221 | <a href="https://make.wordpress.org/community/2016/04/26/new-tool-for-creating-personalized-wordcamp-badges/"> |
| 222 | <?php esc_html_e( 'Create personalized attendee badges.', 'wordcamporg' ); ?> |
| 223 | </a> |
| 224 | </li> |
| 225 | <li> |
| 226 | <a href="https://make.wordpress.org/community/2016/03/01/new-automated-payments-and-invoicing/"> |
| 227 | <?php esc_html_e( 'Invoice sponsors, pay vendors, and get reimbursed.', 'wordcamporg' ); ?> |
| 228 | </a> |
| 229 | </li> |
| 230 | <li> |
| 231 | <?php |
| 232 | printf( |
| 233 | __( '<a href="%s">Quickly clone another WordCamp site</a> instead of building yours from scratch.', 'wordcamporg' ), |
| 234 | 'https://make.wordpress.org/community/2015/07/09/site-cloner-v1-is-now-available/' |
| 235 | ); |
| 236 | ?> |
| 237 | </li> |
| 238 | <li> |
| 239 | <?php |
| 240 | printf( |
| 241 | __( '<a href="%s">Edit CSS in your local environment</a> and manage it in a GitHub repository.', 'wordcamporg' ), |
| 242 | 'https://make.wordpress.org/community/2015/11/24/remote-css-plugin-launched-on-wordcamp-org/' |
| 243 | ); |
| 244 | ?> |
| 245 | </li> |
203 | 246 | </ul> |
204 | 247 | |
205 | 248 | <?php |