$key = $args[ $key ]; } } $this->manager = $manager; $this->id = $id; if ( empty( $this->active_callback ) ) { $this->active_callback = array( $this, 'active_callback' ); } self::$instance_count += 1; $this->instance_number = self::$instance_count; $this->controls = array(); // Users cannot customize the $controls array. // TODO Redux addition if ( isset( $args['section'] ) ) { $this->section = $args['section']; $this->description = isset( $this->section['desc'] ) ? $this->section['desc'] : ''; $this->opt_name = isset( $args['opt_name'] ) ? $args['opt_name'] : ''; } } /** * An Underscore (JS) template for rendering this section. * Class variables for this section class are available in the `data` JS object; * export custom variables by overriding {@see WP_Customize_Section::json()}. * * @see WP_Customize_Section::print_template() * @since 4.3.0 */ protected function render_template() { ?>
{{{ data.description }}}
<# } #> opt_name ) && isset( $this->section ) ) { do_action( "redux/page/{$this->opt_name}/section/before", $this->section ); } ?>description; ?>