Current File : /home/getxxhzo/tinyrnd.com/wp-content/themes/flyweb/inc/theme-options.php
<?php
if (!class_exists('ReduxFramework')) {
    return;
}
if (class_exists('ReduxFrameworkPlugin')) {
    remove_action('admin_notices', array(ReduxFrameworkPlugin::instance(), 'admin_notices'));
}

$opt_name = flyweb_get_opt_name();
$theme = wp_get_theme();

$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'            => 'menu',
    //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 Options', 'flyweb'),
    'page_title'           => esc_html__('Theme Options', 'flyweb'),
    // 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'            => true,
    // Show the panel pages on the admin bar
    'admin_bar_icon'       => 'dashicons-admin-generic',
    // 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'        => true,
    // If dev_mode is enabled, will notify developer of updated versions available in the GitHub Repo
    'customizer'           => true,
    // 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
    'show_options_object' => false,
    // OPTIONAL -> Give you extra features
    'page_priority'        => null,
    // Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning.
    'page_parent'          => 'themes.php',
    // For a full list of options, visit: //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'            => 'theme-options',
    // Page slug used to denote the panel, will be based off page title then menu title then opt_name if not provided
    '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
    // '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.

    // HINTS
    'hints'                => array(
        'icon'          => 'el el-question-sign',
        'icon_position' => 'right',
        'icon_color'    => 'lightgray',
        'icon_size'     => 'normal',
        'tip_style'     => array(
            'color'   => 'red',
            'shadow'  => true,
            'rounded' => false,
            'style'   => '',
        ),
        'tip_position'  => array(
            'my' => 'top left',
            'at' => 'bottom right',
        ),
        'tip_effect'    => array(
            'show' => array(
                'effect'   => 'slide',
                'duration' => '500',
                'event'    => 'mouseover',
            ),
            'hide' => array(
                'effect'   => 'slide',
                'duration' => '500',
                'event'    => 'click mouseleave',
            ),
        ),
    ),
    'templates_path'       => get_template_directory() . '/inc/templates/redux/'
);

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

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
Redux::setSection( $opt_name, array(
    'icon' => 'el el-cogs',
    'title' => __('General Settings', 'flyweb'),
    'fields' => array(  
         array(
            'id' => 'default_logo',
            'type' => 'media',
            'url' => true,
            'title' => __('Dark Default Logo', 'flyweb'),
            'compiler' => 'true',
            //'mode' => false, // Can be set to false to allow any media type, or can also be set to any mime type.
            'desc' => __('', 'flyweb'),
            'subtitle' => __('Upload your Logo Image, Recommended size 452 * 126', 'flyweb'),
            'default' => ''
        ),
         array(
            'id' => 'logo',
            'type' => 'media',
            'url' => true,
            'title' => __('Light Logo', 'flyweb'),
            'compiler' => 'true',
            //'mode' => false, // Can be set to false to allow any media type, or can also be set to any mime type.
            'desc' => __('', 'flyweb'),
            'subtitle' => __('Upload your Logo Image, Recommended size 452 * 126', 'flyweb'),
            'default' => ''
        ),
         array(
            'id' => 'preloader',
            'type' => 'switch',
            'title' => __('Page Loader', 'flyweb'),
            'subtitle' => __('Show page loader.', 'flyweb'),
            'default' => true
         ),
         array(
            'id' => 'top_bar',
            'type' => 'switch',
            'title' => __('Header Topbar - Email ID & Phone Number', 'flyweb'),
            'subtitle' => __('Show topbar - Email ID & Phone Number.', 'flyweb'),
            'default' => true
         ),
         array(
            'id' => 'header_top_search_bar',
            'type' => 'switch',
            'title' => __('Header Top Searchbar', 'flyweb'),
            'subtitle' => __('Show Top Searchbar', 'flyweb'),
            'default' => true
         ),
         array(
            'id' => 'scroll_to_top',
            'type' => 'switch',
            'title' => __('Scroll to Top Button', 'flyweb'),
            'subtitle' => __('Show scroll to top button.', 'flyweb'),
            'default' => true
         ),
    )
));

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
Redux::setSection( $opt_name, array(
    'icon' => 'el el-adjust-alt',
    'title' => __('Header Settings', 'flyweb'),
    'fields' => array(  
        array(
            'id'       => 'header_layout',
            'type'     => 'image_select',
            'title'    => esc_html__('Header Layout For Home01, Home02, Home03, Home06 & All Inner Pages', 'flyweb'),
            'subtitle' => esc_html__('Select a header layout for home01 & all inner pages.', 'flyweb'),
            'options'  => array(
                '1' => get_template_directory_uri() . '/img/header-layout/h1.jpg',
                '2' => get_template_directory_uri() . '/img/header-layout/h2.jpg',
                '3' => get_template_directory_uri() . '/img/header-layout/h3.jpg',
                '4' => get_template_directory_uri() . '/img/header-layout/h4.jpg',
                '5' => get_template_directory_uri() . '/img/header-layout/h5.jpg',
            ),
            'default'  => '1'
        ),
        array(
            'id'       => 'header_layout_home2',
            'type'     => 'image_select',
            'title'    => esc_html__('Header Layout For Home04', 'flyweb'),
            'subtitle' => esc_html__('Select a header layout for home04.', 'flyweb'),
            'options'  => array(
                '1' => get_template_directory_uri() . '/img/header-layout/h1.jpg',
                '2' => get_template_directory_uri() . '/img/header-layout/h2.jpg',
                '3' => get_template_directory_uri() . '/img/header-layout/h3.jpg',
                '4' => get_template_directory_uri() . '/img/header-layout/h4.jpg',
                '5' => get_template_directory_uri() . '/img/header-layout/h5.jpg',
            ),
            'default'  => '2'
        ),
        array(
            'id'       => 'header_layout_home3',
            'type'     => 'image_select',
            'title'    => esc_html__('Header Layout For Home05', 'flyweb'),
            'subtitle' => esc_html__('Select a header layout for home05.', 'flyweb'),
            'options'  => array(
                '1' => get_template_directory_uri() . '/img/header-layout/h1.jpg',
                '2' => get_template_directory_uri() . '/img/header-layout/h2.jpg',
                '3' => get_template_directory_uri() . '/img/header-layout/h3.jpg',
                '4' => get_template_directory_uri() . '/img/header-layout/h4.jpg',
                '5' => get_template_directory_uri() . '/img/header-layout/h5.jpg',
            ),
            'default'  => '3'
        ),
        array(
            'id'       => 'header_layout_home4',
            'type'     => 'image_select',
            'title'    => esc_html__('Header Layout For Home07', 'flyweb'),
            'subtitle' => esc_html__('Select a header layout for home07.', 'flyweb'),
            'options'  => array(
                '1' => get_template_directory_uri() . '/img/header-layout/h1.jpg',
                '2' => get_template_directory_uri() . '/img/header-layout/h2.jpg',
                '3' => get_template_directory_uri() . '/img/header-layout/h3.jpg',
                '4' => get_template_directory_uri() . '/img/header-layout/h4.jpg',
                '5' => get_template_directory_uri() . '/img/header-layout/h5.jpg',
            ),
            'default'  => '4'
        ),
        array(
            'id'       => 'header_layout_home5',
            'type'     => 'image_select',
            'title'    => esc_html__('Header Layout For Home08', 'flyweb'),
            'subtitle' => esc_html__('Select a header layout for home08.', 'flyweb'),
            'options'  => array(
                '1' => get_template_directory_uri() . '/img/header-layout/h1.jpg',
                '2' => get_template_directory_uri() . '/img/header-layout/h2.jpg',
                '3' => get_template_directory_uri() . '/img/header-layout/h3.jpg',
                '4' => get_template_directory_uri() . '/img/header-layout/h4.jpg',
                '5' => get_template_directory_uri() . '/img/header-layout/h5.jpg',
            ),
            'default'  => '5'
        ),
        array(
            'id'       => 'sticky_off',
            'type'     => 'switch',
            'title'    => esc_html__('Fixed Header', 'flyweb'),
            'subtitle' => esc_html__('Header will be fixed when applicable (Currently It is sticky header).', 'flyweb'),
            'default'  => false
        ),
         array(
            'id' => 'header_button',
            'type' => 'text',
            'title' => __('Header Button', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => 'Button'
         ),
         array(
            'id' => 'header_link_button',
            'type' => 'text',
            'title' => __('Link Button', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => '#'
         ),
         array(
            'id' => 'header_phone',
            'type' => 'textarea',
            'title' => __('Header Phone', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => 'Phone'
         ),
         array(
            'id' => 'header_mail',
            'type' => 'textarea',
            'title' => __('Header Mail', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => 'Email'
         ),
         array(
            'id' => 'link_fb',
            'type' => 'text',
            'title' => __('Link Facebook', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => ''
         ),
         array(
            'id' => 'link_tw',
            'type' => 'text',
            'title' => __('Link Twitter', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => ''
         ),
         array(
            'id' => 'link_ins',
            'type' => 'text',
            'title' => __('Link Instagram', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => ''
         ),
         array(
            'id' => 'link_yt',
            'type' => 'text',
            'title' => __('Link YouTube', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => ''
         ),
         array(
            'id' => 'link_lin',
            'type' => 'text',
            'title' => __('Link Linkedin', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => ''
         ),
          array(
            'id' => 'link_tiktok',
            'type' => 'text',
            'title' => __('Link Tiktok', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => ''
         ),
         array(
            'id' => 'link_pinterest',
            'type' => 'text',
            'title' => __('Link Pinterest', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => ''
         ),
    )
));

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
Redux::setSection( $opt_name, array(
    'icon' => 'el el-adjust',
    'title' => __('Footer Settings', 'flyweb'),
    'fields' => array(
        array(
            'id'          => 'footer_layout_custom',
            'type'        => 'select',
            'title'       => esc_html__('Footer Layout For All Inner Pages.', 'flyweb'),
            'subtitle'    => esc_html__('Select a footer layout for all inner pages.', 'flyweb'),
            'desc'        => sprintf(esc_html__('To use this Option please %sClick Here%s to add your custom footer layout first.','flyweb'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=footer' ) ) . '">','</a>'),
            'options'     =>flyweb_list_post('footer'),
            'default'     => '',
        ),
        array(
            'id'          => 'footer_layout_home1',
            'type'        => 'select',
            'title'       => esc_html__('Footer Layout For Home01', 'flyweb'),
            'subtitle'    => esc_html__('Select a footer layout for home01.', 'flyweb'),
            'desc'        => sprintf(esc_html__('To use this Option please %sClick Here%s to add your custom footer layout first.','flyweb'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=footer' ) ) . '">','</a>'),
            'options'     =>flyweb_list_post('footer'),
            'default'     => '',
        ),
        array(
            'id'       => 'footer_layout_home2',
            'type'        => 'select',
            'title'    => esc_html__('Footer Layout For Home02', 'flyweb'),
            'subtitle' => esc_html__('Select a footer layout for home02.', 'flyweb'),
            'desc'        => sprintf(esc_html__('To use this Option please %sClick Here%s to add your custom footer layout first.','flyweb'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=footer' ) ) . '">','</a>'),
            'options'     =>flyweb_list_post('footer'),
            'default'     => '',
        ),
        array(
            'id'       => 'footer_layout_home3',
            'type'        => 'select',
            'title'    => esc_html__('Footer Layout For Home03', 'flyweb'),
            'subtitle' => esc_html__('Select a footer layout for home03.', 'flyweb'),
            'desc'        => sprintf(esc_html__('To use this Option please %sClick Here%s to add your custom footer layout first.','flyweb'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=footer' ) ) . '">','</a>'),
            'options'     =>flyweb_list_post('footer'),
            'default'     => '',
        ),
        array(
            'id'       => 'footer_layout_home4',
            'type'        => 'select',
            'title'    => esc_html__('Footer Layout For Home04', 'flyweb'),
            'subtitle' => esc_html__('Select a footer layout for home04.', 'flyweb'),
            'desc'        => sprintf(esc_html__('To use this Option please %sClick Here%s to add your custom footer layout first.','flyweb'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=footer' ) ) . '">','</a>'),
            'options'     =>flyweb_list_post('footer'),
            'default'     => '',
        ),
        array(
            'id'       => 'footer_layout_home5',
            'type'        => 'select',
            'title'    => esc_html__('Footer Layout For Home05', 'flyweb'),
            'subtitle' => esc_html__('Select a footer layout for home05.', 'flyweb'),
            'desc'        => sprintf(esc_html__('To use this Option please %sClick Here%s to add your custom footer layout first.','flyweb'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=footer' ) ) . '">','</a>'),
            'options'     =>flyweb_list_post('footer'),
            'default'     => '',
        ),
        array(
            'id'       => 'footer_layout_home6',
            'type'        => 'select',
            'title'    => esc_html__('Footer Layout For Home06', 'flyweb'),
            'subtitle' => esc_html__('Select a footer layout for home06.', 'flyweb'),
            'desc'        => sprintf(esc_html__('To use this Option please %sClick Here%s to add your custom footer layout first.','flyweb'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=footer' ) ) . '">','</a>'),
            'options'     =>flyweb_list_post('footer'),
            'default'     => '',
        ),
        array(
            'id'       => 'footer_layout_home7',
            'type'        => 'select',
            'title'    => esc_html__('Footer Layout For Home07', 'flyweb'),
            'subtitle' => esc_html__('Select a footer layout for home07.', 'flyweb'),
            'desc'        => sprintf(esc_html__('To use this Option please %sClick Here%s to add your custom footer layout first.','flyweb'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=footer' ) ) . '">','</a>'),
            'options'     =>flyweb_list_post('footer'),
            'default'     => '',
        ),
        array(
            'id'       => 'footer_layout_home8',
            'type'        => 'select',
            'title'    => esc_html__('Footer Layout For Home08', 'flyweb'),
            'subtitle' => esc_html__('Select a footer layout for home08.', 'flyweb'),
            'desc'        => sprintf(esc_html__('To use this Option please %sClick Here%s to add your custom footer layout first.','flyweb'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=footer' ) ) . '">','</a>'),
            'options'     =>flyweb_list_post('footer'),
            'default'     => '',
        ),
    )
));

Redux::setSection( $opt_name, array(
    'icon' => 'el-icon-list',
    'title' => __('Blog Settings', 'flyweb'),
    'fields' => array(
        array(
            'id'       => 'post_sidebar_pos',
            'type'     => 'button_set',
            'title'    => esc_html__('Post Details Sidebar Position', 'flyweb'),
            'subtitle' => esc_html__('Select a sidebar position', 'flyweb'),
            'options'  => array(
                'left'  => esc_html__('Left', 'flyweb'),
                'right' => esc_html__('Right', 'flyweb'),
                'none'  => esc_html__('Disabled', 'flyweb')
            ),
            'default'  => 'right'
        ),
        array(
            'id'       => 'widget_sidebar_pos',
            'type'     => 'button_set',
            'title'    => esc_html__('Sidebar Position For Blog Default, Archive, etc.', 'flyweb'),
            'subtitle' => esc_html__('Sidebar position for blog default, archive, category, search, etc.', 'flyweb'),
            'options'  => array(
                'left'  => esc_html__('Left', 'flyweb'),
                'right' => esc_html__('Right', 'flyweb'),
                'none'  => esc_html__('Disabled', 'flyweb')
            ),
            'default'  => 'right'
        ),
        array(
            'id' => 'blog_default_banner_image',
            'type' => 'media',
            'url' => true,
            'title' => __('Blog Default Banner Image', 'flyweb'),
            'compiler' => 'true',
            //'mode' => false, // Can be set to false to allow any media type, or can also be set to any mime type.
            'desc' => __('', 'flyweb'),
            'subtitle' => __('Upload your Image', 'flyweb'),
            'default' => ''
        ),
        array(
            'id' => 'blog_details_banner_image',
            'type' => 'media',
            'url' => true,
            'title' => __('Blog Details Banner Image', 'flyweb'),
            'compiler' => 'true',
            //'mode' => false, // Can be set to false to allow any media type, or can also be set to any mime type.
            'desc' => __('', 'flyweb'),
            'subtitle' => __('Upload your Image Background', 'flyweb'),
            'default' => ''
        ),
        array(
            'id' => 'home_text',
            'type' => 'text',
            'title' => __('Home Text on Breadcrumb', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => 'Home'
         ),
        array(
            'id' => 'blog_default_title',
            'type' => 'text',
            'title' => __('Blog Default Page Title', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => 'Blog'
         ),
        array(
            'id' => 'blog_excerpt',
            'type' => 'text',
            'title' => __('Blog custom excerpt length', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => '30'
        ),
        array(
            'id' => 'grid_number',
            'type' => 'text',
            'title' => __('Number of posts in blog grid page.', 'flyweb'),
            'subtitle' => __('', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => '6'
         ),
        array(
            'id' => 'post_tags_on',
            'type' => 'switch',
            'title' => __('Tags', 'flyweb'),
            'subtitle' => __('Show tag names on single post.', 'flyweb'),
            'default' => true
         ),
        array(
            'id' => 'post_social_share_on',
            'type' => 'switch',
            'title' => __('Social Share', 'flyweb'),
            'subtitle' => __('Show social share on single post.', 'flyweb'),
            'default' => true
        ),
    ) 
));

Redux::setSection( $opt_name, array(
    'icon' => 'el-cog-alt el',
    'title' => __('404 Settings', 'flyweb'),
    'fields' => array(
        array(
            'id' => 'error_four_title',
            'type' => 'text',
            'title' => __('404 Title', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => ''
         ),
        array(
            'id' => 'error_four_desc',
            'type' => 'text',
            'title' => __('404 Description', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => ''
         ),
        array(
            'id' => 'error_four_button',
            'type' => 'text',
            'title' => __('404 Button', 'flyweb'),
            'desc' => __('', 'flyweb'),
            'default' => ''
         ),
        array(
            'id' => 'error_four_image',
            'type' => 'media',
            'url' => true,
            'title' => __('404 Image', 'flyweb'),
            'compiler' => 'true',
            //'mode' => false, // Can be set to false to allow any media type, or can also be set to any mime type.
            'desc' => __('', 'flyweb'),
            'subtitle' => __('Upload your Image', 'flyweb'),
            'default' => ''
        ),
     )
));

/*--------------------------------------------------------------
# Colors
--------------------------------------------------------------*/
Redux::setSection($opt_name, array(
    'title'  => esc_html__('Colors - After doing the color change, it is necessary to clear the cache of your browser.', 'flyweb'),
    'icon'   => 'el-icon-file-edit',
    'fields' => array(
        array(
            'id'          => 'primary_color',
            'type'        => 'color',
            'title'       => esc_html__('Primary Color', 'flyweb'),
            'transparent' => false,
            'default'     => '#ff497c'
        ),
        array(
            'id'          => 'secondary_color',
            'type'        => 'color',
            'title'       => esc_html__('Secondary Color', 'flyweb'),
            'transparent' => false,
            'default'     => '#1f2732'
        ),
        array(
            'id'          => 'body_text_color',
            'type'        => 'color',
            'title'       => esc_html__('Body Text Color', 'flyweb'),
            'transparent' => false,
            'default'     => '#42545e'
        ),
    )
));

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
$select_custom_font_1 = Redux::get_option($opt_name, 'select_custom_font_1');
$select_custom_font_1 = !empty($select_custom_font_1) ? explode(',', $select_custom_font_1) : array();
Redux::setSection($opt_name, array(
    'title'  => esc_html__('Typography', 'flyweb'),
    'icon'   => 'el-icon-text-width',
    'fields' => array(
        array(
            'id'       => 'body_default_font',
            'type'     => 'select',
            'title'    => esc_html__('Body Default Font', 'flyweb'),
            'options'  => array(
                'Open Sans'  => esc_html__('Default', 'flyweb'),
                'Google-Font'  => esc_html__('Google Font', 'flyweb'),
            ),
            'default'  => 'Open Sans',
        ),
        array(
            'id'          => 'font_main',
            'type'        => 'typography',
            'title'       => esc_html__('Body Google Font', 'flyweb'),
            'subtitle'    => esc_html__('This will be the default font of your website.', 'flyweb'),
            'google'      => true,
            'font-backup' => true,
            'all_styles'  => true,
            'line-height'  => true,
            'font-size'  => true,
            'text-align'  => false,
            'output'      => array('body', '.main-font', '.elementor .elementor-widget-text-editor'),
            'units'       => 'px',
            'required' => array( 0 => 'body_default_font', 1 => 'equals', 2 => 'Google-Font' ),
            'force_output' => true
        ),
        array(
            'id'       => 'heading_default_font',
            'type'     => 'select',
            'title'    => esc_html__('Heading Default Font', 'flyweb'),
            'options'  => array(
                'Mulish'  => esc_html__('Default', 'flyweb'),
                'Google-Font'  => esc_html__('Google Font', 'flyweb'),
            ),
            'default'  => 'Mulish',
        ),
        array(
            'id'          => 'font_h1',
            'type'        => 'typography',
            'title'       => esc_html__('H1', 'flyweb'),
            'subtitle'    => esc_html__('This will be the default font for all H1 tags of your website.', 'flyweb'),
            'google'      => true,
            'font-backup' => true,
            'all_styles'  => true,
            'text-align'  => false,
            'output'      => array('h1', '.h1'),
            'units'       => 'px',
            'required' => array( 0 => 'heading_default_font', 1 => 'equals', 2 => 'Google-Font' ),
            'force_output' => true
        ),
        array(
            'id'          => 'font_h2',
            'type'        => 'typography',
            'title'       => esc_html__('H2', 'flyweb'),
            'subtitle'    => esc_html__('This will be the default font for all H2 tags of your website.', 'flyweb'),
            'google'      => true,
            'font-backup' => true,
            'all_styles'  => true,
            'text-align'  => false,
            'output'      => array('h2', '.h2', '.alt-font'),
            'units'       => 'px',
            'required' => array( 0 => 'heading_default_font', 1 => 'equals', 2 => 'Google-Font' ),
            'force_output' => true
        ),
        array(
            'id'          => 'font_h3',
            'type'        => 'typography',
            'title'       => esc_html__('H3', 'flyweb'),
            'subtitle'    => esc_html__('This will be the default font for all H3 tags of your website.', 'flyweb'),
            'google'      => true,
            'font-backup' => true,
            'all_styles'  => true,
            'text-align'  => false,
            'output'      => array('h3', '.h3'),
            'units'       => 'px',
            'required' => array( 0 => 'heading_default_font', 1 => 'equals', 2 => 'Google-Font' ),
            'force_output' => true
        ),
        array(
            'id'          => 'font_h4',
            'type'        => 'typography',
            'title'       => esc_html__('H4', 'flyweb'),
            'subtitle'    => esc_html__('This will be the default font for all H4 tags of your website.', 'flyweb'),
            'google'      => true,
            'font-backup' => true,
            'all_styles'  => true,
            'text-align'  => false,
            'output'      => array('h4', '.h4'),
            'units'       => 'px',
            'required' => array( 0 => 'heading_default_font', 1 => 'equals', 2 => 'Google-Font' ),
            'force_output' => true
        ),
        array(
            'id'          => 'font_h5',
            'type'        => 'typography',
            'title'       => esc_html__('H5', 'flyweb'),
            'subtitle'    => esc_html__('This will be the default font for all H5 tags of your website.', 'flyweb'),
            'google'      => true,
            'font-backup' => true,
            'all_styles'  => true,
            'text-align'  => false,
            'output'      => array('h5', '.h5'),
            'units'       => 'px',
            'required' => array( 0 => 'heading_default_font', 1 => 'equals', 2 => 'Google-Font' ),
            'force_output' => true
        ),
        array(
            'id'          => 'font_h6',
            'type'        => 'typography',
            'title'       => esc_html__('H6', 'flyweb'),
            'subtitle'    => esc_html__('This will be the default font for all H6 tags of your website.', 'flyweb'),
            'google'      => true,
            'font-backup' => true,
            'all_styles'  => true,
            'text-align'  => false,
            'output'      => array('h6', '.h6'),
            'units'       => 'px',
            'required' => array( 0 => 'heading_default_font', 1 => 'equals', 2 => 'Google-Font' ),
            'force_output' => true
        ),
    )
));

/*--------------------------------------------------------------
# Custom Fonts
--------------------------------------------------------------*/
Redux::setSection($opt_name, array(
    'title'      => esc_html__('Fonts Selectors', 'flyweb'),
    'icon'       => 'el el-fontsize',
    'subsection' => true,
    'fields'     => array(
        array(
            'id'          => 'custom_font_1',
            'type'        => 'typography',
            'title'       => esc_html__('Custom Font', 'flyweb'),
            'subtitle'    => esc_html__('This will be the font that applies to the class selector.', 'flyweb'),
            'google'      => true,
            'font-backup' => true,
            'all_styles'  => true,
            'text-align'  => false,
            'output'      => $select_custom_font_1,
            'units'       => 'px',

        ),
        array(
            'id'       => 'select_custom_font_1',
            'type'     => 'textarea',
            'title'    => esc_html__('CSS Selectors', 'flyweb'),
            'subtitle' => esc_html__('Add class selectors to apply above font.', 'flyweb'),
            'validate' => 'no_html'
        )
    )
));

/* Custom CSS /--------------------------------------------------------- */
Redux::setSection($opt_name, array(
    'title'  => esc_html__('Custom CSS', 'flyweb'),
    'icon'   => 'el-icon-adjust-alt',
    'fields' => array(

        array(
            'id'   => 'customcss',
            'type' => 'info',
            'desc' => esc_html__('Custom CSS', 'flyweb')
        ),

        array(
            'id'       => 'site_css',
            'type'     => 'ace_editor',
            'title'    => esc_html__('CSS Code', 'flyweb'),
            'subtitle' => esc_html__('Advanced CSS Options. You can paste your custom CSS Code here.', 'flyweb'),
            'mode'     => 'css',
            'validate' => 'css',
            'theme'    => 'chrome',
            'default'  => ""
        ),

    ),
));