diff --git wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wccsp-customizer.php wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wccsp-customizer.php
index c8ec4a6..db165c1 100644
|
|
|
class WCCSP_Customizer { |
| 127 | 127 | ) |
| 128 | 128 | ) |
| 129 | 129 | ); |
| | 130 | |
| | 131 | $wp_customize->add_setting( |
| | 132 | 'wccsp_settings[introduction]', |
| | 133 | array( |
| | 134 | 'default' => '', |
| | 135 | 'type' => 'option', |
| | 136 | 'capability' => $GLOBALS['WCCSP_Settings']::REQUIRED_CAPABILITY, |
| | 137 | ) |
| | 138 | ); |
| | 139 | |
| | 140 | $wp_customize->add_control( |
| | 141 | 'wccsp_settings[introduction]', |
| | 142 | array( |
| | 143 | 'label' => __( 'Introduction' ), |
| | 144 | 'section' => 'wccsp_live_preview', |
| | 145 | 'type' => 'textarea', |
| | 146 | 'sanitize_callback' => 'sanitize_text_field', |
| | 147 | ) |
| | 148 | ); |
| 130 | 149 | } |
| 131 | 150 | |
| 132 | 151 | /** |
diff --git wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wccsp-settings.php wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wccsp-settings.php
index 8a4ac7a..1e7e0d4 100644
|
|
|
class WCCSP_Settings { |
| 39 | 39 | 'background_id' => 0, |
| 40 | 40 | 'container_background_color' => '#FFFFFF', // deprecated |
| 41 | 41 | 'text_color' => '#000000', // deprecated |
| | 42 | 'introduction' => '', |
| 42 | 43 | ); |
| 43 | 44 | |
| 44 | 45 | $settings = shortcode_atts( |
diff --git wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wordcamp-coming-soon-page.php wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wordcamp-coming-soon-page.php
index c054aa5..3d9c4fb 100644
|
|
|
class WordCamp_Coming_Soon_Page { |
| 118 | 118 | 'active_modules' => Jetpack::$instance->get_active_modules(), |
| 119 | 119 | 'contact_form_shortcode' => $this->get_contact_form_shortcode(), |
| 120 | 120 | 'colors' => $this->get_colors(), |
| | 121 | 'introduction' => $this->get_introduction(), |
| 121 | 122 | ); |
| 122 | 123 | |
| 123 | 124 | return $variables; |
| … |
… |
class WordCamp_Coming_Soon_Page { |
| 271 | 272 | |
| 272 | 273 | return $contact_form_shortcode; |
| 273 | 274 | } |
| | 275 | |
| | 276 | /** |
| | 277 | * Retrieve the optional introduction overwriting the default string. |
| | 278 | * |
| | 279 | * @return string |
| | 280 | */ |
| | 281 | public function get_introduction() { |
| | 282 | $settings = $GLOBALS['WCCSP_Settings']->get_settings(); |
| | 283 | $introduction = $settings['introduction']; |
| | 284 | |
| | 285 | return empty( $introduction ) ? '' : $introduction; |
| | 286 | } |
| 274 | 287 | } // end WordCamp_Coming_Soon_Page |
diff --git wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/views/template-coming-soon.php wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/views/template-coming-soon.php
index 5b50e08..7f4203e 100644
|
|
|
|
| 41 | 41 | <div class="wccsp-container"> |
| 42 | 42 | <div class="wccsp-introduction"> |
| 43 | 43 | <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_data( $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; ?> |
| 52 | 56 | </p> |
| 53 | 57 | </div><!-- .wccsp-introduction --> |
| 54 | 58 | |