Your IP : 216.73.216.95


Current Path : /var/test/www/ooareogundevinitiative/wp-content/themes/pain/redux-options/
Upload File :
Current File : /var/test/www/ooareogundevinitiative/wp-content/themes/pain/redux-options/options.php

<?php
    /**
		* For full documentation, please visit: http://docs.reduxframework.com/
		* For a more extensive sample-config file, you may look at:
		* https://github.com/reduxframework/redux-framework/blob/master/sample/sample-config.php
	*/
    if ( ! class_exists( 'Redux' ) ) {
        return;
	}
    // This is your option name where all the Redux data is stored.
    $opt_name = "jwstheme_options";
    /**
		* ---> SET ARGUMENTS
		* All the possible arguments for Redux.
		* For full documentation on arguments, please refer to: https://github.com/ReduxFramework/ReduxFramework/wiki/Arguments
	* */
    $theme = wp_get_theme(); // For use with some settings. Not necessary.
    $args = array(
	'opt_name' => $opt_name,
	'dev_mode' => FALSE,
	'use_cdn' => TRUE,
	'display_name' => $theme->get( 'Name' ),
	'display_version' => $theme->get( 'Version' ),
	'page_slug' => 'jwsthemes_options',
	'page_title' => __( 'Theme Options Panel', 'pain' ),
	'update_notice' => TRUE,
	'admin_bar' => TRUE,
	'menu_type' => 'submenu',
	'menu_title' => __( 'Theme Options', 'pain' ),
	'allow_sub_menu' => TRUE,
	'page_parent' => 'themes.php',
	// 'page_parent_post_type' => 'your_post_type',
	'customizer' => TRUE,
	'default_mark' => '*',
	'hints' => array(
	'icon' => 'el el-adjust-alt',
	'icon_position' => 'right',
	'icon_color' => 'lightgray',
	'icon_size' => 'normal',
	'tip_style' => array(
	'color' => 'light',
	),
	'tip_position' => array(
	'my' => 'top left',
	'at' => 'bottom right',
	),
	'tip_effect' => array(
	'show' => array(
	'duration' => '500',
	'event' => 'mouseover',
	),
	'hide' => array(
	'duration' => '500',
	'event' => 'mouseleave unfocus',
	),
	),
	),
	'output' => TRUE,
	'output_tag' => TRUE,
	'settings_api' => TRUE,
	'cdn_check_time' => '1440',
	'compiler' => TRUE,
	'page_permissions' => 'manage_options',
	'save_defaults' => TRUE,
	'show_import_export' => TRUE,
	'database' => 'options',
	'transient_time' => '3600',
	'network_sites' => TRUE,
    );
    // SOCIAL ICONS -> Setup custom links in the footer for quick links in your panel footer icons.
    $args['share_icons'][] = array(
	'url'   => 'https://www.facebook.com/jwsthemes',
	'title' => 'Like us on Facebook',
	'icon'  => 'el el-facebook'
    );
    $args['share_icons'][] = array(
	'url'   => 'https://twitter.com/jwsthemes',
	'title' => 'Follow us on Twitter',
	'icon'  => 'el el-twitter'
    );
    $args['footer_text'] = __( '<p>Thank you for using our theme. If you have any questions or issues. Please, open the topic to <a href="http://jwsuperthemes.com/forums" target="_blank">Community Forums.</p>', 'pain' );
    Redux::setArgs( $opt_name, $args );
    /*
		* ---> END ARGUMENTS
	*/
    /*
		* ---> START HELP TABS
	*/
    $tabs = array(
	array(
	'id'      => 'redux-help-tab-1',
	'title'   => __( 'Theme Information 1', 'pain' ),
	'content' => __( '<p>This is the tab content, HTML is allowed.</p>', 'pain' )
	),
	array(
	'id'      => 'redux-help-tab-2',
	'title'   => __( 'Theme Information 2', 'pain' ),
	'content' => __( '<p>This is the tab content, HTML is allowed.</p>', 'pain' )
	)
    );
    Redux::setHelpTab( $opt_name, $tabs );
    // Set the help sidebar
    $content = __( '<p>This is the sidebar content, HTML is allowed.</p>', 'pain' );
    Redux::setHelpSidebar( $opt_name, $content );
    /*
		* <--- END HELP TABS
	*/
    /*
		*
		* ---> START SECTIONS
		*
	*/
    $tabs = array(
	array(
	'id'      => 'redux-help-tab-1',
	'title'   => __( 'Theme Information 1', 'pain' ),
	'content' => __( '<p>This is the tab content, HTML is allowed.</p>', 'pain' )
	),
	array(
	'id'      => 'redux-help-tab-2',
	'title'   => __( 'Theme Information 2', 'pain' ),
	'content' => __( '<p>This is the tab content, HTML is allowed.</p>', 'pain' )
	)
    );
    Redux::setHelpTab( $opt_name, $tabs );
    // Set the help sidebar
    $content = __( '<p>This is the sidebar content, HTML is allowed.</p>', 'pain' );
    Redux::setHelpSidebar( $opt_name, $content );
    /*
		* <--- END HELP TABS
	*/
    /*
		*
		* ---> START SECTIONS
		*
	*/
    /*
        As of Redux 3.5+, there is an extensive API. This API can be used in a mix/match mode allowing for
	*/
    //lists page
                $lists_page = array();
                $args_page = array(
                    'sort_order' => 'asc',
                    'sort_column' => 'post_title',
                    'hierarchical' => 1,
                    'exclude' => '',
                    'include' => '',
                    'meta_key' => '',
                    'meta_value' => '',
                    'authors' => '',
                    'child_of' => 0,
                    'parent' => -1,
                    'exclude_tree' => '',
                    'number' => '',
                    'offset' => 0,
                    'post_type' => 'page',
                    'post_status' => 'publish'
                );
                $pages = get_pages( $args_page );

                foreach( $pages as $p ){
                    $lists_page[ $p->ID ] = esc_attr( $p->post_title );
                }
    // -> START General
    Redux::setSection( $opt_name, array(
	'title'  => __( 'General', 'pain' ),
	'desc'   => __( '', 'pain' ),
	'icon'   => 'el-icon-cogs',
	'fields' => array(
	array(
	'id'       => 'less_design',
	'type'     => 'switch',
	'title'    => __( 'Less Design', 'pain' ),
	'sujwitle' => __( 'Use the less design features.', 'pain' ),
	'default'  => false,
	),
	array(
	'id'       => 'body_layout',
	'type'     => 'button_set',
	'title'    => __( 'Layout', 'pain' ),
	'sujwitle' => __( 'Body layout with wide or boxed.', 'pain' ),
	'options'  => array(
	'wide' => 'Wide',
	'boxed' => 'Boxed'
	),
	'default'  => 'wide'
	),
	array(
	'id'       => 'body_background',
	'type'     => 'background',
	'title'    => __('Body Background', 'pain'),
	'sujwitle' => __('Body background with image, color, etc.', 'pain'),
	'output'      => array('body'),
	'default'  => array(
	'background-color' => '#ffffff',
	)
	),
	)
    ) );
    // -> START Color
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Color', 'pain' ),
	'id'     => 'color',
	'desc'   => __( '', 'pain' ),
	'icon'   => 'el el-brush',
	'fields' => array(
	array(
	'id'       => 'preset_color',
	'type'     => 'select',
	'title'    => __('Preset Color', 'pain'),
	'sujwitle' => __('', 'pain'),
	'options'  => array(
	'default' => 'Default',
	'preset1' => 'Preset 1',
	'preset2' => 'Preset 2',
	'preset3' => 'Preset 3',
	'preset4' => 'Preset 4',
	'preset5' => 'Preset 5'
	),
	'default'  => 'default',
	),
	array(
	'id'       => 'main_color',
	'type'     => 'color',
	'title'    => __('Main Color', 'pain'),
	'sujwitle' => __('Controls several items, ex: link hovers, highlights, and more. (default: #68b20d).', 'pain'),
	'default'  => '#68b20d',
	'validate' => 'color',
	'required' => array('preset_color','=','default')
	),
	array(
	'id'       => 'secondary_color',
	'type'     => 'color',
	'title'    => __('Secondary Color', 'pain'),
	'sujwitle' => __('Controls several items, ex: link hovers, highlights, and more. (default: #68b20d).', 'pain'),
	'default'  => '#68b20d',
	'validate' => 'color',
	'required' => array('preset_color','=','default')
	),
	array(
	'id'       => 'main_color_preset1',
	'type'     => 'color',
	'title'    => __('Main Color', 'pain'),
	'sujwitle' => __('Controls several items, ex: link hovers, highlights, and more. (default: #ff8c00).', 'pain'),
	'default'  => '#ff8c00',
	'validate' => 'color',
	'required' => array('preset_color','=','preset1')
	),
	array(
	'id'       => 'secondary_color_preset1',
	'type'     => 'color',
	'title'    => __('Secondary Color', 'pain'),
	'sujwitle' => __('Controls several items, ex: link hovers, highlights, and more. (default: #556b2f).', 'pain'),
	'default'  => '#556b2f',
	'validate' => 'color',
	'required' => array('preset_color','=','preset1')
	),
	array(
	'id'       => 'main_color_preset2',
	'type'     => 'color',
	'title'    => __('Main Color', 'pain'),
	'sujwitle' => __('Controls several items, ex: link hovers, highlights, and more. (default: #8b4513).', 'pain'),
	'default'  => '#8b4513',
	'validate' => 'color',
	'required' => array('preset_color','=','preset2')
	),
	array(
	'id'       => 'secondary_color_preset2',
	'type'     => 'color',
	'title'    => __('Secondary Color', 'pain'),
	'sujwitle' => __('Controls several items, ex: link hovers, highlights, and more. (default: #b8860b).', 'pain'),
	'default'  => '#b8860b',
	'validate' => 'color',
	'required' => array('preset_color','=','preset2')
	),
	array(
	'id'       => 'main_color_preset3',
	'type'     => 'color',
	'title'    => __('Main Color', 'pain'),
	'sujwitle' => __('Controls several items, ex: link hovers, highlights, and more. (default: #dd3333).', 'pain'),
	'default'  => '#dd3333',
	'validate' => 'color',
	'required' => array('preset_color','=','preset3')
	),
	array(
	'id'       => 'secondary_color_preset3',
	'type'     => 'color',
	'title'    => __('Secondary Color', 'pain'),
	'sujwitle' => __('Controls several items, ex: link hovers, highlights, and more. (default: #e07e33).', 'pain'),
	'default'  => '#e07e33',
	'validate' => 'color',
	'required' => array('preset_color','=','preset3')
	),
	array(
	'id'       => 'main_color_preset4',
	'type'     => 'color',
	'title'    => __('Main Color', 'pain'),
	'sujwitle' => __('Controls several items, ex: link hovers, highlights, and more. (default: #b77a10).', 'pain'),
	'default'  => '#b77a10',
	'validate' => 'color',
	'required' => array('preset_color','=','preset4')
	),
	array(
	'id'       => 'secondary_color_preset4',
	'type'     => 'color',
	'title'    => __('Secondary Color', 'pain'),
	'sujwitle' => __('Controls several items, ex: link hovers, highlights, and more. (default: #3a98af).', 'pain'),
	'default'  => '#3a98af',
	'validate' => 'color',
	'required' => array('preset_color','=','preset4')
	),
	array(
	'id'       => 'main_color_preset5',
	'type'     => 'color',
	'title'    => __('Main Color', 'pain'),
	'sujwitle' => __('Controls several items, ex: link hovers, highlights, and more. (default: #01b289).', 'pain'),
	'default'  => '#68b20d',
	'validate' => 'color',
	'required' => array('preset_color','=','preset5')
	),
	)
    ) );
    // -> START Typography
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Typography', 'pain' ),
	'id'     => 'typography',
	'desc'   => __( '', 'pain' ),
	'icon'   => 'el el-font',
	'fields' => array(
	array(
	'id'          => 'body_font',
	'type'        => 'typography', 
	'title'       => __('Body Font Options', 'pain'),
	'google'      => true, 
	'font-backup' => true,
	'letter-spacing' => true,
	'output'      => array('body'),
	'units'       =>'px',
	'sujwitle'    => __('Typography option with each property can be called individually.', 'pain'),
	'default'     => array(
	'color'       => '#555555', 
	'font-style'  => '400', 
	'font-family' => 'Arimo', 
	'google'      => true,
	'font-size'   => '15px', 
	'line-height' => '28px',
	'letter-spacing' => '0.48px'
	),
	),
	array(
	'id'          => 'h1_font',
	'type'        => 'typography', 
	'title'       => __('H1 Font Options', 'pain'),
	'google'      => true, 
	'font-backup' => true,
	'letter-spacing' => true,
	'output'      => array('body h1, .jw-font-size-1'),
	'units'       =>'px',
	'sujwitle'    => __('Typography option with each property can be called individually.', 'pain'),
	'default'     => array(
	'color'       => '#282828', 
	'font-style'  => '700', 
	'font-family' => 'Poppins', 
	'google'      => true,
	'font-size'   => '42px', 
	'line-height' => '60px',
	'letter-spacing' => '0.16px'
	),
	),
	array(
	'id'          => 'h2_font',
	'type'        => 'typography', 
	'title'       => __('H2 Font Options', 'pain'),
	'google'      => true, 
	'font-backup' => true,
	'letter-spacing' => true,
	'output'      => array('body h2, .jw-font-size-2'),
	'units'       =>'px',
	'sujwitle'    => __('Typography option with each property can be called individually.', 'pain'),
	'default'     => array(
	'color'       => '#282828', 
	'font-style'  => '700', 
	'font-family' => 'Poppins', 
	'google'      => true,
	'font-size'   => '36px', 
	'line-height' => '42px',
	'letter-spacing' => '0.16px'
	),
	),
	array(
	'id'          => 'tb_h3_font',
	'type'        => 'typography', 
	'title'       => __('H3 Font Options', 'pain'),
	'google'      => true, 
	'font-backup' => true,
	'letter-spacing' => true,
	'output'      => array('body h3, .jw-font-size-3'),
	'units'       =>'px',
	'sujwitle'    => __('Typography option with each property can be called individually.', 'pain'),
	'default'     => array(
	'color'       => '#282828', 
	'font-style'  => '700', 
	'font-family' => 'Poppins', 
	'google'      => true,
	'font-size'   => '24px', 
	'line-height' => '36px',
	'letter-spacing' => '0.16px'
	),
	),
	array(
	'id'          => 'h4_font',
	'type'        => 'typography', 
	'title'       => __('H4 Font Options', 'pain'),
	'google'      => true, 
	'font-backup' => true,
	'letter-spacing' => true,
	'output'      => array('body h4, .jw-font-size-4'),
	'units'       =>'px',
	'sujwitle'    => __('Typography option with each property can be called individually.', 'pain'),
	'default'     => array(
	'color'       => '#282828', 
	'font-style'  => '700', 
	'font-family' => 'Poppins', 
	'google'      => true,
	'font-size'   => '18px', 
	'line-height' => '24px',
	'letter-spacing' => '0.16px'
	),
	),
	array(
	'id'          => 'h5_font',
	'type'        => 'typography', 
	'title'       => __('H5 Font Options', 'pain'),
	'google'      => true, 
	'font-backup' => true,
	'letter-spacing' => true,
	'output'      => array('body h5, .jw-font-size-5'),
	'units'       =>'px',
	'sujwitle'    => __('Typography option with each property can be called individually.', 'pain'),
	'default'     => array(
	'color'       => '#282828', 
	'font-style'  => '700', 
	'font-family' => 'Poppins', 
	'google'      => true,
	'font-size'   => '16px', 
	'line-height' => '18px',
	'letter-spacing' => '0.16px'
	),
	),
	array(
	'id'          => 'h6_font',
	'type'        => 'typography', 
	'title'       => __('H6 Font Options', 'pain'),
	'google'      => true, 
	'font-backup' => true,
	'letter-spacing' => true,
	'output'      => array('body h6, .jw-font-size-6'),
	'units'       =>'px',
	'sujwitle'    => __('Typography option with each property can be called individually.', 'pain'),
	'default'     => array(
	'color'       => '#282828', 
	'font-style'  => '700', 
	'font-family' => 'Poppins', 
	'google'      => true,
	'font-size'   => '14px', 
	'line-height' => '16px',
	'letter-spacing' => '0.16px'
	),
	),
	)
    ) );
    // -> START Logo
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Logo', 'pain' ),
	'id'     => 'logo',
	'desc'   => __( '', 'pain' ),
	'icon'   => 'el el-icon-viadeo',
	'fields' => array(
    array(
	'id'       => 'jws_theme_favicon_image',
	'type'     => 'media',
	'url'      => true,
	'title'    => __('Favicon Image', 'pain'),
	'sujwitle' => __('Select an image file for your favicon.', 'pain'),
	'default'  => array(
    'url'	=> URI_PATH.'/favicon.ico'
	),
	),
	array(
	'id'       => 'tb_logo_image_hv1',
	'type'     => 'media',
	'url'      => true,
	'title'    => __('Logo Image Header 1', 'pain'),
	'sujwitle' => __('Select an image file for your logo.', 'pain'),
	'default'  => array(
	'url'   => URI_PATH.'/assets/images/logo-dark.png'
	),
	),
	array(
	'id'       => 'tb_logo_image_hv2',
	'type'     => 'media',
	'url'      => true,
	'title'    => __('Logo Image Header 2', 'pain'),
	'sujwitle' => __('Select an image file for your logo.', 'pain'),
	'default'  => array(
	'url'   => URI_PATH.'/assets/images/logo-white.png'
	),
	),
    array(
	'id'       => 'tb_logo_image_hv3',
	'type'     => 'media',
	'url'      => true,
	'title'    => __('Logo Image Header 3', 'pain'),
	'sujwitle' => __('Select an image file for your logo.', 'pain'),
	'default'  => array(
	'url'   => URI_PATH.'/assets/images/logo-dark.png'
	),
	),
	array(
	'id'       => 'tb_logo_height',
	'type'     => 'text',
	'title'    => __('Logo Height', 'pain'),
	'sujwitle' => __('Enter logo height (Ex: 52px).', 'pain'),
	'default'  => ''
	),
	)
    ) );
    // -> START Header
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Header', 'pain' ),
	'id'     => 'header',
	'desc'   => __( '', 'pain' ),
	'icon'   => 'el el-icon-file-edit',
	'fields' => array(
	array( 
	'id'       => 'tb_header_layout',
	'type'     => 'image_select',
	'title'    => __('Header Layout', 'pain'),
	'sujwitle' => __('Select a header layout.', 'pain'),
	'options' => jw_LoadHeaderLayoutOpts(),
	'default' => 'header-v1'
	),
	array(
	'id'       => 'tb_sticky_menu',
	'type'     => 'switch',
	'title'    => __( 'Sticky Menu', 'pain' ),
	'sujwitle' => __( 'Enable/disable sticky menu', 'pain' ),
	'default'  => true,
	),
	array(
	'id'       => 'tb_show_header_top',
	'type'     => 'switch',
	'title'    => __( 'Show Header Top', 'pain' ),
	'sujwitle' => __( 'Display header top', 'pain' ),
	'default'  => true,
	),
	array(
	'id'       => 'tb_show_button_donate',
	'type'     => 'switch',
	'title'    => __( 'Show Button Donate', 'pain' ),
	'sujwitle' => __( 'Display button donate on header top', 'pain' ),
	'default'  => true,
	'required' => array('tb_show_header_top','=', '1'),
	),
     array(
            'id' => 'select-form-give',
            'type' => 'select',
            'data' => 'posts',
            'args' => array('post_type' => array('give_forms'), 'posts_per_page' => -1),
            'title' => esc_html__('Select form give ', 'pain'),
            'desc' => esc_html__('Select form give from: ', 'pain') . '<a href="' . esc_url(admin_url('/edit.php?post_type=give_forms')) . '" target="_blank">Donations</a>',
        ),
	),
    ) );
    // -> START Footer
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Footer', 'pain' ),
	'id'     => 'footer',
	'desc'   => __( '', 'pain' ),
	'icon'   => 'el el-icon-file-edit',
	'fields' => array(
	array( 
	'id'       => 'tb_footer_layout',
	'type'     => 'image_select',
	'title'    => __('Footer Layout', 'pain'),
	'sujwitle' => __('Footer layout.', 'pain'),
	'options' => jwsthemes_LoadFooterLayoutOpts(),
	'default' => 'footer-v1'
	),
	array(
	'id' => 'tb_footer_top_margin',
	'title' => __('Footer Top Margin', 'pain'),
	'sujwitle' => __('Please, enter margin.', 'pain'),
	'type' => 'spacing',
	'mode' => 'margin',
	'units' => array('px'),
	'output' => array('.jw-footer .jw-footer-top'),
	'default' => array(
	'margin-top'     => '0px', 
	'margin-right'   => '0px', 
	'margin-bottom'  => '0px', 
	'margin-left'    => '0px',
	'units'          => 'px', 
	)
	),
	array(
	'id' => 'tb_footer_top_padding',
	'title' => __('Footer Top Padding', 'pain'),
	'sujwitle' => __('Please, enter padding.', 'pain'),
	'type' => 'spacing',
	'units' => array('px'),
	'output' => array('.jw-footer .jw-footer-top'),
	'default' => array(
	'padding-top'     => '120px', 
	'padding-right'   => '0px', 
	'padding-bottom'  => '90px', 
	'padding-left'    => '0px',
	'units'          => 'px', 
	)
	),
	array(
	'id'       => 'tb_footer_top_backgroud',
	'type'     => 'background',
	'title'    => __('Footer Top Background', 'pain'),
	'sujwitle' => __('background with image, color, etc.', 'pain'),
	'output'    => array('.jw-footer .jw-footer-top'), 
	'default'  => array(
	'background-color' => '#222222',
	'background-repeat' => 'no-repeat',
	'background-position' => 'center center',
	'background-size' => 'cover',
	'background-image' => URI_PATH.'/assets/images/bg-footer.jpg',
	)
	),
	array(
	'id' => 'tb_footer_bottom_padding',
	'title' => __('Footer Bottom Padding', 'pain'),
	'sujwitle' => __('Please, enter padding.', 'pain'),
	'type' => 'spacing',
	'units' => array('px'),
	'output' => array('.jw-footer .jw-footer-bottom'),
	'default' => array(
	'padding-top'     => '30px', 
	'padding-right'   => '0px', 
	'padding-bottom'  => '30px', 
	'padding-left'    => '0px',
	'units'          => 'px', 
	)
	),
	array(
	'id'       => 'tb_footer_bottom_backgroud',
	'type'     => 'background',
	'title'    => __('Footer Bottom Background', 'pain'),
	'sujwitle' => __('background with image, color, etc.', 'pain'),
	'output'    => array('.jw-footer .jw-footer-bottom'), 
	'default'  => array(
	'background-color' => '#0d0d0d',
	)
	),
	)
    ) );
    // -> START Main Menu
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Main Menu', 'pain' ),
	'id'     => 'main_menu',
	'desc'   => __( '', 'pain' ),
	'icon'   => 'el el-icon-list',
	'fields' => array(
	)
    ) );
    // -> START Main Menu 1
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Main Menu 1', 'pain' ),
	'id'     => 'main_menu1',
	'desc'   => __( '', 'pain' ),
	'subsection' => true,
	'fields' => array(
	array(
	'id'          => 'menu_first_level',
	'type'        => 'typography', 
	'title'       => __('First Level Font Options', 'pain'),
	'google'      => true, 
	'font-backup' => true,
	'letter-spacing' => true,
	'output'      => array('.jw-header-v1 .jw-menu-list > ul > li > a, .jw-header-v2 .jw-menu-list > ul > li > a'),
	'units'       =>'px',
	'sujwitle'    => __('Typography option with each property can be called individually.', 'pain'),
	'default'     => array(
	'color'       => '#292929', 
	'font-style'  => '500', 
	'font-family' => 'Poppins', 
	'google'      => true,
	'font-size'   => '13px', 
	'line-height' => '105px',
	'letter-spacing' => '0.16px'
	),
	),
	array(
	'id'          => 'menu_sub_level',
	'type'        => 'typography', 
	'title'       => __('Sub Level Font Options', 'pain'),
	'google'      => true, 
	'font-backup' => true,
	'letter-spacing' => true,
	'output'      => array('.jw-header-v1 .jw-menu-list > ul > li.menu-item-has-children > ul > li  a, .jw-header-v2 .jw-menu-list > ul > li.menu-item-has-children > ul > li  a'),
	'units'       =>'px',
	'sujwitle'    => __('Typography option with each property can be called individually.', 'pain'),
	'default'     => array(
	'color'       => '#ffffff', 
	'font-style'  => '400', 
	'font-family' => 'Poppins', 
	'google'      => true,
	'font-size'   => '13px', 
	'line-height' => '28px',
	'letter-spacing' => '0.16px'
	),
	),
	)
    ) );
    // -> START Main Menu 2
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Main Menu 2', 'pain' ),
	'id'     => 'main_menu2',
	'desc'   => __( '', 'pain' ),
	'subsection' => true,
	'fields' => array(
	array(
	'id'          => 'menu2_first_level',
	'type'        => 'typography', 
	'title'       => __('First Level Font Options', 'pain'),
	'google'      => true, 
	'font-backup' => true,
	'letter-spacing' => true,
	'output'      => array('.jw-header-v3 .jw-menu-list > ul > li > a'),
	'units'       =>'px',
	'sujwitle'    => __('Typography option with each property can be called individually.', 'pain'),
	'default'     => array(
	'color'       => '#292929', 
	'font-style'  => '500', 
	'font-family' => 'Poppins', 
	'google'      => true,
	'font-size'   => '13px', 
	'line-height' => '105px',
	'letter-spacing' => '0.64px'
	),
	),
	array(
	'id'          => 'menu2_sub_level',
	'type'        => 'typography', 
	'title'       => __('Sub Level Font Options', 'pain'),
	'google'      => true, 
	'font-backup' => true,
	'letter-spacing' => true,
	'output'      => array('.jw-header-v3 .jw-menu-list > ul > li.menu-item-has-children > ul > li  a'),
	'units'       =>'px',
	'sujwitle'    => __('Typography option with each property can be called individually.', 'pain'),
	'default'     => array(
	'color'       => '#ffffff', 
	'font-style'  => '400', 
	'font-family' => 'Poppins', 
	'google'      => true,
	'font-size'   => '13px', 
	'line-height' => '28px',
	'letter-spacing' => '0.48px'
	),
	),
	)
    ) );
    // -> START Title Bar
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Title Bar', 'pain' ),
	'id'     => 'title_bar',
	'desc'   => __( '', 'pain' ),
	'icon'   => 'el el-icon-file-edit',
	'fields' => array(
	array(
	'id'             => 'title_bar_margin',
	'type'           => 'spacing',
	'output'         => array('.jw-title-bar-wrap, .jw-page-title-shop'),
	'mode'           => 'margin',
	'units'          => array('em', 'px'),
	'title'    => __('Margin', 'pain'),
	'sujwitle' => __('Please, enter margin of title bar.', 'pain'),
	'default'            => array(
	'margin-top'     => '0px', 
	'margin-right'   => '0px', 
	'margin-bottom'  => '120px', 
	'margin-left'    => '0px',
	'units'          => 'px', 
	)
	),
	array(
	'id'             => 'title_bar_padding',
	'type'           => 'spacing',
	'output'         => array('.jw-title-bar-wrap .jw-title-bar, .jw-page-title-shop'),
	'mode'           => 'padding',
	'units'          => array('em', 'px'),
	'title'    => __('Padding', 'pain'),
	'sujwitle' => __('Please, enter padding of title bar.', 'pain'),
	'default'            => array(
	'padding-top'     => '75px', 
	'padding-right'   => '0px', 
	'padding-bottom'  => '75px', 
	'padding-left'    => '0px',
	'units'          => 'px', 
	)
	),
	array(
	'id'       => 'tb_title_bar_bg',
	'type'     => 'background',
	'title'    => __('Background', 'pain'),
	'sujwitle' => __('background with image, color, etc.', 'pain'),
	'output'    => array('.jw-title-bar-wrap, .jw-page-title-shop'), 
	'default'  => array(
	'background-color' => '#222222',
	'background-repeat' => 'no-repeat',
	'background-position' => 'center center',
	'background-size' => 'cover',
	'background-image' => URI_PATH.'/assets/images/bg-titlebar.jpg',
	)
	),
	array(
	'id'       => 'title_bar_heading_color',
	'type'     => 'color',
	'title'    => __('Title Bar Heading Color', 'pain'),
	'sujwitle' => __('Controls the headings color of title bar. (default: #ffffff).', 'pain'),
	'output'    => array('.jw-title-bar-wrap .jw-title-bar h2, .jw-title-bar-wrap .jw-title-bar h6, .woocommerce .jw-page-title-shop h2'),
	'default'  => '#ffffff',
	'validate' => 'color',
	),
	array(
	'id'       => 'title_bar_link_color',
	'type'     => 'link_color',
	'title'    => __('Title Bar Link Color', 'pain'),
	'sujwitle' => __('Controls the links color of title bar. (default: #ffffff).', 'pain'),
	'output'    => array('.jw-title-bar-wrap .jw-title-bar .jw-path a, .woocommerce .jw-page-title-shop a'),
	'default'  => array(
	'regular'  => '#ffffff',
	'hover'    => '#000000',
	'active'   => '#000000',
	'visited'  => '#000000',
	)
	),
	array(
	'id'       => 'title_bar_text_color',
	'type'     => 'color',
	'title'    => __('Title Bar Text Color', 'pain'),
	'sujwitle' => __('Controls the text color of title bar. (default: #ffffff).', 'pain'),
	'output'    => array('.jw-title-bar-wrap .jw-title-bar , .woocommerce .jw-page-title-shop nav'),
	'default'  => '#ffffff',
	'validate' => 'color',
	),
	array(
	'id'       => 'title_bar_sujwext',
	'type'     => 'text',
	'title'    => __('Sub Text', 'pain'),
	'sujwitle' => __('Please, Enter sub text of title bar.', 'pain'),
	'default'  => ''
	),
	array(
	'id'       => 'page_breadcrumb_delimiter',
	'type'     => 'text',
	'title'    => __('Delimiter', 'pain'),
	'sujwitle' => __('Please, Enter Delimiter of page breadcrumb in title bar.', 'pain'),
	'default'  => '/'
	)
	)
    ) );
    // -> START 404 Page
    Redux::setSection( $opt_name, array(
                    'title'  => __( '404 Page', 'pain' ),
                    'desc'   => __( '', 'pain' ),
                    'icon'   => 'el el-error',
                    'fields' => array(
                        array(
                            'id'       => 'jws_theme_error404_page_id',
                            'type'     => 'select',
                            'title'    => __('Page 404 Template', 'pain'),
                            'sujwitle' => __('Select 404 page.', 'pain'),
                            'options'  => $lists_page
                        ),
                        array(
                            'id'       => 'jws_theme_error404_display_header',
                            'type'     => 'switch',
                            'title'    => __( 'Display Header', 'pain' ),
                            'sujwitle' => __( 'Display header.', 'pain' ),
                            'default'  => false,
                        ),
                        array(
                            'id'       => 'jws_theme_error404_display_footer',
                            'type'     => 'switch',
                            'title'    => __( 'Display Footer', 'pain' ),
                            'sujwitle' => __( 'Display Footer.', 'pain' ),
                            'default'  => false,
                        ),
                        array(
                            'id'       => 'jws_theme_error404_bg',
                            'type'     => 'background',
                            'title'    => __('404 Page Background', 'pain'),
                            'sujwitle' => __('404 page background with image, color, etc.', 'pain'),
                            'default'  => array(
                                'background-image' => URI_PATH.'/assets/images/404-page/background.jpg',
                            ),
                            'output' => array('.jw-error404-wrap'),
                        )
                        
                    )
                    
                ));
    // -> START Blog Post
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Blog Post', 'pain' ),
	'id'     => 'blog_post',
	'desc'   => __( '', 'pain' ),
	'fields' => array(
	array( 
	'id'       => 'tb_blog_layout',
	'type'     => 'image_select',
	'title'    => __('Select Layout', 'pain'),
	'sujwitle' => __('Select layout of blog.', 'pain'),
	'options'  => array(
	'2cl'   => array(
	'alt'   => '2cl',
	'img'   => URI_PATH_ADMIN.'/assets/images/2cl.png'
	),
	'2cr'   => array(
	'alt'   => '2cr',
	'img'   => URI_PATH_ADMIN.'/assets/images/2cr.png'
	)
	),
	'default' => '2cr'
	),
	array(
	'id'       => 'tb_blog_left_sidebar_col',
	'type'     => 'text',
	'title'    => __('Sidebar Left Column', 'pain'),
	'sujwitle' => __('Please, Enter class bootstrap and extra class. Ex: col-xs-12 col-sm-6 col-md-3 col-lg-3 el-class.', 'pain'),
	'default'  => 'col-xs-12 col-sm-12 col-md-3 col-lg-3',
	'required' => array('tb_blog_layout','=', '2cl')
	),
	array(
	'id'       => 'tb_blog_content_col',
	'type'     => 'text',
	'title'    => __('Content Column', 'pain'),
	'sujwitle' => __('Please, Enter class bootstrap and extra class. Ex: col-xs-12 col-sm-6 col-md-3 col-lg-3 el-class.', 'pain'),
	'default'  => 'col-xs-12 col-sm-12 col-md-9 col-lg-9'
	),
	array(
	'id'       => 'tb_blog_right_siedebar_col',
	'type'     => 'text',
	'title'    => __('Sidebar Right Column', 'pain'),
	'sujwitle' => __('Please, Enter class bootstrap and extra class. Ex: col-xs-12 col-sm-6 col-md-3 col-lg-3 el-class.', 'pain'),
	'default'  => 'col-xs-12 col-sm-12 col-md-3 col-lg-3',
	'required' => array('tb_blog_layout','=', '2cr')
	),
	array(
	'id'       => 'tb_blog_post_readmore_text',
	'type'     => 'text',
	'title'    => __( 'Read More Text', 'pain' ),
	'sujwitle' => __( 'Enter text of label button read more in blog.', 'pain' ),
	'default'  => 'VIEW DETAIL',
	),
	)
    ) );
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Single Post', 'pain' ),
	'id'     => 'single_post',
	'desc'   => __( '', 'pain' ),
	'subsection' => true,
	'fields' => array(
	array(
	'id'       => 'tb_single_blog_template',
	'type'     => 'select',
	'title'    => __('Select Template', 'pain'),
	'sujwitle' => __('', 'pain'),
	'options'  => array(
	'blog' => 'Default',
	'blog2' => 'Template 2',
	),
	'default'  => 'blog',
	),
	array( 
	'id'       => 'tb_post_layout',
	'type'     => 'image_select',
	'title'    => __('Select Layout', 'pain'),
	'sujwitle' => __('Select a layout of single blog.', 'pain'),
	'options'  => array(
	'2cl'   => array(
	'alt'   => '2cl',
	'img'   => URI_PATH_ADMIN.'/assets/images/2cl.png'
	),
	'2cr'   => array(
	'alt'   => '2cr',
	'img'   => URI_PATH_ADMIN.'/assets/images/2cr.png'
	),
          '1cl'	=> array(
								'alt'   => '1cl',
								'img'   => URI_PATH_ADMIN.'/assets/images/1col.png'
							)     
	),
	'default' => '1cl'
	),
	array(
	'id'       => 'tb_post_left_sidebar_col',
	'type'     => 'text',
	'title'    => __('Left Sidebar Column', 'pain'),
	'sujwitle' => __('Please, enter class bootstrap and extra class. Ex: col-xs-12 col-sm-6 col-md-3 col-lg-3 el-class.', 'pain'),
	'default'  => 'col-xs-12 col-sm-12 col-md-3 col-lg-3',
	'required' => array('tb_post_layout','=', '2cl')
	),
	array(
	'id'       => 'tb_post_content_col',
	'type'     => 'text',
	'title'    => __('Content Column', 'pain'),
	'sujwitle' => __('Please, enter class bootstrap and extra class. Ex: col-xs-12 col-sm-6 col-md-3 col-lg-3 el-class.', 'pain'),
	'default'  => 'col-xs-12 col-sm-9 col-md-9 col-lg-9',
	),
	array(
	'id'       => 'tb_post_right_siedebar_col',
	'type'     => 'text',
	'title'    => __('Right Sidebar Column', 'pain'),
	'sujwitle' => __('Please, Enter class bootstrap and extra class. Ex: col-xs-12 col-sm-6 col-md-3 col-lg-3 el-class.', 'pain'),
	'default'  => 'col-xs-12 col-sm-12 col-md-3 col-lg-3',
	'required' => array('tb_blog_layout','=', '2cr')
	),
	array( 
	'id'       => 'tb_post_show_post_nav',
	'type'     => 'switch',
	'title'    => __( 'Show Navigation', 'pain' ),
	'sujwitle' => __( 'Show or not post navigation on your single blog.', 'pain' ),
	'default'  => true,
	),
	array(
	'id'       => 'tb_post_show_post_author',
	'type'     => 'switch',
	'title'    => __( 'Show Author', 'pain' ),
	'sujwitle' => __( 'Show or not post author on your single blog.', 'pain' ),
	'default'  => true,
	),
	array(
	'id'       => 'tb_post_show_post_comment',
	'type'     => 'switch',
	'title'    => __( 'Show Comment', 'pain' ),
	'sujwitle' => __( 'Show or not post comment on your single blog.', 'pain' ),
	'default'  => true,
	),
	)
    ) );
    // -> START Page
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Page', 'pain' ),
	'id'     => 'page',
	'desc'   => __( '', 'pain' ),
	'icon'   => 'el el-pencil',
	'fields' => array(
	array(
	'id'       => 'page_comment',
	'type'     => 'switch',
	'title'    => __( 'Show Page Comment', 'pain' ),
	'sujwitle' => __( 'Show or not page comment on your page.', 'pain' ),
	'default'  => true,
	)
	)
    ) );
    // -> START Custom CSS
    Redux::setSection( $opt_name, array(
	'title'  => __( 'Custom CSS', 'pain' ),
	'id'     => 'custom_css',
	'desc'   => __( '', 'pain' ),
	'icon'   => 'el el-icon-css',
	'fields' => array(
	array(
	'id'       => 'custom_css_code',
	'type'     => 'ace_editor',
	'title'    => __('Custom CSS Code', 'pain'),
	'sujwitle' => __('Quickly add some CSS to your theme by adding it to this block..', 'pain'),
	'mode'     => 'css',
	'theme'    => 'monokai',
	'default'  => ''
	)
	)
    ) );
    /**
		* This is a test function that will let you see when the compiler hook occurs.
		* It only runs if a field    set with compiler=>true is changed.
	* */
    if ( ! function_exists( 'compiler_action' ) ) {
        function compiler_action( $options, $css, $changed_values ) {
            echo '<h1>The compiler hook has run!</h1>';
            echo "<pre>";
            print_r( $changed_values ); // Values that have changed since the last save
            echo "</pre>";           
		}
	}
    /**
		* Custom function for the callback validation referenced above
	* */
    if ( ! function_exists( 'redux_validate_callback_function' ) ) {
        function redux_validate_callback_function( $field, $value, $existing_value ) {
            $error   = false;
            $warning = false;
            //do your validation
            if ( $value == 1 ) {
                $error = true;
                $value = $existing_value;
				} elseif ( $value == 2 ) {
                $warning = true;
                $value   = $existing_value;
			}
            $return['value'] = $value;
            if ( $error == true ) {
                $return['error'] = $field;
                $field['msg']    = 'your custom error message';
			}
            if ( $warning == true ) {
                $return['warning'] = $field;
                $field['msg']      = 'your custom warning message';
			}
            return $return;
		}
	}
    /**
		* Custom function for the callback referenced above
	*/
    if ( ! function_exists( 'redux_my_custom_field' ) ) {
        function redux_my_custom_field( $field, $value ) {
            print_r( $field );
            echo '<br/>';
            print_r( $value );
		}
	}
    /**
		* Custom function for filtering the sections array. Good for child themes to override or add to the sections.
		* Simply include this function in the child themes functions.php file.
		* NOTE: the defined constants for URLs, and directories will NOT be available at this point in a child theme,
		* so you must use get_template_directory_uri() if you want to use any of the built in icons
	* */
    if ( ! function_exists( 'dynamic_section' ) ) {
        function dynamic_section( $sections ) {
            //$sections = array();
            $sections[] = array(
			'title'  => __( 'Section via hook', 'pain' ),
			'desc'   => __( '<p class="description">This is a section created by adding a filter to the sections array. Can be used by child themes to add/remove sections from the options.</p>', 'pain' ),
			'icon'   => 'el el-paper-clip',
			// Leave this as a blank section, no options just some intro text set above.
			'fields' => array()
            );
            return $sections;
		}
	}
    /**
		* Filter hook for filtering the args. Good for child themes to override or add to the args array. Can also be used in other functions.
	* */
    if ( ! function_exists( 'change_arguments' ) ) {
        function change_arguments( $args ) {
            //$args['dev_mode'] = true;
            return $args;
		}
	}
    /**
		* Filter hook for filtering the default value of any given field. Very useful in development mode.
	* */
    if ( ! function_exists( 'change_defaults' ) ) {
        function change_defaults( $defaults ) {
            $defaults['str_replace'] = 'Testing filter hook!';
            return $defaults;
		}
	}