File manager - Edit - /home/aussies6/public_html/seafoodwarehouse.com.au/wp-content/themes/topshop/customizer/customizer-options.php
Back
<?php /** * Defines customizer options * * @package Customizer Library Demo */ function customizer_library_topshop_options() { // Theme defaults $primary_color = '#29a6e5'; $secondary_color = '#266ee4'; $nav_bg_color = '#FFFFFF'; $footer_bg_color = '#FFFFFF'; $body_font_color = '#4F4F4F'; $heading_font_color = '#5E5E5E'; // Stores all the controls that will be added $options = array(); // Stores all the sections to be added $sections = array(); // Stores all the panels to be added $panels = array(); // Adds the sections to the $options array $options['sections'] = $sections; $section = 'header_image'; $sections[] = array( 'id' => $section, 'title' => __( 'Site Logo', 'topshop' ), 'priority' => '25' ); $options['topshop-header-image-logo-max-width'] = array( 'id' => 'topshop-header-image-logo-max-width', 'label' => __( 'Set a max-width for the logo', 'topshop' ), 'section' => $section, 'type' => 'number', 'description' => __( 'This only applies if a logo image is uploaded', 'topshop' ) ); $panel = 'topshop-panel-layout'; $panels[] = array( 'id' => $panel, 'title' => __( 'TopShop Theme Settings', 'topshop' ), 'priority' => '30' ); $section = 'topshop-panel-layout-section-site'; $sections[] = array( 'id' => $section, 'title' => __( 'Site Layout', 'topshop' ), 'priority' => '10', 'panel' => $panel ); $choices = array( 'topshop-layout-full-width' => __( 'Full Width Layout', 'topshop' ), 'topshop-layout-boxed' => __( 'Boxed Layout', 'topshop' ) ); $options['topshop-site-layout'] = array( 'id' => 'topshop-site-layout', 'label' => __( 'Site Layout', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'description' => __( 'Select between a Full Width / Boxed layout', 'topshop' ), 'default' => 'topshop-layout-full-width' ); $options['topshop-set-container-width'] = array( 'id' => 'topshop-set-container-width', 'label' => __( 'Site Container Width', 'topshop' ), 'section' => $section, 'type' => 'range', 'input_attrs' => array( 'min' => 900, 'max' => 1400, 'step' => 2, ), 'description' => __( 'Set the width of your site between 900 pixels and 1400 pixels', 'topshop' ), 'default' => 1140 ); $options['topshop-remove-page-title'] = array( 'id' => 'topshop-remove-page-title', 'label' => __( 'Remove All Page Titles', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-set-sidebar-width'] = array( 'id' => 'topshop-set-sidebar-width', 'label' => __( 'Sidebar Width', 'topshop' ), 'section' => $section, 'type' => 'range', 'input_attrs' => array( 'min' => 20, 'max' => 42, 'step' => 1, ), 'default' => 25 ); $section = 'topshop-panel-layout-section-header'; $sections[] = array( 'id' => $section, 'title' => __( 'Header', 'topshop' ), 'priority' => '20', 'panel' => $panel ); $options['topshop-show-header-top-bar'] = array( 'id' => 'topshop-show-header-top-bar', 'label' => __( 'Show Top Bar', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $choices = array( 'topshop-header-layout-standard' => __( 'Standard Layout', 'topshop' ), 'topshop-header-layout-centered' => __( 'Centered Layout', 'topshop' ), 'topshop-header-layout-three' => __( 'Standard Social Layout', 'topshop' ) ); $options['topshop-header-layout'] = array( 'id' => 'topshop-header-layout', 'label' => __( 'Header Layout', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'topshop-header-layout-standard' ); $options['topshop-nav-center'] = array( 'id' => 'topshop-nav-center', 'label' => __( 'Center Navigation', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-sticky-header'] = array( 'id' => 'topshop-sticky-header', 'label' => __( 'Sticky Header', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-header-remove-acc'] = array( 'id' => 'topshop-header-remove-acc', 'label' => __( 'Remove "Sign In/Account" link', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-header-search'] = array( 'id' => 'topshop-header-search', 'label' => __( 'Show Search', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-search-shortcode'] = array( 'id' => 'topshop-search-shortcode', 'label' => __( 'Replace Default Search', 'topshop' ), 'section' => $section, 'type' => 'text', 'description' => __( 'Enter a shortcode to replace the default search', 'topshop' ) ); $options['topshop-noteon-header-search'] = array( 'id' => 'topshop-noteon-header-search', 'section' => $section, 'type' => 'note', 'description' => __( 'We recommend <a href="https://kairaweb.com/go/woocommerce-product-search/" target="_blank">WooCommerce Product Search</a> for a better product search for your store', 'topshop' ) ); // Slider Settings $section = 'topshop-panel-layout-section-slider'; $sections[] = array( 'id' => $section, 'title' => __( 'Home Page Slider', 'topshop' ), 'priority' => '30', 'panel' => $panel ); $choices = array( 'topshop-slider-default' => __( 'Default Slider', 'topshop' ), 'topshop-meta-slider' => __( 'Meta Slider', 'topshop' ), 'topshop-no-slider' => __( 'None', 'topshop' ) ); $options['topshop-slider-type'] = array( 'id' => 'topshop-slider-type', 'label' => __( 'Choose a Slider', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'topshop-slider-default' ); $options['topshop-slider-cats'] = array( 'id' => 'topshop-slider-cats', 'label' => __( 'Slider Categories', 'topshop' ), 'section' => $section, 'type' => 'text', 'description' => __( 'Enter the ID\'s of the post categories you want to display in the slider. Eg: "13,17,19" (no spaces and only comma\'s)<br /><br />Get the ID at <b>Posts -> Categories</b>.<br /><br />Or <a href="https://kairaweb.com/documentation/setting-up-the-default-slider/" target="_blank"><b>See more instructions here</b></a>', 'topshop' ) ); $options['topshop-meta-slider-shortcode'] = array( 'id' => 'topshop-meta-slider-shortcode', 'label' => __( 'Slider Shortcode', 'topshop' ), 'section' => $section, 'type' => 'text', 'description' => __( 'For a more advanced slider we recommend <a href="https://getdpd.com/cart/hoplink/15318?referrer=9jtzbgs34v8k4c0gs" target="_blank">Meta Slider</a><br /><br />Enter the slider shortcode here', 'topshop' ) ); $choices = array( 'crossfade' => __( 'Fade', 'topshop' ), 'cover-fade' => __( 'Cover Fade', 'topshop' ), 'uncover-fade' => __( 'Uncover Fade', 'topshop' ), 'cover' => __( 'Cover', 'topshop' ), 'scroll' => __( 'Scroll', 'topshop' ) ); $options['topshop-slider-scroll-effect'] = array( 'id' => 'topshop-slider-scroll-effect', 'label' => __( 'Slider Scroll Effect', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'uncover-fade' ); $options['topshop-slider-linkto-post'] = array( 'id' => 'topshop-slider-linkto-post', 'label' => __( 'Link Slide to post', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'description' => __( 'Custom links can be set on each slide post', 'topshop' ), 'default' => 0, ); $options['topshop-slider-remove-title'] = array( 'id' => 'topshop-slider-remove-title', 'label' => __( 'Remove Slider Text', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-slider-auto-scroll'] = array( 'id' => 'topshop-slider-auto-scroll', 'label' => __( 'Stop Auto Slide', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); // Blog Settings $section = 'topshop-blog'; $sections[] = array( 'id' => $section, 'title' => __( 'Blog List', 'topshop' ), 'priority' => '40', 'panel' => $panel ); $choices = array( 'blog-post-side-layout' => __( 'Side Layout', 'topshop' ), 'blog-post-top-layout' => __( 'Top Layout', 'topshop' ) ); $options['topshop-blog-layout'] = array( 'id' => 'topshop-blog-layout', 'label' => __( 'Blog Post Layout', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'blog-post-side-layout' ); $options['topshop-blog-cats'] = array( 'id' => 'topshop-blog-cats', 'label' => __( 'Exclude Blog Categories', 'topshop' ), 'section' => $section, 'type' => 'text', 'description' => __( 'Enter the ID\'s of the post categories you\'d like to EXCLUDE from the Blog, enter only the ID\'s with a minus sign (-) before them, separated by a comma (,)<br />Eg: "-13, -17, -19"<br /><br />If you enter the ID\'s without the minus then it\'ll show ONLY posts in those categories.<br /><br />Get the ID at <b>Posts -> Categories</b>.', 'topshop' ) ); $choices = array( 'blog-use-images-loop' => __( 'Images Carousel', 'topshop' ), 'blog-use-featured-image' => __( 'Use only the featured image', 'topshop' ) ); $options['topshop-blog-list-image-type'] = array( 'id' => 'topshop-blog-list-image-type', 'label' => __( 'Blog List Image', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'blog-use-featured-image' ); $choices = array( 'blog-display-full-text' => __( 'Full Text', 'topshop' ), 'blog-display-summary' => __( 'Summary', 'topshop' ) ); $options['topshop-article-content-display'] = array( 'id' => 'topshop-article-content-display', 'label' => __( 'For each article display:', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'blog-display-full-text' ); $options['topshop-article-content-word-count'] = array( 'id' => 'topshop-article-content-word-count', 'label' => __( 'Amount of words displayed', 'topshop' ), 'section' => $section, 'type' => 'number', 'default' => 40 ); $options['topshop-article-content-readmore'] = array( 'id' => 'topshop-article-content-readmore', 'label' => __( 'Read More Text', 'topshop' ), 'section' => $section, 'type' => 'text', 'default' => '...Read More' ); $options['topshop-blog-leftsidebar'] = array( 'id' => 'topshop-blog-leftsidebar', 'label' => __( 'Blog Left Sidebar', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-blog-cat-leftsidebar'] = array( 'id' => 'topshop-blog-cat-leftsidebar', 'label' => __( 'Archives/Categories Left Sidebar', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-blog-single-leftsidebar'] = array( 'id' => 'topshop-blog-single-leftsidebar', 'label' => __( 'Blog Single Pages Left Sidebar', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-setting-blog-full-width'] = array( 'id' => 'topshop-setting-blog-full-width', 'label' => __( 'Blog Full Width', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-setting-blog-cats-full-width'] = array( 'id' => 'topshop-setting-blog-cats-full-width', 'label' => __( 'Blog Archive/Category Full Width', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-setting-blog-single-full-width'] = array( 'id' => 'topshop-setting-blog-single-full-width', 'label' => __( 'Blog Single Pages Full Width', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-remove-cat-pre-title'] = array( 'id' => 'topshop-remove-cat-pre-title', 'label' => __( 'Remove text before Archive Title', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'description' => __( 'This will not update in the Customizer. Exit the Customizer to view the change', 'topshop' ), 'default' => 0, ); $section = 'topshop-blog-single'; $sections[] = array( 'id' => $section, 'title' => __( 'Blog Single Posts', 'topshop' ), 'priority' => '50', 'panel' => $panel ); $options['topshop-single-remove-title'] = array( 'id' => 'topshop-single-remove-title', 'label' => __( 'Remove Page Titles', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-single-remove-img'] = array( 'id' => 'topshop-single-remove-img', 'label' => __( 'Remove Featured Image', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-single-remove-meta'] = array( 'id' => 'topshop-single-remove-meta', 'label' => __( 'Remove Meta Info', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-single-remove-cats-tags'] = array( 'id' => 'topshop-single-remove-cats-tags', 'label' => __( 'Remove Categories & Tags', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-single-remove-pag'] = array( 'id' => 'topshop-single-remove-pag', 'label' => __( 'Remove links to Next & Previous posts', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-single-author-block'] = array( 'id' => 'topshop-single-author-block', 'label' => __( 'Add Post Author Block', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'description' => __( 'This will not update in the Customizer. Exit the Customizer to view the change on the blog post pages', 'topshop' ), 'default' => 0, ); // Blog Settings $section = 'topshop-footer'; $sections[] = array( 'id' => $section, 'title' => __( 'Footer', 'topshop' ), 'priority' => '60', 'panel' => $panel ); $options['topshop-btt-button'] = array( 'id' => 'topshop-btt-button', 'label' => __( 'Enable a Back To Top button', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $choices = array( 'topshop-footer-layout-standard' => __( 'Standard Layout', 'topshop' ), 'topshop-footer-layout-social' => __( 'Social Layout', 'topshop' ), 'topshop-footer-layout-custom' => __( 'Custom Layout', 'topshop' ) ); $options['topshop-footer-layout'] = array( 'id' => 'topshop-footer-layout', 'label' => __( 'Footer Layout', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'topshop-footer-layout-standard' ); $options['topshop-footer-remove-bottombar'] = array( 'id' => 'topshop-footer-remove-bottombar', 'label' => __( 'Remove Bottom Bar', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-footer-switch-bottombar'] = array( 'id' => 'topshop-footer-switch-bottombar', 'label' => __( 'Switch Bottom Bar', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-footer-social-icon-size'] = array( 'id' => 'topshop-footer-social-icon-size', 'label' => __( 'Social Icon Size', 'topshop' ), 'section' => $section, 'type' => 'range', 'input_attrs' => array( 'min' => 16, 'max' => 100, 'step' => 1, ), 'default' => 36 ); $options['topshop-footer-social-icon-space'] = array( 'id' => 'topshop-footer-social-icon-space', 'label' => __( 'Social Icon Spacing', 'topshop' ), 'section' => $section, 'type' => 'range', 'input_attrs' => array( 'min' => 5, 'max' => 80, 'step' => 1, ), 'default' => 20 ); $choices = array( 'topshop-footer-custom-cols-1' => __( '1 Column', 'topshop' ), 'topshop-footer-custom-cols-2' => __( '2 Columns', 'topshop' ), 'topshop-footer-custom-cols-3' => __( '3 Columns', 'topshop' ), 'topshop-footer-custom-cols-4' => __( '4 Columns', 'topshop' ), 'topshop-footer-custom-cols-5' => __( '5 Columns', 'topshop' ) ); $options['topshop-footer-custom-cols'] = array( 'id' => 'topshop-footer-custom-cols', 'label' => __( 'Columns', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'topshop-footer-custom-cols-3' ); $options['topshop-footer-customize'] = array( 'id' => 'topshop-footer-customize', 'label' => __( 'Custom Widths', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'description' => __( 'Select this box to manually adjust the columns widths by percentage ( % )', 'topshop' ), 'default' => 0, ); $options['topshop-footer-customize-col-1'] = array( 'id' => 'topshop-footer-customize-col-1', 'label' => __( 'Column 1 %', 'topshop' ), 'section' => $section, 'type' => 'number', ); $options['topshop-footer-customize-col-2'] = array( 'id' => 'topshop-footer-customize-col-2', 'label' => __( 'Column 2 %', 'topshop' ), 'section' => $section, 'type' => 'number', ); $options['topshop-footer-customize-col-3'] = array( 'id' => 'topshop-footer-customize-col-3', 'label' => __( 'Column 3 %', 'topshop' ), 'section' => $section, 'type' => 'number', ); $options['topshop-footer-customize-col-4'] = array( 'id' => 'topshop-footer-customize-col-4', 'label' => __( 'Column 4 %', 'topshop' ), 'section' => $section, 'type' => 'number', ); $options['topshop-footer-customize-col-5'] = array( 'id' => 'topshop-footer-customize-col-5', 'label' => __( 'Column 5 %', 'topshop' ), 'section' => $section, 'type' => 'number', ); // WooCommerce style Layout if ( topshop_is_woocommerce_activated() ) : $section = 'topshop-panel-layout-section-woocommerce'; $sections[] = array( 'id' => $section, 'title' => __( 'WooCommerce', 'topshop' ), 'priority' => '70', 'panel' => $panel ); $options['topshop-header-add-drop-cart'] = array( 'id' => 'topshop-header-add-drop-cart', 'label' => __( 'Add WooCommerce Drop Down Cart', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-header-remove-cart'] = array( 'id' => 'topshop-header-remove-cart', 'label' => __( 'Remove WooCommerce Cart', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-remove-product-border'] = array( 'id' => 'topshop-remove-product-border', 'label' => __( 'Remove Product Hover Border', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-remove-cats-count'] = array( 'id' => 'topshop-remove-cats-count', 'label' => __( 'Remove Categories Count', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $choices = array( '2' => __( '2', 'topshop' ), '3' => __( '3', 'topshop' ), '4' => __( '4', 'topshop' ), '5' => __( '5', 'topshop' ) ); $options['topshop-woocommerce-custom-cols'] = array( 'id' => 'topshop-woocommerce-custom-cols', 'label' => __( 'Product Columns', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => '4' ); $options['topshop-woocommerce-products-per-page'] = array( 'id' => 'topshop-woocommerce-products-per-page', 'label' => __( 'Products Per Page', 'topshop' ), 'section' => $section, 'type' => 'number', 'default' => 8 ); $options['topshop-woocommerce-shop-leftsidebar'] = array( 'id' => 'topshop-woocommerce-shop-leftsidebar', 'label' => __( 'Shop Page Left Sidebar', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-woocommerce-shop-archive-leftsidebar'] = array( 'id' => 'topshop-woocommerce-shop-archive-leftsidebar', 'label' => __( 'Shop Archive/Categories Left Sidebar', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-woocommerce-shop-single-leftsidebar'] = array( 'id' => 'topshop-woocommerce-shop-single-leftsidebar', 'label' => __( 'Shop Single Pages Left Sidebar', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-woocommerce-shop-fullwidth'] = array( 'id' => 'topshop-woocommerce-shop-fullwidth', 'label' => __( 'Shop Page Full Width', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-woocommerce-shop-archive-fullwidth'] = array( 'id' => 'topshop-woocommerce-shop-archive-fullwidth', 'label' => __( 'Shop Archive/Categories Full Width', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $options['topshop-woocommerce-shop-single-fullwidth'] = array( 'id' => 'topshop-woocommerce-shop-single-fullwidth', 'label' => __( 'Shop Single Pages Full Width', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, ); $choices = array( 'fa-shopping-cart' => __( 'Shopping Cart', 'topshop' ), 'fa-shopping-basket' => __( 'Shopping Basket', 'topshop' ), 'fa-shopping-bag' => __( 'Shopping Bag', 'topshop' ) ); $options['topshop-cart-icon'] = array( 'id' => 'topshop-cart-icon', 'label' => __( 'Cart Icon', 'topshop' ), 'section' => $section, 'type' => 'select', 'description' => __( 'Due to the AJAX, This will only change when you open the site again in a new tab', 'topshop' ), 'choices' => $choices, 'default' => 'fa-shopping-cart' ); endif; $section = 'topshop-site-seo-section'; $sections[] = array( 'id' => $section, 'title' => __( 'SEO (Search Engine Optimization)', 'topshop' ), 'priority' => '80', 'panel' => $panel ); $choices = array( '1' => __( 'H1', 'topshop' ), '2' => __( 'H2', 'topshop' ), '3' => __( 'H3', 'topshop' ), '4' => __( 'H4', 'topshop' ), '5' => __( 'H5', 'topshop' ), '6' => __( 'H6', 'topshop' ) ); $options['topshop-seo-site-title-tag'] = array( 'id' => 'topshop-seo-site-title-tag', 'label' => __( 'Site Title Element', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => '1' ); $choices = array( '1' => __( 'H1', 'topshop' ), '2' => __( 'H2', 'topshop' ), '3' => __( 'H3', 'topshop' ), '4' => __( 'H4', 'topshop' ), '5' => __( 'H5', 'topshop' ), '6' => __( 'H6', 'topshop' ) ); $options['topshop-seo-site-desc-tag'] = array( 'id' => 'topshop-seo-site-desc-tag', 'label' => __( 'Site Description Element', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => '2' ); $choices = array( '1' => __( 'H1', 'topshop' ), '2' => __( 'H2', 'topshop' ), '3' => __( 'H3', 'topshop' ), '4' => __( 'H4', 'topshop' ), '5' => __( 'H5', 'topshop' ), '6' => __( 'H6', 'topshop' ) ); $options['topshop-seo-page-title-tag'] = array( 'id' => 'topshop-seo-page-title-tag', 'label' => __( 'Page Titles Element', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => '3' ); $choices = array( '1' => __( 'H1', 'topshop' ), '2' => __( 'H2', 'topshop' ), '3' => __( 'H3', 'topshop' ), '4' => __( 'H4', 'topshop' ), '5' => __( 'H5', 'topshop' ), '6' => __( 'H6', 'topshop' ) ); $options['topshop-seo-blog-post-title-tag'] = array( 'id' => 'topshop-seo-blog-post-title-tag', 'label' => __( 'Blog List Titles Element', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => '3' ); $choices = array( '1' => __( 'H1', 'topshop' ), '2' => __( 'H2', 'topshop' ), '3' => __( 'H3', 'topshop' ), '4' => __( 'H4', 'topshop' ), '5' => __( 'H5', 'topshop' ), '6' => __( 'H6', 'topshop' ) ); $options['topshop-seo-widget-title-tag'] = array( 'id' => 'topshop-seo-widget-title-tag', 'label' => __( 'Widget Titles Element', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => '4' ); // Colors $section = 'topshop-styling'; $font_websafe_choices = array( 'Arial' => 'Arial', 'Arial Black' => 'Arial Black', 'Helvetica' => 'Helvetica', 'Verdana' => 'Verdana', 'Georgia' => 'Georgia', 'Palatino' => 'Palatino', 'Garamond' => 'Garamond', 'Bookman' => 'Bookman', 'Courier' => 'Courier', 'Courier New' => 'Courier New', 'Times New Roman' => 'Times New Roman', 'Times' => 'Times' ); $font_choices = customizer_library_get_font_choices(); $sections[] = array( 'id' => $section, 'title' => __( 'TopShop Font Settings', 'topshop' ), 'priority' => '40' ); $options['topshop-disable-google-fonts'] = array( 'id' => 'topshop-disable-google-fonts', 'label' => __( 'Disable Google Fonts', 'topshop' ), 'section' => $section, 'type' => 'checkbox', 'description' => __( 'This will let you only select from web-safe fonts', 'topshop' ), 'default' => 0, ); $options['topshop-title-font'] = array( 'id' => 'topshop-title-font', 'label' => __( 'Site Title Font', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $font_choices, 'default' => 'Raleway' ); $options['topshop-title-font-websafe'] = array( 'id' => 'topshop-title-font-websafe', 'label' => __( 'Site Title Font', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $font_websafe_choices, 'default' => 'Garamond' ); $options['topshop-title-font-size'] = array( 'id' => 'topshop-title-font-size', 'label' => __( 'Site Title Size', 'topshop' ), 'section' => $section, 'type' => 'number', 'default' => 34, ); $options['topshop-tagline-font-size'] = array( 'id' => 'topshop-tagline-font-size', 'label' => __( 'Site Tagline Size', 'topshop' ), 'section' => $section, 'type' => 'number', 'default' => 13, ); $options['topshop-title-bottom-margin'] = array( 'id' => 'topshop-title-bottom-margin', 'label' => __( 'Site Title Bottom Margin', 'topshop' ), 'section' => $section, 'type' => 'number', 'description' => __( 'This will set the space between the site title and the site tagline', 'topshop' ), 'default' => 0, ); $options['topshop-body-font'] = array( 'id' => 'topshop-body-font', 'label' => __( 'Body Font', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $font_choices, 'default' => 'Open Sans' ); $options['topshop-body-font-websafe'] = array( 'id' => 'topshop-body-font-websafe', 'label' => __( 'Body Font', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $font_websafe_choices, 'default' => 'Arial' ); $options['topshop-body-font-color'] = array( 'id' => 'topshop-body-font-color', 'label' => __( 'Body Font Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => $body_font_color, ); $options['topshop-heading-font'] = array( 'id' => 'topshop-heading-font', 'label' => __( 'Headings Font', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $font_choices, 'default' => 'Raleway' ); $options['topshop-heading-font-websafe'] = array( 'id' => 'topshop-heading-font-websafe', 'label' => __( 'Headings Font', 'topshop' ), 'section' => $section, 'type' => 'select', 'choices' => $font_websafe_choices, 'default' => 'Garamond' ); $options['topshop-heading-font-color'] = array( 'id' => 'topshop-heading-font-color', 'label' => __( 'Heading Font Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => $heading_font_color, ); $options['topshop-custom-css'] = array( 'id' => 'topshop-custom-css', 'label' => __( 'Custom CSS', 'topshop' ), 'section' => $section, 'type' => 'textarea', 'description' => __( 'Add custom CSS to your theme', 'topshop' ) ); $panel = 'topshop-panel-layout-colors'; $panels[] = array( 'id' => $panel, 'title' => __( 'TopShop Layout Colors', 'topshop' ), 'priority' => '40' ); $section = 'topshop-panel-layout-colors-section-header'; $sections[] = array( 'id' => $section, 'title' => __( 'Header', 'topshop' ), 'priority' => '10', 'panel' => $panel ); $options['topshop-header-bg-color'] = array( 'id' => 'topshop-header-bg-color', 'label' => __( 'Background Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => '#FFFFFF', ); $options['topshop-header-font-color'] = array( 'id' => 'topshop-header-font-color', 'label' => __( 'Font Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => '#777777', ); $options['topshop-topbar-bg-color'] = array( 'id' => 'topshop-topbar-bg-color', 'label' => __( 'Top Bar Background Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => '#FFFFFF', ); $options['topshop-topbar-font-color'] = array( 'id' => 'topshop-topbar-font-color', 'label' => __( 'Top Bar Background Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => '#777777', ); $options['topshop-nav-color'] = array( 'id' => 'topshop-nav-color', 'label' => __( 'Navigation Background Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => $nav_bg_color, ); $options['topshop-nav-font-color'] = array( 'id' => 'topshop-nav-font-color', 'label' => __( 'Navigation Font Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => '#626262', ); $section = 'topshop-panel-layout-colors-section-pages'; $sections[] = array( 'id' => $section, 'title' => __( 'Page', 'topshop' ), 'priority' => '20', 'panel' => $panel ); $options['topshop-sidebar-head-color'] = array( 'id' => 'topshop-sidebar-head-color', 'label' => __( 'Sidebar Headings Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => '#4D4D4D', ); $section = 'topshop-panel-layout-colors-section-footer'; $sections[] = array( 'id' => $section, 'title' => __( 'Footer', 'topshop' ), 'priority' => '20', 'panel' => $panel ); $options['topshop-footer-color'] = array( 'id' => 'topshop-footer-color', 'label' => __( 'Background Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => $footer_bg_color, ); $options['topshop-footer-head-font-color'] = array( 'id' => 'topshop-footer-head-font-color', 'label' => __( 'Heading Font Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => '#4D4D4D', ); $options['topshop-footer-font-color'] = array( 'id' => 'topshop-footer-font-color', 'label' => __( 'Footer Font Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => '#4F4F4F', ); $options['topshop-footer-bottombar-bg-color'] = array( 'id' => 'topshop-footer-bottombar-bg-color', 'label' => __( 'Bottom Bar Background Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => $footer_bg_color, ); $options['topshop-footer-bottombar-font-color'] = array( 'id' => 'topshop-footer-bottombar-font-color', 'label' => __( 'Bottom Bar Font Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => '#777777', ); // Social Settings $section = 'topshop-social'; $sections[] = array( 'id' => $section, 'title' => __( 'TopShop Social Links', 'topshop' ), 'priority' => '50' ); $options['topshop-social-email'] = array( 'id' => 'topshop-social-email', 'label' => __( 'Email Address', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-skype'] = array( 'id' => 'topshop-social-skype', 'label' => __( 'Skype Name', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-facebook'] = array( 'id' => 'topshop-social-facebook', 'label' => __( 'Facebook', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-twitter'] = array( 'id' => 'topshop-social-twitter', 'label' => __( 'Twitter', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-google-plus'] = array( 'id' => 'topshop-social-google-plus', 'label' => __( 'Google Plus', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-youtube'] = array( 'id' => 'topshop-social-youtube', 'label' => __( 'YouTube', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-vimeo'] = array( 'id' => 'topshop-social-vimeo', 'label' => __( 'Vimeo', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-instagram'] = array( 'id' => 'topshop-social-instagram', 'label' => __( 'Instagram', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-pinterest'] = array( 'id' => 'topshop-social-pinterest', 'label' => __( 'Pinterest', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-linkedin'] = array( 'id' => 'topshop-social-linkedin', 'label' => __( 'LinkedIn', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-behance'] = array( 'id' => 'topshop-social-behance', 'label' => __( 'Behance', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-medium'] = array( 'id' => 'topshop-social-medium', 'label' => __( 'Medium', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-houzz'] = array( 'id' => 'topshop-social-houzz', 'label' => __( 'Houzz', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-vk'] = array( 'id' => 'topshop-social-vk', 'label' => __( 'Vkontakte', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-tumblr'] = array( 'id' => 'topshop-social-tumblr', 'label' => __( 'Tumblr', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-flickr'] = array( 'id' => 'topshop-social-flickr', 'label' => __( 'Flickr', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-tripadvisor'] = array( 'id' => 'topshop-social-tripadvisor', 'label' => __( 'TripAdvisor', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-etsy'] = array( 'id' => 'topshop-social-etsy', 'label' => __( 'Etsy', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-yelp'] = array( 'id' => 'topshop-social-yelp', 'label' => __( 'Yelp', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-git'] = array( 'id' => 'topshop-social-git', 'label' => __( 'Git', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-bbucket'] = array( 'id' => 'topshop-social-bbucket', 'label' => __( 'Bit Bucket', 'topshop' ), 'section' => $section, 'type' => 'text', ); $options['topshop-social-custom-class'] = array( 'id' => 'topshop-social-custom-class', 'label' => __( 'Add a Custom Social Link', 'topshop' ), 'section' => $section, 'type' => 'text', 'description' => __( 'Add your own social icon by pasting the corrent <a href="http://fontawesome.io/icons/#brand" target="_blank">Font Awesome</a> class here<br />Eg: "fa-facebook"', 'topshop' ), ); $options['topshop-social-custom-url'] = array( 'id' => 'topshop-social-custom-url', 'label' => __( 'Add the URL', 'topshop' ), 'section' => $section, 'type' => 'text', ); // Site Text Settings $section = 'topshop-website'; $sections[] = array( 'id' => $section, 'title' => __( 'TopShop Theme Text', 'topshop' ), 'priority' => '50' ); $options['topshop-header-info-text'] = array( 'id' => 'topshop-header-info-text', 'label' => __( 'Header Info Text', 'topshop' ), 'section' => $section, 'type' => 'text', 'default' => __( 'Call Us: 082 444 BOOM', 'topshop'), 'description' => __( 'This is the text in the header', 'topshop' ) ); $options['topshop-website-txt-copy'] = array( 'id' => 'topshop-website-txt-copy', 'label' => __( 'Site Copy Text', 'topshop' ), 'section' => $section, 'type' => 'text', 'default' => __( 'TopShop theme, by <a href="https://kairaweb.com/">Kaira</a>', 'topshop'), 'description' => __( 'Enter the text in the bottom bar of the footer', 'topshop' ) ); $options['topshop-website-error-head'] = array( 'id' => 'topshop-website-error-head', 'label' => __( '404 Error Page Heading', 'topshop' ), 'section' => $section, 'type' => 'text', 'default' => __( 'Oops! <span>404</span>', 'topshop'), 'description' => __( 'Enter the heading for the 404 Error page', 'topshop' ) ); $options['topshop-website-error-msg'] = array( 'id' => 'topshop-website-error-msg', 'label' => __( 'Error 404 Message', 'topshop' ), 'section' => $section, 'type' => 'textarea', 'default' => __( 'It looks like that page does not exist. <br />Return home or try a search', 'topshop'), 'description' => __( 'Enter the default text on the 404 error page (Page not found)', 'topshop' ) ); $options['topshop-website-nosearch-msg'] = array( 'id' => 'topshop-website-nosearch-msg', 'label' => __( 'No Search Results', 'topshop' ), 'section' => $section, 'type' => 'textarea', 'default' => __( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'topshop'), 'description' => __( 'Enter the default text for when no search results are found', 'topshop' ) ); // Colors $section = 'colors'; $sections[] = array( 'id' => $section, 'title' => __( 'Colors', 'topshop' ), 'priority' => '60' ); $options['topshop-site-boxed-bg-color'] = array( 'id' => 'topshop-site-boxed-bg-color', 'label' => __( 'Boxed Background Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => '#FFFFFF', ); $options['topshop-main-color'] = array( 'id' => 'topshop-main-color', 'label' => __( 'Main Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => $primary_color, ); $options['topshop-main-color-hover'] = array( 'id' => 'topshop-main-color-hover', 'label' => __( 'Secondary Color', 'topshop' ), 'section' => $section, 'type' => 'color', 'default' => $secondary_color, ); // Adds the sections to the $options array $options['sections'] = $sections; // Adds the panels to the $options array $options['panels'] = $panels; $customizer_library = Customizer_Library::Instance(); $customizer_library->add_options( $options ); // To delete custom mods use: customizer_library_remove_theme_mods(); } add_action( 'init', 'customizer_library_topshop_options' );
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings