WordPress.org

Making WordPress.org

Ticket #2143: 2143.patch

File 2143.patch, 7.0 KB (added by chandrapatel, 3 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..fd1062b1 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                            __( '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>
    174181                        <?php endif; ?>
    175182
    176183                        <?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>
    178192                        <?php endif; ?>
    179193
    180194                        <?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&#8217;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>
    182203                        <?php endif; ?>
    183204                </ul>
    184205
    class WordCamp_Dashboard_Widgets { 
    192213                ?>
    193214
    194215                <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&#8217;ve recently launched to help you organize:', 'wordcamporg' ); ?>
    196217                </p>
    197218
    198219                <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>
    203246                </ul>
    204247
    205248                <?php