admin_url( 'customize.php' ), 'panels' => $this->get_customizer_panels(), 'iconUrl' => ASTRA_THEME_URI . 'inc/assets/images/astra-logo.svg', ) ); } /** * Get customizer panels configuration * * @since 4.12.0 * @return array List of customizer panels. */ private function get_customizer_panels() { $panels = array( array( 'name' => 'astra/customizer-global', 'label' => __( 'Customizer: Global', 'astra' ), 'searchLabel' => __( 'Global, Container, Layout, Colors, Color, Background, Base Colors, Typography, Font, Fonts, Headings, Text, Buttons, Button, Style, Base Typography', 'astra' ), 'type' => 'panel', 'id' => 'panel-global', ), array( 'name' => 'astra/customizer-header', 'label' => __( 'Customizer: Header', 'astra' ), 'searchLabel' => __( 'Header, Site Identity, Logo, Site Title, Tagline, Primary Header, Primary Menu, Menu, Navigation, Above Header, Below Header, Mobile Header, Mobile Menu, Search, Button, Social, Account, Cart, Widget, HTML, Off Canvas, Mobile Trigger', 'astra' ), 'type' => 'panel', 'id' => 'panel-header-builder-group', ), array( 'name' => 'astra/customizer-footer', 'label' => __( 'Customizer: Footer', 'astra' ), 'searchLabel' => __( 'Footer, Footer Widgets, Footer Bar, Copyright, Primary Footer, Above Footer, Below Footer, Menu, Social, HTML, Widget', 'astra' ), 'type' => 'panel', 'id' => 'panel-footer-builder-group', ), array( 'name' => 'astra/customizer-blog', 'label' => __( 'Customizer: Blog', 'astra' ), 'searchLabel' => __( 'Blog, Archive, Single Post, Post, Single Page, Page, Content, Excerpt, Featured Image, Meta, Author, Date, Categories, Tags, Comments', 'astra' ), 'type' => 'section', 'id' => 'section-blog-group', ), array( 'name' => 'astra/customizer-general', 'label' => __( 'Customizer: General', 'astra' ), 'searchLabel' => __( 'General, Sidebar, Accessibility, Skip to Content, Block Editor, Gutenberg, Misc, Scroll To Top, Back to Top', 'astra' ), 'type' => 'section', 'id' => 'section-general-group', ), ); // Add WooCommerce panel only if WooCommerce is active. if ( class_exists( 'WooCommerce' ) ) { $panels[] = array( 'name' => 'astra/customizer-woocommerce', 'label' => __( 'Customizer: WooCommerce', 'astra' ), 'searchLabel' => __( 'WooCommerce, Shop, Store, Products, Single Product, Cart, Checkout, Account, My Account, Orders, Sidebar', 'astra' ), 'type' => 'panel', 'id' => 'woocommerce', ); } return $panels; } } new Astra_Command_Palette(); }