__( 'General Theme Options', 'antreas' ), 'description' => __( 'Options that help you manage your theme better.', 'antreas' ), 'capability' => 'edit_theme_options', 'priority' => 15, ); $data['antreas_layout'] = array( 'title' => __( 'Layout', 'antreas' ), 'description' => __( 'Here you can find settings that control the structure and positioning of specific elements within your website.', 'antreas' ), 'priority' => 25, ); $data['antreas_content'] = array( 'title' => __( 'Content Areas', 'antreas' ), 'description' => __( 'This theme includes a few areas where you can insert cutom content.', 'antreas' ), 'capability' => 'edit_theme_options', 'priority' => 26, ); return apply_filters( 'antreas_customizer_panels', $data ); } } //Define customizer sections if ( ! function_exists( 'antreas_metadata_sections' ) ) { function antreas_metadata_sections() { $data = array(); $data['epsilon-section-pro'] = array( 'type' => 'epsilon-section-pro', 'title' => esc_html__( 'LITE vs PRO comparison', 'antreas' ), 'button_text' => esc_html__( 'Learn more', 'antreas' ), 'button_url' => esc_url_raw( admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'priority' => 0, ); $data['antreas_layout_general'] = array( 'title' => __( 'Site Wide Structure', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 25, ); $data['antreas_layout_home'] = array( 'title' => __( 'Homepage', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); if ( defined( 'CPOTHEME_USE_SLIDES' ) && CPOTHEME_USE_SLIDES == true ) { $data['antreas_layout_slider'] = array( 'title' => __( 'Slider', 'antreas' ), 'description' => __( 'Customize the appearance and behavior of the slider.', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); } if ( defined( 'CPOTHEME_USE_TAGLINE' ) && CPOTHEME_USE_TAGLINE == true ) { $data['antreas_layout_tagline'] = array( 'title' => __( 'Tagline', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); } if ( defined( 'CPOTHEME_USE_FEATURES' ) && CPOTHEME_USE_FEATURES == true ) { $data['antreas_layout_features'] = array( 'title' => __( 'Features', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); } if ( defined( 'CPOTHEME_USE_PORTFOLIO' ) && CPOTHEME_USE_PORTFOLIO == true ) { $data['antreas_layout_portfolio'] = array( 'title' => __( 'Portfolio', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); } if ( defined( 'CPOTHEME_USE_SERVICES' ) && CPOTHEME_USE_SERVICES == true ) { $data['antreas_layout_services'] = array( 'title' => __( 'Services', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); } if ( defined( 'CPOTHEME_USE_ABOUT' ) && CPOTHEME_USE_ABOUT == true ) { $data['antreas_layout_about'] = array( 'title' => __( 'About', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); } if ( defined( 'CPOTHEME_USE_TEAM' ) && CPOTHEME_USE_TEAM == true ) { $data['antreas_layout_team'] = array( 'title' => __( 'Team Members', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); } if ( defined( 'CPOTHEME_USE_TESTIMONIALS' ) && CPOTHEME_USE_TESTIMONIALS == true ) { $data['antreas_layout_testimonials'] = array( 'title' => __( 'Testimonials', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); } if ( defined( 'CPOTHEME_USE_CLIENTS' ) && CPOTHEME_USE_CLIENTS == true ) { $data['antreas_layout_clients'] = array( 'title' => __( 'Clients', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); } if ( defined( 'CPOTHEME_USE_CONTACT' ) && CPOTHEME_USE_CONTACT == true ) { $data['antreas_layout_contact'] = array( 'title' => __( 'Contact', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); } $data['antreas_typography'] = array( 'title' => __( 'Typography', 'antreas' ), 'capability' => 'edit_theme_options', 'priority' => 45, ); $data['antreas_layout_posts'] = array( 'title' => __( 'Blog Posts', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_layout', 'priority' => 50, ); $data['antreas_content_general'] = array( 'title' => __( 'Site Wide Content', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_content', 'priority' => 50, ); $data['antreas_content_home'] = array( 'title' => __( 'Homepage', 'antreas' ), 'capability' => 'edit_theme_options', 'panel' => 'antreas_content', 'priority' => 50, ); return apply_filters( 'antreas_customizer_sections', $data ); } } if ( ! function_exists( 'antreas_metadata_customizer' ) ) { function antreas_metadata_customizer( $std = null ) { $data = array(); $data['logo_dimensions'] = array( 'section' => 'title_tagline', 'type' => 'dimensions', 'partials' => '.header .logo-img', 'sanitize' => 'antreas_sanitize_logo_dimensions', 'priority' => 1, ); $data['general_upsell'] = array( 'section' => 'antreas_layout_general', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Footer Columns', 'antreas' ), esc_html__( 'Sticky Header', 'antreas' ), esc_html__( 'Toggle Breadcrumbs', 'antreas' ), esc_html__( 'Toggle Language Switcher', 'antreas' ), esc_html__( 'Toggle Shopping Cart', 'antreas' ), esc_html__( 'Toggle Footer Credit Link', 'antreas' ), esc_html__( 'Toggle Footer Back To Top', 'antreas' ), esc_html__( 'Toggle Homepage Animations', 'antreas' ), esc_html__( 'Footer Text', 'antreas' ), esc_html__( 'Social Links', 'antreas' ), ), 'requirements' => array( esc_html__( 'Choose the number of columns of the footer.', 'antreas' ), esc_html__( 'You have the option to make the header sticky when scrolling down the page.', 'antreas' ), esc_html__( 'Option to enable/disable breadcrumbs navigation.', 'antreas' ), esc_html__( 'Option to enable/disable language switcher.', 'antreas' ), esc_html__( 'Option to enable/disable shopping cart.', 'antreas' ), esc_html__( 'Option to enable/disable the footer credit link.', 'antreas' ), esc_html__( 'Option to enable/disable footer back to top.', 'antreas' ), esc_html__( 'Option to enable/disable homepage animations.', 'antreas' ), esc_html__( 'Add custom text that replaces the copyright line in the footer.', 'antreas' ), esc_html__( 'Enter the URL of your preferred social profiles, one per line.', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['sidebar_position'] = array( 'label' => __( 'Default Sidebar Position', 'antreas' ), 'description' => __( 'This option can be overridden in individual pages.', 'antreas' ), 'section' => 'antreas_layout_general', 'type' => 'select', 'choices' => antreas_metadata_sidebarposition_text(), 'default' => 'right', ); //Homepage $data['home_upsell'] = array( 'section' => 'antreas_layout_home', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Reorder Sections', 'antreas' ), esc_html__( 'Display Sections ', 'antreas' ), ), 'requirements' => array( esc_html__( 'You can order sections anyway you want', 'antreas' ), esc_html__( 'You can diplay sections on any page on your site or exclude them from certain pages', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['sidebar_position_home'] = array( 'label' => __( 'Sidebar Position in Homepage', 'antreas' ), 'description' => __( 'If you set a static page to serve as the homepage, this option will be overridden by that page\'s settings.', 'antreas' ), 'section' => 'antreas_layout_home', 'type' => 'select', 'choices' => antreas_metadata_sidebarposition_text(), 'default' => 'none', ); // Homepage Tagline if ( defined( 'CPOTHEME_USE_TAGLINE' ) && CPOTHEME_USE_TAGLINE == true ) { $data['tagline_upsell'] = array( 'section' => 'antreas_layout_tagline', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Extend the Tagline Section', 'antreas' ), ), 'requirements' => array( esc_html__( 'add images and buttons to the tagline', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['home_tagline'] = array( 'label' => __( 'Tagline Title', 'antreas' ), 'section' => 'antreas_layout_tagline', 'empty' => true, 'multilingual' => true, 'sanitize' => 'esc_html', 'type' => 'text', 'partials' => '#tagline .tagline-title', ); $data['home_tagline_content'] = array( 'label' => __( 'Tagline Content', 'antreas' ), 'section' => 'antreas_layout_tagline', 'empty' => true, 'multilingual' => true, 'sanitize' => 'wp_kses_post', 'type' => 'textarea', 'partials' => '#tagline .tagline-content', ); } //Homepage Features if ( defined( 'CPOTHEME_USE_FEATURES' ) && CPOTHEME_USE_FEATURES == true ) { $data['features_upsell'] = array( 'section' => 'antreas_layout_features', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Section Description', 'antreas' ), esc_html__( 'Features Columns', 'antreas' ), esc_html__( 'Features Icons', 'antreas' ), ), 'requirements' => array( esc_html__( 'For each section, apart from title one you can also add a description for users to better understand your sections content', 'antreas' ), esc_html__( 'You can select on how many Columns you want to show your features.', 'antreas' ), esc_html__( 'More icon libraries to choose from.', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['home_features'] = array( 'label' => __( 'Section Title', 'antreas' ), 'section' => 'antreas_layout_features', 'empty' => true, 'multilingual' => true, 'sanitize' => 'esc_html', 'type' => 'text', 'partials' => '#features .section-title', ); } //Portfolio layout if ( defined( 'CPOTHEME_USE_PORTFOLIO' ) && CPOTHEME_USE_PORTFOLIO == true ) { $data['portfolio_upsell'] = array( 'section' => 'antreas_layout_portfolio', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Section Description', 'antreas' ), esc_html__( 'Portfolio Columns', 'antreas' ), esc_html__( 'Related Portfolios', 'antreas' ), ), 'requirements' => array( esc_html__( 'For each section, apart from title one you can also add a description for users to better understand your sections content', 'antreas' ), esc_html__( 'You can select on how many Columns you want to show your portfolio.', 'antreas' ), esc_html__( 'You can enable related portfolio.', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['home_portfolio'] = array( 'label' => __( 'Section Title', 'antreas' ), 'section' => 'antreas_layout_portfolio', 'empty' => true, 'multilingual' => true, 'sanitize' => 'esc_html', 'type' => 'text', 'partials' => '#portfolio .section-title', ); } //Services layout if ( defined( 'CPOTHEME_USE_SERVICES' ) && CPOTHEME_USE_SERVICES == true ) { $data['services_upsell'] = array( 'section' => 'antreas_layout_services', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Section Description', 'antreas' ), esc_html__( 'Services Columns', 'antreas' ), esc_html__( 'Services Icons', 'antreas' ), ), 'requirements' => array( esc_html__( 'For each section, apart from title one you can also add a description for users to better understand your sections content', 'antreas' ), esc_html__( 'You can select on how many Columns you want to show your services.', 'antreas' ), esc_html__( 'More icon libraries to choose from.', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['home_services'] = array( 'label' => __( 'Section Title', 'antreas' ), 'section' => 'antreas_layout_services', 'empty' => true, 'multilingual' => true, 'sanitize' => 'esc_html', 'type' => 'text', 'partials' => '#services .section-title', ); } //About section if ( defined( 'CPOTHEME_USE_ABOUT' ) && CPOTHEME_USE_ABOUT == true ) { $data['about_upsell'] = array( 'section' => 'antreas_layout_about', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Section Description', 'antreas' ), ), 'requirements' => array( esc_html__( 'For each section, apart from title one you can also add a description for users to better understand your sections content', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['home_about'] = array( 'label' => __( 'Section Title', 'antreas' ), 'section' => 'antreas_layout_about', 'empty' => true, 'multilingual' => true, 'sanitize' => 'esc_html', 'type' => 'text', 'partials' => '#about .section-title', ); $data['about_pages'] = array( 'label' => __( 'About Pages', 'antreas' ), 'description' => __( 'Select the pages that will be displayed as columns', 'antreas' ), 'section' => 'antreas_layout_about', 'type' => 'selectize', 'choices' => 'pages', 'input_attrs' => array( 'maxItems' => 4 ), 'default' => array(), 'partials' => '#about .about__content', ); } //Team layout if ( defined( 'CPOTHEME_USE_TEAM' ) && CPOTHEME_USE_TEAM == true ) { $data['team_upsell'] = array( 'section' => 'antreas_layout_team', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Section Description', 'antreas' ), esc_html__( 'Team Columns', 'antreas' ), ), 'requirements' => array( esc_html__( 'For each section, apart from title one you can also add a description for users to better understand your sections content', 'antreas' ), esc_html__( 'You can select on how many Columns you want to show your team members.', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['home_team'] = array( 'label' => __( 'Section Title', 'antreas' ), 'section' => 'antreas_layout_team', 'empty' => true, 'multilingual' => true, 'sanitize' => 'esc_html', 'type' => 'text', 'partials' => '#team .section-title', ); } //Testimonials if ( defined( 'CPOTHEME_USE_TESTIMONIALS' ) && CPOTHEME_USE_TESTIMONIALS == true ) { $data['testimonials_upsell'] = array( 'section' => 'antreas_layout_testimonials', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Section Description', 'antreas' ), esc_html__( 'Testimonials Columns', 'antreas' ), ), 'requirements' => array( esc_html__( 'For each section, apart from title one you can also add a description for users to better understand your sections content', 'antreas' ), esc_html__( 'You can select on how many Columns you want to show your testimonials.', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['home_testimonials'] = array( 'label' => __( 'Section Title', 'antreas' ), 'section' => 'antreas_layout_testimonials', 'empty' => true, 'multilingual' => true, 'sanitize' => 'esc_html', 'type' => 'text', 'partials' => '#testimonials .section-title', ); } //Clients if ( defined( 'CPOTHEME_USE_CLIENTS' ) && CPOTHEME_USE_CLIENTS == true ) { $data['clients_upsell'] = array( 'section' => 'antreas_layout_clients', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Section Description', 'antreas' ), esc_html__( 'Clients Columns', 'antreas' ), ), 'requirements' => array( esc_html__( 'For each section, apart from title one you can also add a description for users to better understand your sections content', 'antreas' ), esc_html__( 'You can select on how many Columns you want to show your clients.', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['home_clients'] = array( 'label' => __( 'Section Title', 'antreas' ), 'section' => 'antreas_layout_clients', 'empty' => true, 'multilingual' => true, 'sanitize' => 'esc_html', 'type' => 'text', 'partials' => '#clients .section-title', ); } //Contact if ( defined( 'CPOTHEME_USE_CONTACT' ) && CPOTHEME_USE_CONTACT == true ) { $data['contact_upsell'] = array( 'section' => 'antreas_layout_contact', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Section Description', 'antreas' ), esc_html__( 'Contact Content', 'antreas' ), ), 'requirements' => array( esc_html__( 'For each section, apart from title one you can also add a description for users to better understand your sections content', 'antreas' ), esc_html__( 'You can add contact content to be displayed next to the contact form.', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['home_contact'] = array( 'label' => __( 'Section Title', 'antreas' ), 'section' => 'antreas_layout_contact', 'empty' => true, 'multilingual' => true, 'sanitize' => 'esc_html', 'type' => 'text', 'partials' => '#contact .section-title', ); $data['home_contact_custom_control'] = array( 'section' => 'antreas_layout_contact', 'type' => 'contactform', ); } //Blog Posts $data['blog_upsell'] = array( 'section' => 'antreas_layout_posts', 'type' => 'epsilon-upsell', 'options' => array( esc_html__( 'Section Description', 'antreas' ), esc_html__( 'Posts Columns', 'antreas' ), esc_html__( 'Toggle blog post dates, authors, comments, categories, tags.', 'antreas' ), ), 'requirements' => array( esc_html__( 'For each section, apart from title one you can also add a description for users to better understand your sections content', 'antreas' ), esc_html__( 'You can select on how many Columns you want to show your blog posts.', 'antreas' ), esc_html__( 'Option to enable/disable blog posts dates, authors, comments, categories, tags.', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); $data['home_posts'] = array( 'label' => __( 'Enable Posts On Homepage', 'antreas' ), 'section' => 'antreas_layout_posts', 'type' => 'checkbox', 'sanitize' => 'antreas_sanitize_bool', 'default' => true, ); $data['home_blog'] = array( 'label' => __( 'Section Title', 'antreas' ), 'section' => 'antreas_layout_posts', 'empty' => true, 'multilingual' => true, 'sanitize' => 'esc_html', 'type' => 'text', 'partials' => '#main .section-title', ); $data['postpage_preview'] = array( 'label' => __( 'Content In Post Listings', 'antreas' ), 'section' => 'antreas_layout_posts', 'type' => 'select', 'choices' => antreas_metadata_post_preview(), 'default' => 'excerpt', ); //Typography $data['typography_upsell'] = array( 'section' => 'antreas_typography', 'type' => 'epsilon-upsell', 'priority' => 0, 'options' => array( esc_html__( 'Custom Typography Controls', 'antreas' ), ), 'requirements' => array( esc_html__( 'Want a different font family? No problem. Just an upgrade away.', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); //Colors $data['colors_upsell'] = array( 'section' => 'colors', 'type' => 'epsilon-upsell', 'priority' => -1, 'options' => array( esc_html__( 'Change colors of text, headings, navigation, primary and secondary accent colors, as well as various elements on your site.', 'antreas' ), ), 'requirements' => array( esc_html__( 'You can change your site\'s colors directly from Customizer. Changes happen in real time.', 'antreas' ), ), 'button_url' => esc_url_raw( get_admin_url() . 'themes.php?page=antreas-welcome&tab=features' ), 'button_text' => esc_html__( 'See PRO vs Lite', 'antreas' ), 'second_button_url' => antreas_upgrade_link(), 'second_button_text' => esc_html__( 'Get PRO!', 'antreas' ), 'separator' => '- or -', ); return apply_filters( 'antreas_customizer_controls', $data ); } }