Making WordPress.org

Ticket #2143: 2143.1.patch

File 2143.1.patch, 7.6 KB (added by chandrapatel, 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 { 
    2424                if ( $this->show_wordcamp_reminders() ) {
    2525                        wp_add_dashboard_widget(
    2626                                'wordcamp_reminders',
    27                                 'WordCamp Reminders',
     27                                __( 'WordCamp Reminders', 'wordcamporg' ),
    2828                                array( $this, 'render_wordcamp_reminders' )
    2929                        );
    3030                }
    3131
    3232                wp_add_dashboard_widget(
    3333                        'new_wordcamporg_tools',
    34                         'New WordCamp.org Tools',
     34                        __( 'New WordCamp.org Tools', 'wordcamporg' ),
    3535                        array( $this, 'render_new_wordcamporg_tools' )
    3636                );
    3737
    class WordCamp_Dashboard_Widgets { 
    100100                $published_pages    = get_posts( array(
    101101                        'post_type'      => 'page',
    102102                        'post_status'    => 'publish',
    103                         'posts_per_page' => -1
     103                        'posts_per_page' => -1,
    104104                ) );
    105105
    106106                foreach ( $published_pages as $page ) {
    class WordCamp_Dashboard_Widgets { 
    140140        protected function prioritize_wordcamp_widgets() {
    141141                global $wp_meta_boxes;
    142142
    143                 // Move WordCamp Reminders to the top of the primary column
     143                // Move WordCamp Reminders to the top of the primary column.
    144144                if ( isset( $wp_meta_boxes['dashboard']['normal']['core']['wordcamp_reminders'] ) ) {
    145145                        $reminders_temp = $wp_meta_boxes['dashboard']['normal']['core']['wordcamp_reminders'];
    146146                        unset( $wp_meta_boxes['dashboard']['normal']['core']['wordcamp_reminders'] );
    class WordCamp_Dashboard_Widgets { 
    151151                        );
    152152                }
    153153
    154                 // Move WordCamp Organizer Survey to the top of the side column
     154                // Move WordCamp Organizer Survey to the top of the side column.
    155155                if ( isset( $wp_meta_boxes['dashboard']['normal']['core']['new_wordcamporg_tools'] ) ) {
    156156                        $wp_meta_boxes['dashboard']['side']['core'] = array_merge(
    157157                                array( 'new_wordcamporg_tools' => $wp_meta_boxes['dashboard']['normal']['core']['new_wordcamporg_tools'] ),
    class WordCamp_Dashboard_Widgets { 
    170170
    171171                <ul class="ul-disc">
    172172                        <?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>
    174184                        <?php endif; ?>
    175185
    176186                        <?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>
    178198                        <?php endif; ?>
    179199
    180200                        <?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&#8217;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>
    182212                        <?php endif; ?>
    183213                </ul>
    184214
    class WordCamp_Dashboard_Widgets { 
    192222                ?>
    193223
    194224                <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&#8217;ve recently launched to help you organize:', 'wordcamporg' ); ?>
    196226                </p>
    197227
    198228                <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>
    203261                </ul>
    204262
    205263                <?php