8889841cPK,[=5Ukksrc/styles.cssnu[#customize-theme-controls .control-section-kirki-expanded .accordion-section-title { display: none; } #customize-theme-controls .control-section-kirki-expanded .customize-section-back { display: none; } #customize-theme-controls .customize-pane-child.control-section-kirki-expanded { position: relative; visibility: visible; height: auto; margin-left: -100%; } #customize-theme-controls .customize-pane-child.control-section-kirki-expanded h3 .customize-action { display: none; } #customize-theme-controls .control-section-kirki-link .accordion-section-title { padding-right: 10px !important } #customize-theme-controls .control-section-kirki-link .button { margin-top: -3px; } #customize-theme-controls .customize-pane-child.current-section-parent, .in-sub-panel #customize-theme-controls .customize-pane-child.current-panel-parent { transform: translateX(-100%); } .control-section-kirki-nested { margin: 0 -12px; } .control-section-kirki-outer { display: list-item !important; } PK,[%jsrc/Section.phpnu[ '\Kirki\Section_Types\Expanded', 'kirki-nested' => '\Kirki\Section_Types\Nested', 'kirki-link' => '\Kirki\Section_Types\Link', 'kirki-outer' => '\Kirki\Section_Types\Outer', ]; /** * Constructor. * * @access public * @since 1.0.0 * @param string $id The section ID. * @param array $args The section args. */ public function __construct( $id, $args = [] ) { $this->id = $id; $this->args = $args; $this->section_types = apply_filters( 'kirki_section_types', $this->section_types ); do_action( 'kirki_section_init', $id, $args ); add_action( 'customize_register', [ $this, 'register_section_types' ] ); if ( $this->args ) { add_action( 'customize_register', [ $this, 'add_section' ] ); } add_action( 'customize_controls_enqueue_scripts', [ $this, 'enqueue_scrips' ] ); add_action( 'customize_controls_print_footer_scripts', [ $this, 'outer_sections_css' ] ); } /** * Register section types. * * @access public * @since 1.0.0 * @param object $wp_customize The customizer object. * @return void */ public function register_section_types( $wp_customize ) { foreach ( $this->section_types as $section_type ) { $wp_customize->register_section_type( $section_type ); } } /** * Add the section using the Customizer API. * * @access public * @since 1.0.0 * @param object $wp_customize The customizer object. */ public function add_section( $wp_customize ) { // Figure out the type of this section. $this->args['type'] = isset( $this->args['type'] ) ? $this->args['type'] : 'default'; if ( isset( $this->args['section'] ) && ! empty( $this->args['section'] ) ) { $this->args['type'] = 'kirki-nested'; // We need to check if the parent section is nested inside a panel. $parent_section = $wp_customize->get_section( $this->args['section'] ); if ( $parent_section && isset( $parent_section->panel ) ) { $this->args['panel'] = $parent_section->panel; } } $this->args['type'] = false === strpos( $this->args['type'], 'kirki-' ) ? 'kirki-' . $this->args['type'] : $this->args['type']; // Get the class we'll be using to create this section. $section_classname = '\WP_Customize_Section'; if ( isset( $this->section_types[ $this->args['type'] ] ) ) { $section_classname = $this->section_types[ $this->args['type'] ]; } if ( isset( $this->args['type'] ) && 'kirki-outer' === $this->args['type'] ) { $this->args['type'] = 'outer'; $section_classname = 'WP_Customize_Section'; // ? Bagus: we should be using `\` (backslash) right? Lookk at above. } // Add the section. $wp_customize->add_section( new $section_classname( $wp_customize, $this->id, apply_filters( 'kirki_section_args', $this->args, $this->id ) ) ); // Run an action after the section has been added. do_action( 'kirki_section_added', $this->id, $this->args ); } /** * Removes the section. * * @access public * @since 1.0.0 * @return void */ public function remove() { add_action( 'customize_register', [ $this, 'remove_section' ], 9999 ); } /** * Add the section using the Customizer API. * * @access public * @since 1.0.0 * @param object $wp_customize The customizer object. */ public function remove_section( $wp_customize ) { $wp_customize->remove_section( $this->id ); } /** * Enqueues any necessary scripts and styles. * * @access public * @since 1.0.0 */ public function enqueue_scrips() { wp_enqueue_style( 'kirki-sections', URL::get_from_path( __DIR__ . '/styles.css' ), [], '1.0' ); wp_enqueue_script( 'kirki-sections', URL::get_from_path( __DIR__ . '/script.js' ), [ 'jquery', 'customize-base', 'customize-controls' ], '1.0', false ); } /** * Generate CSS for the outer sections. * These are by default hidden, we need to expose them. * * @access public * @since 1.0.0 * @return void */ public function outer_sections_css() { if ( isset( $this->args['type'] ) && ( 'outer' === $this->args['type'] || 'kirki-outer' === $this->args['type'] ) ) { echo ''; } } } PK,[fsrc/Section_Types/Outer.phpnu[button_text; $json['button_url'] = $this->button_url; return $json; } /** * Outputs the Underscore.js template. * * @access public * @since 1.0.0 * @return void */ protected function render_template() { ?>
  • {{ data.title }} {{ data.button_text }}

  • title, ENT_QUOTES, get_bloginfo( 'charset' ) ); $array['content'] = $this->get_content(); $array['active'] = $this->active(); $array['instanceNumber'] = $this->instance_number; $array['customizeAction'] = esc_html__( 'Customizing', 'kirki' ); if ( $this->panel ) { /* translators: The title. */ $array['customizeAction'] = sprintf( esc_html__( 'Customizing ▸ %s', 'kirki' ), esc_html( $this->manager->get_panel( $this->panel )->title ) ); } return $array; } } PK,[C7src/Section_Types/Expanded.phpnu[