$section, 'title' => __( 'Site Identity', 'tropicana' ), 'priority' => '25' ); if ( ! function_exists( 'has_custom_logo' ) ) { $options['tropicana-logo'] = array( 'id' => 'tropicana-logo', 'label' => __( 'Logo', 'tropicana' ), 'section' => $section, 'type' => 'image' ); } $options['tropicana-translucent-header-logo'] = array( 'id' => 'tropicana-translucent-header-logo', 'label' => __( 'Translucent Header Logo', 'tropicana' ), 'section' => $section, 'type' => 'image', 'priority' => 8 ); $options['tropicana-transparent-header-logo'] = array( 'id' => 'tropicana-transparent-header-logo', 'label' => __( 'Transparent Header Logo', 'tropicana' ), 'section' => $section, 'type' => 'image', 'priority' => 8 ); // Colors Settings $panel = 'tropicana-colors'; $panels[] = array( 'id' => $panel, 'title' => __( 'Colors', 'tropicana' ), 'priority' => '30' ); // General Settings - Sub-section $section = 'tropicana-general-colors'; $sections[] = array( 'id' => $section, 'title' => __( 'General', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-background-color'] = array( 'id' => 'tropicana-background-color', 'label' => __( 'Background Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $background_color ); $options['tropicana-page-content-background-color'] = array( 'id' => 'tropicana-page-content-background-color', 'label' => __( 'Page Content Background Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $page_content_background_color ); $options['tropicana-primary-color'] = array( 'id' => 'tropicana-primary-color', 'label' => __( 'Primary Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $primary_color ); $options['tropicana-secondary-color'] = array( 'id' => 'tropicana-secondary-color', 'label' => __( 'Secondary Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $secondary_color ); // Top Bar - Sub-section $section = 'tropicana-top-bar-colors'; $sections[] = array( 'id' => $section, 'title' => __( 'Top Bar', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-top-bar-color'] = array( 'id' => 'tropicana-top-bar-color', 'label' => __( 'Color', 'tropicana' ), 'section' => $section, 'type' => 'color' ); if ( get_theme_mod( 'otb_tropicana_dot_org' ) ) { $options['tropicana-top-bar-color']['default'] = get_theme_mod( 'tropicana-primary-color', $primary_color ); } else { $options['tropicana-top-bar-color']['default'] = $top_bar_color; } $options['tropicana-top-bar-font-color'] = array( 'id' => 'tropicana-top-bar-font-color', 'label' => __( 'Font Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $top_bar_font_color ); // Site Logo Area - Sub-section $section = 'tropicana-site-logo-area-colors'; $sections[] = array( 'id' => $section, 'title' => __( 'Site Logo Area', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-header-color'] = array( 'id' => 'tropicana-header-color', 'label' => __( 'Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_color ); $options["tropicana-fieldset-divider-.{$dividerCount}"] = array( 'id' => "tropicana-fieldset-divider-.{$dividerCount}", 'section' => $section, 'type' => 'divider' ); $dividerCount++; $options['tropicana-site-title-colors-heading'] = array( 'id' => 'tropicana-site-title-colors-heading', 'label' => __( 'Site Title', 'tropicana' ), 'section' => $section, 'type' => 'heading' ); $options['tropicana-site-title-font-color'] = array( 'id' => 'tropicana-site-title-font-color', 'label' => __( 'Solid Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $site_title_font_color, 'description' => __( 'This is the color that the site title will be when the site logo area is solid', 'tropicana' ) ); $options['tropicana-header-translucent-site-title-font-color'] = array( 'id' => 'tropicana-header-translucent-site-title-font-color', 'label' => __( 'Translucent Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_translucent_site_title_font_color, 'description' => __( 'This is the color that the site title will be when the site logo area is translucent', 'tropicana' ) ); if ( get_theme_mod( 'tropicana-site-title-font-color' ) != $site_title_font_color && !get_theme_mod( 'tropicana-header-translucent-site-title-font-color' ) ) { $options['tropicana-header-translucent-site-title-font-color']['default'] = get_theme_mod( 'tropicana-site-title-font-color', $site_title_font_color ); } $options['tropicana-header-transparent-site-title-font-color'] = array( 'id' => 'tropicana-header-transparent-site-title-font-color', 'label' => __( 'Transparent Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_transparent_site_title_font_color, 'description' => __( 'This is the color that the site title will be when the site logo area is transparent', 'tropicana' ) ); if ( get_theme_mod( 'tropicana-site-title-font-color' ) != $site_title_font_color && !get_theme_mod( 'tropicana-header-transparent-site-title-font-color' ) ) { $options['tropicana-header-transparent-site-title-font-color']['default'] = get_theme_mod( 'tropicana-site-title-font-color', $site_title_font_color ); } $options["tropicana-fieldset-divider-.{$dividerCount}"] = array( 'id' => "tropicana-fieldset-divider-.{$dividerCount}", 'section' => $section, 'type' => 'divider' ); $dividerCount++; $options['tropicana-header-text-colors-heading'] = array( 'id' => 'tropicana-header-text-colors-heading', 'label' => __( 'Text', 'tropicana' ), 'section' => $section, 'type' => 'heading' ); $options['tropicana-header-solid-font-color'] = array( 'id' => 'tropicana-header-solid-font-color', 'label' => __( 'Solid Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_solid_font_color, 'description' => __( 'This is the color that the text will be when the site logo area is solid', 'tropicana' ) ); $options['tropicana-header-translucent-font-color'] = array( 'id' => 'tropicana-header-translucent-font-color', 'label' => __( 'Translucent Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_translucent_font_color, 'description' => __( 'This is the color that the text will be when the site logo area is translucent', 'tropicana' ) ); $options['tropicana-header-transparent-font-color'] = array( 'id' => 'tropicana-header-transparent-font-color', 'label' => __( 'Transparent Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_transparent_font_color, 'description' => __( 'This is the color that the text will be when the site logo area is transparent', 'tropicana' ) ); $options["tropicana-fieldset-divider-.{$dividerCount}"] = array( 'id' => "tropicana-fieldset-divider-.{$dividerCount}", 'section' => $section, 'type' => 'divider' ); $dividerCount++; $options['tropicana-header-link-colors-heading'] = array( 'id' => 'tropicana-header-link-colors-heading', 'label' => __( 'Links', 'tropicana' ), 'section' => $section, 'type' => 'heading' ); $options['tropicana-header-solid-link-font-color'] = array( 'id' => 'tropicana-header-solid-link-font-color', 'label' => __( 'Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_solid_link_font_color, //'description' => __( 'This is the color that the text will be when the site logo area is solid', 'tropicana' ) ); $options['tropicana-header-solid-link-rollover-font-color'] = array( 'id' => 'tropicana-header-solid-link-rollover-font-color', 'label' => __( 'Rollover Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_solid_link_rollover_font_color, //'description' => __( 'This is the color that the text will be when the site logo area is solid', 'tropicana' ) ); /* $options['tropicana-header-translucent-font-color'] = array( 'id' => 'tropicana-header-translucent-font-color', 'label' => __( 'Translucent - Font Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_translucent_font_color, 'description' => __( 'This is the color that the text will be when the site logo area is translucent', 'tropicana' ) ); $options['tropicana-header-transparent-font-color'] = array( 'id' => 'tropicana-header-transparent-font-color', 'label' => __( 'Transparent - Font Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_transparent_font_color, 'description' => __( 'This is the color that the text will be when the site logo area is transparent', 'tropicana' ) ); */ // Navigation Menu - Sub-section $section = 'tropicana-navigation-menu-colors'; $sections[] = array( 'id' => $section, 'title' => __( 'Navigation Menu', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-navigation-menu-color'] = array( 'id' => 'tropicana-navigation-menu-color', 'label' => __( 'Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_color ); $options['tropicana-navigation-menu-solid-font-color'] = array( 'id' => 'tropicana-navigation-menu-solid-font-color', 'label' => __( 'Solid - Font Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_solid_font_color, 'description' => __( 'This is the color that the text will be when the navigation menu is solid', 'tropicana' ) ); $options['tropicana-navigation-menu-translucent-font-color'] = array( 'id' => 'tropicana-navigation-menu-translucent-font-color', 'label' => __( 'Translucent - Font Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_translucent_font_color, 'description' => __( 'This is the color that the text will be when the navigation menu is translucent', 'tropicana' ) ); $options['tropicana-navigation-menu-transparent-font-color'] = array( 'id' => 'tropicana-navigation-menu-transparent-font-color', 'label' => __( 'Transparent - Font Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_transparent_font_color, 'description' => __( 'This is the color that the text will be when the navigation menu is transparent', 'tropicana' ) ); /* $options["tropicana-fieldset-divider-.{$dividerCount}"] = array( 'id' => "tropicana-fieldset-divider-.{$dividerCount}", 'section' => $section, 'type' => 'divider' ); $dividerCount++; $options['tropicana-navigation-menu-border-top-color'] = array( 'id' => 'tropicana-navigation-menu-border-top-color', 'label' => __( 'Solid - Top Border Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_border_top_color ); $options['tropicana-navigation-menu-translucent-border-top-color'] = array( 'id' => 'tropicana-navigation-menu-translucent-border-top-color', 'label' => __( 'Translucent - Top Border Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_translucent_border_top_color ); $options['tropicana-navigation-menu-transparent-border-top-color'] = array( 'id' => 'tropicana-navigation-menu-transparent-border-top-color', 'label' => __( 'Transparent - Top Border Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_transparent_border_top_color ); $options["tropicana-fieldset-divider-.{$dividerCount}"] = array( 'id' => "tropicana-fieldset-divider-.{$dividerCount}", 'section' => $section, 'type' => 'divider' ); $dividerCount++; $options['tropicana-navigation-menu-border-bottom-color'] = array( 'id' => 'tropicana-navigation-menu-border-bottom-color', 'label' => __( 'Solid - Bottom Border Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_border_bottom_color ); $options['tropicana-navigation-menu-translucent-border-bottom-color'] = array( 'id' => 'tropicana-navigation-menu-translucent-border-bottom-color', 'label' => __( 'Translucent - Bottom Border Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_translucent_border_bottom_color ); $options['tropicana-navigation-menu-transparent-border-bottom-color'] = array( 'id' => 'tropicana-navigation-menu-transparent-border-bottom-color', 'label' => __( 'Transparent - Bottom Border Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_transparent_border_bottom_color ); */ // Slider - Sub-section $section = 'tropicana-slider-colors'; $sections[] = array( 'id' => $section, 'title' => __( 'Slider', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-slider-overlay-background-color'] = array( 'id' => 'tropicana-slider-overlay-background-color', 'label' => __( 'Overlay Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $slider_overlay_background_color ); $options['tropicana-slider-text-overlay-background-color'] = array( 'id' => 'tropicana-slider-text-overlay-background-color', 'label' => __( 'Text Overlay and Button Rollover Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $slider_text_overlay_background_color ); $options['tropicana-slider-text-overlay-font-color'] = array( 'id' => 'tropicana-slider-text-overlay-font-color', 'label' => __( 'Text Overlay Font Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $slider_text_overlay_font_color ); // Header Image - Sub-section $section = 'tropicana-header-image-colors'; $sections[] = array( 'id' => $section, 'title' => __( 'Header Image', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-header-image-overlay-background-color'] = array( 'id' => 'tropicana-header-image-overlay-background-color', 'label' => __( 'Overlay Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_image_overlay_background_color ); $options['tropicana-header-image-text-overlay-background-color'] = array( 'id' => 'tropicana-header-image-text-overlay-background-color', 'label' => __( 'Text Overlay Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_image_text_overlay_background_color ); $options['tropicana-header-image-text-overlay-font-color'] = array( 'id' => 'tropicana-header-image-text-overlay-font-color', 'label' => __( 'Text Overlay Font Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_image_text_overlay_font_color ); // Page Content - Sub-section $section = 'tropicana-page-content-colors'; $sections[] = array( 'id' => $section, 'title' => __( 'Page Content', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-page-title-font-color'] = array( 'id' => 'tropicana-page-title-font-color', 'label' => __( 'Page Title Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $page_title_font_color ); $options['tropicana-heading-font-color'] = array( 'id' => 'tropicana-heading-font-color', 'label' => __( 'Heading Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $heading_font_color ); $options['tropicana-body-font-color'] = array( 'id' => 'tropicana-body-font-color', 'label' => __( 'Body Text Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $body_font_color ); $options['tropicana-link-color'] = array( 'id' => 'tropicana-link-color', 'label' => __( 'Link Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $link_color ); $options['tropicana-link-rollover-color'] = array( 'id' => 'tropicana-link-rollover-color', 'label' => __( 'Link Rollover Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $link_rollover_color ); // Widgets - Sub-section $section = 'tropicana-widget-colors'; $sections[] = array( 'id' => $section, 'title' => __( 'Widgets', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-widget-title-content-font-color'] = array( 'id' => 'tropicana-widget-title-content-font-color', 'label' => __( 'Site Content Widget Heading Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'description' => __( 'The heading color of widgets that appear within the site content area', 'tropicana' ) ); if ( get_theme_mod( 'otb_tropicana_dot_org' ) ) { $options['tropicana-widget-title-content-font-color']['default'] = get_theme_mod( 'tropicana-primary-color', $primary_color ); } else { $options['tropicana-widget-title-content-font-color']['default'] = $widget_title_content_font_color; } $options['tropicana-widget-title-sidebar-font-color'] = array( 'id' => 'tropicana-widget-title-sidebar-font-color', 'label' => __( 'Sidebar / Footer Widget Heading Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'description' => __( 'The heading color of widgets that appear in the sidebar or footer', 'tropicana' ) ); if ( get_theme_mod( 'otb_tropicana_dot_org' ) ) { $options['tropicana-widget-title-sidebar-font-color']['default'] = get_theme_mod( 'tropicana-heading-font-color', $heading_font_color ); } else { $options['tropicana-widget-title-sidebar-font-color']['default'] = $widget_title_sidebar_font_color; } $options['tropicana-widget-title-underline-color'] = array( 'id' => 'tropicana-widget-title-underline-color', 'label' => __( 'Underline Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $widget_title_underline_color, 'description' => __( 'This only applies to sidebar and footer widgets', 'tropicana' ) ); if ( get_theme_mod( 'otb_tropicana_dot_org' ) ) { $options['tropicana-widget-title-underline-color']['default'] = get_theme_mod( 'tropicana-primary-color', $primary_color ); } else { $options['tropicana-widget-title-underline-color']['default'] = $widget_title_underline_color; } // Footer - Sub-section $section = 'tropicana-footer-colors'; $sections[] = array( 'id' => $section, 'title' => __( 'Footer', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-footer-color'] = array( 'id' => 'tropicana-footer-color', 'label' => __( 'Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $footer_color ); // Fonts Settings $panel = 'tropicana-fonts'; $panels[] = array( 'id' => $panel, 'title' => __( 'Fonts', 'tropicana' ), 'priority' => '30' ); // Site Title - Sub-section $section = 'tropicana-site-title-fonts'; $font_choices = customizer_library_get_font_choices(); $sections[] = array( 'id' => $section, 'title' => __( 'Site Title', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-site-title-font'] = array( 'id' => 'tropicana-site-title-font', 'label' => __( 'Font', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $font_choices, //'default' => 'Roboto Slab' 'default' => 'Roboto Slab' ); $options['tropicana-site-title-font-size'] = array( 'id' => 'tropicana-site-title-font-size', 'label' => __( 'Size', 'tropicana' ), 'section' => $section, 'type' => 'pixels', 'default' => 37 ); $choices = array( 'thin' => 'Thin', 'light' => 'Light', 'normal' => 'Normal', 'medium' => 'Medium', 'semi-bold' => 'Semi-bold', 'bold' => 'Bold', 'extra-bold' => 'Extra Bold' ); $options['tropicana-site-title-font-weight'] = array( 'id' => 'tropicana-site-title-font-weight', 'label' => __( 'Weight', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'bold' ); $options['tropicana-site-title-uppercase'] = array( 'id' => 'tropicana-site-title-uppercase', 'label' => __( 'Uppercase', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0 ); // Navigation Menu - Sub-section $section = 'tropicana-navigation-menu-fonts'; $sections[] = array( 'id' => $section, 'title' => __( 'Navigation Menu', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-navigation-menu-font'] = array( 'id' => 'tropicana-navigation-menu-font', 'label' => __( 'Font', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $font_choices, 'default' => 'Roboto' ); $choices = array( '300' => 'Light', '400' => 'Normal', '500' => 'Medium', '600' => 'Semi-bold', '700' => 'Bold', '800' => 'Extra Bold' ); $options['tropicana-navigation-menu-font-weight'] = array( 'id' => 'tropicana-navigation-menu-font-weight', 'label' => __( 'Weight', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => '500' ); $options['tropicana-navigation-menu-uppercase'] = array( 'id' => 'tropicana-navigation-menu-uppercase', 'label' => __( 'Uppercase', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 1 ); // Page Title - Sub-section $section = 'tropicana-page-title-fonts'; $sections[] = array( 'id' => $section, 'title' => __( 'Page Title', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-page-title-font'] = array( 'id' => 'tropicana-page-title-font', 'label' => __( 'Font', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $font_choices, 'default' => 'Roboto' ); $choices = array( '300' => 'Light', '400' => 'Normal', '500' => 'Medium', '600' => 'Semi-bold', '700' => 'Bold', '800' => 'Extra Bold' ); $options['tropicana-page-title-font-weight'] = array( 'id' => 'tropicana-page-title-font-weight', 'label' => __( 'Weight', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => '700' ); // Heading - Sub-section $section = 'tropicana-heading-fonts'; $sections[] = array( 'id' => $section, 'title' => __( 'Heading', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-heading-font'] = array( 'id' => 'tropicana-heading-font', 'label' => __( 'Font', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $font_choices, 'default' => 'Roboto Slab' ); $choices = array( '300' => 'Light', '400' => 'Normal', '500' => 'Medium', '600' => 'Semi-bold', '700' => 'Bold', '800' => 'Extra Bold' ); $options['tropicana-heading-font-weight'] = array( 'id' => 'tropicana-heading-font-weight', 'label' => __( 'Weight', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => '500' ); // Body Text - Sub-section $section = 'tropicana-body-fonts'; $sections[] = array( 'id' => $section, 'title' => __( 'Body Text', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-body-font'] = array( 'id' => 'tropicana-body-font', 'label' => __( 'Font', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $font_choices, 'default' => 'Roboto' ); $choices = array( '300' => 'Light', '400' => 'Normal' ); $options['tropicana-body-font-weight'] = array( 'id' => 'tropicana-body-font-weight', 'label' => __( 'Weight', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => '400' ); // Widget Title - Sub-section $section = 'tropicana-widget-title-fonts'; $sections[] = array( 'id' => $section, 'title' => __( 'Widget Title', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-widget-title-font'] = array( 'id' => 'tropicana-widget-title-font', 'label' => __( 'Font', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $font_choices, 'default' => 'Roboto' ); $choices = array( '300' => 'Light', '400' => 'Normal' ); $options['tropicana-widget-title-font-weight'] = array( 'id' => 'tropicana-widget-title-font-weight', 'label' => __( 'Weight', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => '400' ); // Styling Settings $panel = 'tropicana-styling'; $panels[] = array( 'id' => $panel, 'title' => __( 'Styling', 'tropicana' ), 'priority' => '30' ); // Paragraph - Sub-section $section = 'tropicana-styling-paragraph'; $sections[] = array( 'id' => $section, 'title' => __( 'Paragraph', 'tropicana' ), 'panel' => $panel ); $choices = array( 'cozy-paragraph-line-height' => 'Cozy', 'comfortable-paragraph-line-height' => 'Comfortable' ); $options['tropicana-paragraph-line-height'] = array( 'id' => 'tropicana-paragraph-line-height', 'label' => __( 'Line Height', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'comfortable-paragraph-line-height' ); // Widgets - Sub-section $section = 'tropicana-styling-widget'; $sections[] = array( 'id' => $section, 'title' => __( 'Widget', 'tropicana' ), 'panel' => $panel ); $choices = array( 'widget-bottom-border' => 'Bottom', 'widget-box-border' => 'Box' ); $options['tropicana-widget-border-style'] = array( 'id' => 'tropicana-widget-border-style', 'label' => __( 'Sidebar Widget Border Style', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'widget-box-border' ); // Page Builders - Sub-section $section = 'tropicana-styling-page-builders'; $sections[] = array( 'id' => $section, 'title' => __( 'Page Builders', 'tropicana' ), 'panel' => $panel ); $options['tropicana-page-builders-use-theme-styles'] = array( 'id' => 'tropicana-page-builders-use-theme-styles', 'label' => __( 'Use theme styles', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 1, 'description' => '' ); // Header Settings $panel = 'tropicana-header'; $panels[] = array( 'id' => $panel, 'title' => __( 'Header', 'tropicana' ), 'priority' => '35' ); // Top Bar - Sub-section $section = 'tropicana-header-top-bar'; $sections[] = array( 'id' => $section, 'title' => __( 'Top Bar', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-header-show-top-bar'] = array( 'id' => 'tropicana-header-show-top-bar', 'label' => __( 'Show Top Bar', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 1 ); $choices = array( 'tropicana-header-top-bar-left-info-text-one' => 'Info Text One', 'tropicana-header-top-bar-left-social-links' => 'Social Links', 'tropicana-header-top-bar-left-shop-links' => 'Shop Links', 'tropicana-header-top-bar-left-menu' => 'Custom Menu', 'tropicana-header-top-bar-left-nothing' => 'Nothing' ); $options['tropicana-header-top-bar-left'] = array( 'id' => 'tropicana-header-top-bar-left', 'label' => __( 'Top Bar Left', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'tropicana-header-top-bar-left-info-text-one' ); $options['tropicana-header-top-bar-left-menu'] = array( 'id' => 'tropicana-header-top-bar-left-menu', 'label' => __( 'Select the Top Bar Left menu', 'tropicana' ), 'section' => $section, 'type' => 'dropdown-menus', 'description' => __( 'Create menus at Appearance > Menus', 'tropicana' ) ); $choices = array( 'tropicana-header-top-bar-right-info-text-one' => 'Info Text One', 'tropicana-header-top-bar-right-social-links' => 'Social Links', 'tropicana-header-top-bar-right-shop-links' => 'Shop Links', 'tropicana-header-top-bar-right-menu' => 'Custom Menu', 'tropicana-header-top-bar-right-nothing' => 'Nothing' ); $options['tropicana-header-top-bar-right'] = array( 'id' => 'tropicana-header-top-bar-right', 'label' => __( 'Top Bar Right', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'tropicana-header-top-bar-right-shop-links' ); $options['tropicana-header-top-bar-right-menu'] = array( 'id' => 'tropicana-header-top-bar-right-menu', 'label' => __( 'Select the Top Bar Right menu', 'tropicana' ), 'section' => $section, 'type' => 'dropdown-menus', 'description' => __( 'Create menus at Appearance > Menus', 'tropicana' ) ); // Site Logo Area - Sub-section $section = 'tropicana-header-site-logo-area'; $sections[] = array( 'id' => $section, 'title' => __( 'Site Logo Area', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $choices = array( 'left-aligned' => 'Left aligned', 'centered' => 'Centered' ); $options['tropicana-header-alignment'] = array( 'id' => 'tropicana-header-alignment', 'label' => __( 'Alignment', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'left-aligned' ); $choices = array( 'tropicana-header-top-right-info-text-one' => 'Info Text One', 'tropicana-header-top-right-social-links' => 'Social Links', 'tropicana-header-top-right-shop-links' => 'Shop Links', 'tropicana-header-top-right-menu' => 'Custom Menu', 'tropicana-header-top-right-nothing' => 'Nothing' ); $options['tropicana-header-top-right'] = array( 'id' => 'tropicana-header-top-right', 'label' => __( 'Top Right', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices ); // Check for the tropicana-header-shop-links setting to honour the free and previous versions of the theme if ( tropicana_is_woocommerce_activated() && !get_theme_mod( 'tropicana-header-top-right' ) && get_theme_mod( 'otb_tropicana_dot_org' ) && get_theme_mod( 'tropicana-header-shop-links', true ) ) { $options['tropicana-header-top-right']['default'] = 'tropicana-header-top-right-shop-links'; } else { $options['tropicana-header-top-right']['default'] = 'tropicana-header-top-right-social-links'; } $options['tropicana-header-top-right-menu'] = array( 'id' => 'tropicana-header-top-right-menu', 'label' => __( 'Select the Top Right menu', 'tropicana' ), 'section' => $section, 'type' => 'dropdown-menus', 'description' => __( 'Create menus at Appearance > Menus', 'tropicana' ) ); $choices = array( 'tropicana-header-bottom-right-info-text-one' => 'Info Text One', 'tropicana-header-bottom-right-social-links' => 'Social Links', 'tropicana-header-bottom-right-shop-links' => 'Shop Links', 'tropicana-header-bottom-right-menu' => 'Custom Menu', 'tropicana-header-bottom-right-nothing' => 'Nothing' ); $options['tropicana-header-bottom-right'] = array( 'id' => 'tropicana-header-bottom-right', 'label' => __( 'Bottom Right', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'tropicana-header-bottom-right-nothing' ); $options['tropicana-header-bottom-right-menu'] = array( 'id' => 'tropicana-header-bottom-right-menu', 'label' => __( 'Select the Bottom Right menu', 'tropicana' ), 'section' => $section, 'type' => 'dropdown-menus', 'description' => __( 'Create menus at Appearance > Menus', 'tropicana' ) ); // Navigation Menu - Sub-section $section = 'tropicana-header-navigation-menu'; $sections[] = array( 'id' => $section, 'title' => __( 'Navigation Menu', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $choices = array( 'left-aligned' => 'Left aligned', 'inline' => 'Inline' ); $options['tropicana-navigation-menu-alignment'] = array( 'id' => 'tropicana-navigation-menu-alignment', 'label' => __( 'Alignment', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'inline' ); $choices = array( 'rollover-font-color' => 'Font Color', 'rollover-underline' => 'Underline', 'rollover-overline' => 'Overline', 'rollover-background-color' => 'Background Color' ); $options['tropicana-navigation-menu-rollover-style'] = array( 'id' => 'tropicana-navigation-menu-rollover-style', 'label' => __( 'Rollover Style', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'rollover-font-color' ); $options['tropicana-navigation-menu-rollover-background-color'] = array( 'id' => 'tropicana-navigation-menu-rollover-background-color', 'label' => __( 'Rollover Background Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_rollover_background_color ); $options['tropicana-navigation-menu-rollover-font-color'] = array( 'id' => 'tropicana-navigation-menu-rollover-font-color', 'label' => __( 'Rollover Font Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $navigation_menu_rollover_font_color ); $choices = array( 'submenu-rollover-font-color' => 'Font Color', 'submenu-rollover-background-color' => 'Background Color' ); $options['tropicana-navigation-submenu-rollover-style'] = array( 'id' => 'tropicana-navigation-submenu-rollover-style', 'label' => __( 'Submenu Rollover Style', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'submenu-rollover-background-color' ); // Global Settings - Sub-section $section = 'tropicana-header-text'; $sections[] = array( 'id' => $section, 'title' => __( 'Header Text', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-header-info-text-one'] = array( 'id' => 'tropicana-header-info-text-one', 'label' => __( 'Info Text One', 'tropicana' ), 'section' => $section, 'type' => 'text', 'default' => __( 'Call Us: 555-TROPICANA', 'tropicana' ) ); /* $choices = array( 'tropicana-header-bound-boxed' => 'Boxed', 'tropicana-header-bound-full-width' => 'Full Width' ); $options['tropicana-header-bound'] = array( 'id' => 'tropicana-header-bound', 'label' => __( 'Bound', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'tropicana-header-bound-boxed' ); */ /* // Border - Sub-section $section = 'tropicana-header-border'; $sections[] = array( 'id' => $section, 'title' => __( 'Border', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-header-border-bottom-color'] = array( 'id' => 'tropicana-header-border-bottom-color', 'label' => __( 'Color', 'tropicana' ), 'section' => $section, 'type' => 'color', 'default' => $header_border_top_color ); */ // Opacity - Sub-section $section = 'tropicana-header-opacity'; $sections[] = array( 'id' => $section, 'title' => __( 'Opacity', 'tropicana' ), 'priority' => '35', 'panel' => $panel ); $options['tropicana-transparent-header'] = array( 'id' => 'tropicana-transparent-header', 'label' => __( 'Transparent', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0 ); // Social Settings $section = 'tropicana-social'; $sections[] = array( 'id' => $section, 'title' => __( 'Social Media Links', 'tropicana' ), 'priority' => '35' ); $options['tropicana-social-right-aligned-buttons'] = array( 'id' => 'tropicana-social-right-aligned-buttons', 'label' => __( 'Show right aligned social media buttons', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0 ); $options['tropicana-social-email'] = array( 'id' => 'tropicana-social-email', 'label' => __( 'Email Address', 'tropicana' ), 'section' => $section, 'type' => 'text' ); $options['tropicana-social-skype'] = array( 'id' => 'tropicana-social-skype', 'label' => __( 'Skype Name', 'tropicana' ), 'section' => $section, 'type' => 'text' ); $options['tropicana-social-tumblr'] = array( 'id' => 'tropicana-social-tumblr', 'label' => __( 'Tumblr', 'tropicana' ), 'section' => $section, 'type' => 'text' ); $options['tropicana-social-flickr'] = array( 'id' => 'tropicana-social-flickr', 'label' => __( 'Flickr', 'tropicana' ), 'section' => $section, 'type' => 'text' ); // Search Settings $section = 'tropicana-search'; $sections[] = array( 'id' => $section, 'title' => __( 'Search', 'tropicana' ), 'priority' => '35' ); $options['tropicana-navigation-menu-search-button'] = array( 'id' => 'tropicana-navigation-menu-search-button', 'label' => __( 'Show Search in the Navigation Menu', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 1 ); $options['tropicana-navigation-menu-search-button-text'] = array( 'id' => 'tropicana-navigation-menu-search-button-text', 'label' => __( 'Search Button Text', 'tropicana' ), 'section' => $section, 'type' => 'text', 'default' => '' ); $options['tropicana-search-placeholder-text'] = array( 'id' => 'tropicana-search-placeholder-text', 'label' => __( 'Default Search Field Text', 'tropicana' ), 'section' => $section, 'type' => 'text', 'default' => __( 'Search...', 'tropicana' ) ); $options['tropicana-website-text-no-search-results-heading'] = array( 'id' => 'tropicana-website-text-no-search-results-heading', 'label' => __( 'No Search Results Heading', 'tropicana' ), 'section' => $section, 'type' => 'text', 'default' => __( 'Nothing Found!', 'tropicana' ) ); $options['tropicana-website-text-no-search-results-text'] = array( 'id' => 'tropicana-website-text-no-search-results-text', 'label' => __( 'No Search Results Message', 'tropicana' ), 'section' => $section, 'type' => 'textarea', 'default' => __( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'tropicana' ) ); // Slider Settings $section = 'tropicana-slider'; $sections[] = array( 'id' => $section, 'title' => __( 'Slider', 'tropicana' ), 'priority' => '35' ); $choices = array( 'tropicana-slider-default' => 'Default Slider', 'tropicana-slider-plugin' => 'Slider Plugin', 'tropicana-no-slider' => 'None' ); $options['tropicana-slider-type'] = array( 'id' => 'tropicana-slider-type', 'label' => __( 'Slider', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices ); // Check for the otb_tropicana_dot_org setting to honour the free version of the theme if ( get_theme_mod( 'otb_tropicana_dot_org' ) ) { $options['tropicana-slider-type']['default'] = 'tropicana-no-slider'; } else { $options['tropicana-slider-type']['default'] = 'tropicana-slider-default'; } $options['tropicana-slider-categories'] = array( 'id' => 'tropicana-slider-categories', 'label' => __( 'Post Categories', 'tropicana' ), 'section' => $section, 'type' => 'dropdown-categories', 'description' => __( 'Select the categories of the posts you want to display in the slider. The featured image will be the slide image and the post content will display over it. Hold down the Ctrl (windows) / Command (Mac) button to select multiple categories.', 'tropicana' ) ); $options['tropicana-slider-overlay-opacity'] = array( 'id' => 'tropicana-slider-overlay-opacity', 'label' => __( 'Overlay Opacity', 'tropicana' ), 'section' => $section, 'type' => 'range', 'default' => 0, 'input_attrs' => array( 'min' => 0, 'max' => 1, 'step' => 0.1, 'style' => 'color: #000000' ) ); $options['tropicana-slider-text-overlay-text-shadow'] = array( 'id' => 'tropicana-slider-text-overlay-text-shadow', 'label' => __( 'Display a drop shadow on the text overlay text', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0 ); $choices = array( 'block' => 'Block', 'per-line' => 'Per line' ); $options['tropicana-slider-text-overlay-style'] = array( 'id' => 'tropicana-slider-text-overlay-style', 'label' => __( 'Style', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'per-line' ); $options['tropicana-slider-has-min-width'] = array( 'id' => 'tropicana-slider-has-min-width', 'label' => __( 'Slider image has a minimum width', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0 ); $options['tropicana-slider-min-width'] = array( 'id' => 'tropicana-slider-min-width', 'label' => __( 'Minimum Width', 'tropicana' ), 'section' => $section, 'type' => 'pixels', 'default' => 600 ); $options['tropicana-slider-transition-speed'] = array( 'id' => 'tropicana-slider-transition-speed', 'label' => __( 'Transition Speed', 'tropicana' ), 'section' => $section, 'type' => 'milliseconds', 'default' => 450, 'description' => __( 'The speed it takes to transition between slides in milliseconds. 1000 milliseconds equals 1 second.', 'tropicana' ) ); $options['tropicana-slider-plugin-shortcode'] = array( 'id' => 'tropicana-slider-plugin-shortcode', 'label' => __( 'Slider Shortcode', 'tropicana' ), 'section' => $section, 'type' => 'text', 'description' => __( 'Enter the shortcode given by the slider plugin you\'re using.', 'tropicana' ) ); // Header Media $section = 'header_image'; $sections[] = array( 'id' => $section, 'title' => __( 'Header Media', 'tropicana' ), 'priority' => '35' ); if ( get_option('page_on_front') > 0 && isset( $custom_fields["slider_shortcode"] ) ) { $custom_fields = get_post_custom( get_option('page_on_front') ); $slider_shortcode = trim($custom_fields["slider_shortcode"][0]); } if ( !$slider_shortcode ) { $options['tropicana-slider-enabled-warning'] = array( 'id' => 'tropicana-slider-enabled-warning', 'label' => __( 'Please note: The header media will not display on your site as the slider is currently enabled. To make the header image visible you will first need to disable the slider.', 'tropicana' ), 'section' => $section, 'type' => 'warning', 'priority' => 0 ); } else { $options['tropicana-slider-enabled-warning'] = array( 'id' => 'tropicana-slider-enabled-warning', 'label' => __( 'Please note: The header media will not display on your site as you have a shortcode set in the Slider Shortcode field of your homepage. To make the header image visible you will first need to remove this.', 'tropicana' ), 'section' => $section, 'type' => 'warning', 'priority' => 0, 'class' => 'dont-hide', ); } $options['tropicana-header-image-overlay-opacity'] = array( 'id' => 'tropicana-header-image-overlay-opacity', 'label' => __( 'Overlay Opacity', 'tropicana' ), 'section' => $section, 'type' => 'range', 'default' => 0, 'input_attrs' => array( 'min' => 0, 'max' => 1, 'step' => 0.1, 'style' => 'color: #000000' ) ); $options['tropicana-header-image-text'] = array( 'id' => 'tropicana-header-image-text', 'label' => __( 'Text', 'tropicana' ), 'section' => $section, 'type' => 'textarea', 'description' => esc_html( __( 'Use

tags around heading text and

tags around body text.', 'tropicana' ) ) ); // Check for the otb_tropicana_dot_org setting to honour the free version of the theme if ( get_theme_mod( 'otb_tropicana_dot_org' ) ) { $options['tropicana-header-image-text']['default'] = ''; } else { $options['tropicana-header-image-text']['default'] = __( '

You & Tropicana - a match made in paradise.

Introducing a new theme from Out the Box

Tropicana scores high on design impact and is simple to set up.

It\'s the perfect fit for just about any type of website, online shop or blog.

Read More

', 'tropicana' ); } $options['tropicana-header-image-text-overlay-text-shadow'] = array( 'id' => 'tropicana-header-image-text-overlay-text-shadow', 'label' => __( 'Display a drop shadow on the text overlay text', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0 ); $choices = array( 'block' => 'Block', 'per-line' => 'Per line' ); $options['tropicana-header-image-text-overlay-style'] = array( 'id' => 'tropicana-header-image-text-overlay-style', 'label' => __( 'Style', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'per-line' ); $options['tropicana-header-image-has-min-width'] = array( 'id' => 'tropicana-header-image-has-min-width', 'label' => __( 'Header image has a minimum width', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0 ); $options['tropicana-header-image-min-width'] = array( 'id' => 'tropicana-header-image-min-width', 'label' => __( 'Minimum Width', 'tropicana' ), 'section' => $section, 'type' => 'pixels', 'default' => 600 ); // WooCommerce if ( tropicana_is_woocommerce_activated() ) { // WooCommerce $panel = 'woocommerce'; $panels[] = array( 'id' => $panel, 'title' => __( 'WooCommerce', 'tropicana' ), 'priority' => '30' ); // Layout $section = 'woocommerce-layout'; $sections[] = array( 'id' => $section, 'title' => __( 'Layout', 'tropicana' ), 'priority' => '10', 'panel' => $panel ); $options['tropicana-woocommerce-breadcrumbs'] = array( 'id' => 'tropicana-woocommerce-breadcrumbs', 'label' => __( 'Display breadcrumbs', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0 ); // Product Catalog $section = 'woocommerce_product_catalog'; $sections[] = array( 'id' => $section, 'title' => __( 'Product Catalog', 'tropicana' ), 'priority' => '10', 'panel' => $panel ); $options['tropicana-layout-woocommerce-shop-full-width'] = array( 'id' => 'tropicana-layout-woocommerce-shop-full-width', 'label' => __( 'Full width', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'priority' => 0, 'default' => 0 ); $options['tropicana-woocommerce-products-per-page'] = array( 'id' => 'tropicana-woocommerce-products-per-page', 'label' => __( 'Products per page', 'tropicana' ), 'section' => $section, 'type' => 'text', 'default' => get_option('posts_per_page'), 'description' => __( 'How many products should be shown per page?', 'tropicana' ) ); // Product $section = 'woocommerce-product'; $sections[] = array( 'id' => $section, 'title' => __( 'Product', 'tropicana' ), 'priority' => '10', 'panel' => $panel ); $options['tropicana-layout-woocommerce-product-full-width'] = array( 'id' => 'tropicana-layout-woocommerce-product-full-width', 'label' => __( 'Full width', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => get_theme_mod( 'tropicana-layout-woocommerce-shop-full-width', 0 ) ); $options['tropicana-woocommerce-product-image-zoom'] = array( 'id' => 'tropicana-woocommerce-product-image-zoom', 'label' => __( 'Enable zoom on product image', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 1 ); // Product category / tag page $section = 'woocommerce-category-tag-page'; $sections[] = array( 'id' => $section, 'title' => __( 'Product Category and Tag Page', 'tropicana' ), 'priority' => '10', 'panel' => $panel ); $options['tropicana-layout-woocommerce-category-tag-page-full-width'] = array( 'id' => 'tropicana-layout-woocommerce-category-tag-page-full-width', 'label' => __( 'Full width', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'priority' => '0', 'default' => get_theme_mod( 'tropicana-layout-woocommerce-shop-full-width', 0 ) ); /* $choices = array( 'tropicana-shop-left-sidebar' => 'Left', 'tropicana-shop-right-sidebar' => 'Right' ); $options['tropicana-woocommerce-shop-sidebar-alignment'] = array( 'id' => 'tropicana-woocommerce-shop-sidebar-alignment', 'label' => __( 'Shop page sidebar alignment', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'tropicana-shop-right-sidebar' ); */ } // // Blog Settings // $section = 'tropicana-blog'; // $sections[] = array( // 'id' => $section, // 'title' => __( 'Blog', 'tropicana' ), // 'priority' => '50' // ); // Blog Settings $section = 'tropicana-blog'; $sections[] = array( 'id' => $section, 'title' => __( 'Blog', 'tropicana' ), 'priority' => '50' ); $options['tropicana-blog-featured-image-size'] = array( 'id' => 'tropicana-blog-featured-image-size', 'label' => __( 'Featured Image Size', 'tropicana' ), 'section' => $section, 'type' => 'dropdown-image-size', 'default' => 'large' ); $choices = array( 'tropicana-blog-archive-layout-full' => 'Full post', 'tropicana-blog-archive-layout-excerpt' => 'Excerpt' ); $options['tropicana-blog-archive-layout'] = array( 'id' => 'tropicana-blog-archive-layout', 'label' => __( 'Text Length', 'tropicana' ), 'section' => $section, 'type' => 'select', 'choices' => $choices, 'default' => 'tropicana-blog-archive-layout-full' ); // website Text Settings $section = 'tropicana-website-text'; $sections[] = array( 'id' => $section, 'title' => __( 'Website Text', 'tropicana' ), 'priority' => '50' ); $options['tropicana-website-text-404-page-heading'] = array( 'id' => 'tropicana-website-text-404-page-heading', 'label' => __( '404 Page Heading', 'tropicana' ), 'section' => $section, 'type' => 'text', 'default' => __( '404!', 'tropicana' ) ); $options['tropicana-website-text-404-page-text'] = array( 'id' => 'tropicana-website-text-404-page-text', 'label' => __( '404 Page Message', 'tropicana' ), 'section' => $section, 'type' => 'textarea', 'default' => __( 'The page you were looking for cannot be found!', 'tropicana' ) ); // Media $section = 'tropicana-media'; $sections[] = array( 'id' => $section, 'title' => __( 'Media', 'tropicana' ), 'priority' => '50' ); $options['tropicana-media-crisp-images'] = array( 'id' => 'tropicana-media-crisp-images', 'label' => __( 'Crisp images', 'tropicana' ), 'section' => $section, 'type' => 'checkbox', 'default' => 0, 'description' => __( '

This will remove the default anti-aliasing done to scaled images by browsers creating a more crisp image.

', 'tropicana' ) ); // 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', 'tropicana_customizer_library_options' );