Making WordPress.org


Ignore:
Timestamp:
04/26/2018 10:18:32 PM (7 years ago)
Author:
iandunn
Message:

WordCamp Coming Soon Page: Apply coding standards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wccsp-customizer.php

    r5819 r7173  
    88     */
    99    public function __construct() {
    10         add_action( 'init',                  array( $this, 'init'                           ), 11 ); // after WCCSP_Settings::init()
     10        add_action( 'init',                  array( $this, 'init'                           ), 11 ); // After WCCSP_Settings::init().
    1111        add_action( 'customize_register',    array( $this, 'register_customizer_components' )     );
    1212        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_customizer_scripts'     )     );
     
    2929            'wccsp_live_preview',
    3030            array(
    31                 'capability' => $GLOBALS['WCCSP_Settings']::REQUIRED_CAPABILITY,
    32                 'title'      => __( 'Coming Soon Page', 'wordcamporg' ),
    33 
     31                'capability'  => $GLOBALS['WCCSP_Settings']::REQUIRED_CAPABILITY,
     32                'title'       => __( 'Coming Soon Page', 'wordcamporg' ),
    3433                'description' => __(
    3534                    '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.',
    3635                    'wordcamporg'
    37                 ) . $GLOBALS['WCCSP_Settings']->render_admin_notices(),
     36                ) . $GLOBALS['WCCSP_Settings']->render_admin_notices(),
    3837            )
    3938        );
     
    5251            'wccsp_settings[enabled]',
    5352            array(
    54                 'section'     => 'wccsp_live_preview',
    55                 'type'        => 'radio',
    56                 'choices'     => array( 'on' => 'On', 'off' => 'Off' ),
    57                 'priority'    => 1,
    58                 'capability'  => $GLOBALS['WCCSP_Settings']::REQUIRED_CAPABILITY,
     53                'section'    => 'wccsp_live_preview',
     54                'type'       => 'radio',
     55                'choices'    => array( 'on' => 'On', 'off' => 'Off' ),
     56                'priority'   => 1,
     57                'capability' => $GLOBALS['WCCSP_Settings']::REQUIRED_CAPABILITY,
    5958            )
    6059        );
Note: See TracChangeset for help on using the changeset viewer.