????
| Current Path : /home2/morganrand/www/wp-content/themes/wanderfuls-2/framework/customizer/settings/ |
| Current File : /home2/morganrand/www/wp-content/themes/wanderfuls-2/framework/customizer/settings/portfolio.php |
<?php
/**
* Portfolio Customizer Options
*
* @package Wanderfuls WordPress Theme
* @subpackage Customizer
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Single Blocks
$blocks = apply_filters( 'tb_portfolio_single_blocks', array(
'title' => __( 'Post Title', 'tb' ),
'meta' => __( 'Post Meta', 'tb' ),
'media' => __( 'Media', 'tb' ),
'content' => __( 'Content', 'tb' ),
'share' => __( 'Social Share', 'tb' ),
'comments' => __( 'Comments', 'tb' ),
'related' => __( 'Related Posts', 'tb' ),
) );
// General
$this->sections['tb_portfolio_general'] = array(
'title' => __( 'General', 'tb' ),
'panel' => 'tb_portfolio',
'settings' => array(
array(
'id' => 'portfolio_page',
'default' => '',
'control' => array(
'label' => __( 'Main Page', 'tb' ),
'type' => 'tb-dropdown-pages',
'description' => __( 'Used for breadcrumbs.', 'tb' ),
),
),
array(
'id' => 'portfolio_custom_sidebar',
'default' => true,
'control' => array(
'label' => __( 'Custom Post Type Sidebar', 'tb' ),
'type' => 'checkbox',
),
),
array(
'id' => 'portfolio_search',
'default' => true,
'control' => array(
'label' => __( 'Include In Search', 'tb' ),
'type' => 'checkbox',
),
),
array(
'id' => 'portfolio_entry_excerpt_length',
'default' => '20',
'control' => array(
'label' => __( 'Archives Entry: Excerpt Length', 'tb' ),
'type' => 'text',
),
),
),
);
// Archives
$this->sections['tb_portfolio_archives'] = array(
'title' => __( 'Archives & Entries', 'tb' ),
'panel' => 'tb_portfolio',
'desc' => __( 'The following options are for the post type category and tag archives.', 'tb' ),
'settings' => array(
array(
'id' => 'portfolio_archive_layout',
'default' => 'full-width',
'control' => array(
'label' => __( 'Layout', 'tb' ),
'type' => 'select',
'choices' => array(
'right-sidebar' => __( 'Right Sidebar','tb' ),
'left-sidebar' => __( 'Left Sidebar','tb' ),
'full-width' => __( 'No Sidebar','tb' ),
'full-screen' => __( 'Full-Screen','tb' ),
),
),
),
array(
'id' => 'portfolio_archive_grid_style',
'default' => 'fit-rows',
'control' => array(
'label' => __( 'Grid Style', 'tb' ),
'type' => 'select',
'choices' => array(
'fit-rows' => __( 'Fit Rows','tb' ),
'masonry' => __( 'Masonry','tb' ),
'no-margins' => __( 'No Margins','tb' ),
),
),
),
array(
'id' => 'portfolio_entry_columns',
'default' => '4',
'control' => array(
'label' => __( 'Columns', 'tb' ),
'type' => 'select',
'choices' => tb_grid_columns(),
),
),
array(
'id' => 'portfolio_archive_grid_equal_heights',
'default' => '',
'control' => array(
'label' => __( 'Equal Heights', 'tb' ),
'type' => 'checkbox',
'active_callback' => 'tb_portfolio_style_supports_equal_heights',
),
),
array(
'id' => 'portfolio_archive_posts_per_page',
'default' => '12',
'control' => array(
'label' => __( 'Posts Per Page', 'tb' ),
'type' => 'text',
),
),
array(
'id' => 'portfolio_entry_overlay_style',
'default' => 'none',
'control' => array(
'label' => __( 'Archives Entry: Overlay Style', 'tb' ),
'type' => 'select',
'choices' => tb_overlay_styles_array(),
),
),
array(
'id' => 'portfolio_entry_details',
'default' => true,
'control' => array(
'label' => __( 'Archives Entry: Details', 'tb' ),
'type' => 'checkbox',
),
),
array(
'id' => 'portfolio_entry_excerpt_length',
'default' => '20',
'control' => array(
'label' => __( 'Archives Entry: Excerpt Length', 'tb' ),
'type' => 'text',
),
),
),
);
// Single
$this->sections['tb_portfolio_single'] = array(
'title' => __( 'Single', 'tb' ),
'panel' => 'tb_portfolio',
'settings' => array(
array(
'id' => 'portfolio_single_layout',
'default' => 'full-width',
'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' => 'portfolio_next_prev',
'default' => true,
'control' => array(
'label' => __( 'Next & Previous Links', 'tb' ),
'type' => 'checkbox',
),
),
array(
'id' => 'portfolio_related_title',
'default' => __( 'Related Projects', 'tb' ),
'control' => array(
'label' => __( 'Related Posts Title', 'tb' ),
'type' => 'text',
'active_callback' => 'tb_customizer_has_portfolio_related',
),
),
array(
'id' => 'portfolio_related_count',
'default' => 4,
'control' => array(
'label' => __( 'Related Posts Count', 'tb' ),
'type' => 'number',
'active_callback' => 'tb_customizer_has_portfolio_related',
),
),
array(
'id' => 'portfolio_related_columns',
'default' => '4',
'control' => array(
'label' => __( 'Related Posts Columns', 'tb' ),
'type' => 'select',
'choices' => tb_grid_columns(),
'active_callback' => 'tb_customizer_has_portfolio_related',
),
),
array(
'id' => 'portfolio_related_excerpts',
'default' => true,
'control' => array(
'label' => __( 'Related Posts Content', 'tb' ),
'type' => 'checkbox',
'active_callback' => 'tb_customizer_has_portfolio_related',
),
),
array(
'id' => 'portfolio_post_composer',
'default' => 'content,share,related',
'control' => array(
'label' => __( 'Post Layout Elements', 'tb' ),
'type' => 'tb-sortable',
'choices' => $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' ),
),
),
),
);