'#74a116',
'accent_font' => '#ffffff',
'box_background' => '#ffffff',
'site_background' => '#f5f5f5',
'site_background_patt' => 'hoot/images/patterns/4.png',
) ) );
// Directory path for radioimage buttons
$imagepath = HYBRIDEXTEND_INCURI . 'admin/images/';
// Logo Sizes (different range than standard typography range)
$logosizes = array();
$logosizerange = range( 14, 110 );
foreach ( $logosizerange as $isr )
$logosizes[ $isr . 'px' ] = $isr . 'px';
$logosizes = apply_filters( 'hoot_theme_options_logosizes', $logosizes);
// Logo Font Options for Lite version
$logofont = apply_filters( 'hoot_theme_options_logofont', array(
'standard' => __('Standard Body Font', 'brigsby'),
'heading' => __('Logo Font (Styling > Typography)', 'brigsby'),
) );
/*** Add Options (Panels, Sections, Settings) ***/
/** Panel Setup & Layout **/
$panel = 'general';
$panels[ $panel ] = array(
'title' => __( 'Setup & Layout', 'brigsby' ),
);
$section = 'setup';
$sections[ $section ] = array(
'title' => __( 'Site Setup', 'brigsby' ),
'panel' => $panel,
// 'description' => __( '', 'brigsby' ),
);
$settings['site_layout'] = array(
'label' => __( 'Site Layout - Boxed vs Stretched', 'brigsby' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'boxed' => __('Boxed layout', 'brigsby'),
'stretch' => __('Stretched layout (full width)', 'brigsby'),
),
'default' => 'stretch',
'description' => __("For boxed layouts, both backgrounds (site and content box) can be set in the 'Styling > Backgrounds' panel.
For Stretched Layout, only site background is available.", 'brigsby'),
);
$settings['site_width'] = array(
'label' => __( 'Max. Site Width (pixels)', 'brigsby' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'1260' => __('1260px (wide)', 'brigsby'),
'1080' => __('1080px (standard)', 'brigsby'),
),
'default' => '1260',
);
$settings['load_minified'] = array(
'label' => __( 'Load Minified Styles and Scripts (when available)', 'brigsby' ),
'sublabel' => __( 'Checking this option reduces data size, hence increasing page load speed.', 'brigsby' ),
'section' => $section,
'type' => 'checkbox',
'priority' => '25', // Non static options must have a priority
);
$section = 'logo';
$sections[ $section ] = array(
'title' => __( 'Logo Settings', 'brigsby' ),
'panel' => $panel,
// 'description' => __( '', 'brigsby' ),
);
$settings['logo_background_type'] = array(
'label' => __( 'Logo Background', 'brigsby' ),
'section' => $section,
'type' => 'radio',
'priority' => '25', // Non static options must have a priority
'choices' => array(
'transparent' => __('None', 'brigsby'),
'accent' => __('Accent Color', 'brigsby'),
),
'default' => 'transparent',
);
$settings['logo'] = array(
'label' => __( 'Site Logo', 'brigsby' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'text' => __('Default Text (Site Title)', 'brigsby'),
'custom' => __('Custom Text', 'brigsby'),
'image' => __('Image Logo', 'brigsby'),
'mixed' => __('Image & Default Text (Site Title)', 'brigsby'),
'mixedcustom' => __('Image & Custom Text', 'brigsby'),
),
'default' => 'text',
'description' => sprintf( __('Use %sSite Title%s as default text logo', 'brigsby'), '', '' ),
);
$settings['logo_size'] = array(
'label' => __( 'Logo Size', 'brigsby' ),
'section' => $section,
'type' => 'select',
'priority' => '35', // Non static options must have a priority
'choices' => array(
'tiny' => __( 'Tiny', 'brigsby'),
'small' => __( 'Small', 'brigsby'),
'medium' => __( 'Medium', 'brigsby'),
'large' => __( 'Large', 'brigsby'),
'huge' => __( 'Huge', 'brigsby'),
),
'default' => 'medium',
'active_callback' => 'hoot_callback_logo_size',
);
$settings['site_title_icon'] = array(
'label' => __( 'Site Title Icon (Optional)', 'brigsby' ),
'section' => $section,
'type' => 'icon',
// 'default' => 'fa-anchor',
'description' => __( 'Leave empty to hide icon.', 'brigsby' ),
'active_callback' => 'hoot_callback_site_title_icon',
);
$settings['site_title_icon_size'] = array(
'label' => __( 'Site Title Icon Size', 'brigsby' ),
'section' => $section,
'type' => 'select',
'choices' => $logosizes,
'default' => '50px',
'active_callback' => 'hoot_callback_site_title_icon',
);
if ( ! function_exists( 'the_custom_logo' ) )
$settings['logo_image'] = array(
'label' => __( 'Upload Logo', 'brigsby' ),
'section' => $section,
'type' => 'image',
'priority' => '55', // Replaced by WP's custom_logo if available // Update in premium if needed
'active_callback' => 'hoot_callback_logo_image',
);
$settings['logo_image_width'] = array(
'label' => __( 'Maximum Logo Width', 'brigsby' ),
'section' => $section,
'type' => 'text',
'priority' => '56', // Keep it with image logo // Update in premium if needed
'default' => 200,
'description' => __( '(in pixels)
',
);
$settings['primary_menuarea'] = array(
'label' => __( 'Primary Area (right of logo)', 'brigsby' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'menu' => __('Display Primary Menu', 'brigsby'),
'search' => __('Display Search', 'brigsby'),
'custom' => __('Custom Text', 'brigsby'),
'none' => __('None (Logo will get centre aligned)', 'brigsby'),
),
'default' => 'menu',
);
$settings['primary_menuarea_custom'] = array(
'label' => __( 'Custom Text instead of Menu', 'brigsby' ),
'section' => $section,
'type' => 'textarea',
'description' => __( 'You can use this area to display ads or custom text.', 'brigsby' ),
'active_callback' => 'hoot_callback_show_primary_menuarea_custom',
);
// Allow users to add javascript in case they need to use this area to insert code for ads
// etc. To enable this, add the following code in your child theme's functions.php file (without
// the '//'). This code is already included in premium version.
// add_filter( 'primary_menuarea_custom_allowscript', 'hoot_child_textarea_allowscript' );
// function hoot_child_textarea_allowscript(){ return true; }
if ( apply_filters( 'primary_menuarea_custom_allowscript', true ) )
$settings['primary_menuarea_custom']['sanitize_callback'] = 'hoot_custom_sanitize_textarea_allowscript';
$settings['secondary_menu_location'] = array(
'label' => __( 'Secondary Menu Location', 'brigsby' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'top' => __('Top (above logo)', 'brigsby'),
'bottom' => __('Bottom (below logo)', 'brigsby'),
'none' => __('Do not display secondary menu', 'brigsby'),
),
'default' => 'bottom',
);
$settings['secondary_menu_align'] = array(
'label' => __( 'Secondary Menu Alignment', 'brigsby' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'left' => __('Left', 'brigsby'),
'right' => __('Right', 'brigsby'),
'center' => __('Center', 'brigsby'),
),
'default' => 'center',
);
$section = 'sidebar_layout';
$sections[ $section ] = array(
'title' => __( 'Sidebar Layout', 'brigsby' ),
'panel' => $panel,
'description' => sprintf( __( 'If you are using %1sJetpack%2s, use the %3s"Widget Visibility"%4s module to display different sidebar content on different pages of your site.', 'brigsby' ), '', '', '', '' ),
);
$settings['sidebar'] = array(
'label' => __( 'Sidebar Layout (Site-wide)', 'brigsby' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'description' => __("Set the default sidebar width and position for your site.", 'brigsby'),
);
$settings['sidebar_pages'] = array(
'label' => __( 'Sidebar Layout (for Pages)', 'brigsby' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
);
$settings['sidebar_posts'] = array(
'label' => __( 'Sidebar Layout (for single Posts)', 'brigsby' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
);
if ( current_theme_supports( 'woocommerce' ) ) :
$settings['sidebar_wooshop'] = array(
'label' => __( 'Sidebar Layout (Woocommerce Shop/Archives)', 'brigsby' ),
'section' => $section,
'type' => 'radioimage',
'priority' => '155', // Non static options must have a priority
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'description' => __("Set the default sidebar width and position for WooCommerce Shop and Archives pages like product categories etc.", 'brigsby'),
);
$settings['sidebar_wooproduct'] = array(
'label' => __( 'Sidebar Layout (Woocommerce Single Product Page)', 'brigsby' ),
'section' => $section,
'type' => 'radioimage',
'priority' => '155', // Non static options must have a priority
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'description' => __("Set the default sidebar width and position for WooCommerce product page", 'brigsby'),
);
endif;
$section = 'archives';
$sections[ $section ] = array(
'title' => __( 'Archives (Blog, Cats, Tags)', 'brigsby' ),
'panel' => $panel,
// 'description' => __( '', 'brigsby' ),
);
$settings['archive_post_content'] = array(
'label' => __( 'Post Items Content', 'brigsby' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'excerpt' => __('Post Excerpt', 'brigsby'),
'full-content' => __('Full Post Content', 'brigsby'),
),
'default' => 'excerpt',
'description' => __( 'Content to display for each post in the list', 'brigsby' ),
);
$settings['archive_post_meta'] = array(
'label' => __( 'Meta Information for Post List Items', 'brigsby' ),
'sublabel' => __( 'Check which meta information to display for each post item in the archive list.', 'brigsby' ),
'section' => $section,
'type' => 'checkbox',
'choices' => array(
'author' => __('Author', 'brigsby'),
'date' => __('Date', 'brigsby'),
'cats' => __('Categories', 'brigsby'),
'tags' => __('Tags', 'brigsby'),
'comments' => __('No. of comments', 'brigsby')
),
'default' => 'author, date, cats, comments',
);
$settings['excerpt_length'] = array(
'label' => __( 'Excerpt Length', 'brigsby' ),
'section' => $section,
'type' => 'text',
'description' => __( 'Number of words in excerpt. Default is 105. Leave empty if you dont want to change it.', 'brigsby' ),
'input_attrs' => array(
'min' => 0,
'max' => 3,
'placeholder' => __( 'default: 105', 'brigsby' ),
),
);
$settings['read_more'] = array(
'label' => __( "'Read More' Text", 'brigsby' ),
'section' => $section,
'type' => 'text',
'description' => __( "Replace the default 'Read More' text. Leave empty if you dont want to change it.", 'brigsby' ),
'input_attrs' => array(
'placeholder' => __( 'default: READ MORE →', 'brigsby' ),
),
);
$section = 'singular';
$sections[ $section ] = array(
'title' => __( 'Single (Posts, Pages)', 'brigsby' ),
'panel' => $panel,
// 'description' => __( '', 'brigsby' ),
);
$settings['page_header_full'] = array(
'label' => __( 'Stretch Page Header to Full Width', 'brigsby' ),
'sublabel' => '
',
'section' => $section,
'type' => 'checkbox',
'choices' => array(
'default' => __('Default (Archives, Blog etc.)', 'brigsby'),
'posts' => __('For All Posts', 'brigsby'),
'pages' => __('For All Pages', 'brigsby'),
'no-sidebar' => __('Always override for full width pages (any page which has no sidebar)', 'brigsby'),
),
'default' => 'default, pages',
'description' => __('This is the Page Header area containing Page/Post Title and Meta details like author, categories etc.', 'brigsby'),
);
$settings['post_featured_image'] = array(
'label' => __( 'Display Featured Image', 'brigsby' ),
'sublabel' => __( 'Display featured image at the beginning of post/page content.', 'brigsby' ),
'section' => $section,
'type' => 'checkbox',
'default' => 1,
);
$settings['post_meta'] = array(
'label' => __( 'Meta Information on Posts', 'brigsby' ),
'sublabel' => __( "Check which meta information to display on an individual 'Post' page", 'brigsby' ),
'section' => $section,
'type' => 'checkbox',
'choices' => array(
'author' => __('Author', 'brigsby'),
'date' => __('Date', 'brigsby'),
'cats' => __('Categories', 'brigsby'),
'tags' => __('Tags', 'brigsby'),
'comments' => __('No. of comments', 'brigsby')
),
'default' => 'author, date, cats, tags, comments',
);
$settings['page_meta'] = array(
'label' => __( 'Meta Information on Page', 'brigsby' ),
'sublabel' => __( "Check which meta information to display on an individual 'Page' page", 'brigsby' ),
'section' => $section,
'type' => 'checkbox',
'choices' => array(
'author' => __('Author', 'brigsby'),
'date' => __('Date', 'brigsby'),
'comments' => __('No. of comments', 'brigsby')
),
'default' => 'author, date, comments',
);
$settings['post_meta_location'] = array(
'label' => __( 'Meta Information location', 'brigsby' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'top' => __('Top (below title)', 'brigsby'),
'bottom' => __('Bottom (after content)', 'brigsby'),
),
'default' => 'top',
);
$settings['post_prev_next_links'] = array(
'label' => __( 'Previous/Next Posts', 'brigsby' ),
'sublabel' => __( 'Display links to Prev/Next Post links at the end of post content.', 'brigsby' ),
'section' => $section,
'type' => 'checkbox',
'default' => 1,
);
if ( current_theme_supports( 'woocommerce' ) ) :
$section = 'woocommerce';
$sections[ $section ] = array(
'title' => __( 'WooCommerce', 'brigsby' ),
'panel' => $panel,
// 'description' => __( '', 'brigsby' ),
'priority' => '65', // Non static options must have a priority
);
$wooproducts = range( 0, 99 );
for ( $wpr=0; $wpr < 4; $wpr++ )
unset( $wooproducts[$wpr] );
$settings['wooshop_products'] = array(
'label' => __( 'Total Products per page', 'brigsby' ),
'section' => $section,
'type' => 'select',
'priority' => '255', // Non static options must have a priority
'choices' => $wooproducts,
'default' => '12',
'description' => __( 'Total number of products to show on the Shop page', 'brigsby' ),
);
$settings['wooshop_product_columns'] = array(
'label' => __( 'Product Columns', 'brigsby' ),
'section' => $section,
'type' => 'select',
'priority' => '255', // Non static options must have a priority
'choices' => array(
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
),
'default' => '3',
'description' => __( 'Number of products to show in 1 row on the Shop page', 'brigsby' ),
);
endif;
$section = 'footer';
$sections[ $section ] = array(
'title' => __( 'Footer', 'brigsby' ),
'panel' => $panel,
// 'description' => __( '', 'brigsby' ),
);
$settings['footer'] = array(
'label' => __( 'Footer Layout', 'brigsby' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'1-1' => $imagepath . '1-1.png',
'2-1' => $imagepath . '2-1.png',
'2-2' => $imagepath . '2-2.png',
'2-3' => $imagepath . '2-3.png',
'3-1' => $imagepath . '3-1.png',
'3-2' => $imagepath . '3-2.png',
'3-3' => $imagepath . '3-3.png',
'3-4' => $imagepath . '3-4.png',
'4-1' => $imagepath . '4-1.png',
),
'default' => '3-1',
'description' => sprintf( __('You must first save the changes you make here and refresh this screen for footer columns to appear in the Widgets panel (in customizer).<!--default--> tag to show the default Info Text.<!--year--> tag to insert the current year.©', 'brigsby'), '', '' ),
);
/** Panel Styling **/
$panel = 'styling';
$panels[ $panel ] = array(
'title' => __( 'Styling', 'brigsby' ),
);
$section = 'colors';
// Redundant as 'colors' section is added by WP. But we still add it for brevity
$sections[ $section ] = array(
'title' => __( 'Colors', 'brigsby' ),
'panel' => $panel,
);
$settings['box_background_color'] = array(
'label' => __( 'Content Box Background', 'brigsby' ),
'section' => $section,
'type' => 'color',
'default' => $box_background,
'description' => __("This background is available only when 'Boxed' option is selected in the 'Setup & Layout > Site Setup' panel.", 'brigsby'),
);
$settings['accent_color'] = array(
'label' => __( 'Accent Color', 'brigsby' ),
'section' => $section,
'type' => 'color',
'default' => $accent_color,
);
$settings['accent_font'] = array(
'label' => __( 'Font Color on Accent Color', 'brigsby' ),
'section' => $section,
'type' => 'color',
'default' => $accent_font,
);
$section = 'typography';
$sections[ $section ] = array(
'title' => __( 'Typography', 'brigsby' ),
'panel' => $panel,
'priority' => '85', // Non static options must have a priority
);
$settings['logo_fontface'] = array(
'label' => __( 'Logo Font (Free Version)', 'brigsby' ),
'section' => $section,
'type' => 'select',
'priority' => 305, // Non static options must have a priority
'choices' => array(
'standard' => __( 'Standard Font (Open Sans)', 'brigsby'),
'cursive' => __( 'Cursive Font (Pacifico)', 'brigsby'),
),
'default' => 'cursive',
);
/** Panel Content **/
$panel = 'content';
$panels[ $panel ] = array(
'title' => __( 'Content', 'brigsby' ),
);
$section = 'topbar';
$sections[ $section ] = array(
'title' => __( 'Topbar', 'brigsby' ),
'panel' => $panel,
// 'description' => __( '', 'brigsby' ),
);
$settings['topbar-widget-areas'] = array(
'label' => __( 'Left/Right Topbar', 'brigsby' ),
'section' => $section,
'type' => 'content',
'content' => sprintf( __('You can add content to Left/Right Topbar using Text Widget in the %sWidget Management Screen%s', 'brigsby'), '', '' ),
);
$settings['topbar_hide_search'] = array(
'label' => __( 'Hide Search Box', 'brigsby' ),
'sublabel' => __( 'Check this to hide Search box in Topbar Right Column', 'brigsby' ),
'section' => $section,
'type' => 'checkbox',
);
if ( current_theme_supports( 'hoot-widgetized-template' ) ) :
$section = 'widgetized-template';
$sections[ $section ] = array(
'title' => __( 'Widgetized Template - Modules', 'brigsby' ),
'panel' => $panel,
'description' => sprintf( __( "How to use this template'Widgetized Template' is a special Page Template which is often used as a quick way to create a Front Page.
Sort different sections of the 'Widgetized Template' in the order you want them to appear.