Making WordPress.org


Ignore:
Timestamp:
06/29/2017 07:13:33 PM (9 years ago)
Author:
coreymckrill
Message:

WordCamp Coming Soon: Add Customizer field for custom intro message

This adds a new setting and control to the Coming Soon Page section
in the Customizer. Content added to the Custom Message textarea will
replace the default message shown on the Coming Soon page beneath the
header. This allows organizers a bit more flexibility in what they
communicate to site visitors before the site is officially launched.

Fixes #2901
Props Kau-Boy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/views/template-coming-soon.php

    r5534 r5603  
    4242                        <div class="wccsp-introduction">
    4343                                <p id="wccsp-introduction">
    44                                         <?php printf(
    45                                                 // translators: %s is the name of the blog
    46                                                 __(
    47                                                         '%s is in the early planning stages. In the meantime, you can subscribe to updates above, or contact the organizers below to get involved.',
    48                                                         'wordcamporg'
    49                                                 ),
    50                                                 esc_html( get_bloginfo( 'name' ) )
    51                                         ); ?>
     44                                        <?php if ( ! empty( $introduction ) ) : ?>
     45                                                <?php echo wp_kses_post( $introduction ); ?>
     46                                        <?php else : ?>
     47                                                <?php printf(
     48                                                        /* translators: %s is the name of the blog. */
     49                                                        __(
     50                                                                '%s is in the early planning stages. In the meantime, you can subscribe to updates above, or contact the organizers below to get involved.',
     51                                                                'wordcamporg'
     52                                                        ),
     53                                                        esc_html( get_bloginfo( 'name' ) )
     54                                                ); ?>
     55                                        <?php endif; ?>
    5256                                </p>
    5357                        </div><!-- .wccsp-introduction -->
Note: See TracChangeset for help on using the changeset viewer.