'#40c2a6',
'accent_font' => '#ffffff',
'box_background' => '#ffffff',
'site_background' => '#ffffff',
// 'font_size' => '14px',
// 'font_face' => '"Lato", sans-serif',
// 'font_style' => 'none',
// 'font_color' => '#444444',
) ) );
// Directory path for radioimage buttons
$imagepath = trailingslashit( HOOT_THEMEURI ) . '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);
/*** Add Options (Panels, Sections, Settings) ***/
/** Panel Genral **/
/** Section **/
$section = 'title_tagline';
$sections[ $section ] = array(
'title' => __( 'Setup & Layout', 'chromatic' ),
);
$settings['site_layout'] = array(
'label' => __( 'Site Layout - Boxed vs Stretched', 'chromatic' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'boxed' => __('Boxed layout', 'chromatic'),
'stretch' => __('Stretched layout (full width)', 'chromatic'),
),
'default' => 'stretch',
'description' => __("For boxed layouts, both backgrounds (site and content box) can be set in the 'Backgrounds' section.
For Stretched Layout, only site background is available.", 'chromatic'),
);
$settings['site_width'] = array(
'label' => __( 'Max. Site Width (pixels)', 'chromatic' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'1260' => __('1260px (wide)', 'chromatic'),
'1080' => __('1080px (standard)', 'chromatic'),
),
'default' => '1260',
);
$settings['mobile_menu'] = array(
'label' => __( 'Mobile Menu', 'chromatic' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'inline' => __('Inline - Menu Slide Downs to open', 'chromatic'),
'fixed' => __('Fixed - Menu opens on the left', 'chromatic'),
),
'default' => 'fixed',
'priority' => '25', // @todo remove
);
$settings['mobile_submenu_click'] = array(
'label' => __( "[Mobile Menu] Submenu opens on 'Click'", 'chromatic' ),
'section' => $section,
'type' => 'checkbox',
'default' => 1,
'priority' => '25', // @todo remove
'description' => __( "Uncheck this option to make all Submenus appear in 'Open' state. By default, submenus open on clicking (i.e. single tap on mobile).", 'chromatic' ),
);
$settings['load_minified'] = array(
'label' => __( 'Load Minified Styles and Scripts (when available)', 'chromatic' ),
'sublabel' => __( 'Checking this option reduces data size, hence increasing page load speed.', 'chromatic' ),
'section' => $section,
'type' => 'checkbox',
// 'default' => 1,
);
$settings['sidebar_desc'] = array(
'label' => __( 'Multiple Sidebars', 'chromatic' ),
'section' => $section,
'type' => 'content',
'content' => sprintf( __( 'This theme can display different sidebar content on different pages of your site with the %1sCustom Sidebars%2s plugin. Simply install and activate the plugin to use it with this theme. Or if you are using %3sJetpack%4s, you can use the %5s"Widget Visibility"%6s module.', 'chromatic' ), '', '', '', '', '', '' ),
);
$settings['sidebar'] = array(
'label' => __( 'Sidebar Layout (Site-wide)', 'chromatic' ),
'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',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'description' => __("Set the default sidebar width and position for your entire site.", 'chromatic'),
);
$settings['sidebar_pages'] = array(
'label' => __( 'Sidebar Layout (for Pages)', 'chromatic' ),
'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',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'description' => __("Set the default sidebar width and position for pages.", 'chromatic'),
);
$settings['sidebar_posts'] = array(
'label' => __( 'Sidebar Layout (for single Posts)', 'chromatic' ),
'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',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'description' => __("Set the default sidebar width and position for single posts.", 'chromatic'),
);
/** Section **/
$section = 'logo';
$sections[ $section ] = array(
'title' => __( 'Logo', 'chromatic' ),
);
$settings['logo'] = array(
'label' => __( 'Site Logo', 'chromatic' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'text' => __('Default Text (Site Title)', 'chromatic'),
'image' => __('Image Logo', 'chromatic'),
'mixed' => __('Image & Default Text (Site Title)', 'chromatic'),
),
'default' => 'text',
'description' => sprintf( __('Use %sSite Title%s as default text logo', 'chromatic'), '', '' ),
);
$settings['logo_size'] = array(
'label' => __( 'Logo Size', 'chromatic' ),
'section' => $section,
'type' => 'select',
'priority' => '85', // Non static options must have a priority
'choices' => array(
'tiny' => __( 'Tiny', 'chromatic'),
'small' => __( 'Small', 'chromatic'),
'medium' => __( 'Medium', 'chromatic'),
'large' => __( 'Large', 'chromatic'),
'huge' => __( 'Huge', 'chromatic'),
),
'default' => 'medium',
'active_callback' => 'hoot_callback_logo_size',
);
$settings['site_title_icon'] = array(
'label' => __( 'Site Title Icon (Optional)', 'chromatic' ),
'section' => $section,
'type' => 'icon',
// 'default' => 'fa-anchor',
'description' => __( 'Leave empty to hide icon.', 'chromatic' ),
'active_callback' => 'hoot_callback_site_title_icon',
);
$settings['site_title_icon_size'] = array(
'label' => __( 'Site Title Icon Size', 'chromatic' ),
'section' => $section,
'type' => 'select',
'choices' => $logosizes,
'default' => '45px',
'active_callback' => 'hoot_callback_site_title_icon',
);
if ( ! function_exists( 'the_custom_logo' ) )
$settings['logo_image'] = array(
'label' => __( 'Upload Logo', 'chromatic' ),
'section' => $section,
'type' => 'image',
'priority' => '105', // 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', 'chromatic' ),
'section' => $section,
'type' => 'text',
'priority' => '106', // Keep it with image logo // Update in premium if needed
'default' => 200,
'description' => __( '(in pixels)
'Widgetized Template' is a special Page Template which is often used as a quick way to create a Front Page.
This is a sample description text for the slide.
', 'chromatic'), 'description' => __('You can use the<h3>Lorem Ipsum Dolor</h3>
tag to create styled heading.', 'chromatic'),
),
'button' => array(
'label' => __( 'Button Text', 'chromatic' ),
'type' => 'text',
),
'url' => array(
'label' => __( 'Button URL', 'chromatic' ),
'type' => 'url',
'description' => __( 'Leave empty if you do not want to show the button.', 'chromatic' ),
'input_attrs' => array(
'placeholder' => 'http://',
),
),
),
);
$settings["wt_html_slide_{$slide}-background"] = array(
'label' => sprintf( __( 'Slide %s Background', 'chromatic' ), $slide),
'section' => $section,
'type' => 'betterbackground',
'priority' => 375, // Non static options must have a priority
'default' => array(
'color' => '#ffffff',
),
'options' => array( 'color', 'image', 'pattern' ),
);
} // end for
/** Section **/
$section = 'slider_img';
$sections[ $section ] = array(
'title' => __( 'Widgetized Template - Image Slider', 'chromatic' ),
);
$settings['wt_img_slider_width'] = array(
'label' => __( 'Slider Width', 'chromatic' ),
'sublabel' => __("Note: This option is useful only if the Site Layout option is set to Stretched in 'Setup & Layout' section.", 'chromatic'),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'boxed' => $imagepath . 'slider-width-boxed.png',
'stretch' => $imagepath . 'slider-width-stretch.png',
),
'default' => 'boxed',
);
$settings['wt_img_slider'] = array(
'label' => __( 'Slides', 'chromatic' ),
'section' => $section,
'type' => 'content',
'priority' => 385, // Non static options must have a priority
'content' => __( 'Premium version of this theme comes with capability to create Unlimited slides.', 'chromatic' ),
);
for ( $slide = 1; $slide <= 4; $slide++ ) {
$settings["wt_img_slide_{$slide}"] = array(
'label' => '',//sprintf( __( 'Slide %s Content', 'chromatic' ), $slide),
'section' => $section,
'type' => 'group',
'priority' => 385, // Non static options must have a priority
'button' => sprintf( __( 'Edit Slide %s', 'chromatic' ), $slide),
'options' => array(
'description' => array(
'label' => '',
'type' => 'content',
'content' => '' . sprintf( __( 'Slide %s Content', 'chromatic' ), $slide) . '' . __( 'To hide this slide, simply leave the Image empty.', 'chromatic' ),
),
'image' => array(
'label' => __( 'Slide Image', 'chromatic' ),
'type' => 'image',
'description' => __( 'The main showcase image.', 'chromatic' ),
),
'caption' => array(
'label' => __( 'Slide Caption (optional)', 'chromatic' ),
'type' => 'text',
),
'url' => array(
'label' => __( 'Slide Link', 'chromatic' ),
'type' => 'url',
'description' => __( 'Leave empty if you do not want to link the slide.', 'chromatic' ),
'input_attrs' => array(
'placeholder' => 'http://',
),
),
'button' => array(
'label' => __( 'Slide Button Text', 'chromatic' ),
'type' => 'text',
'description' => __( 'Leave empty if you do not want to show the button and instead link the slide image (if you have a url set in the above field)', 'chromatic' ),
),
),
);
} // end for
endif;
/** Section **/
$section = 'archives';
$sections[ $section ] = array(
'title' => __( 'Archives (Blog, Cats, Tags)', 'chromatic' ),
);
$settings['archive_post_content'] = array(
'label' => __( 'Post Items Content', 'chromatic' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'excerpt' => __('Post Excerpt', 'chromatic'),
'full-content' => __('Full Post Content', 'chromatic'),
),
'default' => 'excerpt',
'description' => __( 'Content to display for each post in the list', 'chromatic' ),
);
$settings['archive_post_meta'] = array(
'label' => __( 'Meta Information for Post List Items', 'chromatic' ),
'sublabel' => __( 'Check which meta information to display for each post item in the archive list.', 'chromatic' ),
'section' => $section,
'type' => 'checkbox',
'choices' => array(
'author' => __('Author', 'chromatic'),
'date' => __('Date', 'chromatic'),
'cats' => __('Categories', 'chromatic'),
'tags' => __('Tags', 'chromatic'),
'comments' => __('No. of comments', 'chromatic')
),
'default' => 'author, date, cats, comments',
);
$settings['excerpt_length'] = array(
'label' => __( 'Excerpt Length', 'chromatic' ),
'section' => $section,
'type' => 'text',
'description' => __( 'Number of words in excerpt. Default is 105. Leave empty if you dont want to change it.', 'chromatic' ),
'input_attrs' => array(
'min' => 0,
'max' => 3,
'placeholder' => __( 'default: 105', 'chromatic' ),
),
);
$settings['read_more'] = array(
'label' => __( "'Read More' Text", 'chromatic' ),
'section' => $section,
'type' => 'text',
'description' => __( "Replace the default 'Read More' text. Leave empty if you dont want to change it.", 'chromatic' ),
'input_attrs' => array(
'placeholder' => __( 'default: READ MORE →', 'chromatic' ),
),
);
/** Section **/
$section = 'singular';
$sections[ $section ] = array(
'title' => __( 'Single (Posts, Pages)', 'chromatic' ),
);
$settings['post_featured_image'] = array(
'label' => __( 'Display Featured Image', 'chromatic' ),
'sublabel' => __( 'Display featured image at the beginning of post/page content.', 'chromatic' ),
'section' => $section,
'type' => 'checkbox',
'default' => 1,
);
$settings['post_meta'] = array(
'label' => __( 'Meta Information on Posts', 'chromatic' ),
'sublabel' => __( "Check which meta information to display on an individual 'Post' page", 'chromatic' ),
'section' => $section,
'type' => 'checkbox',
'choices' => array(
'author' => __('Author', 'chromatic'),
'date' => __('Date', 'chromatic'),
'cats' => __('Categories', 'chromatic'),
'tags' => __('Tags', 'chromatic'),
'comments' => __('No. of comments', 'chromatic')
),
'default' => 'author, date, cats, tags, comments',
);
$settings['page_meta'] = array(
'label' => __( 'Meta Information on Page', 'chromatic' ),
'sublabel' => __( "Check which meta information to display on an individual 'Page' page", 'chromatic' ),
'section' => $section,
'type' => 'checkbox',
'choices' => array(
'author' => __('Author', 'chromatic'),
'date' => __('Date', 'chromatic'),
'comments' => __('No. of comments', 'chromatic')
),
'default' => 'author, date, comments',
);
$settings['post_meta_location'] = array(
'label' => __( 'Meta Information location', 'chromatic' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'top' => __('Top (below title)', 'chromatic'),
'bottom' => __('Bottom (after content)', 'chromatic'),
),
'default' => 'top',
);
$settings['post_prev_next_links'] = array(
'label' => __( 'Previous/Next Posts', 'chromatic' ),
'sublabel' => __( 'Display links to Prev/Next Post links at the end of post content.', 'chromatic' ),
'section' => $section,
'type' => 'checkbox',
'default' => 1,
);
$settings['contact-form'] = array(
'label' => __( 'Contact Form', 'chromatic' ),
'section' => $section,
'type' => 'content',
'content' => sprintf( __('This theme comes bundled with CSS required to style %sContact-Form-7%s forms. Simply install and activate the plugin to add Contact Forms to your pages.', 'chromatic'), '', ''), // @todo update link to docs
);
if ( current_theme_supports( 'woocommerce' ) ) :
/** Section **/
$section = 'woocommerce';
$sections[ $section ] = array(
'title' => __( 'WooCommerce', 'chromatic' ),
'priority' => '48', // 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', 'chromatic' ),
'section' => $section,
'type' => 'select',
'priority' => '485', // Non static options must have a priority
'choices' => $wooproducts,
'default' => '12',
'description' => __( 'Total number of products to show on the Shop page', 'chromatic' ),
);
$settings['wooshop_product_columns'] = array(
'label' => __( 'Product Columns', 'chromatic' ),
'section' => $section,
'type' => 'select',
'priority' => '485', // 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', 'chromatic' ),
);
$settings['sidebar_wooshop'] = array(
'label' => __( 'Sidebar Layout (Woocommerce Shop/Archives)', 'chromatic' ),
'section' => $section,
'type' => 'radioimage',
'priority' => '485', // 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',
'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.", 'chromatic'),
);
$settings['sidebar_wooproduct'] = array(
'label' => __( 'Sidebar Layout (Woocommerce Single Product Page)', 'chromatic' ),
'section' => $section,
'type' => 'radioimage',
'priority' => '485', // 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',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'description' => __("Set the default sidebar width and position for WooCommerce product pages", 'chromatic'),
);
endif;
/** Section **/
$section = 'footer';
$sections[ $section ] = array(
'title' => __( 'Footer', 'chromatic' ),
);
$settings['footer'] = array(
'label' => __( 'Footer Layout', 'chromatic' ),
'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.©
', 'chromatic'), '', '' ),
);
/** Premium Section **/
$premium_features_file = trailingslashit( HOOT_THEMEDIR ) . 'admin/premium.php';
$hoot_customizer_load_premiumsection = apply_filters( 'hoot_customizer_load_premiumsection', file_exists( $premium_features_file ) );
if ( $hoot_customizer_load_premiumsection ) :
$section = 'premium';
$sections[ $section ] = array(
'title' => __( 'Premium Options', 'chromatic' ),
'priority' => 2,
);
include( trailingslashit( HOOT_THEMEDIR ) . 'admin/premium.php' );
$pcontent = '';
$plink = ( !empty( $hoot_premium_cta_url ) ) ? $hoot_premium_cta_url : '';
$pdemo = ( !empty( $hoot_premium_cta_demo ) ) ? $hoot_premium_cta_demo : '';
$intro = ' section-intro';
$pcontent .= '