<?php
/*
 * Post and Page Display Settings
 */
$display->addSubSection( array(
	'name'     => esc_html__( 'Archive', 'cakeart' ),
	'id'       => 'display_archive',
	'position' => 2,
) );


$display->createOption( array(
	'name'    => esc_html__( 'Archive Layout', 'cakeart' ),
	'id'      => 'archive_cate_layout',
	'type'    => 'radio-image',
	'options' => array(
		'full-content'  => $url . 'body-full.png',
		'sidebar-left'  => $url . 'sidebar-left.png',
		'sidebar-right' => $url . 'sidebar-right.png'
	),
	'default' => 'sidebar-right'
) );


$display->createOption( array(
	'name'    => esc_html__( 'Hide Title', 'cakeart' ),
	'id'      => 'archive_cate_hide_title',
	'type'    => 'checkbox',
	'desc'    => esc_html__( 'Check this box to hide/show title', 'cakeart' ),
	'default' => false,
) );

$display->createOption( array(
	'name'        => esc_html__( 'Top Image', 'cakeart' ),
	'id'          => 'archive_cate_top_image',
	'type'        => 'upload',
	'desc'        => esc_html__( 'Enter URL or Upload an top image file for header', 'cakeart' ),
	'livepreview' => ''
) );

$display->createOption( array(
	'name'        => esc_html__( 'Background Heading Color', 'cakeart' ),
	'id'          => 'archive_cate_heading_bg_color',
	'type'        => 'color-opacity',
	'livepreview' => ''
) );

$display->createOption( array(
	'name'    => esc_html__( 'Text Color Heading', 'cakeart' ),
	'id'      => 'archive_cate_heading_text_color',
	'type'    => 'color-opacity',
	'default' => '#e47277',
) );

$display->createOption( array(
	'name'    => esc_html__( 'sub Title', 'cakeart' ),
	'id'      => 'archive_cate_sub_title',
	'type'    => 'text',
	'default' => '',
) );

$display->createOption( array(
	'name'    => esc_html__( 'Excerpt Length', 'cakeart' ),
	'id'      => 'archive_excerpt_length',
	'type'    => 'number',
	'desc'    => esc_html__( 'Enter the number of words you want to cut from the content to be the excerpt of search and archive page.', 'cakeart' ),
	'default' => '50',
	'max'     => '100',
	'min'     => '10',
) );

$display->createOption( array(
	'name'    => esc_html__( 'Show excerpt', 'cakeart' ),
	'id'      => 'show_excerpt_post',
	'type'    => 'checkbox',
	'desc'    => esc_html__( 'show/hidden', 'cakeart' ),
	'default' => true,
) );

$display->createOption( array(
	'name'    => esc_html__( 'Show category', 'cakeart' ),
	'id'      => 'show_category_post',
	'type'    => 'checkbox',
	'desc'    => esc_html__( 'show/hidden', 'cakeart' ),
	'default' => true,
) );

$display->createOption( array(
	'name'    => esc_html__( 'Show Author', 'cakeart' ),
	'id'      => 'show_author_post',
	'type'    => 'checkbox',
	'desc'    => esc_html__( 'show/hidden', 'cakeart' ),
	'default' => true,
) );

$display->createOption( array(
	'name'    => esc_html__( 'Show Comment', 'cakeart' ),
	'id'      => 'show_comment_post',
	'type'    => 'checkbox',
	'desc'    => esc_html__( 'show/hidden', 'cakeart' ),
	'default' => true,
) );
