WordPress.org

Making WordPress.org

Ticket #1441: patch.2.diff

File patch.2.diff, 6.2 KB (added by zodiac1978, 5 years ago)

Updated patch

  • wordcamp-coming-soon-page/views/settings-admin-notices.php

     
    11<div class="error">
    22        <ul>
    33                <?php foreach ( $inactive_required_modules as $module ) : ?>
    4                         <li>Please activate Jetpack's <?php echo esc_html( $module ); ?> module.</li>
     4                        <?php $jetpack_module = esc_html( $module ); ?>
     5                        <li><?php /* translators: %s is the name of the jetpack module */ printf( __( "Please activate Jetpack's %s module." ), $jetpack_module ); ?></li>
    56                <?php endforeach; ?>
    67        </ul>
    78</div>
  • wordcamp-coming-soon-page/views/settings-fields.php

     
    11<?php if ( 'wccsp_enabled_true' == $field['label_for'] ) : ?>
    22        <input id="wccsp_enabled_true" name="wccsp_settings[enabled]" type="radio" value="on" <?php checked( $this->settings['enabled'], 'on' ); ?> />
    3         <span class="example"> On</span><br />
     3        <span class="example"> <?php _e( 'On' , 'wordcamporg'); ?></span><br />
    44       
    55        <input id="wccsp_enabled_false" name="wccsp_settings[enabled]" type="radio" value="off" <?php checked( $this->settings['enabled'], 'off' ); ?> />
    6         <span class="example"> Off</span>
     6        <span class="example"> <?php _e( 'Off' , 'wordcamporg'); ?></span>
    77<?php endif; ?>
    88
    99
     
    2525<?php if ( 'wccsp_image_id' == $field['label_for'] ) : ?>
    2626        <p>
    2727                <input type="hidden" id="wccsp_image_id" name="wccsp_settings[image_id]" value="<?php echo esc_attr( $this->settings['image_id'] ); ?>" />
    28                 <a href="javascript:;" id="wccsp-select-image" class="button insert-media add_media" title="Select Image">Select Image</a>
     28                <a href="javascript:;" id="wccsp-select-image" class="button insert-media add_media" title="<?php esc_attr_e('Select Image', 'wordcamporg' ); ?>"><?php _e( 'Select Image', 'wordcamporg' ); ?></a>
    2929        </p>
    3030       
    3131        <?php if( $image ) : ?>
    3232                <p id="wccsp_image_preview">
    33                         Current image preview:<br />
    34                         <img src="<?php echo esc_attr( $image[0] ); ?>" alt="Image Preview" />
     33                        <?php _e( 'Current image preview:', 'wordcamporg' ); ?><br />
     34                        <img src="<?php echo esc_attr( $image[0] ); ?>" alt="<?php esc_attr_e('Image Preview', 'wordcamporg' ); ?>" />
    3535                </p>
    3636        <?php endif; ?>
    3737<?php endif; ?>
  • wordcamp-coming-soon-page/views/settings-screen.php

     
    11<div class="wrap">
    22        <div id="icon-options-general" class="icon32"><br /></div>
    3         <h1>Coming Soon</h1>
     3        <h1><?php _e( 'Coming Soon', 'wordcamporg' ); ?></h1>
    44
    55        <form method="post" action="options.php">
    66                <?php settings_fields( 'wccsp_settings' ); ?>
  • wordcamp-coming-soon-page/views/settings-section-headers.php

     
    1 <p>When enabled, the Coming Soon page will be displayed to logged-out users, giving you a chance to setup all of your content before your site is visible to the world. To preview the page, just open your site in an Incognito/Private tab, or log out of your account.</p>
     1<p><?php _e( 'When enabled, the Coming Soon page will be displayed to logged-out users, giving you a chance to setup all of your content before your site is visible to the world. To preview the page, just open your site in an Incognito/Private tab, or log out of your account.', 'wordcamporg' ); ?></p>
  • wordcamp-coming-soon-page/views/template-coming-soon.php

     
    1212<body <?php body_class(); ?>>
    1313        <div id="wccsp-container">
    1414               
    15                 <h1><?php echo esc_attr( get_bloginfo( 'name' ) ); ?></h1>
     15                <h1><?php bloginfo( 'name' ); ?></h1>
    1616               
    1717                <?php if ( $image_url ) : ?>
    1818                        <img id="wccsp-image" src="<?php echo esc_attr( $image_url ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" />
     
    1919                <?php endif; ?>
    2020
    2121                <?php if ( $dates ) : ?>
    22                         <h2><?php echo esc_html( $dates ); ?></h2>
     22                        <h2><?php echo date_i18n( __( 'l, F jS Y' , 'wordcamporg' ) , strtotime ( $dates ) ); ?></h2>
    2323                <?php endif; ?>
    2424               
    2525                <p id="wccsp-introduction">
    26                         <?php echo esc_attr( get_bloginfo( 'name' ) ); ?> is in the early planning stages. In the meantime, you can subscribe to be notified when the site goes live, or contact the organizers to get involved.
     26                        <?php $blogname = esc_html( get_bloginfo( 'name' ) ); ?>
     27                        <?php /* translators: %s is the name of the blog */ printf( __( '%s is in the early planning stages. In the meantime, you can subscribe to be notified when the site goes live, or contact the organizers to get involved.' ), $blogname ); ?>
    2728                </p>
    2829
    2930                <?php if ( in_array( 'subscriptions', $active_modules ) ) : ?>
     
    3435
    3536                <?php if ( in_array( 'contact-form', $active_modules ) && $contact_form_shortcode ) : ?>
    3637                        <div class="wccsp-box">
    37                                 <h2>Contact the Organizers</h2>
     38                                <h2><?php _e( 'Contact the Organizers' , 'wordcamporg'); ?></h2>
    3839                               
    3940                                <?php echo $contact_form_shortcode; // intentionally not escaping because it's the output of do_shortcode() ?>
    4041                        </div>
  • .