Ticket #2143: 2143.1.patch
File 2143.1.patch, 7.6 KB (added by , 8 years ago) |
---|
-
wordcamp.org/public_html/wp-content/plugins/wordcamp-dashboard-widgets/wordcamp-dashboard-widgets.php
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..00503e60 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 wp_kses( 177 __( 'Please send us <a href="%s">the "about" text and banner image</a> for your central.wordcamp.org page.', 'wordcamporg' ), 178 array( 'a' => array( 'href' => true ) ) 179 ), 180 'https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/your-page-on-central-wordcamp-org/' 181 ); 182 ?> 183 </li> 174 184 <?php endif; ?> 175 185 176 186 <?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> 187 <li> 188 <?php 189 printf( 190 wp_kses( 191 __( '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' ), 192 array( 'a' => array( 'href' => true ) ) 193 ), 194 'https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/using-camptix-event-ticketing-plugin/#attendees-list' 195 ); 196 ?> 197 </li> 178 198 <?php endif; ?> 179 199 180 200 <?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> 201 <li> 202 <?php 203 printf( 204 wp_kses( 205 __( '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' ), 206 array( 'a' => array( 'href' => true ) ) 207 ), 208 'https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/custom-tools-for-building-wordcamp-content/#schedule' 209 ); 210 ?> 211 </li> 182 212 <?php endif; ?> 183 213 </ul> 184 214 … … class WordCamp_Dashboard_Widgets { 192 222 ?> 193 223 194 224 <p> 195 <?php _e( "Here are some of the tools we've recently launched to help you organize:", 'wordcamporg' ); ?>225 <?php esc_html_e( 'Here are some of the tools we’ve recently launched to help you organize:', 'wordcamporg' ); ?> 196 226 </p> 197 227 198 228 <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> 229 <li> 230 <a href="https://make.wordpress.org/community/2016/04/26/new-tool-for-creating-personalized-wordcamp-badges/"> 231 <?php esc_html_e( 'Create personalized attendee badges.', 'wordcamporg' ); ?> 232 </a> 233 </li> 234 <li> 235 <a href="https://make.wordpress.org/community/2016/03/01/new-automated-payments-and-invoicing/"> 236 <?php esc_html_e( 'Invoice sponsors, pay vendors, and get reimbursed.', 'wordcamporg' ); ?> 237 </a> 238 </li> 239 <li> 240 <?php 241 printf( 242 wp_kses( 243 __( '<a href="%s">Quickly clone another WordCamp site</a> instead of building yours from scratch.', 'wordcamporg' ), 244 array( 'a' => array( 'href' => true ) ) 245 ), 246 'https://make.wordpress.org/community/2015/07/09/site-cloner-v1-is-now-available/' 247 ); 248 ?> 249 </li> 250 <li> 251 <?php 252 printf( 253 wp_kses( 254 __( '<a href="%s">Edit CSS in your local environment</a> and manage it in a GitHub repository.', 'wordcamporg' ), 255 array( 'a' => array( 'href' => true ) ) 256 ), 257 'https://make.wordpress.org/community/2015/11/24/remote-css-plugin-launched-on-wordcamp-org/' 258 ); 259 ?> 260 </li> 203 261 </ul> 204 262 205 263 <?php