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


// Add custom style in theme settings
function rivax_theme_settings_style () {
	wp_enqueue_style('rivax_settings_style', RIVAX_THEME_URI . '/admin/assets/css/settings.css', array(), null);
}
add_action( 'redux/page/rivax_newsfy_options/enqueue', 'rivax_theme_settings_style' );



add_action('after_setup_theme', 'rivax_redux_config' );
function rivax_redux_config() {

	if ( ! class_exists( 'Redux' ) ) {
		return;
	}

	$theme = wp_get_theme(); // For use with some settings. Not necessary.
	$theme = $theme->parent() ?: $theme;

	// This is your option name where all the Redux data is stored.
	$opt_name = "rivax_newsfy_options";

	/**
	 * ---> SET ARGUMENTS
	 * All the possible arguments for Redux.
	 * */
	$args = array(
		// TYPICAL -> Change these values as you need/desire
		'opt_name'             => $opt_name,
		// This is where your data is stored in the database and also becomes your global variable name.
		'display_name'         => $theme->get( 'Name' ),
		// Name that appears at the top of your panel
		'display_version'      => $theme->get( 'Version' ),
		// Version that appears at the top of your panel
		'menu_type'            => 'submenu',
		//Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only)
		'allow_sub_menu'       => true,
		// Show the sections below the admin menu item or not
		'menu_title'           => esc_html__('Theme Settings', 'newsfy'),
		'page_title'           => esc_html__('Theme Settings', 'newsfy'),
		// You will need to generate a Google API key to use this feature.
		// Please visit: https://developers.google.com/fonts/docs/developer_api#Auth
		'google_api_key'       => '',
		// Set it you want google fonts to update weekly. A google_api_key value is required.
		'google_update_weekly' => false,
		// Must be defined to add google fonts to the typography module
		'async_typography'     => false,
		// Use a asynchronous font on the front end or font string
		//'disable_google_fonts_link' => true,                    // Disable this in case you want to create your own google fonts loader
		'admin_bar'            => false,
		// Show the panel pages on the admin bar
		'admin_bar_icon'       => 'dashicons-hammer',
		// Choose an icon for the admin bar menu
		'admin_bar_priority'   => 50,
		// Choose an priority for the admin bar menu
		'global_variable'      => '',
		// Set a different name for your global variable other than the opt_name
		'dev_mode'             => false,
		// Show the time the page took to load, etc
		'update_notice'        => false,
		// If dev_mode is enabled, will notify developer of updated versions available in the GitHub Repo
		'customizer'           => false,
		// Enable basic customizer support
		//'open_expanded'     => true,                    // Allow you to start the panel in an expanded way initially.
		//'disable_save_warn' => true,                    // Disable the save warning when a user changes a field

		// OPTIONAL -> Give you extra features
		'page_priority'        => 72,
		// Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning.
		'page_parent'          => 'rivax-dashboard',
		// For a full list of options, visit: http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters
		'page_permissions'     => 'manage_options',
		// Permissions needed to access the options panel.
		'menu_icon'            => '',
		// Specify a custom URL to an icon
		'last_tab'             => '',
		// Force your panel to always open to a specific tab (by id)
		'page_icon'            => 'icon-themes',
		// Icon displayed in the admin panel next to your menu_title
		'page_slug'            => 'rivax-settings',
		// Page slug used to denote the panel, will be based off page title then menu title then opt_name if not provided
		'flyout_submenus'      => false,
        // Enables or disables the flyout submenus for submenus on the option panel
		'save_defaults'        => true,
		// On load save the defaults to DB before user clicks save or not
		'default_show'         => false,
		// If true, shows the default value next to each field that is not the default value.
		'default_mark'         => '',
		// What to print by the field's title if the value shown is default. Suggested: *
		'show_import_export'   => true,
		// Shows the Import/Export panel when not used as a field.

		// CAREFUL -> These options are for advanced use only
		'transient_time'       => 60 * MINUTE_IN_SECONDS,
		'output'               => true,
		// Global shut-off for dynamic CSS output by the framework. Will also disable google fonts output
		'output_tag'           => true,
		// Allows dynamic CSS to be generated for customizer and google fonts, but stops the dynamic CSS from going to the head
		'output_location'                  => array( 'frontend', 'admin' ),
		// Admin area: Enqueue dynamic CSS and Google fonts.
		// 'footer_credit'     => '',                   // Disable the footer credit of Redux. Please leave if you can help it.

		// FUTURE -> Not in use yet, but reserved or partially implemented. Use at your own risk.
		'database'             => '',
		// possible: options, theme_mods, theme_mods_expanded, transient. Not fully functional, warning!
		'use_cdn'              => true,
		// If you prefer not to use the CDN for Select2, Ace Editor, and others, you may download the Redux Vendor Support plugin yourself and run locally or embed it in your code.
		'footer_text'              => '<p>' . esc_html__('Designed by: ', 'newsfy') . '<a href="' . esc_url('https://themeforest.net/user/rivaxstudio/') . '" target="_blank">Rivax Studio</a>.</p>',
	);

	Redux::set_args( $opt_name, $args );

	/*
 * ---> END ARGUMENTS
 */

	/*
 *
 * ---> START SECTIONS
 *
 */

	Redux::set_section( $opt_name, array(
		'title'            =>  esc_html__('General', 'newsfy'),
		'id'               => 'general_section',
		'desc'             =>  esc_html__('General settings for site', 'newsfy'),
		'icon'             => 'el el-cog',
		'fields'           => array(
			array(
				'id'       => 'site-width',
				'type'     => 'slider',
				'title'    => esc_html__('Site Width', 'newsfy'),
				'subtitle' => esc_html__('Choose the site width.', 'newsfy'),
				'desc'     => esc_html__('Default: 1300.', 'newsfy'),
				'default'  => 1300,
				'min'       => 1200,
				'step'      => 10,
				'max'       => 1800,
			),
			array(
				'id'       => 'site-layout',
				'type'     => 'select',
				'title'    => esc_html__('Site Layout', 'newsfy'),
				'subtitle' => esc_html__('Select site layout.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'wide' 		 	=> esc_html__('Wide', 'newsfy'),
					'boxed' 	 	=> esc_html__('Boxed', 'newsfy'),
					'boxed-wide' 	=> esc_html__('Boxed Wide', 'newsfy'),
					'framed' 		=> esc_html__('Framed', 'newsfy'),
					'framed-wide' 	=> esc_html__('Framed Wide', 'newsfy'),
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => 'wide',
			),
			array(
				'id'       => 'sticky-sidebar',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Sticky Sidebar', 'newsfy'),
				'subtitle' => esc_html__('Make sidebar sticky.', 'newsfy'),
				'desc'     => '',
				'default'  => true,
			),

			array(
				'id'       => 'site-preloader',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Preloader', 'newsfy'),
				'subtitle' => esc_html__('Show site preloader transition before site loaded.', 'newsfy'),
				'desc'     => '',
				'default'  => false,
			),

			array(
				'id'       => 'smooth-scroll',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Smooth Scroll', 'newsfy'),
				'subtitle' => esc_html__('Smooth scroll in website.', 'newsfy'),
				'desc'     => '',
				'default'  => true,
			),

			array(
				'id'       => 'full-size-gif',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Full Size Gif Images', 'newsfy'),
				'subtitle' => esc_html__('Use full image size for Gif. It is useful to show gif animation in thumbnail.', 'newsfy'),
				'desc'     => '',
				'default'  => true,
			),
			array(
				'id'       => 'cursor-effect',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Cursor Effect', 'newsfy'),
				'subtitle' => esc_html__('Custom cursor effect for website.', 'newsfy'),
				'desc'     => '',
			),

		)
	) );

	Redux::set_section( $opt_name, array(
		'title'            =>  esc_html__('Header', 'newsfy'),
		'id'               => 'header_section',
		'desc'             =>  esc_html__('General settings for header', 'newsfy'),
		'icon'             => 'el el-website',
		'fields'           => array(

			array(
				'id'       => 'site-header',
				'type'     => 'select',
				'title'    => esc_html__('Site Header Template', 'newsfy'),
				'subtitle' => esc_html__('Select header template for your site.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),

			array(
				'id'       => 'single-post-header',
				'type'     => 'select',
				'title'    => esc_html__('Single Post Header Template', 'newsfy'),
				'subtitle' => esc_html__('Select header template for the single post.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('Default inherit from site header template. You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),

			array(
				'id'       => 'sticky-header-status',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Sticky Header', 'newsfy'),
				'subtitle' => esc_html__('Enable sticky header for your site.', 'newsfy'),
				'desc'     => '',
				'default'  => false,
			),

			array(
				'id'       => 'site-sticky-header',
				'type'     => 'select',
				'required' => array( 'sticky-header-status', '=', '1' ),
				'title'    => esc_html__('Site Sticky Header', 'newsfy'),
				'subtitle' => esc_html__('Select sticky header for the site.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),

			array(
				'id'       => 'single-post-sticky-header',
				'type'     => 'select',
				'required' => array( 'sticky-header-status', '=', '1' ),
				'title'    => esc_html__('Single Post Sticky Header Template', 'newsfy'),
				'subtitle' => esc_html__('Select sticky header template for the single post.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('Default inherit from site sticky header template. You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),

		)
	) );

	Redux::set_section( $opt_name, array(
		'title'            =>  esc_html__('Footer', 'newsfy'),
		'id'               => 'footer_section',
		'desc'             =>  esc_html__('General settings for footer', 'newsfy'),
		'icon'             => 'el el-credit-card',
		'fields'           => array(
			array(
				'id'       => 'site-footer',
				'type'     => 'select',
				'title'    => esc_html__('Site Footer', 'newsfy'),
				'subtitle' => esc_html__('Select footer for the site.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),
			array(
                'id'       => 'sticky-footer',
                'type'     => 'switch',
                'on'     => esc_html__('Enable', 'newsfy'),
                'off'     => esc_html__('Disable', 'newsfy'),
                'title'    => esc_html__('Sticky Footer', 'newsfy'),
                'desc'     => '',
                'default'  => false,
            ),
			array(
                'id'       => 'footer-box-shadow-overlay',
                'type'     => 'text',
                'title'    => esc_html__('Box Shadow Overlay', 'newsfy'),
                'subtitle' => esc_html__('Add a Box Shadow On The Footer.', 'newsfy'),
                'desc'     => esc_html__('Just Enter a box-shadow Value. Example: ', 'newsfy') . '0 50px 60px -20px #1427911a',
            ),
			array(
				'id'       => 'back-to-top',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Back to Top Button', 'newsfy'),
				'desc'     => '',
				'default'  => false,
			),

		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            =>  esc_html__('Sidebar', 'newsfy'),
		'id'               => 'sidebar_section',
		'desc'             =>  esc_html__('General settings for sidebar', 'newsfy'),
		'icon'             => 'el el-align-left',
		'fields'           => array(
			array(
				'id'       => 'subtitle-756694',
				'type'     => 'raw',
				'full_width'     => true,
				'content'     => '<h4>' . esc_html__('Single Page Sidebar', 'newsfy') . '</h4>',
			),
			array(
				'id'       => 'single-page-sidebar-position',
				'type'     => 'select',
				'title'    => esc_html__('Single Page Sidebar Position', 'newsfy'),
				'subtitle' => esc_html__('Select sidebar position for pages.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'left' => esc_html__('Left', 'newsfy'),
					'right' => esc_html__('Right', 'newsfy'),
					'none' => esc_html__('No Sidebar', 'newsfy'),
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => 'none',
			),
			array(
				'id'       => 'single-page-sidebar-template',
				'type'     => 'select',
				'title'    => esc_html__('Single Page Sidebar Template', 'newsfy'),
				'subtitle' => esc_html__('Select template for this sidebar.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),

			array(
				'id'       => 'subtitle-355494',
				'type'     => 'raw',
				'full_width'     => true,
				'content'     => '<h4>' . esc_html__('Single Post Sidebar', 'newsfy') . '</h4>',
			),
			array(
				'id'       => 'single-post-sidebar-position',
				'type'     => 'select',
				'title'    => esc_html__('Single Post Sidebar Position', 'newsfy'),
				'subtitle' => esc_html__('Select sidebar position for single post.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'left' => esc_html__('Left', 'newsfy'),
					'right' => esc_html__('Right', 'newsfy'),
					'none' => esc_html__('No Sidebar', 'newsfy'),
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => 'none',
			),
			array(
				'id'       => 'single-post-sidebar-template',
				'type'     => 'select',
				'title'    => esc_html__('Single Post Sidebar Template', 'newsfy'),
				'subtitle' => esc_html__('Select template for this sidebar.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),

			array(
				'id'       => 'subtitle-755494',
				'type'     => 'raw',
				'full_width'     => true,
				'content'     => '<h4>' . esc_html__('Blog Sidebar', 'newsfy') . '</h4>',
			),
			array(
				'id'       => 'blog-sidebar-position',
				'type'     => 'select',
				'title'    => esc_html__('Blog Sidebar Position', 'newsfy'),
				'subtitle' => esc_html__('Select sidebar position for blog archive.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'left' => esc_html__('Left', 'newsfy'),
					'right' => esc_html__('Right', 'newsfy'),
					'none' => esc_html__('No Sidebar', 'newsfy'),
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => 'none',
			),
			array(
				'id'       => 'blog-sidebar-template',
				'type'     => 'select',
				'title'    => esc_html__('Blog Sidebar Template', 'newsfy'),
				'subtitle' => esc_html__('Select template for this sidebar.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),

			array(
				'id'       => 'subtitle-756794',
				'type'     => 'raw',
				'full_width'     => true,
				'content'     => '<h4>' . esc_html__('Woocommerce Sidebar', 'newsfy') . '</h4>',
			),
			array(
				'id'       => 'woocommerce-shop-sidebar-position',
				'type'     => 'select',
				'title'    => esc_html__('Woocommerce Shop Sidebar Position', 'newsfy'),
				'subtitle' => esc_html__('Select sidebar position for woocommerce shop.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'left' => esc_html__('Left', 'newsfy'),
					'right' => esc_html__('Right', 'newsfy'),
					'none' => esc_html__('No Sidebar', 'newsfy'),
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => 'none',
			),
			array(
				'id'       => 'woocommerce-archive-sidebar-position',
				'type'     => 'select',
				'title'    => esc_html__('Woocommerce Archive Sidebar Position', 'newsfy'),
				'subtitle' => esc_html__('Select sidebar position for woocommerce archive.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'left' => esc_html__('Left', 'newsfy'),
					'right' => esc_html__('Right', 'newsfy'),
					'none' => esc_html__('No Sidebar', 'newsfy'),
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => 'none',
			),
			array(
				'id'       => 'woocommerce-sidebar-template',
				'type'     => 'select',
				'title'    => esc_html__('Woocommerce Sidebar Template', 'newsfy'),
				'subtitle' => esc_html__('Select template for this sidebar.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),
			array(
				'id'       => 'subtitle-75346694',
				'type'     => 'raw',
				'full_width'     => true,
				'content'     => '<h4>' . esc_html__('bbpress Sidebar', 'newsfy') . '</h4>',
			),
			array(
				'id'       => 'bbpress-sidebar-position',
				'type'     => 'select',
				'title'    => esc_html__('bbpress Sidebar Position', 'newsfy'),
				'subtitle' => esc_html__('Select sidebar position for bbpress pages.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'left' => esc_html__('Left', 'newsfy'),
					'right' => esc_html__('Right', 'newsfy'),
					'none' => esc_html__('No Sidebar', 'newsfy'),
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => 'none',
			),
			array(
				'id'       => 'bbpress-sidebar-template',
				'type'     => 'select',
				'title'    => esc_html__('bbpress Sidebar Template', 'newsfy'),
				'subtitle' => esc_html__('Select template for this sidebar.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),

		)
	) );



	Redux::set_section( $opt_name, array(
		'title'            =>  esc_html__('Styling', 'newsfy'),
		'id'               => 'styling_section',
		'desc'             =>  esc_html__('Styling settings', 'newsfy'),
		'icon'             => 'el el-brush',
		'fields'           => array(
			array(
				'id'       => 'default-radius',
				'type'     => 'slider',
				'title'    => esc_html__('Default Border Radius', 'newsfy'),
				'subtitle' => esc_html__('It is used for some elements like posts images.', 'newsfy'),
				'desc'     => esc_html__('-1 for Default.', 'newsfy'),
				'default'  => -1,
				'min'       => -1,
				'max'       => 20,
			),
			array(
				'id'       => 'btn-radius',
				'type'     => 'slider',
				'title'    => esc_html__('Buttons Border Radius', 'newsfy'),
				'desc'     => esc_html__('-1 for Default.', 'newsfy'),
				'default'  => -1,
				'min'       => -1,
				'max'       => 50,
			),
			array(
				'id'       => 'hover-bright-effect',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Images Hover Bright Effect', 'newsfy'),
				'subtitle' => esc_html__('Add bright effect on hover images.', 'newsfy'),
				'desc'     => '',
				'default'  => false,
			),
			array(
				'id'       => 'images-shadow-effect',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Images Shadow Effect', 'newsfy'),
				'subtitle' => esc_html__('Add shadow effect to images.', 'newsfy'),
				'desc'     => '',
				'default'  => false,
			),
			array(
				'id'       => 'accent-color',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Accent Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
			),
			array(
				'id'       => 'second-color',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Second Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
			),
			array(
				'id'       => 'body-bg',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Body Background Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
			),
			array(
				'id'       => 'body-color',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Body Text Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
			),
			array(
				'id'       => 'heading-color',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Headings Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
			),
			array(
				'id'       => 'single-progress-bar-bg',
				'type'     => 'color_gradient',
				'transparent'     => false,
				'title'    => esc_html__('Single Post Progress Bar Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'        => array(
					'from'           => '',
					'to'             => '',
				),
				'validate' => 'color',
			),
			array(
				'id'       => 'single-category-bg',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Single Post Category Background', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
			),
			array(
				'id'       => 'single-category-bg-hover',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Single Post Category Background Hover', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
			),
			array(
				'id'       => 'button-bg-hover',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Button Background Hover', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
			),



		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Typography', 'newsfy'),
		'id'               => 'typography',
		'desc'             => esc_html__('Typography settings', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-fontsize',
		'fields'           => array(
			array(
				'id'            => 'typography-body',
				'type'          => 'typography',
				'all_styles'    => true,
				'google'        => true,
				'color'         => false,
				'text-align'    => false,
				'subsets'       => false,
				'letter-spacing' => true,
				'line-height-unit' =>'em',
				'title'    => esc_html__('Body Typography', 'newsfy'),
			),
			array(
				'id'       => 'typography-heading',
				'type'     => 'typography',
				'google'      => true,
				'color'      => false,
				'text-align'      => false,
				'subsets'      => false,
				'letter-spacing' => true,
				'line-height-unit' =>'em',
				'font-size'      => false,
				'title'    => esc_html__('Headings Typography', 'newsfy'),
			),
			array(
				'id'       => 'typography-terms',
				'type'     => 'typography',
				'google'      => true,
				'color'      => false,
				'text-align'      => false,
				'subsets'      => false,
				'line-height'      => false,
				'font-size'      => false,
				'title'    => esc_html__('Terms Typography', 'newsfy'),
			),
			array(
				'id'       => 'typography-menu',
				'type'     => 'typography',
				'google'      => true,
				'color'      => false,
				'text-align'      => false,
				'subsets'      => false,
				'line-height'      => false,
				'font-size'      => false,
				'title'    => esc_html__('Menu Typography', 'newsfy'),
			),
			array(
				'id'       => 'title-font-size-9856',
				'type'     => 'raw',
				'full_width'     => true,
				'content'     => '<h2>' . esc_html__('Font Size', 'newsfy') . '</h2>',
			),
			array(
				'id'       => 'h1-font-size',
				'type'     => 'text',
				'title'    => esc_html__('H1 Font Size', 'newsfy'),
				'subtitle' => esc_html__('Enter H1 font size. Example: 28px or 1.8rem', 'newsfy'),
			),
			array(
				'id'       => 'h2-font-size',
				'type'     => 'text',
				'title'    => esc_html__('H2 Font Size', 'newsfy'),
				'subtitle' => esc_html__('Enter H2 font size. Example: 28px or 1.8rem', 'newsfy'),
			),
			array(
				'id'       => 'h3-font-size',
				'type'     => 'text',
				'title'    => esc_html__('H3 Font Size', 'newsfy'),
				'subtitle' => esc_html__('Enter H3 font size. Example: 28px or 1.8rem', 'newsfy'),
			),
			array(
				'id'       => 'h4-font-size',
				'type'     => 'text',
				'title'    => esc_html__('H4 Font Size', 'newsfy'),
				'subtitle' => esc_html__('Enter H4 font size. Example: 28px or 1.8rem', 'newsfy'),
			),
			array(
				'id'       => 'h5-font-size',
				'type'     => 'text',
				'title'    => esc_html__('H5 Font Size', 'newsfy'),
				'subtitle' => esc_html__('Enter H5 font size. Example: 28px or 1.8rem', 'newsfy'),
			),
			array(
				'id'       => 'h6-font-size',
				'type'     => 'text',
				'title'    => esc_html__('H6 Font Size', 'newsfy'),
				'subtitle' => esc_html__('Enter H6 font size. Example: 28px or 1.8rem', 'newsfy'),
			),

			array(
				'id'       => 'title-font-size-984556',
				'type'     => 'raw',
				'full_width'     => true,
				'content'     => '<h2>' . esc_html__('Font Size In Responsive', 'newsfy') . '</h2>',
			),
			array(
				'id'       => 'h1-font-size-responsive',
				'type'     => 'text',
				'title'    => esc_html__('H1 Font Size In Mobile And Tablet', 'newsfy'),
				'subtitle' => esc_html__('Enter H1 font size. Example: 28px or 1.8rem', 'newsfy'),
			),
			array(
				'id'       => 'h2-font-size-responsive',
				'type'     => 'text',
				'title'    => esc_html__('H2 Font Size In Mobile And Tablet', 'newsfy'),
				'subtitle' => esc_html__('Enter H2 font size. Example: 28px or 1.8rem', 'newsfy'),
			),
			array(
				'id'       => 'h3-font-size-responsive',
				'type'     => 'text',
				'title'    => esc_html__('H3 Font Size In Mobile And Tablet', 'newsfy'),
				'subtitle' => esc_html__('Enter H3 font size. Example: 28px or 1.8rem', 'newsfy'),
			),
			array(
				'id'       => 'h4-font-size-responsive',
				'type'     => 'text',
				'title'    => esc_html__('H4 Font Size In Mobile And Tablet', 'newsfy'),
				'subtitle' => esc_html__('Enter H4 font size. Example: 28px or 1.8rem', 'newsfy'),
			),
			array(
				'id'       => 'h5-font-size-responsive',
				'type'     => 'text',
				'title'    => esc_html__('H5 Font Size In Mobile And Tablet', 'newsfy'),
				'subtitle' => esc_html__('Enter H5 font size. Example: 28px or 1.8rem', 'newsfy'),
			),
			array(
				'id'       => 'h6-font-size-responsive',
				'type'     => 'text',
				'title'    => esc_html__('H6 Font Size In Mobile And Tablet', 'newsfy'),
				'subtitle' => esc_html__('Enter H6 font size. Example: 28px or 1.8rem', 'newsfy'),
			),


		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Single Post', 'newsfy'),
		'id'               => 'single_post_section',
		'desc'             => esc_html__('Single Post settings', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-pencil',
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('General', 'newsfy'),
		'id'               => 'single_post_general',
		'desc'             => esc_html__('Single Post general settings', 'newsfy'),
		'subsection'       => true,
		'icon'             => 'el el-cog',
		'fields'           => array(

			array(
				'id'       => 'single-post-top-content-template',
				'type'     => 'select',
				'title'    => esc_html__('Top Content', 'newsfy'),
				'subtitle' => esc_html__('Select template to show in top of the post.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),
			array(
				'id'       => 'single-post-bottom-content-template',
				'type'     => 'select',
				'title'    => esc_html__('Bottom Content', 'newsfy'),
				'subtitle' => esc_html__('Select template to show in bottom of the post.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),
			array(
                'id'       => 'single-category-style',
                'type'     => 'select',
                'title'    => esc_html__('Category Style', 'newsfy'),
                'desc'     => '',
                'options'  => array(
                    'style-1' => esc_html__('Style 1', 'newsfy'),
                    'style-2' => esc_html__('Style 2', 'newsfy'),
                    'style-3' => esc_html__('Style 3', 'newsfy'),
                    'style-4' => esc_html__('Style 4', 'newsfy'),
                    'style-5' => esc_html__('Style 5', 'newsfy'),
                    'style-6' => esc_html__('Style 6', 'newsfy'),
                    'style-7' => esc_html__('Style 7', 'newsfy'),
                ),
                'select2'  => array( 'allowClear' => false ),
                'default'  => 'style-1',
            ),
			array(
				'id'       => 'single-category-skew',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Category Skew Background', 'newsfy'),
				'subtitle' => esc_html__('Skew style for the category.', 'newsfy'),
				'desc'     => '',
				'default'  => false,
			),
			array(
				'id'       => 'disable-comments',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Disable Comments', 'newsfy'),
				'subtitle' => esc_html__('Disable comments list and form.', 'newsfy'),
				'desc'     => '',
			),
			array(
				'id'       => 'compact-comments',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Compact Comments', 'newsfy'),
				'subtitle' => esc_html__('Show comments in compact view.', 'newsfy'),
				'desc'     => '',
				'default'  => true,
			),
			array(
				'id'       => 'disable-tags',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Disable Tags', 'newsfy'),
				'subtitle' => esc_html__('Disable showing tags from the bottom of posts.', 'newsfy'),
				'desc'     => '',
			),
			array(
				'id'       => 'post-reading-progress-indicator',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Reading Progress Indicator', 'newsfy'),
				'subtitle' => esc_html__('Show reading progress indicator in post.', 'newsfy'),
				'desc'     => '',
				'default'  => true,
			),
			array(
				'id'       => 'single-post-share-box',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Show Share Box', 'newsfy'),
				'subtitle' => esc_html__('Show share box in the single post.', 'newsfy'),
				'desc'     => '',
				'default'  => true,
			),
			array(
				'id'       => 'single-post-share-box-title',
				'type'     => 'text',
				'required' => array( 'single-post-share-box', '=', '1' ),
				'title'    => esc_html__('Share Box Title', 'newsfy'),
				'subtitle' => esc_html__('Enter your title for the share box.', 'newsfy'),
				'desc'     => esc_html__('Default value: Share Article', 'newsfy'),
				'default'  => esc_html__('Share Article', 'newsfy'),
			),
			array(
				'id'       => 'single-post-share-box-options',
				'type'     => 'checkbox',
				'required' => array( 'single-post-share-box', '=', '1' ),
				'title'    => esc_html__('Share Box Options', 'newsfy'),
				'subtitle' => esc_html__('Select share box options.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'facebook' => esc_html__('Facebook', 'newsfy'),
					'twitter' => esc_html__('Twitter', 'newsfy'),
					'linkedin' => esc_html__('Linkedin', 'newsfy'),
					'pinterest' => esc_html__('Pinterest', 'newsfy'),
					'telegram' => esc_html__('Telegram', 'newsfy'),
					'email' => esc_html__('Email', 'newsfy'),
					'whatsapp' => esc_html__('WhatsApp', 'newsfy'),
					'link' => esc_html__('Link Box', 'newsfy'),
				),
				'default' => array(
					'facebook' => '1',
					'twitter' => '1',
					'linkedin' => '0',
					'pinterest' => '1',
					'telegram' => '0',
					'email' => '1',
					'whatsapp' => '1',
					'link' => '1',
				)
			),
			array(
				'id'       => 'single-post-author-box',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Show Author Box', 'newsfy'),
				'subtitle' => esc_html__('Show author box in the single post.', 'newsfy'),
				'desc'     => '',
				'default'  => true,
			),
			array(
				'id'       => 'single-post-next-prev-posts',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Show Next and Previous Posts', 'newsfy'),
				'subtitle' => esc_html__('Show next and Previous posts in the single post.', 'newsfy'),
				'desc'     => '',
				'default'  => true,
			),
			array(
				'id'       => 'max-category-show',
				'type'     => 'slider',
				'title'    => esc_html__('Maximum Categories', 'newsfy'),
				'subtitle' => esc_html__('How many categories show in post?', 'newsfy'),
				'desc'     => esc_html__('Set 0 to show all.', 'newsfy'),
				'default'  => 0,
				'min'       => 0,
				'step'      => 1,
				'max'       => 10,
			),
			array(
				'id'       => 'max-tags-show',
				'type'     => 'slider',
				'title'    => esc_html__('Maximum Tags', 'newsfy'),
				'subtitle' => esc_html__('How many tags show in post?', 'newsfy'),
				'desc'     => esc_html__('Set 0 to show all.', 'newsfy'),
				'default'  => 0,
				'min'       => 0,
				'step'      => 1,
				'max'       => 20,
			),
			array(
				'id'       => 'reading-time-words-per-minute',
				'type'     => 'slider',
				'title'    => esc_html__('Reading Time Words Per Minute', 'newsfy'),
				'subtitle' => esc_html__('How many words user can read per minute?', 'newsfy'),
				'desc'     => esc_html__('Default value: 255', 'newsfy'),
				'default'  => 255,
				'min'       => 100,
				'step'      => 10,
				'max'       => 500,
			),



		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Hero Layout', 'newsfy'),
		'id'               => 'single_post_layout',
		'desc'             => esc_html__('Single post hero layout settings', 'newsfy'),
		'subsection'       => true,
		'icon'             => 'el el-picture',
		'fields'           => array(
			array(
				'id'       => 'single-post-meta',
				'type'     => 'checkbox',
				'title'    => esc_html__('Default Post Meta', 'newsfy'),
				'subtitle' => esc_html__('Select default meta for single post.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'author-name' => esc_html__('Author Name', 'newsfy'),
					'author-avatar' => esc_html__('Author Avatar', 'newsfy'),
					'date' => esc_html__('Date', 'newsfy'),
					'date-updated' => esc_html__('Updated Date', 'newsfy'),
					'category' => esc_html__('Category', 'newsfy'),
					'comments' => esc_html__('Comments', 'newsfy'),
					'views' => esc_html__('Views', 'newsfy'),
					'reading-time' => esc_html__('Reading Time', 'newsfy'),
					'excerpt' => esc_html__('Excerpt', 'newsfy'),
				),
				'default' => array(
					'author-name' => '1',
					'author-avatar' => '1',
					'date' => '1',
					'date-updated' => '0',
					'category' => '1',
					'comments' => '1',
					'views' => '1',
					'reading-time' => '1',
					'excerpt' => '0',
				)
			),

			array(
				'id'       => 'single-hero-layout',
				'type'     => 'select',
				'title'    => esc_html__('Standard Post Layout', 'newsfy'),
				'subtitle' => esc_html__('Select default layout for standard posts. You can customize settings for each layout below.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'1' => esc_html__('Layout 1', 'newsfy'),
					'2' => esc_html__('Layout 2', 'newsfy'),
					'3' => esc_html__('Layout 3', 'newsfy'),
					'4' => esc_html__('Layout 4', 'newsfy'),
					'5' => esc_html__('Layout 5', 'newsfy'),
					'6' => esc_html__('Layout 6', 'newsfy'),
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => '1',
			),

			array(
				'id'       => 'single-hero-1-disable-img',
				'type'     => 'checkbox',
				'required' => array( 'single-hero-layout', '=', '1' ),
				'title'    => esc_html__('Layout 1: Disable Image', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default' => '0'
			),
			array(
				'id'       => 'single-hero-1-full-img',
				'type'     => 'checkbox',
				'required' => array( 'single-hero-layout', '=', '1' ),
				'title'    => esc_html__('Layout 1: Full Image Size', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default' => '0'
			),
			array(
				'id'       => 'single-hero-1-bottom-img',
				'type'     => 'checkbox',
				'required' => array( 'single-hero-layout', '=', '1' ),
				'title'    => esc_html__('Layout 1: Image Bottom', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default' => '0'
			),

			array(
				'id'       => 'single-hero-7-disable-img',
				'type'     => 'checkbox',
				'required' => array( 'single-hero-layout', '=', '7' ),
				'title'    => esc_html__('Layout 7: Disable Image', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default' => '0'
			),
			array(
				'id'       => 'single-hero-7-full-img',
				'type'     => 'checkbox',
				'required' => array( 'single-hero-layout', '=', '7' ),
				'title'    => esc_html__('Layout 7: Full Image Size', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default' => '0'
			),

			array(
				'id'       => 'single-format-gallery-position',
				'type'     => 'select',
				'title'    => esc_html__('Gallery Post Format', 'newsfy'),
				'subtitle' => esc_html__('Select gallery position.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'inside' => esc_html__('Inside content', 'newsfy'),
					'outside' => esc_html__('Outside Content', 'newsfy'),
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => 'inside',
			),
		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Table Of Content', 'newsfy'),
		'id'               => 'toc_section',
		'desc'             => esc_html__('Insert table of content for single post automatically or use Toc Elementor widget in the sidebar.', 'newsfy'),
		'subsection'       => true,
		'icon'             => 'el el-list-alt',
		'fields'           => array(
			array(
				'id'       => 'toc',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Table Of Content', 'newsfy'),
				'desc'     => esc_html__('Enable table of content.', 'newsfy'),
			),
			array(
				'id'       => 'toc-inline',
				'type'     => 'switch',
				'required' => array( 'toc', '=', '1' ),
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Insert Automatically', 'newsfy'),
				'desc'     => esc_html__('Add table of content to single posts automatically.', 'newsfy'),
			),
			array(
				'id'       => 'toc-hierarchically',
				'type'     => 'switch',
				'required' => array( 'toc', '=', '1' ),
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Show hierarchically', 'newsfy'),
				'desc'     => esc_html__('Show the table of content items hierarchically.', 'newsfy'),
			),
			array(
				'id'       => 'toc-counter',
				'type'     => 'switch',
				'required' => array( 'toc', '=', '1' ),
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Show Counter', 'newsfy'),
				'desc'     => esc_html__('Show counter for table of content items.', 'newsfy'),
			),
			array(
				'id'       => 'toc-collapsable',
				'type'     => 'switch',
				'required' => array( 'toc', '=', '1' ),
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Collapsable', 'newsfy'),
				'desc'     => esc_html__('Show a collapsable button to toggle the table of content items.', 'newsfy'),
			),
			array(
				'id'       => 'toc-collapsed-default',
				'type'     => 'switch',
				'required' => array( 'toc', '=', '1' ),
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Collapsed By Default', 'newsfy'),
				'desc'     => '',
			),
			array(
				'id'       => 'toc-disable-in-amp',
				'type'     => 'switch',
				'required' => array( 'toc', '=', '1' ),
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Disable In AMP', 'newsfy'),
				'desc'     => esc_html__('Disable table of content in AMP version.', 'newsfy'),
			),
			array(
				'id'       => 'toc-title',
				'type'     => 'text',
				'required' => array( 'toc', '=', '1' ),
				'title'    => esc_html__('Title', 'newsfy'),
				'default'  => esc_html__('Table Of Content', 'newsfy'),
				'desc'     => esc_html__('Leave empty to hide title.', 'newsfy'),
			),
			array(
				'id'       => 'toc-exclude-class',
				'type'     => 'text',
				'required' => array( 'toc', '=', '1' ),
				'title'    => esc_html__('Exclude Classes', 'newsfy'),
				'subtitle' => esc_html__('Exclude headings with these CSS classes.', 'newsfy'),
				'desc'     => esc_html__('Separate classes with space.', 'newsfy'),
			),
			array(
				'id'       => 'toc-position',
				'type'     => 'select',
				'required' => array( 'toc', '=', '1' ),
				'title'    => esc_html__('Position', 'newsfy'),
				'subtitle' => esc_html__('Select the table of content position.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'top'       => esc_html__('Top', 'newsfy'),
					'after-p'   => esc_html__('After the first paragraph', 'newsfy'),
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => 'after-p',
			),
			array(
				'id'       => 'toc-min-count',
				'type'     => 'select',
				'required' => array( 'toc', '=', '1' ),
				'title'    => esc_html__('Minimum Headings Count', 'newsfy'),
				'subtitle' => esc_html__('Minimum headings count to show the table of content.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'2' => '2',
					'3' => '3',
					'4' => '4',
					'5' => '5',
					'6' => '6',
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => '3',
			),
			array(
				'id'       => 'toc-headings-support',
				'type'     => 'checkbox',
				'required' => array( 'toc', '=', '1' ),
				'title'    => esc_html__('Headings Support', 'newsfy'),
				'subtitle' => esc_html__('Select headings to include in table of content.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'2' => 'H2',
					'3' => 'H3',
					'4' => 'H4',
					'5' => 'H5',
					'6' => 'H6',
				),
				'default' => array(
					'2' => '1',
					'3' => '1',
					'4' => '1',
					'5' => '0',
					'6' => '0',
				)
			),


		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('AMP', 'newsfy'),
		'id'               => 'amp_section',
		'desc'             => sprintf(esc_html__('If you interested to have an AMP version for your site, please install the %1$s AMP Plugin %2$s. Select Reader Mode for template and Legacy theme and select Posts for Supported Templates.', 'newsfy'), '<a target="_blank" href="https://wordpress.org/plugins/amp/"><b>', '</b></a>'),
		'subsection'       => true,
		'icon'             => 'el el-compass',
		'fields'           => array(
			array(
				'id'       => 'amp-logo',
				'type'     => 'media',
				'url'      => true,
				'title'    => esc_html__('AMP Logo', 'newsfy'),
				'subtitle' => esc_html__('Select your logo for the header.', 'newsfy'),
				'desc'     => '',
				'default'  => '',
			),
			array(
				'id'       => 'amp-logo-width',
				'type'     => 'slider',
				'title'    => esc_html__('AMP Logo Width', 'newsfy'),
				'subtitle' => esc_html__('Select the logo width.', 'newsfy'),
				'desc'     => esc_html__('Default value: 120', 'newsfy'),
				'default'  => 120,
				'min'       => 60,
				'step'      => 5,
				'max'       => 300,
			),
			array(
				'id'       => 'amp-sidebar-search',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Sidebar Search', 'newsfy'),
				'desc'     => '',
				'default'  => true,
			),
			array(
				'id'       => 'amp-back-top',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Footer Back to Top', 'newsfy'),
				'desc'     => '',
				'default'  => true,
			),
			array(
				'id'       => 'amp-copyright',
				'type'     => 'text',
				'title'    => esc_html__('Footer Copyright', 'newsfy'),
				'default'  => esc_html__('Designed by Rivax Studio. All Rights Reserved.', 'newsfy'),
			),

		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Autoload Next Post', 'newsfy'),
		'id'               => 'autoload_next_post_section',
		'desc'             => esc_html__('Automatically load next posts settings', 'newsfy'),
		'subsection'       => true,
		'icon'             => 'el el-refresh',
		'fields'           => array(
			array(
				'id'        => 'autoload-next-post',
				'type'      => 'switch',
				'on'        => esc_html__('Enable', 'newsfy'),
				'off'       => esc_html__('Disable', 'newsfy'),
				'title'     => esc_html__('Autoload Next Post', 'newsfy'),
				'subtitle'  => esc_html__('Automatically load next posts by scroll down.', 'newsfy'),
				'default'   => false,
			),
			array(
				'id'        => 'autoload-next-post-same-cat',
				'type'      => 'switch',
				'required' => array( 'autoload-next-post', '=', '1' ),
				'on'        => esc_html__('Enable', 'newsfy'),
				'off'       => esc_html__('Disable', 'newsfy'),
				'title'     => esc_html__('Same Category', 'newsfy'),
				'subtitle'  => esc_html__('Only load posts which has same categories with the current post.', 'newsfy'),
				'default'   => false,
			),
			array(
				'id'        => 'autoload-next-post-content-top',
				'type'      => 'switch',
				'required' => array( 'autoload-next-post', '=', '1' ),
				'on'        => esc_html__('Enable', 'newsfy'),
				'off'       => esc_html__('Disable', 'newsfy'),
				'title'     => esc_html__('Load Top Content', 'newsfy'),
				'subtitle'  => esc_html__('Load single top content if a template selected from the settings.', 'newsfy'),
				'desc'      => esc_html__('Disabled by default for faster loading of the next post.', 'newsfy'),
				'default'   => false,
			),
			array(
				'id'        => 'autoload-next-post-content-bottom',
				'type'      => 'switch',
				'required' => array( 'autoload-next-post', '=', '1' ),
				'on'        => esc_html__('Enable', 'newsfy'),
				'off'       => esc_html__('Disable', 'newsfy'),
				'title'     => esc_html__('Load Bottom Content', 'newsfy'),
				'subtitle'  => esc_html__('Load single bottom content if a template selected from the settings.', 'newsfy'),
				'desc'      => esc_html__('Disabled by default for faster loading of the next post.', 'newsfy'),
				'default'   => false,
			),
			array(
				'id'        => 'autoload-next-post-share-box',
				'type'      => 'switch',
				'required' => array( 'autoload-next-post', '=', '1' ),
				'on'        => esc_html__('Enable', 'newsfy'),
				'off'       => esc_html__('Disable', 'newsfy'),
				'title'     => esc_html__('Load Share Box', 'newsfy'),
				'subtitle'  => esc_html__('Load the share box if enabled from the settings.', 'newsfy'),
				'desc'      => esc_html__('Disabled by default for faster loading of the next post.', 'newsfy'),
				'default'   => false,
			),
			array(
				'id'        => 'autoload-next-post-author-box',
				'type'      => 'switch',
				'required' => array( 'autoload-next-post', '=', '1' ),
				'on'        => esc_html__('Enable', 'newsfy'),
				'off'       => esc_html__('Disable', 'newsfy'),
				'title'     => esc_html__('Load Author Box', 'newsfy'),
				'subtitle'  => esc_html__('Load the author box if enabled from the settings.', 'newsfy'),
				'desc'      => esc_html__('Disabled by default for faster loading of the next post.', 'newsfy'),
				'default'   => false,
			),
			array(
				'id'        => 'autoload-next-post-comments',
				'type'      => 'switch',
				'required' => array( 'autoload-next-post', '=', '1' ),
				'on'        => esc_html__('Enable', 'newsfy'),
				'off'       => esc_html__('Disable', 'newsfy'),
				'title'     => esc_html__('Load Comments Section', 'newsfy'),
				'subtitle'  => esc_html__('Load the comments section.', 'newsfy'),
				'desc'      => esc_html__('Disabled by default for faster loading of the next post.', 'newsfy'),
				'default'   => false,
			),
			array(
				'id'       => 'autoload-next-post-max',
				'type'     => 'select',
				'required' => array( 'autoload-next-post', '=', '1' ),
				'title'    => esc_html__('Maximum Posts To Load', 'newsfy'),
				'subtitle' => esc_html__('Select how many posts can be load.', 'newsfy'),
				'options'  => array(
					'1' => '1',
					'2' => '2',
					'3' => '3',
					'4' => '4',
					'5' => '5',
					'6' => '6',
					'7' => '7',
					'8' => '8',
					'9' => '9',
					'10' => '10',
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => '3',
			),

		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Blog Archive', 'newsfy'),
		'id'               => 'blog_section',
		'desc'             => esc_html__('Blog settings', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-th-list',
		'fields'           => array(
			array(
				'id'       => 'archive-template',
				'type'     => 'select',
				'title'    => esc_html__('Blog Archive Template', 'newsfy'),
				'subtitle' => esc_html__('Select template for blog archive.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),

			array(
				'id'       => 'subtitle-6340587',
				'type'     => 'raw',
				'full_width'     => true,
				'content'     => '<h4>' . esc_html__('Search Settings', 'newsfy') . '</h4>',
			),
			array(
				'id'       => 'search-post-types',
				'type'     => 'select',
				'multi'    => true,
				'title'    => esc_html__('Search Post Types', 'newsfy'),
				'subtitle' => esc_html__('Limit search for custom post types.', 'newsfy'),
				'data'  => 'post_types',
				'desc'     => esc_html__('WordPress search in all post types by default.', 'newsfy'),
				'args'  => array(
					'exclude_from_search'      => false,
				),
			),

		)
	) );



	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('bbpress Forum', 'newsfy'),
		'id'               => 'bbpress_section',
		'desc'             => esc_html__('bbpress settings', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-group',
		'fields'           => array(
			array(
				'id'       => 'disable-bbpress-breadcrumb',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Disable Breadcrumb', 'newsfy'),
			),

		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Page 404', 'newsfy'),
		'id'               => 'page404_section',
		'desc'             => esc_html__('Page 404 settings', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-ban-circle',
		'fields'           => array(
			array(
				'id'       => 'page-404-template',
				'type'     => 'select',
				'title'    => esc_html__('Page 404 Template', 'newsfy'),
				'subtitle' => esc_html__('Select template for page 404.', 'newsfy'),
				'data'  => 'callback',
				'args' => 'rivax_get_templates_list',
				'desc'     => sprintf(esc_html__('You can create your custom template in %1$s Rivax Templates %2$s section.', 'newsfy'), '<a target="_blank" href="' . admin_url("edit.php?post_type=rivax-template") . '"><b>', '</b></a>'),
				'default' => '0',
				'select2'  => array( 'allowClear' => false ),
			),

		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Dark Mode', 'newsfy'),
		'id'               => 'dark_mode_section',
		'desc'             => esc_html__('Dark Mode settings', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-idea-alt',
		'fields'           => array(
			array(
				'id'       => 'dark-mode',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Dark Mode', 'newsfy'),
				'subtitle'     => esc_html__('Enable dark mode for your site.', 'newsfy'),
			),
			array(
				'id'       => 'default-theme-scheme',
				'type'     => 'button_set',
				'title'    => esc_html__('Default Scheme', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'light' 	=> esc_html__('Light', 'newsfy'),
					'dark'  	=> esc_html__('Dark', 'newsfy'),
					'device'    => esc_html__('Base on Device', 'newsfy'),
				),
				'default'  => 'light',
				'required' => array( 'dark-mode', '=', '1' ),
			),
			array(
				'id'       => 'always-dark-mode',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Always Dark Mode', 'newsfy'),
				'subtitle'     => esc_html__('Always load site in dark style and disable the dark mode switcher.', 'newsfy'),
				'required' => array( 'dark-mode', '=', '1' ),
			),
			array(
				'id'       => 'accent-color-dark',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Accent Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
				'required' => array( 'dark-mode', '=', '1' ),
			),
			array(
				'id'       => 'second-color-dark',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Second Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
				'required' => array( 'dark-mode', '=', '1' ),
			),
			array(
				'id'       => 'body-bg-dark',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Body Background Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
				'required' => array( 'dark-mode', '=', '1' ),
			),
			array(
				'id'       => 'body-color-dark',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Body Text Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
				'required' => array( 'dark-mode', '=', '1' ),
			),
			array(
				'id'       => 'heading-color-dark',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Headings Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
				'required' => array( 'dark-mode', '=', '1' ),
			),
			array(
				'id'       => 'single-category-bg-dark',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Single Post Category Background', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
				'required' => array( 'dark-mode', '=', '1' ),
			),
			array(
				'id'       => 'single-category-bg-hover-dark',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Single Post Category Background Hover', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
				'required' => array( 'dark-mode', '=', '1' ),
			),
			array(
				'id'       => 'button-bg-hover-dark',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Button Background Hover', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
				'required' => array( 'dark-mode', '=', '1' ),
			),

		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Privacy Notice', 'newsfy'),
		'id'               => 'privacy_notice_section',
		'desc'             => esc_html__('Privacy notice settings', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-bullhorn',
		'fields'           => array(
			array(
				'id'       => 'privacy-notice',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Privacy Notice', 'newsfy'),
				'subtitle'     => esc_html__('Show privacy notice popup.', 'newsfy'),
				'default'  => false,
			),
			array(
				'id'       => 'privacy-text',
				'type'     => 'textarea',
				'title'    => esc_html__('Privacy Notice Text', 'newsfy'),
				'subtitle' => esc_html__('Input your privacy or cookie notice text, HTML allowed.', 'newsfy'),
				'desc'     => '',
				'default'  => html_entity_decode( esc_html__( 'Our site uses cookies. By using this site, you agree to the <a href="#">Privacy Policy</a> and <a href="#">Terms of Use</a>.', 'newsfy' ) ),
				'required' => array( 'privacy-notice', '=', '1' ),
			),
			array(
				'id'       => 'privacy-btn-text',
				'type'     => 'text',
				'title'    => esc_html__('Button Text', 'newsfy'),
				'subtitle' => '',
				'default' => esc_html__('Accept', 'newsfy'),
				'required' => array( 'privacy-notice', '=', '1' ),
			),
			array(
				'id'       => 'privacy-position',
				'type'     => 'select',
				'title'    => esc_html__('Privacy Notice Position', 'newsfy'),
				'subtitle' => esc_html__('Select position for privacy notice bar.', 'newsfy'),
				'desc'     => '',
				'options'  => array(
					'bottom-left' => esc_html__('Bottom Left', 'newsfy'),
					'bottom-center' => esc_html__('Bottom Center', 'newsfy'),
				),
				'select2'  => array( 'allowClear' => false ),
				'default'  => 'bottom-left',
				'required' => array( 'privacy-notice', '=', '1' ),
			),
			array(
				'id'       => 'privacy-color',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Color', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
				'required' => array( 'privacy-notice', '=', '1' ),
			),
			array(
				'id'       => 'privacy-color-dark',
				'type'     => 'color',
				'transparent'     => false,
				'title'    => esc_html__('Color - Dark Mode', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'  => '',
				'validate' => 'color',
				'required' => array( 'privacy-notice', '=', '1' ),
			),
			array(
				'id'       => 'privacy-bg',
				'type'     => 'color_gradient',
				'transparent'     => false,
				'title'    => esc_html__('Background', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'        => array(
					'from'           => '',
					'to'             => '',
				),
				'validate' => 'color',
				'required' => array( 'privacy-notice', '=', '1' ),
			),
			array(
				'id'       => 'privacy-bg-dark',
				'type'     => 'color_gradient',
				'transparent'     => false,
				'title'    => esc_html__('Background - Dark Mode', 'newsfy'),
				'subtitle' => '',
				'desc'     => '',
				'default'        => array(
					'from'           => '',
					'to'             => '',
				),
				'validate' => 'color',
				'required' => array( 'privacy-notice', '=', '1' ),
			),

		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Breadcrumb', 'newsfy'),
		'id'               => 'breadcrumb_section',
		'desc'             => esc_html__('Breadcrumb Bar settings', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-bold',
		'fields'           => array(
			array(
				'id'       => 'breadcrumb',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Breadcrumb', 'newsfy'),
				'subtitle'     => esc_html__('Show breadcrumb bar.', 'newsfy'),
				'default'  => false,
			),
			array(
				'id'       => 'breadcrumb-schema',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Breadcrumb Schema', 'newsfy'),
				'subtitle'     => esc_html__('Output breadcrumb structure data.', 'newsfy'),
				'default'  => false,
				'required' => array( 'breadcrumb', '=', '1' ),
			),

		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Credentials', 'newsfy'),
		'id'               => 'credentials_section',
		'desc'             => esc_html__('Credentials settings', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-globe',
		'fields'           => array(
			array(
				'id'       => 'mailchimp-api-key',
				'type'     => 'text',
				'title'    => esc_html__('Mailchimp Api Key', 'newsfy'),
				'desc'     => sprintf(esc_html__('The API key for connecting with your Mailchimp account. %1$s Get your API key here. %2$s', 'newsfy'), '<a target="_blank" href="https://admin.mailchimp.com/account/api"><b>', '</b></a>'),
			),
			array(
				'id'       => 'mailchimp-double-opt-in',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Enable Mailchimp Double Opt In?', 'newsfy'),
			),
			array(
				'id'       => 'gtm-id',
				'type'     => 'text',
				'placeholder'     => 'GTM-XXXXXX',
				'title'    => esc_html__('Google Tag Manager Container ID', 'newsfy'),
				'desc'     => esc_html__('Formatted as GTM-XXXXXX. You can find your container ID in the Google Tag Manager interface.', 'newsfy'),
			),
			array(
				'id'       => 'gtag-id',
				'type'     => 'text',
				'placeholder'     => 'G-XXXXXXXXXX',
				'title'    => esc_html__('Google Analytics 4 Measurement ID', 'newsfy'),
				'desc'     => esc_html__('Formatted as G-XXXXXXXXXX. You can find this ID in the Google Analytics interface. If GTM is filled, this field will be skipped.', 'newsfy'),
			),

		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Performance', 'newsfy'),
		'id'               => 'performance_section',
		'desc'             => esc_html__('Performance settings', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-broom',
		'fields'           => array(
			array(
				'id'       => 'disable-elementor-google-font',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Disable Load Elementor Google Font', 'newsfy'),
				'desc'    => esc_html__('If you don\'t use google fonts from the elementor, enable this option to prevent loading unused google fonts.', 'newsfy'),
			),
			array(
				'id'       => 'disable-emojis',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Disable Emojis', 'newsfy'),
				'desc'    => esc_html__('If you don\'t use emojis, enable this option to disable emojis.', 'newsfy'),
			),
			array(
				'id'       => 'disable-woocommerce-assets-out-of-shop',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Disable Woocommerce Assets out Of Shop', 'newsfy'),
				'desc'    => esc_html__('By default woocommerce css/js load on entire site. Enable this option to load them just on woocommerce pages.', 'newsfy'),
			),
			array(
				'id'       => 'disable-gutenberg-assets',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Disable Gutenberg Assets Out of Posts', 'newsfy'),
				'desc'    => esc_html__('By default gutenberg css load on entire site. Enable this option to disable load them from homepage, category & tag archives and pages build with Elementor.', 'newsfy'),
			),
			array(
				'id'       => 'disable-bbpress-assets',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Disable bbpress Assets Out of Forum', 'newsfy'),
				'desc'    => esc_html__('Load bbpress assets just in bbpress pages.', 'newsfy'),
			),
			array(
				'id'       => 'move-jquery-footer',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Move JQuery to Footer', 'newsfy'),
				'desc'    => esc_html__('Move jQuery to the footer for logged-out users. Some plugins may have an issue with this movement.', 'newsfy'),
			),
			array(
				'id'       => 'disable-jquery-migrate',
				'type'     => 'switch',
				'on'     => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'    => esc_html__('Disable JQuery Migrate', 'newsfy'),
				'desc'    => esc_html__('Disable JQuery migrate for logged-out users.', 'newsfy'),
			),
			array(
				'id'      => 'disable-xmlrpc',
				'type'    => 'switch',
				'on'      => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'   => esc_html__('Disable XML-RPC + Pingback', 'newsfy'),
				'desc'    => esc_html__('Disable support for third-party application access.', 'newsfy'),
			),
			array(
				'id'      => 'disable-rsdlink',
				'type'    => 'switch',
				'on'      => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'   => esc_html__('Disable RSD', 'newsfy'),
				'desc'    => esc_html__('Disable the Really Simple Discovery (RSD) tag. If you edit your site from your browser then you do not need it.', 'newsfy'),
			),
			array(
				'id'      => 'disable-shortlink',
				'type'    => 'switch',
				'on'      => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'   => esc_html__('Disable Short Link', 'newsfy'),
				'desc'    => esc_html__('Disable the Short Link from the head.', 'newsfy'),
			),
			array(
				'id'      => 'disable-rssfeeds',
				'type'    => 'switch',
				'on'      => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'   => esc_html__('Disable RSS Feeds', 'newsfy'),
				'desc'    => esc_html__('Disable the RSS feed links and disable it.', 'newsfy'),
			),
			array(
				'id'      => 'disable-generator-tag',
				'type'    => 'switch',
				'on'      => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'   => esc_html__('Disable Generator Tag', 'newsfy'),
				'desc'    => esc_html__('Disable the generator tag.', 'newsfy'),
			),
			array(
				'id'      => 'disable-rest-api',
				'type'    => 'switch',
				'on'      => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'   => esc_html__('Disable REST API', 'newsfy'),
				'desc'    => esc_html__('Disable REST API for none logged in users. Some plugins need Rest API. If your plugins are not working correctly, disable this option.', 'newsfy'),
			),
			array(
				'id'      => 'disable-revisions',
				'type'    => 'switch',
				'on'      => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'   => esc_html__('Disable Revisions', 'newsfy'),
				'desc'    => esc_html__('Reduce your database size by not storing revisions of posts.', 'newsfy'),
			),
			array(
				'id'      => 'disable-oembed',
				'type'    => 'switch',
				'on'      => esc_html__('Enable', 'newsfy'),
				'off'     => esc_html__('Disable', 'newsfy'),
				'title'   => esc_html__('Disable Oembeds', 'newsfy'),
				'desc'    => esc_html__('Prevent other websites from embedding your site.', 'newsfy'),
			),

		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Custom Code', 'newsfy'),
		'id'               => 'custom_code_section',
		'desc'             => esc_html__('Customize your site with some custom code', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-css',
		'fields'           => array(
			array(
				'id'       => 'custom-css',
				'type'     => 'ace_editor',
				'title'    => esc_html__('Custom CSS', 'newsfy'),
				'mode'     => 'css',
			),
		)
	) );


	Redux::set_section( $opt_name, array(
		'title'            => esc_html__('Translate', 'newsfy'),
		'id'               => 'translate_section',
		'desc'             => esc_html__('Translate some frontend strings', 'newsfy'),
		'subsection'       => false,
		'icon'             => 'el el-flag',
		'fields'           => array(
			array(
				'id'       => 'translate-author',
				'type'     => 'text',
				'title'    => esc_html__('Author', 'newsfy'),
			),
			array(
				'id'       => 'translate-one-min-read',
				'type'     => 'text',
				'title'    => esc_html__('One Min Read', 'newsfy'),
			),
			array(
				'id'       => 'translate-min-read',
				'type'     => 'text',
				'title'    => esc_html__('Min Read', 'newsfy'),
			),
			array(
				'id'       => 'translate-views',
				'type'     => 'text',
				'title'    => esc_html__('Views', 'newsfy'),
			),
			array(
				'id'       => 'translate-comment',
				'type'     => 'text',
				'title'    => esc_html__('Comment', 'newsfy'),
			),
			array(
				'id'       => 'translate-comments',
				'type'     => 'text',
				'title'    => esc_html__('Comments', 'newsfy'),
			),
			array(
				'id'       => 'translate-browse',
				'type'     => 'text',
				'title'    => esc_html__('Browse', 'newsfy'),
			),
			array(
				'id'       => 'translate-browse-category',
				'type'     => 'text',
				'title'    => esc_html__('Browse Category', 'newsfy'),
			),
			array(
				'id'       => 'translate-browse-tag',
				'type'     => 'text',
				'title'    => esc_html__('Browse Tag', 'newsfy'),
			),
			array(
				'id'       => 'translate-search-for',
				'type'     => 'text',
				'title'    => esc_html__('Search Result for', 'newsfy'),
			),
			array(
				'id'       => 'translate-our-articles',
				'type'     => 'text',
				'title'    => esc_html__('Our Articles', 'newsfy'),
			),
			array(
				'id'       => 'translate-article',
				'type'     => 'text',
				'title'    => esc_html__('Article', 'newsfy'),
			),
			array(
				'id'       => 'translate-articles',
				'type'     => 'text',
				'title'    => esc_html__('Articles', 'newsfy'),
			),
			array(
				'id'       => 'translate-search-3dot',
				'type'     => 'text',
				'title'    => esc_html__('Search ...', 'newsfy'),
			),
			array(
				'id'       => 'translate-next',
				'type'     => 'text',
				'title'    => esc_html__('Next Post', 'newsfy'),
			),
			array(
				'id'       => 'translate-previous',
				'type'     => 'text',
				'title'    => esc_html__('Previous Post', 'newsfy'),
			),
			array(
				'id'       => 'translate-nothing-found',
				'type'     => 'text',
				'title'    => esc_html__('Nothing found!', 'newsfy'),
			),
			array(
				'id'       => 'translate-looks-like-nothing-found',
				'type'     => 'text',
				'title'    => esc_html__('It looks like nothing was found here!', 'newsfy'),
			),
			array(
				'id'       => 'translate-return-home',
				'type'     => 'text',
				'title'    => esc_html__('Return to Home Page', 'newsfy'),
			),
			array(
				'id'       => 'translate-tags',
				'type'     => 'text',
				'title'    => esc_html__('Tags:', 'newsfy'),
			),
			array(
				'id'       => 'translate-home',
				'type'     => 'text',
				'title'    => esc_html__('Home', 'newsfy'),
			),
			array(
				'id'       => 'translate-show-comments',
				'type'     => 'text',
				'title'    => esc_html__('Show Comments', 'newsfy'),
			),
			array(
				'id'       => 'translate-no-comment-be-the-first',
				'type'     => 'text',
				'title'    => esc_html__('No Comment! Be the first one.', 'newsfy'),
			),
			array(
				'id'       => 'translate-one-comment',
				'type'     => 'text',
				'title'    => esc_html__('One Comment', 'newsfy'),
			),
			array(
				'id'       => 'translate-name',
				'type'     => 'text',
				'title'    => esc_html__('Name', 'newsfy'),
			),
			array(
				'id'       => 'translate-email',
				'type'     => 'text',
				'title'    => esc_html__('Email', 'newsfy'),
			),
			array(
				'id'       => 'translate-website',
				'type'     => 'text',
				'title'    => esc_html__('Website', 'newsfy'),
			),
			array(
                'id'       => 'translate-sponsored-by',
                'type'     => 'text',
                'title'    => esc_html__('Sponsored By', 'newsfy'),
            ),
		)
	) );


}