1 4
3 7

esc_html__( 'Theme Features', 'botiga' ), 'type' => 'features', 'visible' => array( 'free', 'pro' ), 'data' => array( array( 'name' => esc_html__( 'Change Site Title or Logo', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[control]=blogname' ), ), array( 'name' => esc_html__( 'Typography', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[panel]=botiga_panel_typography' ), ), array( 'name' => esc_html__( 'Color Options', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=colors' ), ), array( 'name' => esc_html__( 'Main Header', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_main_header' ), ), array( 'name' => esc_html__( 'Mobile Header', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_mobile_header' ), ), array( 'name' => esc_html__( 'Footer Copyright', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_footer_credits' ), ), array( 'name' => esc_html__( 'Blog Archives', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_blog_archives' ), ), array( 'name' => esc_html__( 'Single Posts', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_blog_singles' ), ), array( 'name' => esc_html__( 'Button Options', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_buttons' ), ), array( 'name' => esc_html__( 'Product Catalog', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=woocommerce_product_catalog' ), ), array( 'name' => esc_html__( 'Single Products', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_single_product' ), ), array( 'name' => esc_html__( 'Cart Layout', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_shop_cart' ), ), array( 'name' => esc_html__( 'Checkout Options', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=woocommerce_checkout' ), ), array( 'name' => esc_html__( 'Scroll to Top', 'botiga' ), 'type' => 'free', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_scrolltotop' ), ), array( 'name' => esc_html__( 'Wishlist', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_wishlist' ), ), array( 'name' => esc_html__( 'Product Swatch', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_product_swatches' ), ), array( 'name' => esc_html__( 'Shop Header Styles', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=woocommerce_product_catalog&control=customize-control-accordion_shop_layout' ), ), array( 'name' => esc_html__( 'More Single Product Gallery Styles', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_single_product&control=customize-control-accordion_single_product_layout' ), ), array( 'name' => esc_html__( 'Single Product Sticky Add to Cart', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_single_product&control=customize-control-accordion_single_product_sticky_add_to_cart' ), ), array( 'name' => esc_html__( 'Single Product Tab Styles', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_single_product&control=customize-control-accordion_single_product_tabs' ), ), array( 'name' => esc_html__( 'More Sidebar Layouts', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=woocommerce_product_catalog&control=customize-control-accordion_shop_layout' ), ), array( 'name' => esc_html__( 'Distraction Free Checkout', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=woocommerce_checkout' ), ), array( 'name' => esc_html__( 'More Footer Copyright Elements', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_section_footer_credits' ), ), ), ), array( 'name' => esc_html__( 'Free vs PRO', 'botiga' ), 'type' => 'html', 'visible' => array( 'free' ), 'data' => botiga_free_vs_pro_html(), ), array( 'name' => esc_html__( 'Performance', 'botiga' ), 'type' => 'performance', 'visible' => array( 'free', 'pro' ), ), ); if( ! defined( 'BOTIGA_PRO_VERSION' ) ) { $settings['tabs'][0]['data'][] = array( 'name' => esc_html__( 'Mega Menu', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/nav-menus.php' ), ); $settings['tabs'][0]['data'][] = array( 'name' => esc_html__( 'Breadcrumbs', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_breadcrumbs' ), ); $settings['tabs'][0]['data'][] = array( 'name' => esc_html__( 'Quick Links', 'botiga' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=botiga_quicklinks' ), ); } // Modules // To do: map theme dashboard settings array to search for // array item location based on string, so we might remove/add items from the array // locating by the array string instead of e.g '$settings['tabs'][0]['data'][3] .... ['data'][4] ... ['data'][5]' if( class_exists( 'Botiga_Modules' ) ) { if( Botiga_Modules::is_module_active( 'hf-builder' ) ) { // Replace 'Main Menu' ([3]) with HF in the theme dashboard $settings['tabs'][0]['data'][3] = Botiga_Modules::get_modules()[0]; // Remove 'Mobile Header' from theme dashboard. unset( $settings['tabs'][0]['data'][4] ); // Remove 'Footer Copyright' from theme dashboard. unset( $settings['tabs'][0]['data'][5] ); // Remove 'More Footer Copyright Elements' from theme dashboard. unset( $settings['tabs'][0]['data'][22] ); } else { // Adds HF Builder theme dashboard item before 'Main Header'. $new = array( Botiga_Modules::get_modules()[0] ); array_splice( $settings['tabs'][0]['data'], 3, 0, $new ); } } // Documentation. $settings['documentation_link'] = 'https://docs.athemes.com/collection/318-botiga'; // Upgrade to Pro. $settings['upgrade_pro'] = 'https://athemes.com/botiga-upgrade?utm_source=theme_info&utm_medium=link&utm_campaign=Botiga'; // Promo. $settings['promo_title'] = esc_html__( 'Upgrade to Pro', 'botiga' ); $settings['promo_desc'] = esc_html__( 'Take Botiga to a whole other level by upgrading to the Pro version.', 'botiga' ); $settings['promo_button'] = esc_html__( 'Discover Botiga Pro', 'botiga' ); $settings['promo_link'] = 'https://athemes.com/botiga-upgrade?utm_source=theme_info&utm_medium=link&utm_campaign=Botiga'; // Review. $settings['review_link'] = 'https://wordpress.org/support/theme/botiga/reviews/'; $settings['suggest_idea_link'] = 'https://athemes.com/feature-request/'; // Support. $settings['support_link'] = 'https://wordpress.org/support/theme/botiga/'; $settings['support_pro_link'] = 'https://athemes.com/botiga-upgrade?utm_source=theme_support&utm_medium=button&utm_campaign=Botiga'; // Community. $settings['community_link'] = 'https://www.facebook.com/groups/athemes/'; $theme = wp_get_theme(); // Changelog. $settings['changelog_version'] = $theme->version; $settings['changelog_link'] = 'https://athemes.com/changelog/botiga/'; //Has pro $settings['has_pro'] = false; return $settings; } add_filter( 'thd_register_settings', 'botiga_dashboard_settings' ); /** * Starter Settings * * @param array $settings The settings. */ function botiga_demos_settings( $settings ) { $settings['categories'] = array( 'business' => 'Business', 'portfolio' => 'Portfolio', 'ecommerce' => 'eCommerce', 'event' => 'Events', ); $settings['builders'] = array( 'elementor' => 'Elementor', ); // Pro. $settings['pro_label'] = esc_html__( 'Get Botiga Pro', 'botiga' ); $settings['pro_link'] = 'https://athemes.com/theme/botiga?utm_source=theme_table&utm_medium=button&utm_campaign=Botiga'; return $settings; } add_filter( 'atss_register_demos_settings', 'botiga_demos_settings' );