$value ) { $page_headers[ $key ] = $value; } if ( empty( $header_options ) ) { $page_headers = array( '' => __( 'No Page Headers Found', 'astra-addon' ), ); } if ( Astra_Ext_Extension::is_active( 'sticky-header' ) ) { if ( $show_meta_field ) { $disable_fields[] = array( 'attribute' => 'header-main-stick-meta', 'id' => 'header-main-stick-meta', 'label' => esc_html__( 'Stick Primary Header', 'astra-addon' ), 'switch_on' => 'on', 'switch_off' => 'off', 'type' => 'switch', ); } } if ( Astra_Ext_Extension::is_active( 'sticky-header' ) ) { if ( $show_meta_field ) { $disable_fields[] = array( 'attribute' => 'header-above-stick-meta', 'id' => 'header-above-stick-meta', 'label' => esc_html__( 'Stick Above Header', 'astra-addon' ), 'switch_on' => 'on', 'switch_off' => 'off', 'type' => 'switch', ); } } if ( Astra_Ext_Extension::is_active( 'sticky-header' ) ) { if ( $show_meta_field ) { $disable_fields[] = array( 'attribute' => 'header-below-stick-meta', 'id' => 'header-below-stick-meta', 'label' => esc_html__( 'Stick Below Header', 'astra-addon' ), 'switch_on' => 'on', 'switch_off' => 'off', 'type' => 'switch', ); } } if ( 'disabled' !== $above_header_layout ) { if ( $show_meta_field ) { $disable_fields[] = array( 'attribute' => 'ast-above-header-display', 'id' => 'ast-above-header-display', 'label' => esc_html__( 'Disable Above Header', 'astra-addon' ), 'switch_on' => 'disabled', 'type' => 'switch', ); } } if ( 'disabled' !== $below_header_layout ) { if ( $show_meta_field ) { $disable_fields[] = array( 'attribute' => 'ast-below-header-display', 'id' => 'ast-below-header-display', 'label' => esc_html__( 'Disable Below Header', 'astra-addon' ), 'switch_on' => 'disabled', 'type' => 'switch', ); } } if ( Astra_Ext_Extension::is_active( 'advanced-headers' ) ) { $addon_fields[] = array( 'attribute' => 'adv-header-id-meta', 'id' => 'adv-header-id-meta', 'label' => esc_html__( 'Page Header ', 'astra-addon' ), 'type' => 'ast-select', 'options' => $page_headers, ); } if ( Astra_Ext_Extension::is_active( 'sticky-header' ) ) { $addon_fields[] = array( 'attribute' => 'stick-header-meta', 'id' => 'stick-header-meta', 'label' => esc_html__( 'Sticky Header ', 'astra-addon' ), 'type' => 'ast-select', 'options' => array( 'default' => esc_html__( 'Customizer Setting', 'astra-addon' ), 'enabled' => esc_html__( 'Enabled', 'astra-addon' ), 'disabled' => esc_html__( 'Disabled', 'astra-addon' ), ), ); } if ( Astra_Ext_Extension::is_active( 'transparent-header' ) ) { $addon_fields[] = array( 'attribute' => 'theme-transparent-header-meta', 'id' => 'theme-transparent-header-meta', 'label' => esc_html__( 'Transparent Header ', 'astra-addon' ), 'type' => 'ast-select', 'options' => array( 'default' => esc_html__( 'Customizer Setting', 'astra-addon' ), 'enabled' => esc_html__( 'Enabled', 'astra-addon' ), 'disabled' => esc_html__( 'Disabled', 'astra-addon' ), ), ); } $default_fields[] = $addon_fields; $default_fields[] = $disable_fields; return $default_fields; } /** * Enqueue admin Scripts and Styles. * * @since 1.3.3 */ public function admin_scripts() { if ( class_exists( 'LLMS_Admin_Assets' ) ) { $obj = new LLMS_Admin_Assets(); if ( $obj->is_llms_page() ) { if ( SCRIPT_DEBUG ) { $js_path = 'assets/js/unminified/lifterlms-builder-settings.js'; } else { $js_path = 'assets/js/minified/lifterlms-builder-settings.min.js'; } wp_enqueue_script( 'ast-lifterlms-builder-settings-', ASTRA_ADDON_EXT_LIFTERLMS_URI . $js_path, array(), ASTRA_EXT_VER, true ); } } } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_LifterLMS_Loader::get_instance();