esc_html__( 'Theme Settings', 'boxy-studio' ), // Panel name 'id' => BX_THEME_SLUG . '_theme_settings', // unique ID 'priority' => 30, 'theme_supports' => '', 'type' => 'panel' ); // type = panel /* --------------------------------------------------------------------------------------------------- Sections --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => esc_html__( 'General', 'boxy-studio' ), // Section name 'description' => '', 'panel' => BX_THEME_SLUG . '_theme_settings', // panel 'id' => BX_THEME_SLUG . '_style', // unique ID 'icon' => 'desktop', 'priority' => 10, 'theme_supports' => '', 'type' => 'section' ); // type = section $options[] = array( 'title' => esc_html__( 'Header', 'boxy-studio' ), // Section name 'description' => '', 'panel' => BX_THEME_SLUG . '_theme_settings', // panel 'id' => BX_THEME_SLUG . '_header', // unique ID 'icon' => 'angle-up', 'priority' => 10, 'theme_supports' => '', 'type' => 'section' ); // type = section $options[] = array( 'title' => esc_html__( 'Footer', 'boxy-studio' ), // Section name 'description' => '', 'panel' => BX_THEME_SLUG . '_theme_settings', // panel 'id' => BX_THEME_SLUG . '_footer', // unique ID 'icon' => 'angle-down', 'priority' => 10, 'theme_supports' => '', 'type' => 'section' ); // type = section $options[] = array( 'title' => esc_html__( 'Typography', 'boxy-studio' ), // Section name 'description' => '', 'panel' => BX_THEME_SLUG . '_theme_settings', // panel 'id' => BX_THEME_SLUG . '_typography', // unique ID 'icon' => 'font', 'priority' => 10, 'theme_supports' => '', 'type' => 'section' ); // type = section $options[] = array( 'title' => esc_html__( 'Pages & Posts', 'boxy-studio' ), // Section name 'description' => '', 'panel' => BX_THEME_SLUG . '_theme_settings', // panel 'id' => BX_THEME_SLUG . '_pages_posts', // unique ID 'icon' => 'file-alt', 'priority' => 10, 'theme_supports' => '', 'type' => 'section' ); // type = section $options[] = array( 'title' => esc_html__( 'Socials', 'boxy-studio' ), // Section name 'description' => '', 'panel' => BX_THEME_SLUG . '_theme_settings', // panel 'id' => BX_THEME_SLUG . '_socials', // unique ID 'icon' => 'share-alt ', 'priority' => 10, 'theme_supports' => '', 'type' => 'section' ); // type = section /* --------------------------------------------------------------------------------------------------- General --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => esc_html__( 'Layout Settings', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_style', 'id' => BX_THEME_SLUG . '_layout_heading', 'option' => 'section_heading', 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Layout Style', 'boxy-studio' ), 'description' => esc_html__( 'Choose between a Full or Boxed layout','boxy-studio' ), 'section' => BX_THEME_SLUG . '_style', 'id' => BX_THEME_SLUG . '_layout_style', 'default' => 'full', 'option' => 'select', 'choices' => array( 'full' => esc_html__('Full','boxy-studio'), 'boxed' => esc_html__('Boxed','boxy-studio') ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Button Style', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_style', 'id' => BX_THEME_SLUG . '_button_style', 'default' => 'default', 'option' => 'select', 'choices' => array( 'sharp' => esc_html__('Sharp Corners','boxy-studio'), 'default' => esc_html__('Rounded Corners','boxy-studio'), 'rounded' => esc_html__('Rounded','boxy-studio') ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Mobile Optimized (responsive)', 'boxy-studio' ), 'description' => 'Layout will adjust to fit mobile devices.', 'section' => BX_THEME_SLUG . '_style', 'id' => BX_THEME_SLUG . '_mobile_optimized', 'default' => '1', 'option' => 'checkbox', 'type' => 'control' ); /* --------------------------------------------------------------------------------------------------- Header --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => esc_html__( 'Main Header', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_header', 'id' => BX_THEME_SLUG . '_header_heading', 'option' => 'section_heading', 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Header Shadow', 'boxy-studio' ), 'section' => BX_THEME_SLUG . '_header', 'id' => BX_THEME_SLUG . '_header_shadow', 'default' => 'enabled', 'option' => 'radio', 'choices' => array( 'enabled' => esc_html__('Enabled','boxy-studio'), 'disabled' => esc_html__('Disabled','boxy-studio') ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Header Height', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_header', 'id' => BX_THEME_SLUG . '_header_height', 'default' => 120, 'option' => 'number', 'input_attrs' => array(), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Search Button', 'boxy-studio' ), 'section' => BX_THEME_SLUG . '_header', 'id' => BX_THEME_SLUG . '_header_search', 'default' => 'enabled', 'option' => 'radio', 'choices' => array( 'enabled' => esc_html__('Enabled','boxy-studio'), 'disabled' => esc_html__('Disabled','boxy-studio') ), 'type' => 'control' ); /* --------------------------------------------------------------------------------------------------- Top Bar --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => esc_html__( 'Top Bar', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_header', 'id' => BX_THEME_SLUG . '_top_bar_heading', 'option' => 'section_heading', 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Top Bar', 'boxy-studio' ), 'section' => BX_THEME_SLUG . '_header', 'id' => BX_THEME_SLUG . '_top_bar', 'default' => 'enabled', 'option' => 'radio', 'choices' => array( 'enabled' => esc_html__('Enabled','boxy-studio'), 'disabled' => esc_html__('Disabled','boxy-studio') ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Left Content', 'boxy-studio' ), 'section' => BX_THEME_SLUG . '_header', 'id' => BX_THEME_SLUG . '_top_bar_left_content', 'default' => 'text', 'conditionals' => array( BX_THEME_SLUG . '_top_bar' => 'enabled' ), 'option' => 'radio', 'choices' => array( 'disabled' => esc_html__('Nothing','boxy-studio'), 'text' => esc_html__('Text/HTML','boxy-studio'), 'socials' => esc_html__('Social Icons','boxy-studio') ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Left Text', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_header', 'id' => BX_THEME_SLUG . '_top_bar_left_text', 'default' => 'Left side text.', 'conditionals' => array( BX_THEME_SLUG . '_top_bar' => 'enabled', BX_THEME_SLUG . '_top_bar_left_content' => 'text' ), 'option' => 'text', 'input_attrs' => array(), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Right Content', 'boxy-studio' ), 'section' => BX_THEME_SLUG . '_header', 'id' => BX_THEME_SLUG . '_top_bar_right_content', 'default' => 'text', 'conditionals' => array( BX_THEME_SLUG . '_top_bar' => 'enabled' ), 'option' => 'radio', 'choices' => array( 'disabled' => esc_html__('Nothing','boxy-studio'), 'text' => esc_html__('Text/HTML','boxy-studio'), 'socials' => esc_html__('Social Icons','boxy-studio') ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Right Text', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_header', 'id' => BX_THEME_SLUG . '_top_bar_right_text', 'default' => 'Right side text.', 'conditionals' => array( BX_THEME_SLUG . '_top_bar' => 'enabled', BX_THEME_SLUG . '_top_bar_right_content' => 'text' ), 'option' => 'text', 'input_attrs' => array(), 'type' => 'control' ); /* --------------------------------------------------------------------------------------------------- Socials --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => 'Facebook', 'description' => '', 'section' => BX_THEME_SLUG . '_socials', 'id' => 'bx_socials_facebook', 'default' => '', 'option' => 'text', 'input_attrs' => array(), 'type' => 'control' ); $options[] = array( 'title' => 'Twitter', 'description' => '', 'section' => BX_THEME_SLUG . '_socials', 'id' => 'bx_socials_twitter', 'default' => '', 'option' => 'text', 'input_attrs' => array(), 'type' => 'control' ); $options[] = array( 'title' => 'Instagram', 'description' => '', 'section' => BX_THEME_SLUG . '_socials', 'id' => 'bx_socials_instagram', 'default' => '', 'option' => 'text', 'input_attrs' => array(), 'type' => 'control' ); $options[] = array( 'title' => 'Youtube', 'description' => '', 'section' => BX_THEME_SLUG . '_socials', 'id' => 'bx_socials_youtube', 'default' => '', 'option' => 'text', 'input_attrs' => array(), 'type' => 'control' ); $options[] = array( 'title' => 'Vimeo', 'description' => '', 'section' => BX_THEME_SLUG . '_socials', 'id' => 'bx_socials_vimeo', 'default' => '', 'option' => 'text', 'input_attrs' => array(), 'type' => 'control' ); $options[] = array( 'title' => 'Snapchat', 'description' => '', 'section' => BX_THEME_SLUG . '_socials', 'id' => 'bx_socials_snapchat', 'default' => '', 'option' => 'text', 'input_attrs' => array(), 'type' => 'control' ); $options[] = array( 'title' => 'Pinterest', 'description' => '', 'section' => BX_THEME_SLUG . '_socials', 'id' => 'bx_socials_pinterest', 'default' => '', 'option' => 'text', 'input_attrs' => array(), 'type' => 'control' ); /* --------------------------------------------------------------------------------------------------- Pages & Posts --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => esc_html__( 'Breadcrumbs', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_pages_posts', 'id' => BX_THEME_SLUG . '_breadcrumbs', 'default' => 'enabled', 'option' => 'radio', 'choices' => array( 'enabled' => esc_html__('Enabled','boxy-studio'), 'disabled' => esc_html__('Disabled','boxy-studio'), ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Page Title', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_pages_posts', 'id' => BX_THEME_SLUG . '_page_title', 'default' => 'enabled', 'option' => 'radio', 'choices' => array( 'enabled' => esc_html__('Enabled','boxy-studio'), 'disabled' => esc_html__('Disabled','boxy-studio'), ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Content Width', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_pages_posts', 'id' => BX_THEME_SLUG . '_content', 'default' => 'default', 'option' => 'radio', 'choices' => apply_filters( 'boxy_content_width_options', array( 'disabled' => esc_html__('Full-Width','boxy-studio'), 'default' => esc_html__('1100px','boxy-studio'), '1000px' => esc_html__('1000px','boxy-studio'), '900px' => esc_html__('900px','boxy-studio'), '800px' => esc_html__('800px','boxy-studio'), '700px' => esc_html__('700px','boxy-studio'), '600px' => esc_html__('600px','boxy-studio') )), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Featured Image Layout', 'boxy-studio' ), 'description' => esc_html__( 'Choose how and where you featured images display.','boxy-studio' ), 'section' => BX_THEME_SLUG . '_pages_posts', 'id' => BX_THEME_SLUG . '_page_thumbnail_layout', 'default' => 'page_banner', 'option' => 'select', 'choices' => array( 'disabled' => esc_html__('Disabled','boxy-studio'), 'page_banner' => esc_html__('Page Banner w/Title','boxy-studio'), 'page_banner_blank' => esc_html__('Page Banner w/o Title','boxy-studio'), 'inline' => esc_html__('Inline','boxy-studio'), ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Image Position', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_pages_posts', 'id' => BX_THEME_SLUG . '_page_thumbnail_position', 'default' => 'above', 'conditionals' => array( BX_THEME_SLUG . '_page_thumbnail_layout' => 'inline' ), 'option' => 'radio', 'choices' => array( 'above' => esc_html__('Above Title','boxy-studio'), 'below' => esc_html__('Below Title','boxy-studio'), ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Image Styling', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_pages_posts', 'id' => BX_THEME_SLUG . '_page_thumbnail_style', 'default' => 'disabled', 'conditionals' => array( BX_THEME_SLUG . '_page_thumbnail_layout' => 'inline' ), 'option' => 'radio', 'choices' => array( 'disabled' => esc_html__('Disabled','boxy-studio'), 'bordered_1' => esc_html__('Bordered 1','boxy-studio'), 'bordered_2' => esc_html__('Bordered 2','boxy-studio'), 'bordered_3' => esc_html__('Bordered 3','boxy-studio'), 'bordered_4' => esc_html__('Bordered 4','boxy-studio'), 'bordered_5' => esc_html__('Bordered 5','boxy-studio'), 'shadow_1' => esc_html__('Small Shadow','boxy-studio'), 'shadow_2' => esc_html__('Medium Shadow','boxy-studio'), 'shadow_3' => esc_html__('Large Shadow','boxy-studio'), 'floating' => esc_html__('Floating','boxy-studio'), ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Image Border Color', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_pages_posts', 'id' => BX_THEME_SLUG . '_page_thumbnail_border', 'default' => '', 'conditionals' => array( BX_THEME_SLUG . '_page_thumbnail_layout' => 'inline' ), 'option' => 'color', 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Page Title Style', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_pages_posts', 'id' => BX_THEME_SLUG . '_page_banner_title_style', 'default' => 'centered', 'conditionals' => array( BX_THEME_SLUG . '_page_thumbnail_layout' => 'page_banner' ), 'option' => 'radio', 'choices' => array( 'centered' => esc_html__('Centered','boxy-studio'), 'left' => esc_html__('Left','boxy-studio'), 'right' => esc_html__('Right','boxy-studio'), ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Overlay Color', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_pages_posts', 'id' => BX_THEME_SLUG . '_page_thumbnail_overlay', 'default' => '#0e1319', 'conditionals' => array( BX_THEME_SLUG . '_page_thumbnail_layout' => 'page_banner' ), 'option' => 'color', 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Overlay Transparency', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_pages_posts', 'id' => BX_THEME_SLUG . '_page_thumbnail_transparency', 'default' => '0.7', 'conditionals' => array( BX_THEME_SLUG . '_page_thumbnail_layout' => 'page_banner' ), 'option' => 'radio', 'choices' => array( '1.0' => esc_html__('Solid Color','boxy-studio'), '0.9' => esc_html__('90%','boxy-studio'), '0.8' => esc_html__('80%','boxy-studio'), '0.7' => esc_html__('70%','boxy-studio'), '0.6' => esc_html__('60%','boxy-studio'), '0.5' => esc_html__('50%','boxy-studio'), '0.4' => esc_html__('40%','boxy-studio'), '0.3' => esc_html__('30%','boxy-studio'), '0.2' => esc_html__('20%','boxy-studio'), '0.1' => esc_html__('10%','boxy-studio'), '0' => esc_html__('Transparent','boxy-studio'), ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Page Title Color', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_pages_posts', 'id' => BX_THEME_SLUG . '_page_banner_title', 'default' => '#ffffff', 'conditionals' => array( BX_THEME_SLUG . '_page_thumbnail_layout' => 'page_banner' ), 'option' => 'color', 'type' => 'control' ); /* --------------------------------------------------------------------------------------------------- Colors - Header --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => esc_html__( 'Header Colors', 'boxy-studio' ), 'description' => '', 'section' => 'colors', 'id' => BX_THEME_SLUG . '_header_colors_heading', 'option' => 'section_heading', 'type' => 'control' ); $header_colors = array( BX_THEME_SLUG . '_top_bar_bg_color' => array( 'title' => esc_html__( 'Top Bar Background Color', 'boxy-studio' ), 'default' => '#1450b7', ), BX_THEME_SLUG . '_top_bar_text_color' => array( 'title' => esc_html__( 'Top Bar Text Color', 'boxy-studio' ), 'default' => '#ffffff', ), BX_THEME_SLUG . '_top_bar_link_color' => array( 'title' => esc_html__( 'Top Bar Link Color', 'boxy-studio' ), 'default' => '#c5d7f4', ), BX_THEME_SLUG . '_top_bar_link_color_hover' => array( 'title' => esc_html__( 'Top Bar Link Color on Hover', 'boxy-studio' ), 'default' => '#ffffff', ), BX_THEME_SLUG . '_header_bg_color' => array( 'title' => esc_html__( 'Header Background Color', 'boxy-studio' ), 'default' => '#ffffff', ), BX_THEME_SLUG . '_header_logo_color' => array( 'title' => esc_html__( 'Header Logo Text Color', 'boxy-studio' ), 'default' => '#333333', ), BX_THEME_SLUG . '_header_nav_color' => array( 'title' => esc_html__( 'Header Navigation Text', 'boxy-studio' ), 'default' => '#aaaaaa', ), BX_THEME_SLUG . '_header_nav_color_hover' => array( 'title' => esc_html__( 'Header Navigation Text on Hover', 'boxy-studio' ), 'default' => '#1761d2', ) ); foreach( $header_colors as $hco_id => $hco ): $options[] = array( 'title' => $hco['title'], 'description' => '', 'section' => 'colors', 'id' => $hco_id, 'default' => $hco['default'], 'option' => 'color', 'type' => 'control' ); endforeach; /* --------------------------------------------------------------------------------------------------- Colors - Footer --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => esc_html__( 'Footer Colors', 'boxy-studio' ), 'description' => '', 'section' => 'colors', 'id' => BX_THEME_SLUG . '_footer_colors_heading', 'option' => 'section_heading', 'type' => 'control' ); $footer_colors = array( BX_THEME_SLUG . '_footer_bg_color' => array( 'title' => esc_html__( 'Footer Background Color', 'boxy-studio' ), 'default' => '#1761d2', ), BX_THEME_SLUG . '_footer_text_color' => array( 'title' => esc_html__( 'Footer Text Color', 'boxy-studio' ), 'default' => '#ffffff', ), BX_THEME_SLUG . '_footer_link_color' => array( 'title' => esc_html__( 'Footer Link Color', 'boxy-studio' ), 'default' => '#c5d7f4', ), BX_THEME_SLUG . '_footer_link_color_hover' => array( 'title' => esc_html__( 'Footer Link Color on Hover', 'boxy-studio' ), 'default' => '#ffffff', ) ); foreach( $footer_colors as $fco_id => $fco ): $options[] = array( 'title' => $fco['title'], 'description' => '', 'section' => 'colors', 'id' => $fco_id, 'default' => $fco['default'], 'option' => 'color', 'type' => 'control' ); endforeach; /* --------------------------------------------------------------------------------------------------- Colors - Buttons --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => esc_html__( 'Button Colors', 'boxy-studio' ), 'description' => '', 'section' => 'colors', 'id' => BX_THEME_SLUG . '_button_colors_heading', 'option' => 'section_heading', 'type' => 'control' ); $button_colors = array( BX_THEME_SLUG . '_main_button_bg_color' => array( 'title' => esc_html__( 'Main Button Background Color', 'boxy-studio' ), 'default' => '#1761d2', ), BX_THEME_SLUG . '_main_button_text_color' => array( 'title' => esc_html__( 'Main Button Text Color', 'boxy-studio' ), 'default' => '#ffffff', ), BX_THEME_SLUG . '_main_button_bg_hover_color' => array( 'title' => esc_html__( 'Main Button Background Color on Hover', 'boxy-studio' ), 'default' => '#155ac2', ), BX_THEME_SLUG . '_main_button_text_hover_color' => array( 'title' => esc_html__( 'Main Button Text Color on Hover', 'boxy-studio' ), 'default' => '#ffffff', ), BX_THEME_SLUG . '_secondary_button_bg_color' => array( 'title' => esc_html__( 'Secondary Button Background Color', 'boxy-studio' ), 'default' => '#00d2ae', ), BX_THEME_SLUG . '_secondary_button_text_color' => array( 'title' => esc_html__( 'Secondary Button Text Color', 'boxy-studio' ), 'default' => '#ffffff', ), BX_THEME_SLUG . '_secondary_button_bg_hover_color' => array( 'title' => esc_html__( 'Secondary Button Background Color on Hover', 'boxy-studio' ), 'default' => '#00af91', ), BX_THEME_SLUG . '_secondary_button_text_hover_color' => array( 'title' => esc_html__( 'Secondary Button Text Color on Hover', 'boxy-studio' ), 'default' => '#ffffff', ) ); foreach( $button_colors as $bco_id => $bco ): $options[] = array( 'title' => $bco['title'], 'description' => '', 'section' => 'colors', 'id' => $bco_id, 'default' => $bco['default'], 'option' => 'color', 'type' => 'control' ); endforeach; /* --------------------------------------------------------------------------------------------------- Colors - Main Content --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => esc_html__( 'Main Content Colors', 'boxy-studio' ), 'description' => '', 'section' => 'colors', 'id' => BX_THEME_SLUG . '_main_colors_heading', 'option' => 'section_heading', 'type' => 'control' ); $main_colors = array( BX_THEME_SLUG . '_main_content_bg' => array( 'title' => esc_html__( 'Content Background Color', 'boxy-studio' ), 'default' => '#ffffff', ), BX_THEME_SLUG . '_main_content_text' => array( 'title' => esc_html__( 'Content Text Color', 'boxy-studio' ), 'default' => '#333333', ), BX_THEME_SLUG . '_main_content_link' => array( 'title' => esc_html__( 'Content Link Color', 'boxy-studio' ), 'default' => '#1761d2', ), BX_THEME_SLUG . '_main_content_link_hover' => array( 'title' => esc_html__( 'Content Link Color on Hover', 'boxy-studio' ), 'default' => '#333333', ), BX_THEME_SLUG . '_main_content_h1' => array( 'title' => esc_html__( 'H1 Header Color', 'boxy-studio' ), 'default' => '#333333', ), BX_THEME_SLUG . '_main_content_h2' => array( 'title' => esc_html__( 'H2 Header Color', 'boxy-studio' ), 'default' => '#333333', ), BX_THEME_SLUG . '_main_content_h3' => array( 'title' => esc_html__( 'H3 Header Color', 'boxy-studio' ), 'default' => '#333333', ), BX_THEME_SLUG . '_main_content_h4' => array( 'title' => esc_html__( 'H4 Header Color', 'boxy-studio' ), 'default' => '#333333', ), BX_THEME_SLUG . '_main_content_h5' => array( 'title' => esc_html__( 'H5 Header Color', 'boxy-studio' ), 'default' => '#333333', ), BX_THEME_SLUG . '_main_content_h6' => array( 'title' => esc_html__( 'H6 Header Color', 'boxy-studio' ), 'default' => '#333333', ) ); foreach( $main_colors as $mco_id => $mco ): $options[] = array( 'title' => $mco['title'], 'description' => '', 'section' => 'colors', 'id' => $mco_id, 'default' => $mco['default'], 'option' => 'color', 'type' => 'control' ); endforeach; /* --------------------------------------------------------------------------------------------------- Typography --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => esc_html__( 'Base Font', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_default_font', 'default' => 'roboto', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_google_fonts, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Base Text Size', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_default_text_size', 'default' => '16px', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_font_sizes, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H1 Heading (Page Title)', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h1_font', 'default' => 'roboto', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_google_fonts, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H1 Size', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h1_text_size', 'default' => '2rem', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_adj_font_sizes, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H2 Heading', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h2_font', 'default' => 'roboto', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_google_fonts, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H2 Size', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h2_text_size', 'default' => '1.5rem', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_adj_font_sizes, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H3 Heading', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h3_font', 'default' => 'roboto', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_google_fonts, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H3 Size', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h3_text_size', 'default' => '1.2rem', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_adj_font_sizes, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H4 Heading', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h4_font', 'default' => 'roboto', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_google_fonts, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H4 Size', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h4_text_size', 'default' => '1.1rem', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_adj_font_sizes, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H5 Heading', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h5_font', 'default' => 'roboto', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_google_fonts, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H5 Size', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h5_text_size', 'default' => '1rem', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_adj_font_sizes, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H6 Heading', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h6_font', 'default' => 'roboto', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_google_fonts, 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'H6 Size', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_typography', 'id' => BX_THEME_SLUG . '_h6_text_size', 'default' => '0.9rem', 'option' => 'select', 'sanitize_callback' => '', 'choices' => $bx_adj_font_sizes, 'type' => 'control' ); /* --------------------------------------------------------------------------------------------------- Footer --------------------------------------------------------------------------------------------------- */ $options[] = array( 'title' => esc_html__( 'Footer', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_footer', 'id' => BX_THEME_SLUG . '_footer_heading', 'option' => 'section_heading', 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Left Content', 'boxy-studio' ), 'section' => BX_THEME_SLUG . '_footer', 'id' => BX_THEME_SLUG . '_footer_left_content', 'default' => 'text', 'option' => 'radio', 'choices' => array( 'disabled' => esc_html__('Nothing','boxy-studio'), 'text' => esc_html__('Text/HTML','boxy-studio'), 'socials' => esc_html__('Social Icons','boxy-studio') ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Left Text', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_footer', 'id' => BX_THEME_SLUG . '_footer_left_text', 'default' => 'Left side text.', 'conditionals' => array( BX_THEME_SLUG . '_footer_left_content' => 'text' ), 'option' => 'text', 'input_attrs' => array(), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Right Content', 'boxy-studio' ), 'section' => BX_THEME_SLUG . '_footer', 'id' => BX_THEME_SLUG . '_footer_right_content', 'default' => 'text', 'option' => 'radio', 'choices' => array( 'disabled' => esc_html__('Nothing','boxy-studio'), 'text' => esc_html__('Text/HTML','boxy-studio'), 'socials' => esc_html__('Social Icons','boxy-studio') ), 'type' => 'control' ); $options[] = array( 'title' => esc_html__( 'Right Text', 'boxy-studio' ), 'description' => '', 'section' => BX_THEME_SLUG . '_footer', 'id' => BX_THEME_SLUG . '_footer_right_text', 'default' => 'Right side text.', 'conditionals' => array( BX_THEME_SLUG . '_footer_right_content' => 'text' ), 'option' => 'text', 'input_attrs' => array(), 'type' => 'control' ); /* // Text field - Example Panel - section 1 $options[] = array( 'title' => esc_html__( 'Text Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_id', // section 'id' => BX_THEME_SLUG . 'text', // unique ID 'default' => 'Default value', 'option' => 'text', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'control' ); // type = control // Textarea field - Example Panel - section 1 $options[] = array( 'title' => esc_html__( 'Textarea Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_id', // section 'id' => BX_THEME_SLUG . 'textarea', // unique ID 'default' => '', 'option' => 'textarea', 'sanitize_callback' => 'esc_textarea', 'type' => 'control' ); // type = control // Color Picker field - Example Panel - section 1 $options[] = array( 'title' => esc_html__( 'Color Picker Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_id', // section 'id' => BX_THEME_SLUG . 'color', // unique ID 'default' => '#BADA55', // HEX 'option' => 'color', 'sanitize_callback' => '', 'type' => 'control' ); // type = control // Radio field - Example Panel - section 1 $options[] = array( 'title' => esc_html__( 'Radio Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_id', // section 'id' => BX_THEME_SLUG . 'radio', // unique ID 'default' => 'value2', 'option' => 'radio', 'sanitize_callback' => '', 'choices' => array( 'value1' => 'Choice 1', 'value2' => 'Choice 2', 'value3' => 'Choice 3', ), 'type' => 'control' ); // type = control // Checkbox field - Example Panel - section 1 $options[] = array( 'title' => esc_html__( 'Checkbox Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_id', // section 'id' => BX_THEME_SLUG . 'checkbox', // unique ID 'default' => '', // 1 for checked 'option' => 'checkbox', 'sanitize_callback' => '', 'type' => 'control' ); // type = control // Image Upload field - Example Panel - section 1 $options[] = array( 'title' => esc_html__( 'Image Upload Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_id', // section 'id' => BX_THEME_SLUG . 'image', // unique ID 'default' => '', 'option' => 'image', 'sanitize_callback' => 'esc_url', 'type' => 'control' ); // type = control // File Upload field - Example Panel - section 1 $options[] = array( 'title' => esc_html__( 'File Upload Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_id', // section 'id' => BX_THEME_SLUG . 'file', // unique ID 'default' => '', 'option' => 'file', 'sanitize_callback' => '', 'type' => 'control' ); // type = control // URL field - Example Panel - section 2 $options[] = array( 'title' => esc_html__( 'URL Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_2', // section 'id' => BX_THEME_SLUG . 'url', // unique ID 'default' => '', 'option' => 'url', 'sanitize_callback' => 'esc_url', 'type' => 'control' ); // type = control // Email field - Example Panel - section 2 $options[] = array( 'title' => esc_html__( 'Email Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_2', // section 'id' => BX_THEME_SLUG . 'email', // unique ID 'default' => '', 'option' => 'email', 'sanitize_callback' => 'sanitize_email', 'type' => 'control' ); // type = control // Password field - Example Panel - section 2 $options[] = array( 'title' => esc_html__( 'Password Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_2', // section 'id' => BX_THEME_SLUG . 'password', // unique ID 'default' => '', 'option' => 'password', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'control' ); // type = control // Pages field - Example Panel 2 - section 3 $options[] = array( 'title' => esc_html__( 'Pages Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_3', // section 'id' => BX_THEME_SLUG . 'pages', // unique ID 'default' => 0, 'option' => 'pages', 'sanitize_callback' => '', 'type' => 'control' ); // type = control // Categories field - Example Panel 2 - section 3 $options[] = array( 'title' => esc_html__( 'Categories Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_3', // section 'id' => BX_THEME_SLUG . 'categories', // unique ID 'default' => 0, 'option' => 'categories', 'sanitize_callback' => '', 'type' => 'control' ); // type = control // Tags field - Example Panel 2 - section 3 $options[] = array( 'title' => esc_html__( 'Tags Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_3', // section 'id' => BX_THEME_SLUG . 'tags', // unique ID 'default' => '', 'option' => 'tags', 'sanitize_callback' => '', 'type' => 'control' ); // type = control // Post Types field - Example Panel 2 - section 3 $options[] = array( 'title' => esc_html__( 'Post Types Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_3', // section 'id' => BX_THEME_SLUG . 'post_types', // unique ID 'default' => '', 'option' => 'post_types', 'sanitize_callback' => '', 'type' => 'control' ); // type = control // Posts field - Example Panel 2 - section 3 $options[] = array( 'title' => esc_html__( 'Posts Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_3', // section 'id' => BX_THEME_SLUG . 'posts', // unique ID 'default' => '', 'option' => 'posts', 'sanitize_callback' => '', 'type' => 'control' ); // type = control // Users field - Example Panel 2 - section 3 $options[] = array( 'title' => esc_html__( 'Users Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_3', // section 'id' => BX_THEME_SLUG . 'users', // unique ID 'default' => '', 'option' => 'users', 'sanitize_callback' => '', 'type' => 'control' ); // type = control // Menus field - Example Panel 2 - section 3 $options[] = array( 'title' => esc_html__( 'Menus Field', 'boxy-studio' ), // Control label 'description' => '', // Control description 'section' => BX_THEME_SLUG . 'section_3', // section 'id' => BX_THEME_SLUG . 'menus', // unique ID 'default' => '', 'option' => 'menus', 'sanitize_callback' => '', 'type' => 'control' ); // type = control */ /* --------------------------------------------------------------------------------------------------- End Control Options --------------------------------------------------------------------------------------------------- */ // Do not edit or delete below. This will include any child theme options. if ( file_exists( get_stylesheet_directory() .'/customizer.php' ) ) { include get_stylesheet_directory() . '/customizer.php'; }