<?php
/**
 * This file contains the main post settings for the theme.
 */

global $pexeto;

$pexeto_cats = pexeto_get_categories();
array_unshift( $pexeto_cats, array( 'id'=>-1, 'name'=>'All Categories' ) );

$pexeto_pages_options= array( array(
		'name' => 'Post &amp; Page Settings',
		'type' => 'title',
		'img' => 'icon-document'
	),

	array(
		'type' => 'open',
		'subtitles'=>array(
			array( 'id'=>'pages', 'name'=>'Pages' ),
			array( 'id'=>'general', 'name'=>'Blog Posts' ), 
			array( 'id'=>'archives', 'name'=>'Post Archives' ),
			array( 'id'=>'portfolio_posts', 'name'=>'Portfolio Posts' ) )
	),

	/* ------------------------------------------------------------------------*
	 * GENERAL PAGE SETTINGS
	 * ------------------------------------------------------------------------*/

	array(
		'type' => 'subtitle',
		'id'=>'pages'
	),


	array(
		'name' => 'Display page title',
		'id' => 'show_page_title',
		'type' => 'checkbox',
		'std' => true,
		'desc' => 'If "ON" selected, the page title will be displayed in the 
			beginning of the page content as a main title. You can also 
			overwrite this option in the single page settings section where
			the display page title option has a higher priority.'
	),

	array(
		'name' => 'Display comments',
		'id' => 'page_comments',
		'type' => 'checkbox',
		'std' => false,
		'desc' => 'By default comments won\'t be displayed on pages, but if enable
			this option, you will be able to enable/disable comments for 
			the separate pages in the "Allow comments" field of the page.<br />
			Note: This option is available for the Default Page Template only'
	),


	array(
		'type' => 'close' ),

	/* ------------------------------------------------------------------------*
	 * POST SETTINGS
	 * ------------------------------------------------------------------------*/

	array(
		'type' => 'subtitle',
		'id'=>'general'
	),



	array(
		'name' => 'Single Post Layout',
		'id' => 'post_layout',
		'type' => 'select',
		'options' => array( 
			array( 'id'=>'right', 'name'=>'Right Sidebar' ), 
			array( 'id'=>'left', 'name'=>'Left Sidebar' ), 
			array( 'id'=>'full', 'name'=>'Full width' ) ),
		'std' => 'right'
	),


	array(
		'name' => 'Single post sidebar',
		'id' => 'post_sidebar',
		'type' => 'select',
		'options' => pexeto_get_content_sidebars(),
		'std' => 'default'
	),


	array(
		'name' => 'Show sections from post info',
		'id' => 'exclude_post_sections',
		'type' => 'multicheck',
		'options' => array( 
			array( 'id'=>'date', 'name'=>'Post Date' ), 
			array( 'id'=>'author', 'name'=>'Post Author' ), 
			array( 'id'=>'category', 'name'=>'Post Category' ), 
			array( 'id'=>'comments', 'name'=>'Comment Number' ) ),
		'class'=>'exclude',
		'desc' => 'You can select which sections from the post info to be displayed.' )
	,

	array(
		'name' => 'Show post summary as',
		'id' => 'post_summary',
		'type' => 'select',
		'options' => array( 
			array( 'id'=>'readmore', 'name'=>'Separated with \'More\' tag' ), 
			array( 'id'=>'excerpt', 'name'=>'Excerpt' ) ),
		'std' => 'readmore',
		'desc' => 'This is the way the summary is displayed. Using the "More" 
			tag is more flexible than using the excerpt. With this option selected, 
			only the text that is displayed before the "More" tag will be displayed 
			as summary. You can insert a "More" tag by using the "Insert More tag" 
			button that is located above the main content area.<br /><br />
			With the Excerpt option selected, only the first several words of the 
			post will be displayed as summary.'
	),

	array(
		'type' => 'close' ),


	/* ------------------------------------------------------------------------*
	 * ARCHIVE SETTINGS
	 * ------------------------------------------------------------------------*/


	array(
		'type' => 'subtitle',
		'id'=>'archives'
	),


	array(
		'name' => 'Layout',
		'id' => 'archive_layout',
		'type' => 'select',
		'options' => array( 
			array( 'id'=>'right', 'name'=>'Right Sidebar' ), 
			array( 'id'=>'left', 'name'=>'Left Sidebar' ), 
			array( 'id'=>'full', 'name'=>'Full width' ) ),
		'std' => 'right',
		'desc' => 'This layout setting will affect the post index page, archives 
		and search pages.'
	),

	array(
		'name' => 'Sidebar',
		'id' => 'archive_sidebar',
		'type' => 'select',
		'options' => pexeto_get_content_sidebars(),
		'std' => 'default'
	),

	array(
		'type' => 'close' ),

	/* ------------------------------------------------------------------------*
	 * PORTFOLIO POSTS SETTINGS
	 * ------------------------------------------------------------------------*/

	array(
		'type' => 'subtitle',
		'id'=>'portfolio_posts'
	),

	array(
		'name' => 'Display post info in galleries and carousels',
		'id' => 'portfolio_exclude_info',
		'type' => 'multicheck',
		'options' => array(
			array( 'id'=>'title', 'name'=>'Title' ),
			array( 'id'=>'category', 'name'=>'Category' ),
		),
		'class'=>'exclude',
		'desc' => 'You can select which sections from the item info to be displayed
		for the portfolio gallery pages and portfolio carousels.',
	),

	array(
		'text' => '<h3>Single portfolio post settings</h3>',
		'type' => 'documentation'
	),

	array(
		'name' => 'Post Layout',
		'id' => 'portfolio_layout',
		'type' => 'select',
		'options' => array( 
			array( 'id'=>'right', 'name'=>'Right Sidebar' ),
			array( 'id'=>'left', 'name'=>'Left Sidebar' ), 
			array( 'id'=>'full', 'name'=>'Full width' ) ),
		'std' => 'right'
	),


	array(
		'name' => 'Post sidebar',
		'id' => 'portfolio_sidebar',
		'type' => 'select',
		'options' => pexeto_get_content_sidebars(),
		'std' => 'default'
	),

	array(
		'name' => 'Display comments',
		'id' => 'portfolio_comments',
		'type' => 'checkbox',
		'std' =>false
	),

	array(
		'name' => 'Display title',
		'id' => 'portfolio_show_title',
		'type' => 'checkbox',
		'std' => true,
		'desc' => 'If enabled, the portfolio item title will be displayed
		on its single standard page (for "Standard Page" items only)'
	),

	array(
		'type' => 'close' ),

	array(
		'type' => 'close' ) );

$pexeto->options->add_option_set( $pexeto_pages_options );
