File: /home/carrerup/.trash/techland/inc/theme-options/options.php
<?php
/**
* ReduxFramework Sample Config File
* For full documentation, please visit: http://docs.reduxframework.com/
*/
if (! class_exists('Redux')) {
return;
}
// This is your option name where all the Redux data is stored.
$techland_pre = "techland";
/**
* ---> SET ARGUMENTS
* All the possible arguments for Redux.
* For full documentation on arguments, please refer to: https://github.com/ReduxFramework/ReduxFramework/wiki/Arguments
* */
$techland_theme = wp_get_theme(); // For use with some settings. Not necessary.
$techland_options_args = array(
// TYPICAL -> Change these values as you need/desire
'techland_pre' => $techland_pre,
// This is where your data is stored in the database and also becomes your global variable name.
'display_name' => $techland_theme->get('Name'),
// Name that appears at the top of your panel
'display_version' => $techland_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' => false,
// Show the sections below the admin menu item or not
'menu_title' => esc_html__('Theme Options', 'techland'),
'page_title' => esc_html__('Theme Options', 'techland'),
// 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
'admin_bar' => false,
// 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' => 'techland',
// Set a different name for your global variable other than the techland_pre
'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' => true,
// Enable basic customizer support
// OPTIONAL -> Give you extra features
'page_priority' => 99,
// Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning.
'page_parent' => apply_filters( 'ninetheme_parent_slug', 'themes.php' ),
// 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' => '',
// Page slug used to denote the panel, will be based off page title then menu title then techland_pre 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
// 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' => 'dark',
'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',
),
),
)
);
// ADMIN BAR LINKS -> Setup custom links in the admin bar menu as external items.
$techland_options_args['admin_bar_links'][] = array(
'id' => 'ninetheme-techland-docs',
'href' => 'http://demo-ninetheme.com/techland/doc.html',
'title' => esc_html__('techland Documentation', 'techland'),
);
$techland_options_args['admin_bar_links'][] = array(
'id' => 'ninetheme-support',
'href' => 'https://9theme.ticksy.com/',
'title' => esc_html__('Support', 'techland'),
);
$techland_options_args['admin_bar_links'][] = array(
'id' => 'ninetheme-portfolio',
'href' => 'https://themeforest.net/user/ninetheme/portfolio',
'title' => esc_html__('NineTheme Portfolio', 'techland'),
);
// Add content after the form.
$techland_options_args['footer_text'] = esc_html__('If you need help please read docs and open a ticket on our support center.', 'techland');
Redux::setArgs($techland_pre, $techland_options_args);
/* END ARGUMENTS */
/* START SECTIONS */
/*************************************************
## MAIN SETTING SECTION
*************************************************/
Redux::setSection($techland_pre, array(
'title' => esc_html__('Main Setting', 'techland'),
'id' => 'basic',
'desc' => esc_html__('These are main settings for general theme!', 'techland'),
'customizer_width' => '400px',
'icon' => 'el el-cog',
'fields' => array()
));
//BREADCRUMBS SETTINGS SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Theme Color', 'techland'),
'id' => 'themebreadcrumbssubsection',
'icon' => 'el el-brush',
'subsection' => true,
'customizer_width' => '450px',
'fields' => array(
array(
'title' => esc_html__('Theme Color Style', 'techland'),
'subtitle' => esc_html__('Select your site color type.', 'techland'),
'id' => 'theme_color',
'type' => 'select',
'customizer' => true,
'options' => array(
'default' => esc_html__('Default', 'techland'),
'1' => esc_html__('Blue', 'techland'),
'2' => esc_html__('Orange', 'techland'),
'3' => esc_html__('Indigo', 'techland'),
'4' => esc_html__('Sunglow', 'techland'),
'5' => esc_html__('Cerise Red', 'techland'),
'6' => esc_html__('Mantis', 'techland'),
'custom' => esc_html__('Custom Color', 'techland')
),
'default' => '1',
),
array(
'title' => esc_html__('Theme Main Color', 'techland'),
'subtitle' => esc_html__('Change theme main color.', 'techland'),
'id' => 'theme_main_color',
'type' => 'color',
'default' => '#30aafc',
'required' => array( 'theme_color', '=', 'custom' )
),
array(
'title' => esc_html__('Force this color for all pages', 'techland'),
'subtitle' => esc_html__('This theme has a separate color option for pages, if you want to make the color of all pages the same you can use this setting', 'techland'),
'id' => 'force_main_color',
'type' => 'switch',
'default' => false
),
)
));
//BREADCRUMBS SETTINGS SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Breadcrumbs', 'techland'),
'id' => 'thememaincolorsubsection',
'icon' => 'el el-brush',
'subsection' => true,
'customizer_width' => '450px',
'fields' => array(
array(
'title' => esc_html__('Breadcrumbs', 'techland'),
'subtitle' => esc_html__('If enabled, adds breadcrumbs navigation to bottom of page title.', 'techland'),
'id' => 'breadcrumbs_visibility',
'type' => 'switch',
'default' => false
),
array(
'title' => esc_html__('Breadcrumbs Typography', 'techland'),
'id' => 'breadcrumbs_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '.nt-breadcrumbs, .nt-breadcrumbs .nt-breadcrumbs-list, .nt-breadcrumbs .nt-breadcrumbs-list a' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'breadcrumbs_visibility', '=', '1' )
),
array(
'title' => esc_html__('Breadcrumbs Current Color', 'techland'),
'id' => 'breadcrumbs_current',
'type' => 'color',
'default' => '#fff',
'output' => array( '.nt-breadcrumbs .nt-breadcrumbs-list li.active' ),
'required' => array(
array( 'breadcrumbs_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Breadcrumbs Icon Color', 'techland'),
'id' => 'breadcrumbs_icon',
'type' => 'color',
'default' => '#fff',
'output' => array( '.nt-breadcrumbs .nt-breadcrumbs-list i' ),
'required' => array(
array( 'breadcrumbs_visibility', '=', '1' )
)
)
)
));
//PRELOADER SETTINGS SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Preloader', 'techland'),
'id' => 'themepreloadersubsection',
'icon' => 'el el-brush',
'subsection' => true,
'fields' => array(
array(
'title' => esc_html__('Preloader', 'techland'),
'subtitle' => esc_html__('If enabled, adds preloader.', 'techland'),
'id' => 'preloader_visibility',
'type' => 'switch',
'default' => true
),
array(
'title' => esc_html__('Preloader Type', 'techland'),
'subtitle' => esc_html__('Select your site preloader type.', 'techland'),
'id' => 'pre_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'01' => esc_html__('Type 1', 'techland'),
'02' => esc_html__('Type 2', 'techland'),
'03' => esc_html__('Type 3', 'techland'),
'04' => esc_html__('Type 4', 'techland'),
'05' => esc_html__('Type 5', 'techland'),
'06' => esc_html__('Type 6', 'techland'),
'07' => esc_html__('Type 7', 'techland'),
'08' => esc_html__('Type 8', 'techland'),
'09' => esc_html__('Type 9', 'techland'),
'10' => esc_html__('Type 10', 'techland'),
'11' => esc_html__('Type 11', 'techland'),
'12' => esc_html__('Type 12', 'techland'),
'custom' => esc_html__('Custom Gif Image ', 'techland')
),
'default' => '01',
'required' => array( 'preloader_visibility', '=', '1' )
),
array(
'title' => esc_html__('Custom preloder image', 'techland'),
'subtitle' => esc_html__('Upload your custom preloder image.', 'techland'),
'id' => 'pre_custom_img',
'type' => 'media',
'url' => true,
'customizer' => true,
'required' => array(
array( 'preloader_visibility', '=', '1' ),
array( 'pre_type', '=', 'custom' )
),
),
array(
'title' => esc_html__('Preloader Background Color', 'techland'),
'subtitle' => esc_html__('Add preloader background color.', 'techland'),
'id' => 'pre_bg',
'type' => 'color',
'default' => '#fff',
'required' => array(
array( 'preloader_visibility', '=', '1' )
),
),
array(
'title' => esc_html__('Preloader Spin Color', 'techland'),
'subtitle' => esc_html__('Add preloader spin color.', 'techland'),
'id' => 'pre_spin',
'type' => 'color',
'default' => '#045fa0',
'required' => array(
array( 'preloader_visibility', '=', '1' ),
array( 'pre_type', '!=', 'custom' )
)
)
)));
//MAIN THEME TYPOGRAPHY SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Typograhy General', 'techland'),
'id' => 'themetypographysection',
'icon' => 'el el-fontsize',
'subsection' => true,
'fields' => array(
array(
'title' => esc_html__('H1 Headings', 'techland'),
'subtitle' => esc_html__("Choose Size and Style for h1", 'techland'),
'id' => 'font_h1',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( 'h1' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
)
),
array(
'title' => esc_html__('H2 Headings', 'techland'),
'subtitle' => esc_html__("Choose Size and Style for h2", 'techland'),
'id' => 'font_h2',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( 'h2' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
)
),
array(
'title' => esc_html__('H3 Headings', 'techland'),
'subtitle' => esc_html__("Choose Size and Style for h3", 'techland'),
'id' => 'font_h3',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( 'h3' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
)
),
array(
'title' => esc_html__('H4 Headings', 'techland'),
'subtitle' => esc_html__("Choose Size and Style for h4", 'techland'),
'id' => 'font_h4',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( 'h4' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
)
),
array(
'title' => esc_html__('H5 Headings', 'techland'),
'subtitle' => esc_html__("Choose Size and Style for h5", 'techland'),
'id' => 'font_h5',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( 'h5' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
)
),
array(
'title' => esc_html__('H6 Headings', 'techland'),
'subtitle' => esc_html__("Choose Size and Style for h6", 'techland'),
'id' => 'font_h6',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( 'h6' ),
'units' => 'px',
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
)
),
array(
'id' =>'info_body_font',
'type' => 'info',
'customizer' => false,
'desc' => esc_html__('Body Font Options', 'techland')
),
array(
'title' => esc_html__('Paragraph', 'techland'),
'subtitle' => esc_html__("Choose Size and Style for paragraph", 'techland'),
'id' => 'font_p',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( 'p' ),
'default' => array(
'font-family' =>'',
'color' =>"",
'font-style' =>'',
'font-size' =>'',
'line-height' =>''
)
)
)));
//BACKTOTOP BUTTON SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Back-to-top Button', 'techland'),
'id' => 'backtotop',
'icon' => 'el el-brush',
'subsection' => true,
'fields' => array(
array(
'title' => esc_html__('Back-to-top', 'techland'),
'subtitle' => esc_html__('Switch On-off', 'techland'),
'desc' => esc_html__('If enabled, adds preloader.', 'techland'),
'id' => 'backtotop_visibility',
'type' => 'switch',
'default' => true
),
array(
'title' => esc_html__('Top Offset', 'techland'),
'subtitle' => esc_html__('Set custom top offset for the back-to-top button', 'techland'),
'desc' => esc_html__('If enabled, adds preloader.', 'techland'),
'id' => 'backtotop_offset',
'type' => 'slider',
'default' => 800,
'min' => 10,
'step' => 1,
'max'=> 2000,
'required' => array( 'backtotop_visibility', '=', '1' )
),
array(
'title' => esc_html__('Back-to-top Background', 'techland'),
'id' => 'backtotop_bg',
'type' => 'color',
'mode' => 'background',
'output' => array( '#btn-to-top-wrap #btn-to-top' ),
'default' => '#045fa0',
'required' => array( 'backtotop_visibility', '=', '1' )
)
)));
// THEME PAGINATION SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Pagination', 'techland'),
'desc' => esc_html__('These are main settings for general theme!', 'techland'),
'id' => 'pagination',
'subsection' => true,
'icon' => 'el el-link',
'fields' => array(
array(
'title' => esc_html__('Pagination', 'techland'),
'subtitle' => esc_html__('Switch On-off', 'techland'),
'desc' => esc_html__('If enabled, adds pagination.', 'techland'),
'id' => 'pagination_visibility',
'type' => 'switch',
'default' => true
),
array(
'title' => esc_html__('Pagination Type', 'techland'),
'subtitle' => esc_html__('Select type.', 'techland'),
'id' => 'pag_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'default' => esc_html__('Default', 'techland'),
'outline' => esc_html__('Outline', 'techland')
),
'default' => 'outline',
'required' => array( 'pagination_visibility', '=', '1' )
),
array(
'title' => esc_html__('Pagination size', 'techland'),
'subtitle' => esc_html__('Select size.', 'techland'),
'id' => 'pag_size',
'type' => 'select',
'customizer' => true,
'options' => array(
'small' => esc_html__('small', 'techland'),
'medium' => esc_html__('medium', 'techland'),
'large' => esc_html__('large', 'techland')
),
'default' => 'medium',
'required' => array( 'pagination_visibility', '=', '1' )
),
array(
'title' => esc_html__('Pagination group', 'techland'),
'subtitle' => esc_html__('Select group.', 'techland'),
'id' => 'pag_group',
'type' => 'select',
'customizer' => true,
'options' => array(
'yes' => esc_html__('Yes', 'techland'),
'no' => esc_html__('No', 'techland')
),
'default' => 'no',
'required' => array( 'pagination_visibility', '=', '1' )
),
array(
'title' => esc_html__('Pagination corner', 'techland'),
'subtitle' => esc_html__('Select corner type.', 'techland'),
'id' => 'pag_corner',
'type' => 'select',
'customizer' => true,
'options' => array(
'square' => esc_html__('square', 'techland'),
'rounded' => esc_html__('rounded', 'techland'),
'circle' => esc_html__('circle', 'techland')
),
'default' => 'circle',
'required' => array( 'pagination_visibility', '=', '1' )
),
array(
'title' => esc_html__('Pagination align', 'techland'),
'subtitle' => esc_html__('Select align.', 'techland'),
'id' => 'pag_align',
'type' => 'select',
'customizer' => true,
'options' => array(
'left' => esc_html__('left', 'techland'),
'right' => esc_html__('right', 'techland'),
'center' => esc_html__('center', 'techland')
),
'default' => 'center',
'required' => array( 'pagination_visibility', '=', '1' )
),
array(
'title' => esc_html__('Pagination default/outline color', 'techland'),
'id' => 'pag_clr',
'type' => 'color',
'mode' => 'color',
'required' => array( 'pagination_visibility', '=', '1' )
),
array(
'title' => esc_html__('Active and Hover pagination color', 'techland'),
'id' => 'pag_hvrclr',
'type' => 'color',
'mode' => 'color',
'required' => array( 'pagination_visibility', '=', '1' )
),
array(
'title' => esc_html__('Pagination number color', 'techland'),
'id' => 'pag_nclr',
'type' => 'color',
'mode' => 'color',
'required' => array( 'pagination_visibility', '=', '1' )
),
array(
'title' => esc_html__('Active and Hover pagination number color', 'techland'),
'id' => 'pag_hvrnclr',
'type' => 'color',
'mode' => 'color',
'required' => array( 'pagination_visibility', '=', '1' )
)
)));
/*************************************************
## LOGO SECTION
*************************************************/
Redux::setSection($techland_pre, array(
'title' => esc_html__('Logo', 'techland'),
'desc' => esc_html__('These are main settings for general theme!', 'techland'),
'id' => 'logosection',
'customizer_width' => '400px',
'icon' => 'el el-star-empty',
'fields' => array(
array(
'title' => esc_html__('Logo Switch', 'techland'),
'subtitle' => esc_html__('You can select logo on or off.', 'techland'),
'id' => 'logo_visibility',
'type' => 'switch',
'default' => true
),
array(
'title' => esc_html__('Logo Type', 'techland'),
'subtitle' => esc_html__('Select your logo type.', 'techland'),
'id' => 'logo_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'img' => esc_html__('Image Logo', 'techland'),
'sitename' => esc_html__('Site Name', 'techland'),
'customtext' => esc_html__('Custom Text', 'techland')
),
'default' => 'sitename',
'required' => array( 'logo_visibility', '=', '1' )
),
array(
'title' => esc_html__('Custom text for logo', 'techland'),
'desc' => esc_html__('Text entered here will be used as logo', 'techland'),
'id' => 'text_logo',
'type' => 'text',
'required' => array(
array( 'logo_visibility', '=', '1' ),
array( 'logo_type', '=', 'customtext' )
),
),
array(
'title' => esc_html__('Sitename or Custom Text Logo Font', 'techland'),
'desc' => esc_html__("Choose size and style your sitename, if you don't use an image logo.", 'techland'),
'id' =>'logo_style',
'type' => 'typography',
'font-family' => true,
'google' => true, // Disable google fonts. Won't work if you haven't defined your google api key
'font-backup' => false, // Select a backup non-google font in addition to a google font
'font-style' => true, // Includes font-style and weight. Can use font-style or font-weight to declare
'subsets' => true, // Only appears if google is true and subsets not set to false
'font-size' => true,
'line-height' => true,
'text-transform' => true,
'text-align' => false,
'customizer' => true,
'color' => true,
'preview' => true, // Disable the previewer
'output' => array('#nt-logo.logo-type-customtext, #nt-logo.logo-type-sitename'),
'default' => array(
'font-family' =>'',
'color' =>"",
'font-style' =>'',
'font-size' =>'',
'line-height' =>''
),
'required' => array(
array( 'logo_visibility', '=', '1' ),
array( 'logo_type', '!=', 'img' )
)
),
array(
'title' => esc_html__('Hover Text Logo Color', 'techland'),
'desc' => esc_html__('Set your own hover color for the text logo.', 'techland'),
'id' => 'text_logo_hvr',
'type' => 'color',
'output' => array( '#top-bar #nt-logo.logo-type-customtext:hover, #top-bar #nt-logo.logo-type-sitename:hover' ),
'required' => array(
array( 'logo_visibility', '=', '1' ),
array( 'logo_type', '!=', 'img' )
)
),
array(
'title' => esc_html__('Logo image', 'techland'),
'subtitle' => esc_html__('Upload your Logo. If left blank theme will use site default logo.', 'techland'),
'id' => 'img_logo',
'type' => 'media',
'url' => true,
'customizer' => true,
'required' => array(
array( 'logo_visibility', '=', '1' ),
array( 'logo_type', '=', 'img' ),
array( 'logo_type', '!=', '' )
)
),
array(
'title' => esc_html__('Logo Dimensions', 'techland'),
'subtitle' => esc_html__('Set the logo width and height of the image.', 'techland'),
'id' => 'img_logo_dimensions',
'type' => 'dimensions',
'customizer' => true,
'output' => array('#nt-logo img.main-logo'),
'required' => array(
array( 'logo_visibility', '=', '1' ),
array( 'logo_type', '=', 'img' ),
array( 'logo_type', '!=', '' )
)
),
array(
'title' => esc_html__('Sticky Logo Switch', 'techland'),
'subtitle' => esc_html__('You can select sticky logo on or off.', 'techland'),
'id' => 'sticky_logo_visibility',
'type' => 'switch',
'default' => false
),
array(
'title' => esc_html__('Sticky logo image', 'techland'),
'subtitle' => esc_html__('Upload your Logo. If left blank theme will use site default logo.', 'techland'),
'id' => 'sticky_logo',
'type' => 'media',
'url' => true,
'customizer' => true,
'required' => array(
array( 'logo_visibility', '=', '1' ),
array( 'logo_type', '=', 'img' ),
array( 'logo_type', '!=', '' ),
array( 'sticky_logo_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Sticky logo Dimensions', 'techland'),
'subtitle' => esc_html__('Set the sticky logo width and height of the image.', 'techland'),
'id' => 'sticky_logo_dimensions',
'type' => 'dimensions',
'customizer' => true,
'output' => array('#nt-logo img.sticky-logo'),
'required' => array(
array( 'logo_visibility', '=', '1' ),
array( 'logo_type', '=', 'img' ),
array( 'logo_type', '!=', '' ),
array( 'sticky_logo_visibility', '=', '1' )
)
)
)));
/*************************************************
## HEADER & NAV SECTION
*************************************************/
Redux::setSection($techland_pre, array(
'title' => esc_html__('Header', 'techland'),
'id' => 'headersection',
'icon' => 'el el-lines',
'fields' => array()
));
//HEADER MENU
Redux::setSection($techland_pre, array(
'title' => esc_html__('Header Menu', 'techland'),
'id' => 'headernavsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Menu Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site navigation.', 'techland'),
'id' => 'nav_visibility',
'type' => 'switch',
'default' => 1
),
array(
'title' => esc_html__('Header Template Type', 'techland'),
'subtitle' => esc_html__('Select your header template type.', 'techland'),
'id' => 'header_template_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'default' => esc_html__('Deafult Site Header', 'techland'),
'vc-templates' => esc_html__('WPBakery Saved Templates', 'techland'),
'templatera' => esc_html__('WPBakery Templatera', 'techland')
),
'default' => 'default',
'required' => array( 'nav_visibility', '=', '1' )
),
array(
'title' => esc_html__('Header Template', 'techland'),
'subtitle' => esc_html__('Select your header type.', 'techland'),
'id' => 'vc_header_templatera',
'type' => 'select',
'data' => 'posts',
'args' => array(
'post_type' => 'templatera',
'posts_per_page' => -1,
'orderby' => 'title',
'order' => 'ASC'
),
'customizer' => true,
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'templatera' )
)
),
array(
'title' => esc_html__('Header Template', 'techland'),
'subtitle' => esc_html__('Select your header template.', 'techland'),
'id' => 'vc_header_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'vc-templates' )
),
),
array(
'title' => esc_html__('Side Menu Widget Area Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site side menu widget area.', 'techland'),
'id' => 'side_menu_widget_area_visibility',
'type' => 'switch',
'default' => 1,
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Header Style', 'techland'),
'id' => 'nav_bg_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'light' => esc_html__('Light Style', 'techland'),
'dark' => esc_html__('Dark Style', 'techland')
),
'default' => 'light',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Menu Background Customize', 'techland'),
'id' => 'nav_bg',
'type' => 'color_rgba',
'mode' => 'background',
'output' => array( '#top-bar.top-bar' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Sticky Menu Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site navigation sticky option.', 'techland'),
'id' => 'nav_sticky_visibility',
'type' => 'switch',
'default' => 1,
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' ),
)
),
array(
'title' => esc_html__('Sticky Menu Transition', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site navigation sticky menu transition.', 'techland'),
'id' => 'nav_transition_visibility',
'type' => 'switch',
'default' => 1,
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' ),
array( 'nav_sticky_visibility', '=', '1' ),
)
),
array(
'title' => esc_html__('Sticky Menu Background', 'techland'),
'id' => 'nav_bg_sticky',
'type' => 'color_rgba',
'mode' => 'background',
'output' => array( '#top-bar.is-sticky.sticked' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' ),
array( 'nav_sticky_visibility', '=', '1' ),
)
),
array(
'title' => esc_html__('Primary Menu Font', 'techland'),
'subtitle' => esc_html__("Choose Size and Style for primary menu", 'techland'),
'id' => 'nav_a_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#top-bar .top-bar__navigation a:not(.custom-btn)' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Hover Menu Item Color', 'techland'),
'desc' => esc_html__('Set your own hover color for the navigation menu item.', 'techland'),
'id' => 'nav_hvr_a',
'type' => 'color_rgba',
'output' => array( '#top-bar .top-bar__navigation a:not(.custom-btn):hover' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Dropdown Background Color', 'techland'),
'desc' => esc_html__('Set your own background-color for the navigation dropdown menu.', 'techland'),
'id' => 'nav_drop_bg',
'type' => 'color_rgba',
'mode' => 'background',
'output' => array( '#top-bar .top-bar__navigation .submenu' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Dropdown Menu Item Font', 'techland'),
'subtitle' => esc_html__("Choose Size and Style for dropdown menu item", 'techland'),
'id' => 'nav_drop_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#top-bar .top-bar__navigation .submenu li a' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Hover Dropdown Item Color', 'techland'),
'desc' => esc_html__('Set your own hover color for the navigation dropdown menu item.', 'techland'),
'id' => 'nav_drop_i',
'type' => 'color_rgba',
'mode' => 'color',
'output' => array( '#top-bar .top-bar__navigation .submenu li a:hover' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Toggle Button Bar Color', 'techland'),
'desc' => esc_html__('Set your own color for mobile menu navbar toggle button.', 'techland'),
'id' => 'nav_icon',
'type' => 'color',
'mode' => 'background',
'output' => array( '.top-bar__navigation-toggler span, .top-bar__navigation-toggler span:after, .top-bar__navigation-toggler span:before' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Hover Toggle Button Bar Color', 'techland'),
'desc' => esc_html__('Set your own hover color for mobile menu navbar toggle button.', 'techland'),
'id' => 'nav_icon_hvr',
'type' => 'color',
'mode' => 'background',
'output' => array( '.top-bar__navigation-toggler:hover span, .top-bar__navigation-toggler:hover span:after, .top-bar__navigation-toggler:hover span:before' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Toggle Button Close Color', 'techland'),
'desc' => esc_html__('Set your own color for mobile menu navbar toggle close button.', 'techland'),
'id' => 'nav_icon_close',
'type' => 'color',
'mode' => 'background',
'output' => array( '.top-bar__navigation-toggler.is-active span, .top-bar__navigation-toggler.is-active span:after, .top-bar__navigation-toggler.is-active span:before' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Hover Toggle Button Close Color', 'techland'),
'desc' => esc_html__('Set your own hover color for mobile menu navbar toggle close button.', 'techland'),
'id' => 'nav_icon_close',
'type' => 'color',
'mode' => 'background',
'output' => array( '.top-bar__navigation-toggler.is-active:hover span, .top-bar__navigation-toggler.is-active:hover span:after, .top-bar__navigation-toggler.is-active:hover span:before' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Toggle Button Border', 'techland'),
'id' => 'nav_icon_brd',
'type' => 'border',
'all' => false,
'default' => '',
'output' => array( '.top-bar__navigation-toggler' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Toggle Button Background Color', 'techland'),
'desc' => esc_html__('Set your own background color for mobile menu navbar toggle button.', 'techland'),
'id' => 'nav_icon_bg',
'type' => 'color',
'mode' => 'background',
'output' => array( '.top-bar__navigation-toggler' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Hover Toggle Button Background Color', 'techland'),
'desc' => esc_html__('Set your own hover background color for mobile menu navbar toggle button.', 'techland'),
'id' => 'nav_icon_hvrbg',
'type' => 'color',
'mode' => 'background',
'output' => array( '.top-bar__navigation-toggler:hover' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Mobil Collapsed Menu Background Color', 'techland'),
'id' => 'nav_mob_bg',
'type' => 'color',
'mode' => 'background',
'output' => array( '#top-bar.top-bar.is-expanded .top-bar__collapse' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Mobil Menu Item Color', 'techland'),
'id' => 'nav_mob_i_clr',
'type' => 'color',
'output' => array( '.top-bar.is-expanded .top-bar__navigation li,.top-bar.is-expanded .top-bar__navigation a:not(.custom-btn)' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Mobil Menu Item Color ( Hover )', 'techland'),
'id' => 'nav_mob_i_clr',
'type' => 'color',
'output' => array( '.top-bar.is-expanded .top-bar__navigation li,.top-bar.is-expanded .top-bar__navigation a:not(.custom-btn):hover' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Mobil Menu Item Background Color ( Hover )', 'techland'),
'id' => 'nav_mob_i_hvrbg',
'type' => 'color',
'mode' => 'background',
'output' => array( '.top-bar.is-expanded .top-bar__navigation li:hover' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Mobil Menu Item Border Color', 'techland'),
'id' => 'nav_mob_i_brdclr',
'type' => 'color',
'mode' => 'border-top-color',
'output' => array( '.top-bar--light.is-expanded .top-bar__navigation li' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Right Header Menu Sidebar Widget Margin', 'techland'),
'id' => 'right_menu_widget_margin',
'type' => 'spacing',
'mode' => 'margin',
'all' => false,
'units' => array( 'em', 'px', '%' ),
'units_extended' => 'true',
'output' => array( '.side-menu__menu' ),
'default' => array(
'margin-top' => '',
'margin-right' => '',
'margin-bottom' => '',
'margin-left' => ''
)
),
//information on-off
array(
'id' =>'info_nav0',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Success!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('%s is disabled on the site. Please activate to view options.', 'techland'), '<b>Navigation</b>'),
'required' => array(
array( 'nav_visibility', '=', '0' ),
array( 'header_template_type', '=', 'default' )
),
),
)));
//HEADER RIGHT BUTTON
Redux::setSection($techland_pre, array(
'title' => esc_html__('Header Language', 'techland'),
'id' => 'headernavlanguagesubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Header Language Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site header language.', 'techland'),
'id' => 'lang_visibility',
'type' => 'switch',
'default' => 1,
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
),
),
array(
'title' => esc_html__('Header Language', 'techland'),
'subtitle' => esc_html__('Create header language list', 'techland'),
'id' => 'header_lang',
'type' => 'nt_multi_field',
'add_text' => esc_html__('Add Language', 'techland'),
'add_number' => 1,
'class' => 'block',
'placeholder'=> array(
'lang shortname',
'lang name',
'flag image URL',
'page link'
),
'show_empty'=> false,
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' ),
array( 'lang_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Header Language Background Color', 'techland'),
'id' => 'header_lang_bg',
'type' => 'color',
'mode' => 'background',
'output' => array( '.top-bar__choose-lang .list-wrap ul' ),
'default' => '',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' ),
array( 'lang_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Header Language Item Color', 'techland'),
'id' => 'header_lang_clr',
'type' => 'color',
'mode' => 'color',
'output' => array( '.top-bar__choose-lang .list-wrap li' ),
'default' => '',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' ),
array( 'lang_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Header Language Active Item Color', 'techland'),
'id' => 'header_lang_active_clr',
'type' => 'color',
'mode' => 'color',
'output' => array( '.top-bar__choose-lang .list-wrap li.is-active' ),
'default' => '',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' ),
array( 'lang_visibility', '=', '1' )
)
)
)));
//HEADER RIGHT BUTTON
Redux::setSection($techland_pre, array(
'title' => esc_html__('Header Right Button', 'techland'),
'id' => 'headernavbtnsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('First Button Title', 'techland'),
'subtitle' => esc_html__('Add button title.', 'techland'),
'id' => 'nav_btn1_title',
'type' => 'text',
'default' => esc_html__('Sign in', 'techland'),
'validate' => 'html_custom',
'allowed_html' => array(
'i' => array(
'class' => array(),
'style' => array()
),
'span' => array(
'class' => array(),
'style' => array()
)
),
'default' => '',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('First Button Title 2 ( Logout title )', 'techland'),
'subtitle' => esc_html__('Optional.', 'techland'),
'id' => 'nav_btn1_title2',
'type' => 'text',
'default' => '',
'validate' => 'html_custom',
'allowed_html' => array(
'i' => array(
'class' => array(),
'style' => array()
),
'span' => array(
'class' => array(),
'style' => array()
)
),
'default' => '',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('First Button URL', 'techland'),
'subtitle' => esc_html__('Add button URL/Link.', 'techland'),
'id' => 'nav_btn1_url',
'type' => 'text',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('First Button URL 2 ( Logout URL )', 'techland'),
'subtitle' => esc_html__('Add button URL/Link.', 'techland'),
'id' => 'nav_btn1_url2',
'type' => 'text',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('First Button Target Type', 'techland'),
'id' => 'nav_btn1_target',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select target', 'techland'),
'_blank' => esc_html__('Blank', 'techland'),
'_self' => esc_html__('Self', 'techland'),
'_parent' => esc_html__('Parent', 'techland'),
'_top' => esc_html__('Top', 'techland')
),
'default' => '',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('First Button Title Color', 'techland'),
'id' => 'nav_btn1_clr',
'type' => 'color',
'mode' => 'color',
'output' => array( '#top-bar.top-bar .top-bar__auth-btns .btn-first' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('First Button Hover Title Color', 'techland'),
'id' => 'nav_btn1_hvrclr',
'type' => 'color',
'mode' => 'color',
'output' => array( '#top-bar.top-bar .top-bar__auth-btns .btn-first:hover' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
//nav second button
array(
'title' => esc_html__('Second Button Title', 'techland'),
'subtitle' => esc_html__('Add button title.', 'techland'),
'id' => 'nav_btn2_title',
'type' => 'text',
'default' => 'Get in Touch',
'validate' => 'html_custom',
'allowed_html' => array(
'i' => array(
'class' => array(),
'style' => array()
),
'span' => array(
'class' => array(),
'style' => array()
)
),
'default' => '',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Second Button URL', 'techland'),
'subtitle' => esc_html__('Add button URL/Link.', 'techland'),
'id' => 'nav_btn2_url',
'type' => 'text',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Second Button Target Type', 'techland'),
'id' => 'nav_btn2_target',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select target', 'techland'),
'_blank' => esc_html__('Blank', 'techland'),
'_self' => esc_html__('Self', 'techland'),
'_parent' => esc_html__('Parent', 'techland'),
'_top' => esc_html__('Top', 'techland')
),
'default' => '',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Second Button Style', 'techland'),
'id' => 'nav_btn2_style',
'type' => 'select',
'customizer' => true,
'options' => array(
'1' => esc_html__('Style 1', 'techland'),
'2' => esc_html__('Style 2', 'techland'),
'3' => esc_html__('Style 3', 'techland'),
'4' => esc_html__('Style 4', 'techland'),
'5' => esc_html__('Style 5', 'techland'),
),
'default' => '3',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Second Button Custom Background Color', 'techland'),
'id' => 'nav_btn2_bg',
'type' => 'color_rgba',
'mode' => 'background',
'output' => array( '#top-bar.top-bar .top-bar__auth-btns .btn-second' ),
'default' => array(
'color' => '',
'alpha' => 1
),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Second Button Custom Hover Background Color', 'techland'),
'id' => 'nav_btn2_hvrbg',
'type' => 'color_rgba',
'mode' => 'background',
'output' => array( '#top-bar.top-bar .top-bar__auth-btns .btn-second:hover' ),
'default' => array(
'color' => '',
'alpha' => 1
),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Second Button Custom Title Color', 'techland'),
'id' => 'nav_btn2_clr',
'type' => 'color',
'mode' => 'color',
'output' => array( '#top-bar.top-bar .top-bar__auth-btns .btn-second' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Second Button Custom Hover Title Color', 'techland'),
'id' => 'nav_btn2_hvrclr',
'type' => 'color',
'mode' => 'color',
'output' => array( '#top-bar.top-bar .top-bar__auth-btns .btn-second:hover' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Second Button Custom Border', 'techland'),
'id' => 'nav_btn2_brd',
'type' => 'border',
'output' => array( '#top-bar.top-bar .top-bar__auth-btns .btn-second' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Second Button Hover Border', 'techland'),
'id' => 'nav_btn2_brdhvr',
'type' => 'border',
'output' => array( '#top-bar.top-bar .top-bar__auth-btns .btn-second:hover' ),
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
)
)));
//HEADER RIGHT BUTTON
Redux::setSection($techland_pre, array(
'title' => esc_html__('Header Cart Icon', 'techland'),
'id' => 'headernavcartsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Header Cart Icon Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site header cart icon.', 'techland'),
'id' => 'cart_icon_visibility',
'type' => 'switch',
'default' => 0,
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Header Cart Icon Background Color', 'techland'),
'id' => 'header_cart_bg',
'type' => 'color',
'mode' => 'background',
'output' => array( '.top-bar a.cart-contents' ),
'default' => '',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' ),
array( 'cart_icon_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Header Cart Icon Text Color', 'techland'),
'id' => 'header_cart_clr',
'type' => 'color',
'mode' => 'color',
'output' => array( '#top-bar__action a.cart-contents a.cart-contents' ),
'default' => '',
'required' => array(
array( 'nav_visibility', '=', '1' ),
array( 'header_template_type', '=', 'default' ),
array( 'cart_icon_visibility', '=', '1' )
)
)
)));
Redux::setSection($techland_pre, array(
'title' => esc_html__('Header Before/After Template', 'techland'),
'id' => 'headerbeforeaftercontentsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Before Header Menu Template', 'techland'),
'subtitle' => esc_html__('Select your template for before header menu.', 'techland'),
'id' => 'vc_before_header_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
),
array(
'title' => esc_html__('After Header Menu Template', 'techland'),
'subtitle' => esc_html__('Select your template for after header menu.', 'techland'),
'id' => 'vc_after_header_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
)
)));
/*************************************************
## SIDEBARS SECTION
*************************************************/
Redux::setSection($techland_pre, array(
'title' => esc_html__('Sidebars', 'techland'),
'id' => 'sidebarssection',
'customizer_width' => '400px',
'icon' => 'el el-website',
'fields' => array()
));
// SIDEBAR LAYOUT SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Sidebars Layout', 'techland'),
'desc' => esc_html__('You can change the below default layout type.', 'techland'),
'id' => 'sidebarslayoutsection',
'subsection' => true,
'icon' => 'el el-cogs',
'fields' => array(
array(
'title' => esc_html__('Sidebar type', 'techland'),
'subtitle' => esc_html__('Select sidebar type.', 'techland'),
'id' => 'sidebar_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'default' => esc_html__('default', 'techland'),
'bordered' => esc_html__('bordered', 'techland'),
),
'default' => 'default',
),
array(
'title' => esc_html__('Blog Page Layout', 'techland'),
'subtitle' => esc_html__('Choose the blog index page layout.', 'techland'),
'id' => 'index_layout',
'type' => 'image_select',
'options' => array(
'left-sidebar' => array(
'alt' => 'Left Sidebar',
'img' => get_template_directory_uri() . '/inc/theme-options/img/2cl.png'
),
'full-width' => array(
'alt' => 'Full Width',
'img' => get_template_directory_uri() . '/inc/theme-options/img/1col.png'
),
'right-sidebar' => array(
'alt' => 'Right Sidebar',
'img' => get_template_directory_uri() . '/inc/theme-options/img/2cr.png'
),
),
'default' => 'right-sidebar'
),
array(
'title' => esc_html__('Single Page Layout', 'techland'),
'subtitle' => esc_html__('Choose the single post page layout.', 'techland'),
'id' => 'single_layout',
'type' => 'image_select',
'options' => array(
'left-sidebar' => array(
'alt' => 'Left Sidebar',
'img' => get_template_directory_uri() . '/inc/theme-options/img/2cl.png'
),
'full-width' => array(
'alt' => 'Full Width',
'img' => get_template_directory_uri() . '/inc/theme-options/img/1col.png'
),
'right-sidebar' => array(
'alt' => 'Right Sidebar',
'img' => get_template_directory_uri() . '/inc/theme-options/img/2cr.png'
),
),
'default' => 'right-sidebar'
),
array(
'title' => esc_html__('Search Page Layout', 'techland'),
'subtitle' => esc_html__('Choose the search page layout.', 'techland'),
'id' => 'search_layout',
'type' => 'image_select',
'options' => array(
'left-sidebar' => array(
'alt' => 'Left Sidebar',
'img' => get_template_directory_uri() . '/inc/theme-options/img/2cl.png'
),
'full-width' => array(
'alt' => 'Full Width',
'img' => get_template_directory_uri() . '/inc/theme-options/img/1col.png'
),
'right-sidebar' => array(
'alt' => 'Right Sidebar',
'img' => get_template_directory_uri() . '/inc/theme-options/img/2cr.png'
),
),
'default' => 'full-width'
),
array(
'title' => esc_html__('Archive Page Layout', 'techland'),
'subtitle' => esc_html__('Choose the archive page layout.', 'techland'),
'id' => 'archive_layout',
'type' => 'image_select',
'options' => array(
'left-sidebar' => array(
'alt' => 'Left Sidebar',
'img' => get_template_directory_uri() . '/inc/theme-options/img/2cl.png'
),
'full-width' => array(
'alt' => 'Full Width',
'img' => get_template_directory_uri() . '/inc/theme-options/img/1col.png'
),
'right-sidebar' => array(
'alt' => 'Right Sidebar',
'img' => get_template_directory_uri() . '/inc/theme-options/img/2cr.png'
),
),
'default' => 'right-sidebar'
),
array(
'title' => esc_html__('404 Page Layout', 'techland'),
'subtitle' => esc_html__('Choose the 404 page layout.', 'techland'),
'id' => 'error_layout',
'type' => 'image_select',
'options' => array(
'left-sidebar' => array(
'alt' => 'Left Sidebar',
'img' => get_template_directory_uri() . '/inc/theme-options/img/2cl.png'
),
'full-width' => array(
'alt' => 'Full Width',
'img' => get_template_directory_uri() . '/inc/theme-options/img/1col.png'
),
'right-sidebar' => array(
'alt' => 'Right Sidebar',
'img' => get_template_directory_uri() . '/inc/theme-options/img/2cr.png'
),
),
'default' => 'full-width'
),
)));
// SIDEBAR COLORS SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Sidebar Customize', 'techland'),
'desc' => esc_html__('These are main settings for general theme!', 'techland'),
'id' => 'sidebarsgenaralsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Sidebar Background', 'techland'),
'id' => 'sdbr_bg',
'type' => 'color',
'mode' => 'background',
'output' => array( '.nt-sidebar' )
),
array(
'id' => 'sdbr_brd',
'type' => 'border',
'title' => esc_html__('Sidebar Border', 'techland'),
'output' => array( '.nt-sidebar' ),
'all' => false
),
array(
'title' => esc_html__('Sidebar Padding', 'techland'),
'id' => 'sdbr_pad',
'type' => 'spacing',
'mode' => 'padding',
'all' => false,
'units' => array( 'em', 'px', '%' ),
'units_extended' => 'true',
'output' => array( '.nt-sidebar' ),
'default' => array(
'margin-top' => '',
'margin-right' => '',
'margin-bottom' => '',
'margin-left' => ''
)
),
array(
'title' => esc_html__('Sidebar Margin', 'techland'),
'id' => 'sdbr_mar',
'type' => 'spacing',
'mode' => 'margin',
'all' => false,
'units' => array( 'em', 'px', '%' ),
'units_extended' => 'true',
'output' => array( '.nt-sidebar' ),
'default' => array(
'margin-top' => '',
'margin-right' => '',
'margin-bottom' => '',
'margin-left' => ''
)
),
)));
// SIDEBAR WIDGET COLORS SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Widget Customize', 'techland'),
'desc' => esc_html__('These are main settings for general theme!', 'techland'),
'id' => 'sidebarwidgetsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Sidebar Widgets Background Color', 'techland'),
'id' => 'sdbr_w_bg',
'type' => 'color',
'mode' => 'background',
'output' => array( '.nt-sidebar .nt-sidebar-inner-widget' )
),
array(
'title' => esc_html__('Widgets Border', 'techland'),
'id' => 'sdbr_w_brd',
'type' => 'border',
'output' => array( '.nt-sidebar .nt-sidebar-inner-widget' ),
'all' => false
),
array(
'title' => esc_html__('Widget Title Color', 'techland'),
'desc' => esc_html__('Set your own colors for the widgets.', 'techland'),
'id' => 'sdbr_wt',
'type' => 'color',
'output' => array( '#nt-sidebar .widget-title' )
),
array(
'title' => esc_html__('Widget Text Color', 'techland'),
'desc' => esc_html__('Set your own colors for the widgets.', 'techland'),
'id' => 'sdbr_wp',
'type' => 'color',
'output' => array( '.nt-sidebar .nt-sidebar-inner-widget, .nt-sidebar .nt-sidebar-inner-widget p' )
),
array(
'title' => esc_html__('Widget Link Color', 'techland'),
'desc' => esc_html__('Set your own colors for the widgets.', 'techland'),
'id' => 'sdbr_a',
'type' => 'color',
'output' => array( '.nt-sidebar .nt-sidebar-inner-widget a' )
),
array(
'title' => esc_html__('Widget Hover Link Color', 'techland'),
'desc' => esc_html__('Set your own hover colors for the widgets.', 'techland'),
'id' => 'sdbr_hvr_a',
'type' => 'color',
'output' => array( '.nt-sidebar .nt-sidebar-inner-widget a:hover' )
),
array(
'title' => esc_html__('Widget Padding', 'techland'),
'id' => 'sdbr_w_pad',
'type' => 'spacing',
'mode' => 'padding',
'all' => false,
'units' => array( 'em', 'px', '%' ),
'units_extended' => 'true',
'output' => array( '.nt-sidebar .nt-sidebar-inner-widget' ),
'default' => array(
'margin-top' => '',
'margin-right' => '',
'margin-bottom' => '',
'margin-left' => ''
)
),
array(
'title' => esc_html__('Widget Margin', 'techland'),
'id' => 'sdbr_w_mar',
'type' => 'spacing',
'mode' => 'margin',
'all' => false,
'units' => array( 'em', 'px', '%' ),
'units_extended' => 'true',
'output' => array( '.nt-sidebar .nt-sidebar-inner-widget' ),
'default' => array(
'margin-top' => '',
'margin-right' => '',
'margin-bottom' => '',
'margin-left' => ''
)
)
)));
/*************************************************
## BLOG PAGE SECTION
*************************************************/
Redux::setSection($techland_pre, array(
'title' => esc_html__('Blog Page', 'techland'),
'id' => 'blogsection',
'icon' => 'el el-home',
'fields' => array()
));
// BLOG HERO SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Blog Hero', 'techland'),
'desc' => esc_html__('These are blog index page hero text settings!', 'techland'),
'id' => 'blogherosubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Blog Hero Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site blog index page hero section with switch option.', 'techland'),
'id' => 'blog_hero_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off'
),
array(
'title' => esc_html__('Blog Hero Alignment', 'techland'),
'subtitle' => esc_html__('Select blog page hero text alignment.', 'techland'),
'id' => 'blog_hero_alignment',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select alignment', 'techland'),
'text-right' => esc_html__('right', 'techland'),
'text-center' => esc_html__('center', 'techland'),
'text-left' => esc_html__('left', 'techland')
),
'default' => 'text-center',
'required' => array( 'blog_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Blog Hero Background', 'techland'),
'id' => 'blog_hero_bg',
'type' => 'background',
'preview' => true,
'preview_media' => true,
'default' => array(
'background-position' => '50% 50%'
),
'output' => array( '#nt-index .hero-container' ),
'required' => array( 'blog_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Blog Hero Overlay Color', 'techland'),
'id' => 'blog_hero_overlay',
'type' => 'color_rgba',
'mode' => 'background',
'output' => array( '#nt-index .hero-container.hero-overlay:before' ),
'required' => array( 'blog_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Blog Hero Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site blog page Hero Section', 'techland'),
'id' =>'blog_hero_pad',
'type' => 'spacing',
'output' => array('#nt-index .hero-container'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px'
),
'required' => array( 'blog_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Blog Title', 'techland'),
'subtitle' => esc_html__('Add your blog index page title here.', 'techland'),
'id' => 'blog_title',
'type' => 'text',
'default' => 'BLOG',
'required' => array( 'blog_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Blog Title Typography', 'techland'),
'id' => 'blog_title_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-index .nt-hero-title' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'blog_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Blog Slogan', 'techland'),
'subtitle' => esc_html__('Add your blog index page slogan here.', 'techland'),
'id' => 'blog_slogan',
'type' => 'textarea',
'default' => 'Read the latest news.',
'required' => array( 'blog_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Blog Slogan Typography', 'techland'),
'id' => 'blog_slogan_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-index .nt-hero-subtitle' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'blog_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Blog Description', 'techland'),
'subtitle' => esc_html__('Add your blog index page description here.', 'techland'),
'id' => 'blog_desc',
'type' => 'textarea',
'default' => '',
'required' => array( 'blog_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Blog Description Typography', 'techland'),
'id' => 'blog_desc_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-index .nt-hero-description' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'blog_hero_visibility', '=', '1' )
),
)));
// HERO PARALLAX EFFECT
Redux::setSection($techland_pre, array(
'title' => esc_html__('Blog Hero Parallax', 'techland'),
'id' => 'blogheroparallaxsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Parallax Effect Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site blog index page hero section parallax effect with switch option.', 'techland'),
'id' => 'blog_hero_parallax_visibility',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array( 'blog_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Parallax Effect Type', 'techland'),
'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
'id' => 'blog_hero_parallax_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'scroll' => esc_html__('scroll', 'techland'),
'opacity' => esc_html__('opacity', 'techland'),
'scale' => esc_html__('scale', 'techland'),
'scroll-opacity' => esc_html__('scroll with opacity', 'techland'),
'scale-opacity' => esc_html__('scale with opacity', 'techland'),
),
'default' => 'scroll',
'required' => array(
array( 'blog_hero_visibility', '=', '1' ),
array( 'blog_hero_parallax_visibility', '=', '1' )
),
),
array(
'title' => esc_html__('Parallax Speed', 'techland'),
'subtitle' => esc_html__('You can control parallax effect with speed option.', 'techland'),
'id' => 'blog_hero_parallax_speed',
'type' => 'slider',
'default' => .7,
'min' => 0.2,
'step' => .1,
'max' => 10,
'resolution' => 0.1,
'display_value' => 'text',
'required' => array(
array( 'blog_hero_visibility', '=', '1' ),
array( 'blog_hero_parallax_visibility', '=', '1' )
),
),
array(
'title' => esc_html__('Use Video', 'techland'),
'id' => 'blog_hero_use_video',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array(
array( 'blog_hero_visibility', '=', '1' ),
array( 'blog_hero_parallax_visibility', '=', '1' )
),
),
array(
'title' => esc_html__('Video Type', 'techland'),
'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
'id' => 'blog_hero_video_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'social' => esc_html__('Social media ( youtube or vimeo )', 'techland'),
'mp4' => esc_html__('Local video (mp4)', 'techland'),
'webm' => esc_html__('Local video (webm)', 'techland'),
'ogv' => esc_html__('Local video (ogv)', 'techland')
),
'default' => 'social',
'required' => array(
array( 'blog_hero_visibility', '=', '1' ),
array( 'blog_hero_parallax_visibility', '=', '1' ),
array( 'blog_hero_use_video', '=', '1' )
)
),
array(
'title' => esc_html__('Video URL', 'techland'),
'subtitle' => esc_html__('Add your video url here.', 'techland'),
'id' => 'blog_hero_video_url',
'type' => 'text',
'default' => 'https://www.youtube.com/embed/1zG1iq9LZ2U',
'required' => array(
array( 'blog_hero_visibility', '=', '1' ),
array( 'blog_hero_parallax_visibility', '=', '1' ),
array( 'blog_hero_use_video', '=', '1' )
)
),
// information
array(
'id' =>'info_blog_prlx2',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Info!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('If you want to use the hero parallax effect, please activate the %s.', 'techland'), '<b>Hero Section</b>'),
'required' => array( 'blog_hero_visibility', '=', '0' )
)
)));
// BLOG LAYOUT AND POST COLUMN STYLE
Redux::setSection($techland_pre, array(
'title' => esc_html__('Blog Content', 'techland'),
'id' => 'blogcontentsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Blog page type', 'techland'),
'subtitle' => esc_html__('Select blog page layout type.', 'techland'),
'id' => 'index_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'default' => esc_html__('default', 'techland'),
'masonry' => esc_html__('masonry', 'techland'),
'grid' => esc_html__('grid', 'techland')
),
'default' => 'grid'
),
array(
'title' => esc_html__('Post format box style', 'techland'),
'subtitle' => esc_html__('Select box style.', 'techland'),
'id' => 'format_box_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'nt-default-format-box' => esc_html__('default bordered', 'techland'),
'nt-simple-format-box' => esc_html__('simple', 'techland')
),
'default' => 'nt-default-format-box',
'required' => array( 'index_type', '!=', 'grid' )
),
array(
'title' => esc_html__('Post format box style', 'techland'),
'subtitle' => esc_html__('Select box style.', 'techland'),
'id' => 'grid_style',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'1' => esc_html__('Style 1', 'techland'),
'2' => esc_html__('Style 2', 'techland'),
'3' => esc_html__('Style 3', 'techland'),
'4' => esc_html__('Style 4', 'techland')
),
'default' => '1',
'required' => array( 'index_type', '=', 'grid' )
),
array(
'title' => esc_html__('Blog page post format column width', 'techland'),
'subtitle' => esc_html__('Select a column number.', 'techland'),
'id' => 'index_type_column',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'col-lg-6' => esc_html__('2 column', 'techland'),
'col-lg-4' => esc_html__('3 column', 'techland')
),
'default' => 'col-lg-6',
'required' => array( 'index_type', '=', 'masonry' )
),
array(
'title' => esc_html__('Blog page post column width', 'techland'),
'subtitle' => esc_html__('Select a column number.', 'techland'),
'id' => 'grid_column',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'12' => esc_html__('1 column', 'techland'),
'6' => esc_html__('2 column', 'techland'),
'4' => esc_html__('3 column', 'techland'),
'3' => esc_html__('4 column', 'techland')
),
'default' => '6',
'required' => array( 'index_type', '=', 'grid' )
),
array(
'title' => esc_html__('Blog Content Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site blog page Hero Section', 'techland'),
'id' =>'blog_content_pad',
'type' => 'spacing',
'output' => array('#nt-index .nt-theme-inner-container'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px'
),
),
array(
'title' => esc_html__('Post Image and Text Alignment', 'techland'),
'subtitle' => esc_html__('Select post content alignment.', 'techland'),
'id' => 'post_alignment',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select alignment', 'techland'),
'text-right' => esc_html__('right', 'techland'),
'text-center' => esc_html__('center', 'techland'),
'text-left' => esc_html__('left', 'techland'),
),
'default' => 'text-left'
),
array(
'title' => esc_html__('Blog Post Title Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site blog index page post title with switch option.', 'techland'),
'id' => 'post_title_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off'
),
array(
'title' => esc_html__('Blog Post Meta Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site blog index page post meta with switch option.', 'techland'),
'id' => 'post_meta_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off'
),
array(
'title' => esc_html__('Blog Post Category Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site blog index page post category with switch option.', 'techland'),
'id' => 'post_category_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off'
),
array(
'title' => esc_html__('Blog Post Author Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site blog index page post author with switch option.', 'techland'),
'id' => 'post_author_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off'
),
array(
'title' => esc_html__('Blog Post Date Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site blog index page post date with switch option.', 'techland'),
'id' => 'post_date_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
'required' => array( 'post_meta', '=', '1' )
),
array(
'title' => esc_html__('Blog Post Comments Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site blog index page post comments with switch option.', 'techland'),
'id' => 'post_comments_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
'required' => array( 'post_meta', '=', '1' )
),
array(
'title' => esc_html__('Blog Post Excerpt Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site blog index page post meta with switch option.', 'techland'),
'id' => 'post_excerpt_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off'
),
array(
'title' => esc_html__('Post Excerpt Size (max word count)', 'techland'),
'subtitle' => esc_html__('You can control blog post excerpt size with this option.', 'techland'),
'id' => 'excerptsz',
'type' => 'slider',
'default' => 16,
'min' => 0,
'step' => 1,
'max' => 100,
'display_value' => 'text',
'required' => array( 'post_excerpt_visibility', '=', '1' )
),
array(
'title' => esc_html__('Blog Post Button Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site blog index page post read more button wityh switch option.', 'techland'),
'id' => 'post_button_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off'
),
array(
'title' => esc_html__('Blog Post Button Title', 'techland'),
'subtitle' => esc_html__('Add your blog post read more button title here.', 'techland'),
'id' => 'post_button_title',
'type' => 'text',
'default' => esc_html__('Read More', 'techland'),
'required' => array( 'post_button_visibility', '=', '1' )
)
)));
Redux::setSection($techland_pre, array(
'title' => esc_html__('Blog Before/After Content', 'techland'),
'id' => 'blogaftercontentsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Before Blog Content Template', 'techland'),
'subtitle' => esc_html__('Select your template for before blog content.', 'techland'),
'id' => 'vc_before_index_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
),
array(
'title' => esc_html__('After Blog Content Template', 'techland'),
'subtitle' => esc_html__('Select your template for after blog content.', 'techland'),
'id' => 'vc_after_index_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
)
)));
/*************************************************
## SINGLE PAGE SECTION
*************************************************/
Redux::setSection($techland_pre, array(
'title' => esc_html__('Single Page', 'techland'),
'id' => 'singlesection',
'icon' => 'el el-home-alt',
'fields' => array()
));
// SINGLE HERO SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Single Hero', 'techland'),
'desc' => esc_html__('These are single page hero section settings!', 'techland'),
'id' => 'singleherosubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Single Hero display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site single page hero section with switch option.', 'techland'),
'id' => 'single_hero_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
),
array(
'title' => esc_html__('Single Hero Alignment', 'techland'),
'subtitle' => esc_html__('Select single page hero text alignment.', 'techland'),
'id' => 'single_hero_alignment',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select alignment', 'techland'),
'text-right' => esc_html__('right', 'techland'),
'text-center' => esc_html__('center', 'techland'),
'text-left' => esc_html__('left', 'techland'),
),
'default' => 'text-center',
'required' => array( 'single_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Single Hero Background', 'techland'),
'id' => 'single_hero_bg',
'type' => 'background',
'output' => array( '#nt-single .hero-container' ),
'required' => array( 'single_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Single Hero Overlay Color', 'techland'),
'id' =>'single_hero_overlay',
'type' => 'color_rgba',
'mode' => 'background',
'output' => array( '#nt-single .hero-container.hero-overlay:before' ),
'required' => array( 'single_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Single Hero Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site single page Hero Section', 'techland'),
'id' =>'single_hero_pad',
'type' => 'spacing',
'output' => array('#nt-single .hero-container'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px',
),
'required' => array( 'single_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Single Hero Title Source', 'techland'),
'subtitle' => esc_html__('Select single page hero title source.', 'techland'),
'id' => 'single_title_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select an option', 'techland'),
'post' => esc_html__('Post Title', 'techland'),
'blog' => esc_html__('Blog Page Title', 'techland'),
'custom' => esc_html__('Custom Title', 'techland'),
),
'default' => 'text-center',
'required' => array( 'single_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Single Custom Title', 'techland'),
'subtitle' => esc_html__('Add your single page title here.', 'techland'),
'id' => 'single_title',
'type' => 'text',
'default' => '',
'required' => array(
array( 'single_hero_visibility', '=', '1' ),
array( 'single_title_type', '=', 'custom' )
)
),
array(
'title' => esc_html__('Single Title Typography', 'techland'),
'id' => 'single_title_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-single .nt-hero-title' ),
'units' => 'px',
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'single_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Single Slogan', 'techland'),
'subtitle' => esc_html__('Add your single page slogan here.', 'techland'),
'id' => 'single_slogan',
'type' => 'textarea',
'default' => '',
'required' => array( 'single_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Single Slogan Typography', 'techland'),
'id' => 'single_slogan_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-single .nt-hero-subtitle' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'single_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Single Description', 'techland'),
'subtitle' => esc_html__('Add your single page description here.', 'techland'),
'id' => 'single_desc',
'type' => 'textarea',
'default' => '',
'required' => array( 'single_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Single Description Typography', 'techland'),
'id' => 'single_desc_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-single .nt-hero-description' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'single_hero_visibility', '=', '1' ),
),
)));
// HERO PARALLAX EFFECT
Redux::setSection($techland_pre, array(
'title' => esc_html__('Hero Parallax', 'techland'),
'id' => 'singleheroparallaxsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Parallax Effect Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site single page hero section parallax effect with switch option.', 'techland'),
'id' => 'single_hero_parallax_visibility',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array( 'single_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Parallax Effect Type', 'techland'),
'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
'id' => 'single_hero_parallax_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'scroll' => esc_html__('scroll', 'techland'),
'opacity' => esc_html__('opacity', 'techland'),
'scale' => esc_html__('scale', 'techland'),
'scroll-opacity' => esc_html__('scroll with opacity', 'techland'),
'scale-opacity' => esc_html__('scale with opacity', 'techland'),
),
'default' => 'scroll',
'required' => array(
array( 'single_hero_visibility', '=', '1' ),
array( 'single_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Parallax Speed', 'techland'),
'subtitle' => esc_html__('You can control parallax effect with speed option.', 'techland'),
'id' => 'single_hero_parallax_speed',
'type' => 'slider',
'default' => .7,
'min' => 0.2,
'step' => .1,
'max' => 10,
'resolution' => 0.1,
'display_value' => 'text',
'required' => array(
array( 'single_hero_visibility', '=', '1' ),
array( 'single_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Use Video', 'techland'),
'id' => 'single_hero_use_video',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array(
array( 'single_hero_visibility', '=', '1' ),
array( 'single_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Video Type', 'techland'),
'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
'id' => 'single_hero_video_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'social' => esc_html__('Social media ( youtube or vimeo )', 'techland'),
'mp4' => esc_html__('Local video (mp4)', 'techland'),
'webm' => esc_html__('Local video (webm)', 'techland'),
'ogv' => esc_html__('Local video (ogv)', 'techland')
),
'default' => 'social',
'required' => array(
array( 'single_hero_visibility', '=', '1' ),
array( 'single_hero_parallax_visibility', '=', '1' ),
array( 'single_hero_use_video', '=', '1' )
)
),
array(
'title' => esc_html__('Video URL', 'techland'),
'subtitle' => esc_html__('Add your video url here.', 'techland'),
'id' => 'single_hero_video_url',
'type' => 'text',
'default' => 'https://www.youtube.com/embed/1zG1iq9LZ2U',
'required' => array(
array( 'single_hero_visibility', '=', '1' ),
array( 'single_hero_parallax_visibility', '=', '1' ),
array( 'single_hero_use_video', '=', '1' )
)
),
// information
array(
'id' =>'info_single_prlx',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Info!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('If you want to use the hero parallax effect, please activate the %s.', 'techland'), '<b>Hero Section</b>'),
'required' => array( 'single_hero_visibility', '!=', '1' )
)
)));
// SINGLE CONTENT SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Single Content', 'techland'),
'id' => 'singlecontentsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Single Content Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site single page content.', 'techland'),
'id' =>'single_content_pad',
'type' => 'spacing',
'output' => array('#nt-single .nt-theme-inner-container'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px'
)
),
array(
'title' => esc_html__('Single Post Tags Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site single page post meta tags with switch option.', 'techland'),
'id' => 'single_postmeta_tags_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
),
array(
'title' => esc_html__('Single Post Date and Author Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site single page post date with switch option.', 'techland'),
'id' => 'single_post_author_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
),
array(
'title' => esc_html__('Single Post Category Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site single page post category with switch option.', 'techland'),
'id' => 'single_post_category_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
),
array(
'title' => esc_html__('Single Post Authorbox', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site single page post authorbox with switch option.', 'techland'),
'id' => 'single_post_author_box_visibility',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
),
array(
'title' => esc_html__('Single Post Pagination Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site single page post next and prev pagination with switch option.', 'techland'),
'id' => 'single_navigation_visibility',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
),
array(
'title' => esc_html__('Single Related Post Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site single page related post with switch option.', 'techland'),
'id' => 'single_related_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
),
array(
'title' => esc_html__('Single Related Post Count', 'techland'),
'subtitle' => esc_html__('You can control related post count with this option.', 'techland'),
'id' => 'related_perpage',
'type' => 'slider',
'default' => 3,
'min' => 1,
'step' => 1,
'max' => 24,
'display_value' => 'text',
'required' => array( 'single_related_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Related Section Title', 'techland'),
'subtitle' => esc_html__('Add your single page related post section title here.', 'techland'),
'id' => 'related_title',
'type' => 'text',
'default' => esc_html__('You May Also Like', 'techland'),
'required' => array( 'single_related_visibility', '=', '1' ),
),
)));
Redux::setSection($techland_pre, array(
'title' => esc_html__('Single Before/After Content', 'techland'),
'id' => 'singlebeforeaftercontentsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Before Single Content Template', 'techland'),
'subtitle' => esc_html__('Select your template for before single content.', 'techland'),
'id' => 'vc_before_single_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
),
array(
'title' => esc_html__('After Single Content Template', 'techland'),
'subtitle' => esc_html__('Select your template for after single content.', 'techland'),
'id' => 'vc_after_single_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
)
)));
/*************************************************
## ARCHIVE PAGE SECTION
*************************************************/
Redux::setSection($techland_pre, array(
'title' => esc_html__('Archive Page', 'techland'),
'id' => 'archivesection',
'icon' => 'el el-folder-open',
'fields' => array()
));
// ARCHIVE PAGE SECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Archive Hero', 'techland'),
'desc' => esc_html__('These are archive page hero settings!', 'techland'),
'id' => 'archiveherosubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Archive Hero display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site archive page hero section with switch option.', 'techland'),
'id' => 'archive_hero_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
),
array(
'title' => esc_html__('Archive Hero Alignment', 'techland'),
'subtitle' => esc_html__('Select archive page hero text alignment.', 'techland'),
'id' => 'archive_hero_alignment',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select alignment', 'techland'),
'text-right' => esc_html__('right', 'techland'),
'text-center' => esc_html__('center', 'techland'),
'text-left' => esc_html__('left', 'techland'),
),
'default' => 'text-center',
'required' => array( 'archive_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Archive Hero Background', 'techland'),
'id' => 'archive_hero_bg',
'type' => 'background',
'output' => array( '#nt-archive .hero-container' ),
'required' => array( 'archive_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Archive Hero Overlay Color', 'techland'),
'id' =>'archive_hero_overlay',
'type' => 'color_rgba',
'mode' => 'background',
'output' => array( '#nt-archive .hero-container.hero-overlay:before' ),
'required' => array( 'archive_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Archive Hero Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site archive page Hero Section', 'techland'),
'id' =>'archive_hero_pad',
'type' => 'spacing',
'output' => array('#nt-archive .hero-container'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px',
),
'required' => array( 'archive_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Custom Archive Title', 'techland'),
'subtitle' => esc_html__('Add your custom archive page title here.', 'techland'),
'id' => 'archive_title',
'type' => 'text',
'default' => 'ARCHIVE',
),
array(
'title' => esc_html__('Archive Title Typography', 'techland'),
'id' => 'archive_title_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-archive .nt-hero-title' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'archive_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Archive Slogan', 'techland'),
'subtitle' => esc_html__('Add your archive page slogan here.', 'techland'),
'id' => 'archive_slogan',
'type' => 'textarea',
'default' => '',
'required' => array( 'archive_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Archive Slogan Typography', 'techland'),
'id' => 'archive_slogan_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-archive .nt-hero-subtitle' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'archive_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Archive Description', 'techland'),
'subtitle' => esc_html__('Add your archive page description here.', 'techland'),
'id' => 'archive_desc',
'type' => 'textarea',
'default' => '',
'required' => array( 'archive_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Archive Description Typography', 'techland'),
'id' => 'archive_desc_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-archive .nt-hero-description' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'archive_hero_visibility', '=', '1' ),
),
array(
'title' => esc_html__('Archive Content Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site archive page content.', 'techland'),
'id' =>'archive_content_pad',
'type' => 'spacing',
'output' => array('#nt-archive .nt-theme-inner-container'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px',
)
)
)));
// HERO PARALLAX EFFECT
Redux::setSection($techland_pre, array(
'title' => esc_html__('Hero Parallax', 'techland'),
'id' => 'archiveheroparallaxsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Parallax Effect Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site archive page hero section parallax effect with switch option.', 'techland'),
'id' => 'archive_hero_parallax_visibility',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array( 'archive_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Parallax Effect Type', 'techland'),
'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
'id' => 'archive_hero_parallax_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'scroll' => esc_html__('scroll', 'techland'),
'opacity' => esc_html__('opacity', 'techland'),
'scale' => esc_html__('scale', 'techland'),
'scroll-opacity' => esc_html__('scroll with opacity', 'techland'),
'scale-opacity' => esc_html__('scale with opacity', 'techland'),
),
'default' => 'scroll',
'required' => array(
array( 'archive_hero_visibility', '=', '1' ),
array( 'archive_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Parallax Speed', 'techland'),
'subtitle' => esc_html__('You can control parallax effect with speed option.', 'techland'),
'id' => 'archive_hero_parallax_speed',
'type' => 'slider',
'default' => .7,
'min' => 0.2,
'step' => .1,
'max' => 10,
'resolution' => 0.1,
'display_value' => 'text',
'required' => array(
array( 'archive_hero_visibility', '=', '1' ),
array( 'archive_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Use Video', 'techland'),
'id' => 'archive_hero_use_video',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array(
array( 'archive_hero_visibility', '=', '1' ),
array( 'archive_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Video Type', 'techland'),
'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
'id' => 'archive_hero_video_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'social' => esc_html__('Social media ( youtube or vimeo )', 'techland'),
'mp4' => esc_html__('Local video (mp4)', 'techland'),
'webm' => esc_html__('Local video (webm)', 'techland'),
'ogv' => esc_html__('Local video (ogv)', 'techland')
),
'default' => 'social',
'required' => array(
array( 'archive_hero_visibility', '=', '1' ),
array( 'archive_hero_parallax_visibility', '=', '1' ),
array( 'archive_hero_use_video', '=', '1' )
)
),
array(
'title' => esc_html__('Video URL', 'techland'),
'subtitle' => esc_html__('Add your video url here.', 'techland'),
'id' => 'archive_hero_video_url',
'type' => 'text',
'default' => 'https://www.youtube.com/embed/1zG1iq9LZ2U',
'required' => array(
array( 'archive_hero_visibility', '=', '1' ),
array( 'archive_hero_parallax_visibility', '=', '1' ),
array( 'archive_hero_use_video', '=', '1' )
)
),
// information
array(
'id' =>'info_archive_prlx',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Info!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('If you want to use the hero parallax effect, please activate the %s.', 'techland'), '<b>Hero Section</b>'),
'required' => array( 'archive_hero_visibility', '!=', '1' )
)
)));
Redux::setSection($techland_pre, array(
'title' => esc_html__('Archive Before/After Content', 'techland'),
'id' => 'archivebeforeaftercontentsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Before Archive Content Template', 'techland'),
'subtitle' => esc_html__('Select your template for before archive content.', 'techland'),
'id' => 'vc_before_archive_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
),
array(
'title' => esc_html__('After Archive Content Template', 'techland'),
'subtitle' => esc_html__('Select your template for after archive content.', 'techland'),
'id' => 'vc_after_archive_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
)
)));
/*************************************************
## 404 PAGE SECTION
*************************************************/
Redux::setSection($techland_pre, array(
'title' => esc_html__('404 Page', 'techland'),
'id' => 'errorsection',
'icon' => 'el el-error',
'fields' => array(
array(
'title' => esc_html__('404 Page Type', 'techland'),
'subtitle' => esc_html__('Select 404 page different type from list.', 'techland'),
'id' => 'error_page_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'default' => esc_html__('Default', 'techland'),
'2' => esc_html__('Cover 1', 'techland'),
'3' => esc_html__('Cover 2', 'techland'),
'4' => esc_html__('Split', 'techland'),
'5' => esc_html__('Video BG', 'techland'),
'6' => esc_html__('Custom type from page', 'techland'),
),
'default' => 'default',
),
array(
'title' => esc_html__('Custom 404 Page Type', 'techland'),
'subtitle' => esc_html__('Select custom 404 page type from page list.', 'techland'),
'id' => 'error_select_page_type',
'type' => 'select',
'multi' => false,
'data' => 'page',
'required' => array( 'error_page_type', '=', '6' ),
),
array(
'title' => esc_html__('Video Source', 'techland'),
'subtitle' => esc_html__('Add mp4 video here.', 'techland'),
'id' => 'error_content_bg_video',
'type' => 'text',
'required' => array( 'error_page_type', '=', '5' ),
),
array(
'title' => esc_html__('404 Background', 'techland'),
'id' => 'error_content_bg_img',
'type' => 'background',
'output' => array( '#nt-404 .c-section-photo' ),
'required' => array(
array( 'error_page_type', '!=', 'default' ),
array( 'error_page_type', '!=', '6' )
)
),
array(
'title' => esc_html__('404 Background Overlay Color', 'techland'),
'id' =>'error_content_bg_overlay',
'type' => 'color_rgba',
'mode' => 'background',
'output' => array( '#nt-404 .c-section-photo:before, .c-section-overlay:before' ),
'required' => array(
array( 'error_page_type', '!=', 'default' ),
array( 'error_page_type', '!=', '6' )
)
),
)));
//404 PAGE SECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Default 404 Hero', 'techland'),
'id' => 'errorherosubsection',
'desc' => esc_html__('These are main settings for general theme!', 'techland'),
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('404 Hero display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site 404 page hero section with switch option.', 'techland'),
'id' => 'error_hero_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
'required' => array( 'error_page_type', '=', 'default' )
),
array(
'title' => esc_html__('404 Hero Alignment', 'techland'),
'subtitle' => esc_html__('Select 404 page hero text alignment.', 'techland'),
'id' => 'error_hero_alignment',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select alignment', 'techland'),
'text-right' => esc_html__('right', 'techland'),
'text-center' => esc_html__('center', 'techland'),
'text-left' => esc_html__('left', 'techland'),
),
'default' => 'text-center',
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('404 Hero Background', 'techland'),
'id' => 'error_hero_bg',
'type' => 'background',
'output' => array( '#nt-404 .hero-container' ),
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('404 Hero Overlay Color', 'techland'),
'id' =>'error_hero_overlay',
'type' => 'color_rgba',
'mode' => 'background',
'output' => array( '#nt-404 .hero-container.hero-overlay:before' ),
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('404 Page Hero Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site error page Hero Section', 'techland'),
'id' =>'error_hero_pad',
'type' => 'spacing',
'output' => array('#nt-404 .hero-container'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px',
),
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('404 Title', 'techland'),
'subtitle' => esc_html__('Add your 404 page title here.', 'techland'),
'id' => 'error_title',
'type' => 'text',
'default' => esc_html__('404 - Not Found', 'techland'),
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('404 Title Typography', 'techland'),
'id' => 'error_title_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-404 .nt-hero-title' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('404 Slogan', 'techland'),
'subtitle' => esc_html__('Add your 404 page slogan here.', 'techland'),
'id' => 'error_slogan',
'type' => 'textarea',
'default' => esc_html__('OOPS! THAT PAGE CAN NOT BE FOUND', 'techland'),
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('404 Slogan Typography', 'techland'),
'id' => 'error_slogan_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-404 .nt-hero-subtitle' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('404 Description', 'techland'),
'subtitle' => esc_html__('Add your 404 page description here.', 'techland'),
'id' => 'error_desc',
'type' => 'textarea',
'default' => '',
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
array(
'title' =>esc_html__('404 Description Typography', 'techland'),
'id' => 'error_desc_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-404 .nt-hero-description' ),
'default' => array(
'color' =>'',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('404 Page Content Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site error page content.', 'techland'),
'id' =>'error_content_pad',
'type' => 'spacing',
'output' => array('#nt-404 .nt-theme-inner-container'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px'
),
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
//information
array(
'id' =>'info_error_prlx',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Info!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('These options is only compatible with %s.', 'techland'), '<b>404 Page Type : default</b>'),
'required' => array( 'error_page_type', '!=', 'default' )
)
)));
// HERO PARALLAX EFFECT
Redux::setSection($techland_pre, array(
'title' => esc_html__('Default 404 Hero Parallax', 'techland'),
'id' => 'errorheroparallaxsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Parallax Effect Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site error page hero section parallax effect with switch option.', 'techland'),
'id' => 'error_hero_parallax_visibility',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Parallax Effect Type', 'techland'),
'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
'id' => 'error_hero_parallax_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'scroll' => esc_html__('scroll', 'techland'),
'opacity' => esc_html__('opacity', 'techland'),
'scale' => esc_html__('scale', 'techland'),
'scroll-opacity' => esc_html__('scroll with opacity', 'techland'),
'scale-opacity' => esc_html__('scale with opacity', 'techland'),
),
'default' => 'scroll',
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' ),
array( 'error_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Parallax Speed', 'techland'),
'subtitle' => esc_html__('You can control parallax effect with speed option.', 'techland'),
'id' => 'error_hero_parallax_speed',
'type' => 'slider',
'default' => .7,
'min' => 0.2,
'step' => .1,
'max' => 10,
'resolution' => 0.1,
'display_value' => 'text',
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' ),
array( 'error_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Use Video', 'techland'),
'id' => 'error_hero_use_video',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' ),
array( 'error_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Video Type', 'techland'),
'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
'id' => 'error_hero_video_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'social' => esc_html__('Social media ( youtube or vimeo )', 'techland'),
'mp4' => esc_html__('Local video (mp4)', 'techland'),
'webm' => esc_html__('Local video (webm)', 'techland'),
'ogv' => esc_html__('Local video (ogv)', 'techland')
),
'default' => 'social',
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' ),
array( 'error_hero_parallax_visibility', '=', '1' ),
array( 'error_hero_use_video', '=', '1' )
)
),
array(
'title' => esc_html__('Video URL', 'techland'),
'subtitle' => esc_html__('Add your video url here.', 'techland'),
'id' => 'error_hero_video_url',
'type' => 'text',
'default' => 'https://www.youtube.com/embed/1zG1iq9LZ2U',
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_hero_visibility', '=', '1' ),
array( 'error_hero_parallax_visibility', '=', '1' ),
array( 'error_hero_use_video', '=', '1' )
)
),
//information
array(
'id' =>'info_error_prlx1',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Info!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('Hero parallax effect is only compatible with %s.', 'techland'), '<b>404 Page Type : default</b>'),
'required' => array( 'error_page_type', '!=', 'default' )
),
array(
'id' =>'info_error_prlx2',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Info!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('If you want to use the hero parallax effect, please activate the %s.', 'techland'), '<b>Hero Section</b>'),
'required' => array( 'error_hero_visibility', '!=', '1' )
)
)));
//404 PAGE SECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('404 Content', 'techland'),
'id' => 'errorcontentsubsection',
'desc' => esc_html__('These are main settings for general theme!', 'techland'),
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('404 Content Search Form Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site 404 page content search form with switch option.', 'techland'),
'id' => 'error_content_search_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
'required' => array( 'error_page_type', '=', 'default' ),
),
array(
'title' => esc_html__('Content Title Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site 404 page content search form with switch option.', 'techland'),
'id' => 'error_content_title_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
'required' => array( 'error_page_type', '!=', '6' )
),
array(
'title' => esc_html__('Content Title', 'techland'),
'subtitle' => esc_html__('Add your 404 page content title here.', 'techland'),
'id' => 'error_content_title',
'type' => 'text',
'default' => '',
'required' => array(
array( 'error_page_type', '!=', '6' ),
array( 'error_content_title_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Title Typography', 'techland'),
'id' => 'error_content_title_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-404 .error-content-title' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array(
array( 'error_page_type', '!=', '6' ),
array( 'error_content_title_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Content Description Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site 404 page content search form with switch option.', 'techland'),
'id' => 'error_content_desc_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
'required' => array( 'error_page_type', '!=', '6' )
),
array(
'title' => esc_html__('Content Description', 'techland'),
'subtitle' => esc_html__('Add your 404 page content description here.', 'techland'),
'id' => 'error_content_desc',
'type' => 'textarea',
'default' => '',
'required' => array(
array( 'error_page_type', '!=', '6' ),
array( 'error_content_desc_visibility', '=', '1' )
)
),
array(
'title' =>esc_html__('Description Typography', 'techland'),
'id' => 'error_page_content_desc_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-404 .error-content-desc' ),
'default' => array(
'color' =>'',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array(
array( 'error_page_type', '!=', '6' ),
array( 'error_content_desc_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Description Margin', 'techland'),
'subtitle' => esc_html__('You can set the spacing of the site error page content description.', 'techland'),
'id' =>'error_content_pad',
'type' => 'spacing',
'output' => array('#nt-404 .error-content-desc'),
'mode' => 'margin',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'margin-top' => '',
'margin-right' => '',
'margin-bottom' => '',
'margin-left' => '',
'units' => 'px'
),
'required' => array(
array( 'error_page_type', '=', 'default' ),
array( 'error_content_desc_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Button Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site 404 page content back to home button with switch option.', 'techland'),
'id' => 'error_content_btn_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off',
'required' => array(
array( 'error_page_type', '!=', 'default' ),
array( 'error_page_type', '!=', '6' )
),
),
array(
'title' => esc_html__('Button Title', 'techland'),
'subtitle' => esc_html__('Add your 404 page content back to home button title here.', 'techland'),
'id' => 'error_content_btn_title',
'type' => 'text',
'default' => 'GO BACK HOME',
'required' => array(
array( 'error_page_type', '!=', 'default' ),
array( 'error_page_type', '!=', '6' )
),
),
array(
'title' => esc_html__('404 Page Content Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site error page content.', 'techland'),
'id' =>'error_content_pad',
'type' => 'spacing',
'output' => array('#nt-404 .nt-theme-inner-container'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px'
),
'required' => array( 'error_page_type', '=', 'default' )
),
array(
'title' => esc_html__('Content Background', 'techland'),
'id' => 'error_content_bg',
'type' => 'background',
'output' => array( '#nt-404 .nt-theme-inner-container' ),
'required' => array( 'error_page_type', '=', 'default' )
),
//information
array(
'id' =>'info_error_content',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Info!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('These options is not compatible with %s.', 'techland'), '<b>404 Page Type : Custom</b>'),
'required' => array( 'error_page_type', '=', '6' )
)
)));
/*************************************************
## SEARCH PAGE SECTION
*************************************************/
Redux::setSection($techland_pre, array(
'title' => esc_html__('Search Page', 'techland'),
'id' => 'searchsection',
'icon' => 'el el-search',
'fields' => array()
));
//SEARCH PAGE SECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Search Hero', 'techland'),
'id' => 'searchherosubsection',
'desc' => esc_html__('These are main settings for general theme!', 'techland'),
'icon' => 'el el-search',
'subsection' => true,
'fields' => array(
array(
'title' => esc_html__('Search Hero display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site search page hero section with switch option.', 'techland'),
'id' => 'search_hero_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off'
),
array(
'title' => esc_html__('Search Hero Alignment', 'techland'),
'subtitle' => esc_html__('Select search page hero text alignment.', 'techland'),
'id' => 'search_hero_alignment',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select alignment', 'techland'),
'text-right' => esc_html__('right', 'techland'),
'text-center' => esc_html__('center', 'techland'),
'text-left' => esc_html__('left', 'techland')
),
'default' => 'text-center',
'required' => array( 'search_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Search Hero Background', 'techland'),
'id' =>'search_hero_bg',
'type' => 'background',
'output' => array( '#nt-search .hero-container' ),
'required' => array( 'search_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Search Hero Overlay Color', 'techland'),
'id' =>'search_hero_overlay',
'type' => 'color_rgba',
'mode' => 'background',
'output' => array( '#nt-search .hero-container.hero-overlay:before' ),
'required' => array( 'search_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Search Page Hero Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site search page Hero Section', 'techland'),
'id' =>'search_hero_pad',
'type' => 'spacing',
'output' => array('#nt-search .hero-container'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px'
),
'required' => array( 'search_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Search Title', 'techland'),
'subtitle' => esc_html__('Add your search page title here.', 'techland'),
'id' => 'search_title',
'type' => 'text',
'default' => esc_html__('Search results for :', 'techland'),
'required' => array( 'search_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Search Title Typography', 'techland'),
'id' => 'search_title_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-search .nt-hero-title' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'search_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Search Slogan', 'techland'),
'subtitle' => esc_html__('Add your search page slogan here.', 'techland'),
'id' => 'search_slogan',
'type' => 'textarea',
'default' => esc_html__('Search Completed', 'techland'),
'required' => array( 'search_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Search Slogan Typography', 'techland'),
'id' => 'search_slogan_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-search .nt-hero-subtitle' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'search_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Search Description', 'techland'),
'subtitle' => esc_html__('Add your search page description here.', 'techland'),
'id' => 'search_desc',
'type' => 'textarea',
'default' => '',
'required' => array( 'search_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Search Description Typography', 'techland'),
'id' => 'search_desc_typo',
'type' => 'typography',
'font-backup' => false,
'letter-spacing' => true,
'text-transform' => true,
'all_styles' => true,
'output' => array( '#nt-search .nt-hero-description' ),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
'required' => array( 'search_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Search Page Content Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site search page content.', 'techland'),
'id' =>'search_content_pad',
'type' => 'spacing',
'output' => array('#nt-search .nt-theme-inner-container'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px'
),
),
)));
// HERO PARALLAX EFFECT
Redux::setSection($techland_pre, array(
'title' => esc_html__('Hero Parallax', 'techland'),
'id' => 'searchheroparallaxsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Parallax Effect Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site search page hero section parallax effect with switch option.', 'techland'),
'id' => 'search_hero_parallax_visibility',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array( 'search_hero_visibility', '=', '1' )
),
array(
'title' => esc_html__('Parallax Effect Type', 'techland'),
'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
'id' => 'search_hero_parallax_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'scroll' => esc_html__('scroll', 'techland'),
'opacity' => esc_html__('opacity', 'techland'),
'scale' => esc_html__('scale', 'techland'),
'scroll-opacity' => esc_html__('scroll with opacity', 'techland'),
'scale-opacity' => esc_html__('scale with opacity', 'techland'),
),
'default' => 'scroll',
'required' => array(
array( 'search_hero_visibility', '=', '1' ),
array( 'search_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Parallax Speed', 'techland'),
'subtitle' => esc_html__('You can control parallax effect with speed option.', 'techland'),
'id' => 'search_hero_parallax_speed',
'type' => 'slider',
'default' => .7,
'min' => 0.2,
'step' => .1,
'max' => 10,
'resolution' => 0.1,
'display_value' => 'text',
'required' => array(
array( 'search_hero_visibility', '=', '1' ),
array( 'search_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Use Video', 'techland'),
'id' => 'search_hero_use_video',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array(
array( 'search_hero_visibility', '=', '1' ),
array( 'search_hero_parallax_visibility', '=', '1' )
)
),
array(
'title' => esc_html__('Video Type', 'techland'),
'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
'id' => 'search_hero_video_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select type', 'techland'),
'social' => esc_html__('Social media ( youtube or vimeo )', 'techland'),
'mp4' => esc_html__('Local video (mp4)', 'techland'),
'webm' => esc_html__('Local video (webm)', 'techland'),
'ogv' => esc_html__('Local video (ogv)', 'techland')
),
'default' => 'social',
'required' => array(
array( 'search_hero_visibility', '=', '1' ),
array( 'search_hero_parallax_visibility', '=', '1' ),
array( 'error_hero_use_video', '=', '1' )
)
),
array(
'title' => esc_html__('Video URL', 'techland'),
'subtitle' => esc_html__('Add your video url here.', 'techland'),
'id' => 'search_hero_video_url',
'type' => 'text',
'default' => 'https://www.youtube.com/embed/1zG1iq9LZ2U',
'required' => array(
array( 'search_hero_visibility', '=', '1' ),
array( 'search_hero_parallax_visibility', '=', '1' ),
array( 'error_hero_use_video', '=', '1' )
)
),
//information
array(
'id' =>'info_search_prlx',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Info!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('If you want to use the hero parallax effect, please activate the %s.', 'techland'), '<b>Hero Section</b>'),
'required' => array( 'search_hero_visibility', '!=', '1' )
)
)));
Redux::setSection($techland_pre, array(
'title' => esc_html__('Search Before/After Content', 'techland'),
'id' => 'searchbeforeaftercontentsubsection',
'subsection' => true,
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Before Archive Content Template', 'techland'),
'subtitle' => esc_html__('Select your template for before search content.', 'techland'),
'id' => 'vc_before_search_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
),
array(
'title' => esc_html__('After Archive Content Template', 'techland'),
'subtitle' => esc_html__('Select your template for after search content.', 'techland'),
'id' => 'vc_after_search_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
)
)));
//FOOTER SECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Footer', 'techland'),
'desc' => esc_html__('These are main settings for general theme!', 'techland'),
'id' => 'footersection',
'icon' => 'el el-photo',
'fields' => array(
array(
'title' => esc_html__('Footer Section Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the site footer section on the site with switch option.', 'techland'),
'id' => 'footer_copyright_visibility',
'type' => 'switch',
'default' => 1,
'on' => 'On',
'off' => 'Off'
),
array(
'title' => esc_html__('Footer Type', 'techland'),
'subtitle' => esc_html__('Select your footer type.', 'techland'),
'id' => 'footer_type',
'type' => 'select',
'customizer' => true,
'options' => array(
'default' => esc_html__('Deafult Site Footer', 'techland'),
'custom' => esc_html__('Custom Footer', 'techland'),
'vc-templates' => esc_html__('WPBakery Saved Templates', 'techland'),
'templatera' => esc_html__('WPBakery Templatera', 'techland')
),
'default' => 'default',
'required' => array( 'footer_copyright_visibility', '=', '1' )
),
array(
'title' => esc_html__('Templatera templates', 'techland'),
'subtitle' => esc_html__('Select your footer type.', 'techland'),
'id' => 'vc_footer_templatera',
'type' => 'select',
'data' => 'posts',
'args' => array(
'post_type' => 'templatera',
'posts_per_page' => -1,
'orderby' => 'title',
'order' => 'ASC'
),
'customizer' => true,
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'templatera' )
)
),
array(
'title' => esc_html__('Footer Type', 'techland'),
'subtitle' => esc_html__('Select your footer type.', 'techland'),
'id' => 'vc_footer_templates',
'type' => 'select',
'customizer' => true,
'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'vc-templates' )
)
),
array(
'title' => esc_html__('Create your custom footer', 'techland'),
'subtitle' => esc_html__('HTML allowed (wp_kses)', 'techland'),
'id' => 'custom_footer',
'type' => 'editor',
'validate' => 'html',
'default' => esc_html__('Enter your custom footer here. Html can be entered in this field.', 'techland'),
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'custom' )
)
),
array(
'title' => esc_html__('Footer Social Icons', 'techland'),
'subtitle' => esc_html__('Create your custom social media.Example icon-name: fa fa-facebook', 'techland'),
'id' => 'footer_social',
'type' => 'nt_multi_field',
'add_text' => esc_html__('Add Column', 'techland'),
'add_number' => 1,
'default'=> array(),
'placeholder'=> array(
'icon-name',
'URL'
),
'show_empty'=> true,
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Social Link Target Type', 'techland'),
'id' => 'footer_social_target',
'type' => 'select',
'customizer' => true,
'options' => array(
'' => esc_html__('Select target', 'techland'),
'_blank' => esc_html__('Blank', 'techland'),
'_self' => esc_html__('Self', 'techland'),
'_parent' => esc_html__('Parent', 'techland'),
'_top' => esc_html__('Top', 'techland')
),
'default' => '',
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Copyright Text', 'techland'),
'subtitle' => esc_html__('HTML allowed (wp_kses)', 'techland'),
'desc' => esc_html__('Enter your site copyright here.', 'techland'),
'id' => 'footer_copyright',
'type' => 'textarea',
'validate' => 'html',
'default' => 'Copyrights 2019 <i class="fa fa-copyright"></i> <a class="__dev" href="https://ninetheme.com/contact/" target="_blank">Ninetheme</a>',
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Copyright Text Color', 'techland'),
'desc' => esc_html__('Set your own colors for the copyright.', 'techland'),
'id' => 'footer_copy_clr',
'type' => 'color',
'transparent' => false,
'output' => array( 'footer .footer__copyright, .footer .footer__copyright p' ),
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Social Icon Color', 'techland'),
'desc' => esc_html__('Set your own colors for the social icons.', 'techland'),
'id' => 'footer_social_clr',
'type' => 'link_color',
'output' => array( 'footer .s-btns--light a' ),
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Social Icon Background Color', 'techland'),
'desc' => esc_html__('Set your own colors for the social icons.', 'techland'),
'id' => 'footer_social_bg',
'type' => 'color',
'mode' => 'background',
'transparent' => false,
'output' => array( 'footer .s-btns--light a' ),
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Hover Social Icon Background Color', 'techland'),
'desc' => esc_html__('Set your own colors for the social icons.', 'techland'),
'id' => 'footer_social_hvrbg',
'type' => 'color',
'mode' => 'background',
'transparent' => false,
'output' => array( 'footer .s-btns--light a:hover' ),
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Default Footer Background Color', 'techland'),
'desc' => esc_html__('Set your own colors for the copyright.', 'techland'),
'id' => 'footer_copy_bgclr',
'type' => 'color',
'mode' => 'background-color',
'transparent' => true,
'output' => array( 'footer .footer--s6 .footer__line--first, footer.footer .footer__line--first' ),
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'default' )
)
),
array(
'title' => esc_html__('Footer Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the site main footer.', 'techland'),
'id' => 'footer_pad',
'type' => 'spacing',
'output' => array('.nt-footer.footer-bottom'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'output' => array( '.footer--s6 .footer__line--first' ),
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px'
),
'required' => array(
array( 'footer_copyright_visibility', '=', '1' ),
array( 'footer_type', '=', 'default' )
)
),
//information on-off
array(
'id' =>'info_f0',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Success!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('%s section is disabled on the site.', 'techland'), '<b>Site Main Footer</b>'),
'required' => array( 'footer_copyright_visibility', '=', '0' )
)
)));
//FOOTER WIDGETIZE SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Footer Widget Area', 'techland'),
'id' => 'footerwidgetizesection',
'icon' => 'el el-th-large',
'fields' => array(
array(
'title' => esc_html__('Footer Widget Area Section Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the footer widget area with one option.', 'techland'),
'id' => 'footer_widgetize_visibility',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off'
),
array(
'title' => esc_html__('Waves Effect Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the waves effect on the footer widget area.', 'techland'),
'id' => 'footer_waves_visibility',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array('footer_widgetize_visibility', '=', '1')
),
array(
'title' => esc_html__('Mobile Device Waves Effect Display', 'techland'),
'subtitle' => esc_html__('You can enable or disable the waves effect on the footer for the mobile device.', 'techland'),
'id' => 'footer_waves_mobile_visibility',
'type' => 'switch',
'default' => 0,
'on' => 'On',
'off' => 'Off',
'required' => array(
array('footer_widgetize_visibility', '=', '1'),
array('footer_waves_visibility', '=', '1')
)
),
array(
'title' => esc_html__('Create Custom Widgets Area', 'techland'),
'subtitle' => esc_html__('Enter your custom column for custom widget.Note: This option is based on the BOOTSTRAP GRID SYSTEM.', 'techland'),
'id' => 'custom_widgets',
'type' => 'multi_text',
'add_text' => esc_html__('Add Column', 'techland'),
'default'=> array('col-12 col-sm-6 col-md-4','col-12 col-sm-6 col-md-4', 'col-12 col-sm-6 col-md-4'),
'show_empty'=> true,
'required' => array('footer_widgetize_visibility', '=', '1')
),
//information on-off
array(
'id' =>'info_fw0',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Success!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('%s section is disabled on the site. Please activate to view subsection options.', 'techland'), '<b>Footer Widget Area</b>'),
'required' => array( 'footer_widgetize_visibility', '=', '0' )
),
)));
//FOOTER WIDGETIZE COLOR SUBSECTION
Redux::setSection($techland_pre, array(
'title' => esc_html__('Widget Area Customize', 'techland'),
'id' => 'widgetcustomizesubsection',
'subsection' => true,
'customizer_width' => '400px',
'icon' => 'el el-brush',
'fields' => array(
array(
'title' => esc_html__('Footer Widget Area Background', 'techland'),
'id' => 'fw_bg',
'type' => 'background',
'output' => array( '.nt-footer-sidebar' ),
'required' => array( 'footer_widgetize_visibility', '=', '1' )
),
array(
'title' => esc_html__('Background Image Overlay', 'techland'),
'desc' => esc_html__('This option usefull when the widget area has background image.', 'techland'),
'id' => 'fw_overlay',
'type' => 'color_rgba',
'default' => false,
'output' => array( '.nt-footer-sidebar:before' ),
'required' => array( 'footer_widgetize_visibility', '=', '1' )
),
array(
'title' => esc_html__('Widget Title Colors', 'techland'),
'desc' => esc_html__('Set your own color for the widgets title.', 'techland'),
'id' => 'fw_w',
'type' => 'color',
'output' => array( '.nt-footer-sidebar h4' ),
'required' => array( 'footer_widgetize_visibility', '=', '1' )
),
array(
'title' => esc_html__('Widget Link Color', 'techland'),
'desc' => esc_html__('Set your own color for the widgets link.', 'techland'),
'id' => 'fw_wa',
'type' => 'color',
'output' => array( '.nt-footer-sidebar .footer-widget a' ),
'required' => array( 'footer_widgetize_visibility', '=', '1' )
),
array(
'title' => esc_html__('Widget Hover Link Color', 'techland'),
'desc' => esc_html__('Set your own hover colors for the widgets link.', 'techland'),
'id' => 'fw_wa',
'type' => 'color',
'output' => array( '.nt-footer-sidebar .footer-widget a' ),
'required' => array( 'footer_widgetize_visibility', '=', '1' )
),
array(
'title' => esc_html__('Widget Text Color', 'techland'),
'desc' => esc_html__('Set your own colors for the widgets.', 'techland'),
'id' => 'fw_wp',
'type' => 'color',
'output' => array( '.nt-footer-sidebar .footer-widget' ),
'required' => array( 'footer_widgetize_visibility', '=', '1' )
),
array(
'title' => esc_html__('Widget Area Padding', 'techland'),
'subtitle' => esc_html__('You can set the top spacing of the widget area.', 'techland'),
'id' => 'fw_pad',
'type' => 'spacing',
'output' => array('.nt-footer-sidebar.footer-widget-area'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px'
),
'required' => array( 'footer_widgetize_visibility', '=', '1' )
),
//information on-off
array(
'id' =>'info_fw2',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Information!', 'techland'),
'icon' => 'el el-info-circle',
'customizer' => false,
'desc' => sprintf(esc_html__('This section options are disabled by the %s Section. Please activate to view options.', 'techland'), '<b>Footer Widget Area</b>'),
'required' => array( 'footer_widgetize_visibility', '=', '0' )
)
)));
Redux::setSection($techland_pre, array(
'id' => 'inportexport_settings',
'title' => esc_html__('Import / Export', 'techland'),
'desc' => esc_html__('Import and Export your Theme Options from text or URL.', 'techland'),
'icon' => 'el el-download-alt',
'fields' => array(
array(
'id' => 'opt-import-export',
'type' => 'import_export',
'title' => '',
'customizer' => false,
'subtitle' => '',
'full_width' => true
)
)));
Redux::setSection($techland_pre, array(
'id' => 'nt_support_settings',
'title' => esc_html__('Support', 'techland'),
'icon' => 'el el-idea',
'fields' => array(
array(
'id' => 'doc',
'type' => 'raw',
'markdown' => true,
'class' => 'theme_support',
'content' => '<div class="support-section">
<h5>'.esc_html__('WE RECOMMEND YOU READ IT BEFORE YOU START', 'techland').'</h5>
<h2><i class="el el-website"></i> '.esc_html__('DOCUMENTATION', 'techland').'</h2>
<a target="_blank" class="button" href="https://ninetheme.com/documentations/">'.esc_html__('READ MORE', 'techland').'</a>
</div>'
),
array(
'id' => 'support',
'type' => 'raw',
'markdown' => true,
'class' => 'theme_support',
'content' => '<div class="support-section">
<h5>'.esc_html__('DO YOU NEED HELP?', 'techland').'</h5>
<h2><i class="el el-adult"></i> '.esc_html__('SUPPORT CENTER', 'techland').'</h2>
<a target="_blank" class="button" href="https://ninetheme.com/contact/">'.esc_html__('GET SUPPORT', 'techland').'</a>
</div>'
),
array(
'id' => 'portfolio',
'type' => 'raw',
'markdown' => true,
'class' => 'theme_support',
'content' => '<div class="support-section">
<h5>'.esc_html__('SEE MORE THE NINETHEME WORDPRESS THEMES', 'techland').'</h5>
<h2><i class="el el-picture"></i> '.esc_html__('NINETHEME PORTFOLIO', 'techland').'</h2>
<a target="_blank" class="button" href="https://ninetheme.com/wordpress-themes/">'.esc_html__('SEE MORE', 'techland').'</a>
</div>'
),
array(
'id' => 'like',
'type' => 'raw',
'markdown' => true,
'class' => 'theme_support',
'content' => '<div class="support-section">
<h5>'.esc_html__('WOULD YOU LIKE TO REWARD OUR EFFORT?', 'techland').'</h5>
<h2><i class="el el-thumbs-up"></i> '.esc_html__('PLEASE RATE US!', 'techland').'</h2>
<a target="_blank" class="button" href="https://themeforest.net/downloads/">'.esc_html__('GET STARS', 'techland').'</a>
</div>'
)
)));
/*
* <--- END SECTIONS
*/
/** Action hook examples **/
function techland_remove_demo()
{
// Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.
if (class_exists('ReduxFrameworkPlugin')) {
// Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.
remove_action('admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ));
}
}
include get_template_directory() . '/inc/theme-options/redux-extensions/loader.php';