<?php
/**
 * Customizer default options
 *
 * @package Theme Palace
 * @subpackage Power News
 * @since Power News 1.0.0
 * @return array An array of default values
 */

function power_news_get_default_theme_options() {
	$theme_data = wp_get_theme();
	$power_news_default_options = array(
		// Color Options
		'header_title_color'			=> '#212121',
		'header_tagline_color'			=> '#212121',
		'header_txt_logo_extra'			=> 'show-all',
		'theme_version'					=> 'dark-version',
		'home_layout'					=> 'pro-design',
		
		// typography Options
		'theme_typography' 				=> 'default',
		'body_theme_typography' 		=> 'default',
		
		// loader
		'loader_enable'         		=> (bool) false,
		'loader_icon'         			=> 'default',

		// breadcrumb
		'breadcrumb_enable'				=> (bool) true,
		'breadcrumb_separator'			=> '/',
		
		// layout 
		'site_layout'         			=> 'wide',
		'sidebar_position'         		=> 'right-sidebar',
		'post_sidebar_position' 		=> 'right-sidebar',
		'page_sidebar_position' 		=> 'right-sidebar',

		// excerpt options
		'long_excerpt_length'           => 25,
		
		// pagination options
		'pagination_enable'         	=> (bool) true,
		'pagination_type'         		=> 'default',

		// footer options
		'copyright_text' => 'Copyright © ' . esc_html( date('Y') ) . ' <a href="' . esc_url( home_url() ) . '">' . esc_html( get_bloginfo('name') ) . '</a>',
		'scroll_top_visible'        	=> (bool) true,

		// reset options
		'reset_options'      			=> (bool) false,
		
		// homepage options
		'enable_frontpage_content' 		=> (bool) false,

		// homepage sections sortable
		'customizer_sortable' 			=> 'breaking_news,featured_posts,media_posts,latest_posts,popular_posts,multiple_posts,related_posts',

		'frontpage_sortable' 			=> 'breaking_news,main_content,related_posts',

		// blog/archive options
		'your_latest_posts_title' 		=> 'Blogs',
		'hide_date' 					=> (bool) false,
		'hide_banner'					=> (bool) false,		
		
		// single post theme options
		'single_post_hide_banner'       => (bool) false,
		'single_post_hide_date' 	    => (bool) false,
		
		/* Front Page */
		
		// Topbar
		'advertisement_section_enable'	=> (bool) false,
		
		//Breaking News
		'breaking_news_section_enable'	=> (bool) false,
		'breaking_news_title'			=> 'Breaking News',

		// Featured post
		'featured_posts_section_enable' => (bool) false,
		'featured_posts_btn_txt'        => 'Purchase',
		'featured_posts_btn_alt_txt'    => 'View More',

		// Media post
		'media_post_title'			    => 'Media News',
		'media_post_section_enable'     => (bool) false,

		// Latest post
		'latest_post_title'			    => 'Latest News',
		'latest_post_section_enable'    => (bool) false,

		// Popular post
		'popular_post_title'		    => 'Travel News',
		'popular_post_section_enable'   => (bool) false,

		// most viewd post
		'most_viewed_title'			    => 'Tech News',
		'most_viewed_section_enable'    => (bool) false,
		'most_viewed_content_type'	    => 'post',
		'most_viewed_count'			    => 3,

		//multi post 
		'multi_post_section_enable'		=> (bool) false,
		'multi_post_col1_title'			=> 'World News',
		'multi_post_col2_title'			=> 'Sport News',

		//media posts
		'media_post_section_enable'		=> (bool) false,
		'media_post_title'				=> 'Media Post',
		'media_video_post_title'		=> 'How to learn any new programming language quickly',

		// Related post
		'related_posts_title'           => 'Related Posts',
		'related_posts_section_enable'  => (bool) false,
		'related_posts_content_type'	=> 'post',
		'related_posts_count'			=> 4,

	);

$output = apply_filters( 'power_news_default_theme_options', $power_news_default_options );

	// Sort array in ascending order, according to the key:
if ( ! empty( $output ) ) {
	ksort( $output );
}

return $output;
}