array( "{$prefix}props.showTopBar" => array( 'default' => Defaults::get( "{$prefix}props.showTopBar" ), 'control' => array( 'label' => Translations::get( 'show_top_bar' ), 'type' => 'switch', 'section' => $section, 'colibri_tab' => 'content', 'priority' => 12, ), 'css_output' => array( array( 'selector' => static::selectiveRefreshSelector(), 'property' => 'display', 'true_value' => 'block', 'false_value' => 'none', ), ), ), ), ); } public static function selectiveRefreshSelector() { return "[data-selective-refresh='" . static::selectiveRefreshKey() . "']"; } public function renderContent( $parameters = array() ) { $prefix = static::$settings_prefix; if ( ! $this->mod( "{$prefix}props.showTopBar" ) ) { if ( ! is_customize_preview() ) { return; } } if ( is_customize_preview() ) { ?>