????

Your IP : 216.73.216.174


Current Path : /home2/morganrand/www/wp-content-bkp/themes/wanderfuls/framework/customizer/settings/
Upload File :
Current File : /home2/morganrand/www/wp-content-bkp/themes/wanderfuls/framework/customizer/settings/blog.php

<?php
/**
 * Blog Customizer Options
 *
 * @package Wanderfuls WordPress Theme
 * @subpackage Customizer
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Entry meta
$entry_meta_defaults = array( 'date', 'author', 'categories', 'comments' );
$entry_meta_choices = array(
	'date' => __( 'Date', 'tb' ),
	'author' => __( 'Author', 'tb' ),
	'categories' => __( 'Categories', 'tb' ),
	'comments' => __( 'Comments', 'tb' ),
);

// Entry Blocks
$entry_blocks = apply_filters( 'tb_blog_entry_blocks', array(
	'featured_media' => __( 'Media', 'tb' ),
	'title' => __( 'Title', 'tb' ),
	'meta' => __( 'Meta', 'tb' ),
	'excerpt_content' => __( 'Excerpt', 'tb' ),
	'readmore' => __( 'Read More', 'tb' ),
	'social_share' => __( 'Social Share', 'tb' ),
) );

// Single Blocks
$single_blocks = apply_filters( 'tb_blog_single_blocks', array(
	'featured_media' => __( 'Featured Media','tb' ),
	'title' => __( 'Title', 'tb' ),
	'meta' => __( 'Meta', 'tb' ),
	'post_series' => __( 'Post Series','tb' ),
	'the_content' => __( 'Content','tb' ),
	'post_tags' => __( 'Post Tags','tb' ),
	'social_share' => __( 'Social Share','tb' ),
	'author_bio' => __( 'Author Bio','tb' ),
	'related_posts' => __( 'Related Posts','tb' ),
	'comments' => __( 'Comments','tb' ),
) );

// General
$this->sections['tb_blog_general'] = array(
	'title' => __( 'General', 'tb' ),
	'panel' => 'tb_blog',
	'settings' => array(
		array(
			'id' => 'blog_page',
			'control' => array(
				'label' => __( 'Main Page', 'tb' ),
				'type' => 'tb-dropdown-pages',
			),
		),
		array(
			'id' => 'blog_cats_exclude',
			'control' => array(
				'label' => __( 'Exclude Categories From Blog', 'tb' ),
				'type' => 'text',
				'desc' => __( 'Enter the ID\'s of categories to exclude from the blog template or homepage blog seperated by a comma (no spaces).', 'tb' ),
			),
		),
	),
);

// Archives
$this->sections['tb_blog_archives'] = array(
	'title' => __( 'Archives & Entries', 'tb' ),
	'panel' => 'tb_blog',
	'settings' => array(
		array(
			'id' => 'category_description_position',
			'default' => '',
			'control' => array(
				'label' => __( 'Category Description Position', 'tb' ),
				'type' => 'select',
				'choices' => array(
					''			 => __( 'Default', 'tb' ),
					'under_title' => __( 'Under Title', 'tb' ),
					'above_loop' => __( 'Above Loop', 'tb' ),
					'hidden' => __( 'Hidden', 'tb' ),
				),
			),
		),
		array(
			'id' => 'blog_archives_layout',
			'default' => '',
			'control' => array(
				'label' => __( 'Layout', 'tb' ),
				'type' => 'select',
				'choices' => array(
					'' => __( 'Default', 'tb' ),
					'right-sidebar' => __( 'Right Sidebar','tb' ),
					'left-sidebar' => __( 'Left Sidebar','tb' ),
					'full-width' => __( 'No Sidebar','tb' ),
				),
			),
		),
		array(
			'id' => 'blog_style',
			'default' => '',
			'control' => array(
				'label' => __( 'Style', 'tb' ),
				'type' => 'select',
				'choices' => array(
					'' => __( 'Default', 'tb' ),
					'large-image-entry-style' => __( 'Large Image','tb' ),
					'thumbnail-entry-style' => __( 'Left Thumbnail','tb' ),
					'grid-entry-style' => __( 'Grid','tb' ),
				),
			),
		),
		array(
			'id' => 'blog_grid_columns',
			'default' => '',
			'control' => array(
				'label' => __( 'Grid Columns', 'tb' ),
				'type' => 'select',
				'active_callback' => 'tb_customizer_grid_blog_style',
				'choices' => array(
					'' => __( 'Default', 'tb' ),
					'2' => '2',
					'3' => '3',
					'4' => '4',
					'5' => '5',
					'6' => '6',
				),
			),
		),
		array(
			'id' => 'blog_grid_style',
			'default' => '',
			'control' => array(
				'label' => __( 'Grid Style', 'tb' ),
				'type' => 'select',
				'std' => '',
				'active_callback' => 'tb_customizer_grid_blog_style',
				'choices' => array(
					'' => __( 'Default', 'tb' ),
					'fit-rows' => __( 'Fit Rows', 'tb' ),
					'masonry' => __( 'Masonry', 'tb' ),
				),
			),
		),
		array(
			'id' => 'blog_archive_grid_equal_heights',
			'control' => array(
				'label' => __( 'Equal Heights', 'tb' ),
				'type' => 'checkbox',
				'active_callback' => 'tb_customizer_blog_supports_equal_heights',
			),
		),
		array(
			'id' => 'blog_pagination_style',
			'default' => '',
			'control' => array(
				'label' => __( 'Pagination Style', 'tb' ),
				'type' => 'select',
				'choices' => array(
					'' => __( 'Default', 'tb' ),
					'standard' => __( 'Standard', 'tb' ),
					'infinite_scroll' => __( 'Infinite Scroll', 'tb' ),
					'next_prev' => __( 'Next/Prev', 'tb' )
				),
			),
		),
		array(
			'id' => 'blog_entry_image_lightbox',
			'control' => array(
				'label' => __( 'Image Lightbox', 'tb' ),
				'type' => 'checkbox',
				'active_callback' => 'tb_customizer_has_blog_entry_media',
			),
		),
		array(
			'id' => 'blog_entry_overlay',
			'control' => array(
				'label' => __( 'Overlay Style', 'tb' ),
				'type' => 'select',
				'choices' => tb_overlay_styles_array(),
				'active_callback' => 'tb_customizer_has_blog_entry_media',
			),
		),
		array(
			'id' => 'blog_entry_image_hover_animation',
			'control' => array(
				'label' => __( 'Image Hover Animation', 'tb' ),
				'type' => 'select',
				'choices' => tb_image_hovers(),
				'active_callback' => 'tb_customizer_has_blog_entry_media',
			),
		),
		array(
			'id' => 'blog_exceprt',
			'default' => 'on',
			'control' => array(
				'label' => __( 'Auto Excerpts', 'tb' ),
				'type' => 'checkbox',
				'active_callback' => 'tb_customizer_has_blog_entry_excerpt',
			),
		),
		array(
			'id' => 'blog_excerpt_length',
			'default' => '40',
			'control' => array(
				'label' => __( 'Excerpt length', 'tb' ),
				'type' => 'text',
				'active_callback' => 'tb_customizer_has_blog_entry_excerpt',
			),
		),
		array(
			'id' => 'blog_entry_readmore_text',
			'default' => __( 'Read More', 'tb' ),
			'control' => array(
				'label' => __( 'Read More Button Text', 'tb' ),
				'type' => 'text',
				'active_callback' => 'tb_customizer_has_blog_entry_readmore',
			),
		),
		array(
			'id' => 'blog_entry_author_avatar',
			'control' => array(
				'label' => __( 'Author Avatar', 'tb' ),
				'type' => 'checkbox',
			),
		),
		array(
			'id' => 'blog_entry_meta_sections',
			'default' => $entry_meta_defaults,
			'control' => array(
				'label' => __( 'Meta', 'tb' ),
				'type' => 'multiple-select',
				'object' => 'TB_Customize_Multicheck_Control',
				'choices' => $entry_meta_choices,
				'active_callback' => 'tb_customizer_has_blog_entry_meta',
			),
		),
		array(
			'id' => 'blog_entry_composer',
			'default' => 'featured_media,title,meta,excerpt_content,readmore',
			'control' => array(
				'label' => __( 'Entry Layout Elements', 'tb' ),
				'type' => 'tb-sortable',
				'object' => 'TB_Customize_Control_Sorter',
				'choices' => $entry_blocks,
				'desc' => __( 'Click and drag and drop elements to re-order them. Click the "x" to disable any element. You can not disable all elements, if you do so it will display them all', 'tb' ),
			),
		),
	),
);

// Single
$this->sections['tb_blog_single'] = array(
	'title' => __( 'Single', 'tb' ),
	'panel' => 'tb_blog',
	'settings' => array(
		array(
			'id' => 'blog_single_layout',
			'default' => 'right-sidebar',
			'control' => array(
				'label' => __( 'Layout', 'tb' ),
				'type' => 'select',
				'choices' => array(
					'right-sidebar' => __( 'Right Sidebar','tb' ),
					'left-sidebar' => __( 'Left Sidebar','tb' ),
					'full-width' => __( 'No Sidebar','tb' ),
				),
			),
		),
		array(
			'id' => 'blog_single_header',
			'default' => 'custom_text',
			'control' => array(
				'label' => __( 'Header Displays', 'tb' ),
				'type' => 'select',
				'choices' => array(
					'custom_text' => __( 'Custom Text','tb' ),
					'post_title' => __( 'Post Title','tb' ),
				),
			),
		),
		array(
			'id' => 'blog_single_header_custom_text',
			'default' => __( 'Blog', 'tb' ),
			'control' => array(
				'label' => __( 'Header Custom Text', 'tb' ),
				'type' => 'text',
				'active_callback' => 'tb_customizer_blog_page_header_custom_text',
			),
		),
		array(
			'id' => 'blog_post_image_lightbox',
			'control' => array(
				'label' => __( 'Featured Image Lightbox', 'tb' ),
				'type' => 'checkbox',
				'active_callback' => 'tb_customizer_has_blog_single_media',
			),
		),
		array(
			'id' => 'blog_thumbnail_caption',
			'control' => array(
				'label' => __( 'Featured Image Caption', 'tb' ),
				'type' => 'checkbox',
				'active_callback' => 'tb_customizer_has_blog_single_media',
			),
		),
		array(
			'id' => 'blog_next_prev',
			'default' => true,
			'control' => array(
				'label' => __( 'Next & Previous Links', 'tb' ),
				'type' => 'checkbox',
			),
		),
		array(
			'id' => 'blog_post_meta_sections',
			'default' => $entry_meta_defaults,
			'control' => array(
				'label' => __( 'Meta', 'tb' ),
				'type' => 'multiple-select',
				'object' => 'TB_Customize_Multicheck_Control',
				'choices' => $entry_meta_choices,
				'active_callback' => 'tb_customizer_has_blog_meta',
			),
		),
		array(
			'id' => 'blog_related_title',
			'control' => array(
				'label' => __( 'Related Posts Title', 'tb' ),
				'type' => 'text',
				'active_callback' => 'tb_customizer_has_blog_related',
			),
		),
		array(
			'id' => 'blog_related_count',
			'default' => '3',
			'control' => array(
				'label' => __( 'Related Posts Count', 'tb' ),
				'type' => 'text',
				'active_callback' => 'tb_customizer_has_blog_related',
			),
		),
		array(
			'id' => 'blog_related_columns',
			'default' => '3',
			'control' => array(
				'label' => __( 'Related Posts Columns', 'tb' ),
				'type' => 'select',
				'active_callback' => 'tb_customizer_has_blog_related',
				'choices' => array(
					'1' => '1',
					'2' => '2',
					'3' => '3',
					'4' => '4',
					'5' => '5',
					'6' => '6',
				),
			),
		),
		array(
			'id' => 'blog_related_overlay',
			'control' => array(
				'label' => __( 'Overlay Style', 'tb' ),
				'type' => 'select',
				'choices' => tb_overlay_styles_array(),
				'active_callback' => 'tb_customizer_has_blog_related',
			),
		),
		array(
			'id' => 'blog_related_excerpt',
			'default' => 'on',
			'control' => array(
				'label' => __( 'Related Posts Excerpt', 'tb' ),
				'type' => 'checkbox',
				'active_callback' => 'tb_customizer_has_blog_related',
			),
		),
		array(
			'id' => 'blog_related_excerpt_length',
			'default' => '15',
			'control' => array(
				'label' => __( 'Related Posts Excerpt Length', 'tb' ),
				'type' => 'text',
				'active_callback' => 'tb_customizer_has_blog_related',
			),
		),
		array(
			'id' => 'blog_single_composer',
			'default' => 'featured_media,title,meta,post_series,the_content,post_tags,social_share,author_bio,related_posts,comments',
			'control' => array(
				'label' => __( 'Blog Entry Element\'s Order', 'tb' ),
				'type' => 'tb-sortable',
				'object' => 'TB_Customize_Control_Sorter',
				'choices' => $single_blocks,
				'desc' => __( 'Click and drag and drop elements to re-order them. Click the "x" to disable any element. You can not disable all elements, if you do so it will display them all', 'tb' ),
			),
		),
	),
);