array( 'href' => array(), 'title' => array(), 'target' => array(), ), 'br' => array(), 'em' => array(), 'strong' => array(), 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(), 'p' => array( 'style' => array(), ), 'b' => array(), 'i' => array(), 'u' => array(), 'ol' => array(), 'ul' => array(), 'li' => array(), 'code' => array(), 'del' => array() ); // Background Patterns Reader $sample_patterns_path = ReduxFramework::$_dir . '/patterns/'; $sample_patterns_url = ReduxFramework::$_url . '/patterns/'; $sample_patterns = array(); if ( is_dir( $sample_patterns_path ) ) { if ( $sample_patterns_dir = opendir( $sample_patterns_path ) ) { $sample_patterns = array(); while ( ( $sample_patterns_file = readdir( $sample_patterns_dir ) ) !== false ) { if ( stristr( $sample_patterns_file, '.png' ) !== false || stristr( $sample_patterns_file, '.jpg' ) !== false ) { $name = explode( '.', $sample_patterns_file ); $name = str_replace( '.' . end( $name ), '', $sample_patterns_file ); $sample_patterns[] = array( 'alt' => $name, 'img' => $sample_patterns_url . $sample_patterns_file ); } } } } function atiframebuilder_get_sidebars() { $sidebars = array(); foreach ( $GLOBALS['wp_registered_sidebars'] as $sb ) { $sidebars[$sb['id']] = $sb['name']; } return $sidebars; } function atiframebuilder_get_sliders_array() { global $wpdb; $arr = array( 0 => 'none'); if (class_exists('LS_Sliders')) { $sliders = LS_Sliders::find(); foreach ($sliders as $slider) { $arr['lay_'.$slider['id']] = $slider['name']; } } if ( class_exists( 'RevSliderSlider' ) ) { $rev_slider = new RevSliderSlider(); $revSliders = $rev_slider->getAllSliderForAdminMenu(); if (count($revSliders) > 0) { foreach ($revSliders as $slider) { $arr['rev_'.$slider['alias']] = $slider['title']; } } } if (count($arr) == 1) { $arr = array( 0 => esc_attr__('The Theme Support Layer Slider and Slider Revolution, but couldn\'t find it. Install one of the plug-ins to choose the slider to display in the header.', 'atiframe-builder') ); } return $arr; } function atiframebuilder_get_composer_block_array( $type = 'sidebar' ) { global $wpdb; //$arr = array( 0 => 'none'); $composer_block_array = array(); if ( 'header' == $type || 'footer' == $type ) { $composer_block_array[-1] = 'None'; } $composer_block_type = 'composer_block_'.$type; $query_arr = $wpdb->get_results( $wpdb->prepare( "SELECT pm.`post_id`, wps.`post_title` FROM $wpdb->postmeta pm INNER JOIN $wpdb->posts wps ON pm.post_id=wps.ID WHERE pm.meta_key = 'composer_block_type' AND pm.meta_value = '%s' AND wps.post_status = 'publish'", $composer_block_type ) ); if ( is_array( $query_arr ) ) { foreach( $query_arr as $composer_block_data ){ $composer_block_array[$composer_block_data->post_id] = $composer_block_data->post_title; } } return $composer_block_array; } /*=== Dev mode disable ===*/ function atiframebuilder_removeDemoModeLink() { // Be sure to rename this function to something more unique if ( class_exists('ReduxFrameworkPlugin') ) { remove_filter( 'plugin_row_meta', array( ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2 ); } if ( class_exists('ReduxFrameworkPlugin') ) { remove_action('admin_notices', array( ReduxFrameworkPlugin::get_instance(), 'admin_notices' ) ); } } add_action('init', 'atiframebuilder_removeDemoModeLink'); /*=== Adding custom CSS for Theme Options design ===*/ function atiframebuilder_addPanelCSS() { wp_register_style( 'redux-custom-css', esc_url(get_template_directory_uri()) . '/inc/redux-custom-css.css', array( 'redux-admin-css' ), // Be sure to include redux-admin-css so it's appended after the core css is applied time(), 'all' ); wp_enqueue_style('redux-custom-css'); } // This example assumes your atiframebuilder_opt_name is set to redux_demo, replace with your atiframebuilder_opt_name value add_action( 'redux/page/secretlab/enqueue', 'atiframebuilder_addPanelCSS' ); /* ---> SET ARGUMENTS * All the possible arguments for Redux. * For full documentation on arguments, please refer to: https://github.com/ReduxFramework/ReduxFramework/wiki/Arguments * */ $theme = wp_get_theme(); // For use with some settings. Not necessary. // Google Api Key function atiframebuilder_google_api() { $atiframebuilder_ga_out = ''; if (isset ($secretlab['google_api_key_opt'])) { $gapikey = $secretlab['google_api_key_opt']; $atiframebuilder_ga_out = $gapikey; } return $atiframebuilder_ga_out; } $args = array( // TYPICAL -> Change these values as you need/desire 'atiframebuilder_opt_name' => $atiframebuilder_opt_name, // This is where your data is stored in the database and also becomes your global variable name. 'display_name' => $theme->get( 'atiframe-builder' ), // Name that appears at the top of your panel 'display_version' => $theme->get( 'Version 1.0' ), // Version that appears at the top of your panel 'menu_type' => 'menu', //Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only) 'allow_sub_menu' => true, // Show the sections below the admin menu item or not 'menu_title' => esc_attr__( 'Theme Options', 'atiframe-builder' ), 'page_title' => esc_attr__( 'Atiframe Theme Options', 'atiframe-builder' ), // 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' => atiframebuilder_google_api(), // Set it you want google fonts to update weekly. A google_api_key value is required. 'google_update_weekly' => true, // Must be defined to add google fonts to the typography module 'async_typography' => true, // Use a asynchronous font on the front end or font string //'disable_google_fonts_link' => true, // Disable this in case you want to create your own google fonts loader 'admin_bar' => true, // Show the panel pages on the admin bar 'admin_bar_icon' => 'dashicons-portfolio', // Choose an icon for the admin bar menu 'admin_bar_priority' => 50, // Choose an priority for the admin bar menu 'global_variable' => 'secretlab', // Set a different name for your global variable other than the atiframebuilder_opt_name 'dev_mode' => false, // Show the time the page took to load, etc 'update_notice' => true, // If dev_mode is enabled, will notify developer of updated versions available in the GitHub Repo 'customizer' => true, // Enable basic customizer support //'open_expanded' => true, // Allow you to start the panel in an expanded way initially. //'disable_save_warn' => true, // Disable the save warning when a user changes a field // OPTIONAL -> Give you extra features 'page_priority' => null, // Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning. 'page_parent' => 'themes.php', // For a full list of options, visit: 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' => '_options', // Page slug used to denote the panel 'save_defaults' => true, // On load save the defaults to DB before user clicks save or not 'default_show' => false, // If true, shows the default value next to each field that is not the default value. 'default_mark' => '', // What to print by the field's title if the value shown is default. Suggested: * 'show_import_export' => true, // Shows the Import/Export panel when not used as a field. // CAREFUL -> These options are for advanced use only 'transient_time' => 60 * MINUTE_IN_SECONDS, 'output' => true, // Global shut-off for dynamic CSS output by the framework. Will also disable google fonts output 'output_tag' => true, // Allows dynamic CSS to be generated for customizer and google fonts, but stops the dynamic CSS from going to the head 'footer_credit' => esc_attr__('Developed with love by www.SecretLab.pw', 'atiframe-builder'), // Disable the footer credit of Redux. Please leave if you can help it. // FUTURE -> Not in use yet, but reserved or partially implemented. Use at your own risk. 'database' => '', // possible: options, theme_mods, theme_mods_expanded, transient. Not fully functional, warning! 'use_cdn' => true, // If you prefer not to use the CDN for Select2, Ace Editor, and others, you may download the Redux Vendor Support plugin yourself and run locally or embed it in your code. 'compiler' => true, 'disable_tracking' => true, // HINTS 'hints' => array( 'icon' => 'el el-question-sign', 'icon_position' => 'right', 'icon_color' => 'lightgray', 'icon_size' => 'normal', 'tip_style' => array( 'color' => 'light', '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 links. $args['admin_bar_links'][] = array( 'id' => 'sl-docs', 'href' => 'http://secretlab.pw/documentation/', 'title' => esc_attr__( 'Documentation', 'atiframe-builder' ), ); $args['admin_bar_links'][] = array( 'id' => 'sl-support', 'href' => 'https://support.secretlab.pw/', 'title' => esc_attr__( 'Support', 'atiframe-builder' ), ); $args['admin_bar_links'][] = array( 'id' => 'sl-extensions', 'href' => 'http://secretlab.pw/', 'title' => esc_attr__( 'Atiframe Website', 'atiframe-builder' ), ); // Add content after the form. $args['footer_text'] = '
'.esc_attr__( 'Support Panel: ', 'atiframe-builder' ).'https://support.secretlab.pw/
'; Redux::setArgs( $atiframebuilder_opt_name, $args ); /* As of Redux 3.5+, there is an extensive API. This API can be used in a mix/match mode allowing for */ // -> START General Settings Tab with no subsections Redux::setSection( $atiframebuilder_opt_name, array( 'title' => esc_attr__( 'General Setting', 'atiframe-builder' ), 'id' => 'general', 'icon' => 'el el-home', 'fields' => array( array( 'id' => 'google_api_key_opt', 'type' => 'text', 'title' => esc_attr__( 'Google API Key', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'You can get a new API key at https://developers.google.com/maps/documentation/javascript/get-api-key', 'atiframe-builder' ), 'default' => '', ), array( 'id' => 'contacts_email', 'type' => 'text', 'title' => esc_attr__( 'Email for Contact Form 7', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'You can add aditional emails at each form settings', 'atiframe-builder' ), 'default' => '', ), array( 'id' => 'index-page', 'type' => 'select', 'data' => 'pages', 'title' => esc_attr__( 'Select Homepage', 'atiframe-builder' ), 'desc' => esc_attr__( 'Select which page to display on your Frontpage. If left blank the Blog will be displayed', 'atiframe-builder' ), 'default' => '1946' ), array( 'id' => 'header_widget', 'type' => 'select', 'title' => esc_attr__( 'Select Header', 'atiframe-builder' ), 'options' => atiframebuilder_get_composer_block_array( 'header' ), 'default' => '1833', ), array( 'id' => 'header_type', 'type' => 'select', 'title' => esc_attr__( 'Select Header type', 'atiframe-builder' ), 'options' => array( 1 => 'Slider', ), 'default' => 1, 'required' => array('header_type', '<', '0'), ), array( 'id' => 'pick_slider', 'type' => 'select', 'title' => esc_attr__( 'Select Slider', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Select slider for header section', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => atiframebuilder_get_sliders_array(), 'default' => '0', ), array( 'id' => 'footer_widget', 'type' => 'select', 'title' => esc_attr__( 'Select Footer', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => atiframebuilder_get_composer_block_array( 'footer' ), //'data' => 'sidebars', 'default' => '1848', ), array( 'id' => 'scroll-to-top', 'type' => 'switch', 'title' => esc_attr__( 'Display Scroll to Top Button?', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'pageloader', 'type' => 'switch', 'title' => esc_attr__( 'Display Page Loader', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Do you want to show page loader, when website is loading?', 'atiframe-builder' ), 'default' => true, 'indent' => true ), array( 'id' => 'pgl_color_bgr', 'type' => 'color_rgba', 'title' => esc_attr__('Select Background Color for Page Loader', 'atiframe-builder' ), 'output' => array('background-color' => '.loaderbgr'), 'default' => array( 'color' => '#000000', 'alpha' => 0.95 ), 'required' => array( 'pageloader', '=', true ), ), array( 'id' => 'pgl_color', 'type' => 'color_rgba', 'title' => esc_attr__('Select Arrow Color for Page Loader', 'atiframe-builder' ), 'default' => array( 'color' => '#86af49', 'alpha' => 1 ), 'required' => array( 'pageloader', '=', true ), ), ) ) ); /* * <--- END SECTIONS */ // -> START Design Tab // Layout Design Tab Redux::setSection( $atiframebuilder_opt_name, array( 'title' => esc_attr__( 'Layout', 'atiframe-builder' ), 'id' => 'design-layout-subsection', 'icon' => 'el el-th-large', 'fields' => array( array( 'id' => 'single-header', 'type' => 'switch', 'title' => esc_attr__( 'Display Page H1 Heading', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Do you want to show H1 heading for pages? Usually we display it through drag&drop builder', 'atiframe-builder' ), 'default' => false, 'indent' => false ), array( 'id' => 'transition', 'type' => 'slider', 'title' => esc_attr__( 'Transition time', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Select hover effects time in ms', 'atiframe-builder' ), 'desc' => esc_attr__( 'Slider description. Min: 0, max: 1000, step: 5, default value: 600', 'atiframe-builder' ), 'default' => 200, 'min' => 0, 'step' => 5, 'max' => 1000, 'display_value' => 'text' ), array( 'id' => 'design-layout', 'type' => 'image_select', 'title' => esc_attr__( 'Select page layout', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( '1' => array( 'alt' => 'Full width layout', 'img' => get_template_directory_uri() . '/images/framework/full.gif' ), '2' => array( 'alt' => 'Boxed layout, maximum resolution - 1170 px', 'img' => get_template_directory_uri() . '/images/framework/boxed.gif' ) ), 'default' => '1' ), array( 'id' => 'boxed-background', 'type' => 'background', 'title' => esc_attr__('Background settings for box', 'atiframe-builder' ), 'output' => array( '.page .mainbgr', ), 'default' => array( 'background-color' => '#323232', 'background-repeat' => 'no-repeat', 'background-attachment' => 'fixed', 'background-position' => 'center center', 'background-size' => 'inherit', ), 'required' => array('design-layout', '=', '2') ), array( 'id' => 'content-background', 'type' => 'background', 'title' => esc_attr__('Background settings for content section', 'atiframe-builder' ), 'output' => array( '.page main', ), 'default' => array( 'background-color' => '#ffffff', 'background-repeat' => 'no-repeat', 'background-attachment' => 'fixed', 'background-position' => 'center center', 'background-size' => 'inherit', 'background-image' => '', ), //'required' => array('design-layout', '=', '2') ), array( 'id' => 'sidebar-layout', 'type' => 'image_select', 'title' => esc_attr__( 'Select sidebar option', 'atiframe-builder' ), 'description' => esc_attr__( 'Default sidebars is Left Sidebar and Right sidebar', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( '1' => array( 'alt' => 'Without sidebar', 'img' => get_template_directory_uri() . '/images/framework/nosidebar.gif' ), '2' => array( 'alt' => '2 sidebars', 'img' => get_template_directory_uri() . '/images/framework/2sidebars.gif' ), '3' => array( 'alt' => 'Left sidebar', 'img' => get_template_directory_uri() . '/images/framework/leftsidebar.gif' ), '4' => array( 'alt' => 'Right sidebar', 'img' => get_template_directory_uri() . '/images/framework/rightsidebar.gif' ) ), 'default' => '1' ), array( 'id' => 'left_sidebar_widgets', 'type' => 'select', 'title' => esc_attr__( 'Widgets for Left Sidebar', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( '_default_left_sidebar' => 'Left Sidebar', ), 'default' => '_default_left_sidebar', 'required' => array('sidebar-layout', '<', '0') ), array( 'id' => 'right_sidebar_widgets', 'type' => 'select', 'title' => esc_attr__( 'Widgets for Right Sidebar', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( '_default_right_sidebar' => 'Right Sidebar', ), 'default' => '_default_right_sidebar', 'required' => array('sidebar-layout', '<', '0') ), ) ) ); // Portfolio Design Tab Redux::setSection( $atiframebuilder_opt_name, array( 'title' => esc_attr__( 'Portfolio', 'atiframe-builder' ), 'id' => 'services-subsection', 'icon' => 'el el-brush', 'fields' => array( array( 'id' => 'cases-info1', 'type' => 'info', 'style' => 'info', 'title' => esc_attr__( 'Options for Portfolio Post Type', 'atiframe-builder' ), ), array( 'id' => 'portfolio_slug', 'type' => 'text', 'title' => esc_attr__( 'URL Slug For Portfolio Post Type', 'atiframe-builder'), 'description' => wp_kses(__( ' After you change it, go to /wp-admin/options-permalink.php and click "Save Changes" button to activate the URL slug', 'atiframe-builder' ), $allowed_html ), 'default' => 'portfolio', ), array( 'id' => 'cases_arch_title', 'type' => 'text', 'title' => esc_attr__( 'Portfolio Page H1 Heading', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Heading for Portfolio Archive page', 'atiframe-builder' ), 'default' => 'Case Studies List', ), array( 'id' => 'portfolio_arch_desc', 'type' => 'editor', 'title' => esc_attr__( 'Description Text Under H1 Heading', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Allowed tags: a, img, br, em, strong, h1, h2, h3, h4, h5, h6, p, b, i, u, ol, ul, li, code, del', 'atiframe-builder' ), 'default' => 'Some description text here', ), ) ) ); Redux::setSection($atiframebuilder_opt_name, array( 'title' => esc_attr__('Color Scheme', 'atiframe-builder'), 'id' => 'ocs', 'desc' => esc_attr__('Color scheme of the current design. You can create your own color scheme.', 'atiframe-builder'), 'icon' => 'el el-cog', 'fields' => array( array( 'id' => 'colors_info_notice', 'type' => 'info', 'notice' => true, 'style' => 'info', 'icon' => 'el-icon-info-sign', 'title' => esc_attr__( 'Note', 'atiframe-builder'), 'desc' => esc_attr__( 'We recommend to export and save theme options setting before change everything.', 'atiframe-builder'), ), // Presets of color schemes array( 'id' => 'skin_preset_dark_agency', 'type' => 'image_select', 'presets' => true, 'presets' => true, 'title' => esc_attr__( 'Select Color Scheme of Design', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Select a color scheme preset, including typography and menu colors', 'atiframe-builder' ), 'options' => array( '0' => array('alt' => 'Blue Orange', 'img' => get_template_directory_uri() . '/images/framework/scheme1.png', 'presets' => $scheme0 ), '1' => array('alt' => 'Blue Green', 'img' => get_template_directory_uri() . '/images/framework/scheme2.png', 'presets' => $scheme1 ), '2' => array('alt' => 'Green', 'img' => get_template_directory_uri() . '/images/framework/scheme3.png', 'presets' => $scheme2 ), '3' => array('alt' => 'Purple Orange', 'img' => get_template_directory_uri() . '/images/framework/scheme4.png', 'presets' => $scheme3 ), '4' => array('alt' => 'Blue Yellow', 'img' => get_template_directory_uri() . '/images/framework/scheme5.png', 'presets' => $scheme4 ), '5' => array('alt' => 'Red Orange', 'img' => get_template_directory_uri() . '/images/framework/scheme6.png', 'presets' => $scheme5 ), ), ), //Section START array( 'id' => 'general-colors-section-start', 'type' => 'section', 'title' => esc_attr__( 'General Colors', 'atiframe-builder' ), 'indent' => true, // Indent all options below until the next 'section' option is set. ), array( 'id' => 'gc1', 'type' => 'color_rgba', 'title' => esc_attr__( 'Major Color', 'atiframe-builder' ), 'default' => array( 'color' => '#0081d7', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'gc1d', 'type' => 'color_rgba', 'title' => esc_attr__( 'Dark Major Color', 'atiframe-builder' ), 'default' => array( 'color' => '#0062a3', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'link', 'type' => 'link_color', 'title' => esc_attr__( 'Links Color Option', 'atiframe-builder' ), //'regular' => false, // Disable Regular Color //'hover' => false, // Disable Hover Color //'active' => false, // Disable Active Color 'visited' => false, // Disable Visited Color 'default' => array( 'regular' => '#0081d7', 'hover' => '#0062a3', 'active' => '#0062a3' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'gc2', 'type' => 'color_rgba', 'title' => esc_attr__( 'Minor Color', 'atiframe-builder' ), 'default' => array( 'color' => '#ffbd00', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'gc2d', 'type' => 'color_rgba', 'title' => esc_attr__( 'Dark Minor Color', 'atiframe-builder' ), 'default' => array( 'color' => '#ffb500', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'bgrc', 'type' => 'color_rgba', 'title' => esc_attr__( 'Background Color', 'atiframe-builder' ), 'default' => array( 'color' => '#ffffff', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'general-colors-section-end', 'type' => 'section', 'indent' => false, // Indent all options below until the next 'section' option is set. ), // Section END //Section START array( 'id' => 'additional-colors-section-start', 'type' => 'section', 'title' => esc_attr__( 'Additional Colors', 'atiframe-builder' ), 'indent' => true, // Indent all options below until the next 'section' option is set. ), array( 'id' => 'ac1', 'type' => 'color_rgba', 'title' => esc_attr__( 'Gray Color', 'atiframe-builder' ), 'default' => array( 'color' => '#768188', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'ac1l', 'type' => 'color_rgba', 'title' => esc_attr__( 'Gray Color Light', 'atiframe-builder' ), 'default' => array( 'color' => '#b2b9be', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'ac1d', 'type' => 'color_rgba', 'title' => esc_attr__( 'Gray Color Dark', 'atiframe-builder' ), 'default' => array( 'color' => '#2c3840', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'additional-colors-section-end', 'type' => 'section', 'indent' => false, // Indent all options below until the next 'section' option is set. ), // Section END ), ) ); /* * <--- END SECTIONS */ Redux::setSection( $atiframebuilder_opt_name, array( 'title' => esc_attr__( 'Design', 'atiframe-builder' ), 'id' => 'design', 'icon' => 'el el-tasks', 'fields' => array( array( 'id' => 'design-info1', 'type' => 'info', 'style' => 'info', 'title' => esc_attr__( 'Options for major design styles', 'atiframe-builder' ), ), array( 'id' => 'boxed-padding', 'type' => 'spacing', 'output' => array('body main.boxed-wrapper'), 'mode' => 'padding', 'units' => array('em', 'px'), 'units_extended' => 'false', 'title' => esc_attr__('Padding Option for Boxed Background', 'atiframe-builder'), 'default' => array( 'padding-top' => '', 'padding-right' => '', 'padding-bottom' => '', 'padding-left' => '', 'units' => 'px', ) ), array( 'id' => 'design-info2', 'type' => 'info', 'style' => 'info', 'title' => esc_attr__( 'Sidebars design styles', 'atiframe-builder' ), ), array( 'id' => 'sidebar-bgr', 'type' => 'color_rgba', 'title' => esc_attr__( 'Sidebars Background Color', 'atiframe-builder' ), 'default' => array( 'color' => '#f1f4f6', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'sidebar-padding', 'type' => 'spacing', 'output' => array('main .widget-area'), 'mode' => 'padding', 'units' => array('em', 'px'), 'units_extended' => 'false', 'title' => esc_attr__('Padding Option for Sidebar', 'atiframe-builder'), 'default' => array( 'padding-top' => '15', 'padding-right' => '15', 'padding-bottom' => '0', 'padding-left' => '15', 'units' => 'px', ) ), array( 'id' => 'sidebar-border', 'type' => 'border', 'title' => esc_attr__( 'Border Option for Sidebar', 'atiframe-builder' ), 'output' => array( 'main .widget-area' ), // An array of CSS selectors to apply this font style to 'default' => array( 'border-color' => '#d7dce0', 'border-style' => 'solid', 'border-top' => '2px', 'border-right' => '2px', 'border-bottom' => '2px', 'border-left' => '2px' ) ), array( 'id' => 'sidebar-border-radius', 'type' => 'slider', 'title' => esc_attr__( 'Border Radius', 'atiframe-builder' ), 'desc' => esc_attr__( 'Select border radius in px. Min: 0, max: 100, step: 1, default value: 0', 'atiframe-builder' ), 'default' => '0', 'min' => 0, 'step' => 1, 'max' => 100, 'display_value' => 'text' ), array( 'id' => 'sidebar-width', 'type' => 'dimensions', 'output' => array('main .widget-area'), 'units' => array( 'em', 'px', '%' ), // You can specify a unit value. Possible: px, em, % 'units_extended' => 'true', // Allow users to select any type of unit 'title' => esc_attr__( 'Sidebar Width', 'atiframe-builder' ), 'desc' => esc_attr__( 'Total content zone width is 1170px. If you turn 2 sidebars on, remember about it.', 'atiframe-builder' ), 'height' => false, 'default' => array( 'width' => '', 'height' => 100, ) ), array( 'id' => 'content-width', 'type' => 'dimensions', 'output' => array('main .cont-box-area'), 'units' => array( 'em', 'px', '%' ), // You can specify a unit value. Possible: px, em, % 'units_extended' => 'true', // Allow users to select any type of unit 'title' => esc_attr__( 'Content Column Width', 'atiframe-builder' ), 'desc' => esc_attr__( 'Total content zone width is 1170px. If you turn 2 sidebars on, remember about it.', 'atiframe-builder' ), 'height' => false, 'default' => array( 'width' => '', 'height' => 100, ) ), array( 'id' => 'content-padding', 'type' => 'spacing', 'output' => array('main .cont-box-area'), 'mode' => 'padding', 'units' => array('em', 'px'), 'units_extended' => 'false', 'title' => esc_attr__('Padding Option for Content Column', 'atiframe-builder'), 'default' => array( 'padding-top' => '0', 'padding-right' => '25', 'padding-bottom' => '0', 'padding-left' => '25', 'units' => 'px', ) ), array( 'id' => 'design-info3', 'type' => 'info', 'style' => 'info', 'title' => esc_attr__( 'Buttons design styles', 'atiframe-builder' ), ), array( 'id' => 'button-padding', 'type' => 'spacing', 'output' => array('main button, main input[type="button"], main input[type="reset"], main input[type="submit"]'), 'mode' => 'padding', 'units' => array('em', 'px'), 'units_extended' => 'false', 'title' => esc_attr__('Padding Option for Buttons', 'atiframe-builder'), 'default' => array( 'padding-top' => '0', 'padding-right' => '40', 'padding-bottom' => '0', 'padding-left' => '40', 'units' => 'px', ) ), array( 'id' => 'button-border', 'type' => 'border', 'title' => esc_attr__( 'Border Option for Buttons', 'atiframe-builder' ), 'output' => array( 'main button, main input[type="button"], main input[type="reset"], main input[type="submit"]' ), // An array of CSS selectors to apply this font style to 'default' => array( 'border-color' => '#3695d9', 'border-style' => 'solid', 'border-top' => '2px', 'border-right' => '2px', 'border-bottom' => '2px', 'border-left' => '2px' ) ), array( 'id' => 'button-color', 'type' => 'color_rgba', 'title' => esc_attr__( 'Buttons Background Color', 'atiframe-builder' ), 'default' => array( 'color' => '#3695d9', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'button-text-color', 'type' => 'color_rgba', 'title' => esc_attr__( 'Buttons Text Color', 'atiframe-builder' ), 'default' => array( 'color' => '#ffffff', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'button-border-hover', 'type' => 'border', 'title' => esc_attr__( 'Border Option for Buttons (hover)', 'atiframe-builder' ), 'output' => array( 'main button:hover, main input[type="button"]:hover, main input[type="reset"]:hover, main input[type="submit"]:hover' ), // An array of CSS selectors to apply this font style to 'default' => array( 'border-color' => '#004a97', 'border-style' => 'solid', 'border-top' => '2px', 'border-right' => '2px', 'border-bottom' => '2px', 'border-left' => '2px' ) ), array( 'id' => 'button-color-hover', 'type' => 'color_rgba', 'title' => esc_attr__( 'Buttons Background Color (hover)', 'atiframe-builder' ), 'default' => array( 'color' => '#004a97', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'button-text-color-hover', 'type' => 'color_rgba', 'title' => esc_attr__( 'Buttons Text Color (hover)', 'atiframe-builder' ), 'default' => array( 'color' => '#ffffff', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'button-border-radius', 'type' => 'slider', 'title' => esc_attr__( 'Border Radius for Buttons', 'atiframe-builder' ), 'desc' => esc_attr__( 'Select border radius in px. Min: 0, max: 100, step: 1, default value: 0', 'atiframe-builder' ), 'default' => '0', 'min' => 0, 'step' => 1, 'max' => 100, 'display_value' => 'text' ), array( 'id' => 'design-info4', 'type' => 'info', 'style' => 'info', 'title' => esc_attr__( 'Inputs design styles', 'atiframe-builder' ), ), array( 'id' => 'input-border', 'type' => 'border', 'title' => esc_attr__( 'Border Option for Inputs', 'atiframe-builder' ), 'output' => array( 'input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], html body textarea' ), // An array of CSS selectors to apply this font style to 'default' => array( 'border-color' => '#b2b9be', 'border-style' => 'solid', 'border-top' => '2px', 'border-right' => '2px', 'border-bottom' => '2px', 'border-left' => '2px' ) ), array( 'id' => 'input-border-radius', 'type' => 'slider', 'output' => array('input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea'), 'title' => esc_attr__( 'Border Radius for Inputs', 'atiframe-builder' ), 'desc' => esc_attr__( 'Select border radius in px. Min: 0, max: 100, step: 1, default value: 0', 'atiframe-builder' ), 'default' => '0', 'min' => 0, 'step' => 1, 'max' => 100, 'display_value' => 'text' ), array( 'id' => 'input-color', 'type' => 'color_rgba', 'title' => esc_attr__( 'Inputs Background Color', 'atiframe-builder' ), 'default' => array( 'color' => '#ffffff', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'input-text-color', 'type' => 'color_rgba', 'title' => esc_attr__( 'Inputs Text Color', 'atiframe-builder' ), 'default' => array( 'color' => '#768188', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), ) ) ); // -> START Typography Settings Tab with no subsections Redux::setSection( $atiframebuilder_opt_name, array( 'title' => esc_attr__( 'Typography', 'atiframe-builder' ), 'id' => 'typography', 'icon' => 'el el-font', 'fields' => array( array( 'id' => 'typography-_info_notice', 'type' => 'info', 'notice' => true, 'style' => 'info', 'icon' => 'el-icon-info-sign', 'title' => esc_attr__('Note', 'atiframe-builder'), 'desc' =>esc_attr__( 'We recommend to use font pair: one font for body text and one for headings. You can find good font pair on' , 'atiframe-builder' ).' http://fontpair.co/', ), array( 'id' => 'typography-body', 'type' => 'typography', 'title' => esc_attr__( 'Body Font', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Specify the body font properties.', 'atiframe-builder' ), 'font-backup' => true, 'google' => true, 'subsets' => true, 'default' => array( 'color' => '#2c3840', 'font-size' => '16px', 'font-family' => 'Roboto', 'font-weight' => '400', 'text-align' => 'left', 'line-height' => '24px', ), ), array( 'id' => 'h1-typography', 'type' => 'typography', 'title' => esc_attr__( 'Heading H1 Font', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Specify the H1 font properties.', 'atiframe-builder' ), 'font-backup' => true, 'google' => true, 'subsets' => true, 'text-transform' => true, 'default' => array( 'color' => '#2c3840', 'font-weight' => '500', 'font-family' => 'Poppins', 'font-size' => '30px', 'line-height' => '40px', 'text-transform' => 'capitalize', 'text-align' => 'left', ), ), array( 'id' => 'h2-typography', 'type' => 'typography', 'title' => esc_attr__( 'Heading H2 Font', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Specify the H2 font properties.', 'atiframe-builder' ), 'font-backup' => true, 'google' => true, 'subsets' => true, 'text-transform' => true, 'default' => array( 'color' => '#2c3840', 'font-weight' => '500', 'font-family' => 'Poppins', 'font-size' => '30px', 'line-height' => '40px', 'text-transform' => 'capitalize', 'text-align' => 'left', ), ), array( 'id' => 'h3-typography', 'type' => 'typography', 'title' => esc_attr__( 'Heading H3 Font', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Specify the H3 font properties.', 'atiframe-builder' ), 'font-backup' => true, 'google' => true, 'subsets' => true, 'text-transform' => true, 'default' => array( 'color' => '#2c3840', 'font-weight' => '500', 'font-family' => 'Poppins', 'font-size' => '26px', 'line-height' => '34px', 'text-transform' => 'capitalize', 'text-align' => 'left', ), ), array( 'id' => 'h4-typography', 'type' => 'typography', 'title' => esc_attr__( 'Heading H4 Font', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Specify the H4 font properties.', 'atiframe-builder' ), 'font-backup' => true, 'google' => true, 'subsets' => true, 'text-transform' => true, 'default' => array( 'color' => '#2c3840', 'font-weight' => '500', 'font-family' => 'Poppins', 'font-size' => '22px', 'line-height' => '30px', 'text-transform' => 'capitalize', 'text-align' => 'left', ), ), array( 'id' => 'h5-typography', 'type' => 'typography', 'title' => esc_attr__( 'Heading H5 Font', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Specify the H5 font properties.', 'atiframe-builder' ), 'font-backup' => true, 'google' => true, 'subsets' => true, 'text-transform' => true, 'default' => array( 'color' => '#2c3840', 'font-weight' => '500', 'font-family' => 'Poppins', 'font-size' => '20px', 'line-height' => '28px', 'text-transform' => 'capitalize', 'text-align' => 'left', ), ), array( 'id' => 'h6-typography', 'type' => 'typography', 'title' => esc_attr__( 'Heading H6 Font', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Specify the H6 font properties.', 'atiframe-builder' ), 'font-backup' => true, 'google' => true, 'subsets' => true, 'text-transform' => true, 'default' => array( 'color' => '#2c3840', 'font-weight' => '500', 'font-family' => 'Poppins', 'font-size' => '16px', 'line-height' => '20px', 'text-transform' => 'capitalize', 'text-align' => 'left', ), ), array( 'id' => 'reserved-typography', 'type' => 'typography', 'title' => esc_attr__( 'Reserved Font', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Connects the font.', 'atiframe-builder' ), 'font-backup' => false, 'google' => true, 'subsets' => true, 'text-transform' => false, 'text-align' => false, 'font-size' => false, 'line-height' => false, 'color' => false, 'default' => array( 'font-family' => 'Roboto', 'font-weight' => '300', ), ), array( 'id' => 'reserved2-typography', 'type' => 'typography', 'title' => esc_attr__( 'Reserved Font #2', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Connects the font.', 'atiframe-builder' ), 'font-backup' => false, 'google' => true, 'subsets' => true, 'text-transform' => false, 'text-align' => false, 'font-size' => false, 'line-height' => false, 'color' => false, 'default' => array( 'font-family' => 'Roboto', 'font-weight' => '700', ), ), array( 'id' => 'reserved3-typography', 'type' => 'typography', 'title' => esc_attr__( 'Reserved Font #3', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Connects the font.', 'atiframe-builder' ), 'font-backup' => false, 'google' => true, 'subsets' => true, 'text-transform' => false, 'text-align' => false, 'font-size' => false, 'line-height' => false, 'color' => false, 'default' => array( 'font-family' => 'Poppins', 'font-weight' => '400', ), ), array( 'id' => 'reserved4-typography', 'type' => 'typography', 'title' => esc_attr__( 'Reserved Font #4', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Connects the font.', 'atiframe-builder' ), 'font-backup' => false, 'google' => true, 'subsets' => true, 'text-transform' => false, 'text-align' => false, 'font-size' => false, 'line-height' => false, 'color' => false, 'default' => array( 'font-family' => 'Poppins', 'font-weight' => '700', ), ), array( 'id' => 'reserved5-typography', 'type' => 'typography', 'title' => esc_attr__( 'Reserved Font #5', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Connects the font.', 'atiframe-builder' ), 'font-backup' => false, 'google' => true, 'subsets' => true, 'text-transform' => false, 'text-align' => false, 'font-size' => false, 'line-height' => false, 'color' => false, 'default' => array( 'font-family' => 'Roboto', 'font-weight' => '500', ), ), array( 'id' => 'typography-_info_notice_2', 'type' => 'info', 'notice' => true, 'style' => 'info', 'icon' => 'el-icon-info-sign', 'title' => esc_attr__('Responsive Default Fonts', 'atiframe-builder'), 'desc' =>esc_attr__( 'Fonts settings for mobile version under width resolution 600px ' , 'atiframe-builder' ), ), array( 'id' => 'typography-body-m', 'type' => 'typography', 'title' => esc_attr__( 'Body Font', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Specify the body font properties.', 'atiframe-builder' ), 'font-backup' => true, 'google' => true, 'subsets' => true, 'default' => array( 'color' => '#2c3840', 'font-size' => '16px', 'font-family' => 'Roboto', 'font-weight' => '400', 'text-align' => 'left', 'line-height' => '26px', ), ), array( 'id' => 'h1-typography-m', 'type' => 'typography', 'title' => esc_attr__( 'Heading H1 Font', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Specify the H1 font properties.', 'atiframe-builder' ), 'font-backup' => true, 'google' => true, 'subsets' => true, 'text-transform' => true, 'default' => array( 'color' => '#2c3840', 'font-weight' => '500', 'font-family' => 'Poppins', 'font-size' => '28px', 'line-height' => '38px', 'text-transform' => 'capitalize', 'text-align' => 'left', ), ), ) ) ); /* * <--- END SECTIONS */ Redux::setSection( $atiframebuilder_opt_name, array( 'title' => esc_attr__( 'Translate', 'atiframe-builder' ), 'id' => 'translate', 'icon' => 'el el-list-alt', 'fields' => array( array( 'id' => '404-info1', 'type' => 'info', 'style' => 'info', 'title' => esc_attr__( 'Text for 404 error page', 'atiframe-builder' ), ), array( 'id' => '404_title', 'type' => 'text', 'title' => esc_attr__( '404 Page Heading', 'atiframe-builder' ), 'default' => esc_attr__( 'Not Found', 'atiframe-builder' ), ), array( 'id' => '404_descr', 'type' => 'text', 'title' => esc_attr__( '404 Page Description', 'atiframe-builder' ), 'default' => esc_attr__( 'It looks like nothing was found at this location. Maybe try a search?', 'atiframe-builder' ), ), array( 'id' => '404_icon', 'type' => 'media', 'url' => true, 'title' => esc_attr__('Icon On 404 Error Page', 'atiframe-builder'), 'default' => array( 'url'=> esc_url(get_template_directory_uri()) . '/images/search.png' ), ) ) ) ); /* Start Custom Section */ Redux::setSection( $atiframebuilder_opt_name, array( 'title' => esc_attr__( 'Custom CSS/JS', 'atiframe-builder' ), 'id' => 'custom_settings', 'desc' => esc_attr__( 'Your settings for customization', 'atiframe-builder' ), 'icon' => 'el el-file-edit', 'fields' => array( array( 'id' => 'header-nested', 'type' => 'switch', 'title' => esc_attr__( 'Header Section JS, CSS editors', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Click On to choice of editors to appear.', 'atiframe-builder' ), 'default' => false ), array( 'id' => 'header-nested-buttonset', 'type' => 'button_set', 'subtitle' => esc_attr__( 'This code will appear in the HEADER secrion of the site', 'atiframe-builder' ), 'options' => array( 'button-js' => 'JS editor', 'button-css' => 'CSS editor', ), 'required' => array( 'header-nested', '=', true ), 'default' => 'button-js' ), array( 'id' => 'header-nested-ace-js', 'type' => 'ace_editor', 'mode' => 'javascript', 'title' => esc_attr__( 'JS Editor', 'atiframe-builder' ), 'default' => '// function hello() { alert ("HELLO"); }', 'required' => array( 'header-nested-buttonset', '=', 'button-js' ) ), array( 'id' => 'header-nested-ace-css', 'type' => 'ace_editor', 'mode' => 'css', 'title' => esc_attr__( 'CSS Editor', 'atiframe-builder' ), 'default' => 'body { margin : 0; padding : 0; }', 'required' => array( 'header-nested-buttonset', '=', 'button-css' ) ), array( 'id' => 'footer-nested', 'type' => 'switch', 'title' => esc_attr__( 'Footer Section JS, CSS editors', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Click On to choice of editors to appear.', 'atiframe-builder' ), 'default' => false ), array( 'id' => 'footer-nested-buttonset', 'type' => 'button_set', 'subtitle' => esc_attr__( 'This code will appear in the FOOTER secrion of the site', 'atiframe-builder' ), 'options' => array( 'button-js' => 'JS editor', 'button-css' => 'CSS editor', ), 'required' => array( 'footer-nested', '=', true ), 'default' => 'button-js' ), array( 'id' => 'footer-nested-ace-js', 'type' => 'ace_editor', 'mode' => 'javascript', 'title' => esc_attr__( 'JS Editor', 'atiframe-builder' ), 'default' => 'function hello() { alert ("HELLO"); }', 'required' => array( 'footer-nested-buttonset', '=', 'button-js' ) ), array( 'id' => 'footer-nested-ace-css', 'type' => 'ace_editor', 'mode' => 'css', 'title' => esc_attr__( 'CSS Editor', 'atiframe-builder' ), 'default' => 'body { margin : 0; padding : 0; }', 'required' => array( 'footer-nested-buttonset', '=', 'button-css' ) ), ) ) ); /* * <--- END SECTIONS */ // -> START Shop Settings Tab with no subsections Redux::setSection( $atiframebuilder_opt_name, array( 'title' => esc_attr__( 'Shop', 'atiframe-builder' ), 'id' => 'shop-setting', 'icon' => 'el el-shopping-cart', 'fields' => array( array( 'id' => 'shop-header_type', 'type' => 'select', 'title' => esc_attr__( 'Choose Header type', 'atiframe-builder' ), 'options' => array( 1 => 'Slider', ), 'default' => 1, 'required' => array('header_type', '<', '0'), ), array( 'id' => 'shop-pick_slider', 'type' => 'select', 'title' => esc_attr__( 'Select Slider for Shop', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Select slider for header section', 'atiframe-builder' ), 'options' => atiframebuilder_get_sliders_array(), 'default' => '0' ), array( 'id' => 'shop1', 'type' => 'color_rgba', 'title' => esc_attr__( 'Price Color', 'atiframe-builder' ), 'default' => array( 'color' => '#ce0000', 'alpha' => '1' ), 'compiler' => true, 'output' => false, ), array( 'id' => 'product_columns', 'type' => 'text', 'title' => esc_attr__( 'Columns of Products', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'For catalog and categories pages', 'atiframe-builder' ), 'default' => '4', ), array( 'id' => 'relates_product_products', 'type' => 'text', 'title' => esc_attr__( 'Related Products to show', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'For product page', 'atiframe-builder' ), 'default' => '4', ), array( 'id' => 'relates_product_columns', 'type' => 'text', 'title' => esc_attr__( 'Columns of related products', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'For product page', 'atiframe-builder' ), 'default' => '4', ), array( 'id' => 'shop-layout', 'type' => 'image_select', 'title' => esc_attr__( 'Select shop page layout', 'atiframe-builder' ), 'subtitle' => esc_attr__('The option work for slug /shop/', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( '1' => array( 'alt' => 'Full width layout', 'img' => get_template_directory_uri() . '/images/framework/full.gif' ), '2' => array( 'alt' => 'Boxed layout, maximum resolution - 1170 px', 'img' => get_template_directory_uri() . '/images/framework/boxed.gif' ) ), 'default' => '1' ), array( 'id' => 'shop-boxed-background', 'type' => 'background', 'title' => esc_attr__('Background settings for box', 'atiframe-builder' ), 'output' => array( '.woocommerce-page .mainbgr', ), 'default' => array( 'background-color' => '#323232', 'background-repeat' => 'no-repeat', 'background-attachment' => 'fixed', 'background-position' => 'center center', 'background-size' => 'inherit', ), 'required' => array('shop-layout', '=', '2') ), array( 'id' => 'shop-content-background', 'type' => 'background', 'title' => esc_attr__('Background settings for content section', 'atiframe-builder' ), 'output' => array( '.woocommerce-page main'), 'default' => array( 'background-color' => '#ffffff', 'background-repeat' => 'no-repeat', 'background-attachment' => 'fixed', 'background-position' => 'center center', 'background-size' => 'inherit', ) ), array( 'id' => 'shop-sidebar-layout', 'type' => 'image_select', 'title' => esc_attr__( 'Select sidebar option for shop', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( '1' => array( 'alt' => 'Without sidebar', 'img' => get_template_directory_uri() . '/images/framework/nosidebar.gif' ), '2' => array( 'alt' => '2 sidebars', 'img' => get_template_directory_uri() . '/images/framework/2sidebars.gif' ), '3' => array( 'alt' => 'Left sidebar', 'img' => get_template_directory_uri() . '/images/framework/leftsidebar.gif' ), '4' => array( 'alt' => 'Right sidebar', 'img' => get_template_directory_uri() . '/images/framework/rightsidebar.gif' ) ), 'default' => '0' ), array( 'id' => 'shop_left_sidebar_widgets', 'type' => 'select', 'title' => esc_attr__( 'Widgets for Shop Left Sidebar', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( 'shop_default_left_sidebar' => 'Left Shop Sidebar', ), 'default' => 'shop_default_left_sidebar', 'required' => array('shop-sidebar-layout', '<', '0') ), array( 'id' => 'shop_right_sidebar_widgets', 'type' => 'select', 'title' => esc_attr__( 'Widgets for Shop Right Sidebar', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( 'shop_default_right_sidebar' => 'Right Shop Sidebar', ), 'default' => 'shop_default_right_sidebar', 'required' => array('shop-sidebar-layout', '<', '0') ), array( 'id' => 'shop_header_widget', 'type' => 'select', 'title' => esc_attr__( 'Select Header for Shop', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => atiframebuilder_get_composer_block_array( 'header' ), 'default' => '1833', ), array( 'id' => 'shop_footer_widget', 'type' => 'select', 'title' => esc_attr__( 'Select Footer for Shop', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => atiframebuilder_get_composer_block_array( 'footer' ), 'default' => '1848', ), array( 'id' => 'woocomp', 'type' => 'switch', 'title' => esc_attr__( 'Enable company field in checkout', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'wooadd1', 'type' => 'switch', 'title' => esc_attr__( 'Enable address 1 field in checkout', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'wooadd2', 'type' => 'switch', 'title' => esc_attr__( 'Enable address 2 field in checkout', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'woostate', 'type' => 'switch', 'title' => esc_attr__( 'Enable state field in checkout', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'woocity', 'type' => 'switch', 'title' => esc_attr__( 'Enable city field in checkout', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'woophone', 'type' => 'switch', 'title' => esc_attr__( 'Enable phone field in checkout', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'woopostcode', 'type' => 'switch', 'title' => esc_attr__( 'Enable postcode field in checkout', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'woocountry', 'type' => 'switch', 'title' => esc_attr__( 'Enable country field in checkout', 'atiframe-builder' ), 'default' => true, ), ) ) ); // -> START BLOG SECTION Redux::setSection( $atiframebuilder_opt_name, array( 'title' => esc_attr__( 'Blog', 'atiframe-builder' ), 'id' => 'blog-setting', 'icon' => 'el el-blogger', 'fields' => array( array( 'id' => 'blog-header_type', 'type' => 'select', 'title' => esc_attr__( 'Select Header type', 'atiframe-builder' ), 'options' => array( 1 => 'Slider', ), 'default' => 1, 'required' => array('header_type', '<', '0'), ), array( 'id' => 'blog-pick_slider', 'type' => 'select', 'title' => esc_attr__( 'Select Slider for Blog', 'atiframe-builder' ), 'subtitle' => esc_attr__('The option work for Post post type', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => atiframebuilder_get_sliders_array(), 'default' => '0', ), array( 'id' => 'blog-layout', 'type' => 'image_select', 'title' => esc_attr__( 'Select page layout', 'atiframe-builder' ), 'subtitle' => esc_attr__('The option work for Post post type', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( '1' => array( 'alt' => 'Full width layout', 'img' => get_template_directory_uri() . '/images/framework/full.gif' ), '2' => array( 'alt' => 'Boxed layout, maximum resolution - 1170 px', 'img' => get_template_directory_uri() . '/images/framework/boxed.gif' ) ), 'default' => '1' ), array( 'id' => 'blog-boxed-background', 'type' => 'background', 'title' => esc_attr__('Background settings for box', 'atiframe-builder' ), 'output' => array( '.single-post .mainbgr', '.archive.category .mainbgr', ), 'default' => array( 'background-color' => '#323232' , 'background-repeat' => 'no-repeat' , 'background-attachment' => 'fixed' , 'background-position' => 'center center' , 'background-size' => 'inherit' , ), 'required' => array('blog-layout', '=', '2') ), array( 'id' => 'blog-content-background', 'type' => 'background', 'title' => esc_attr__('Background settings for content section', 'atiframe-builder' ), 'output' => array( '.single-post main', '.archive.category main', ), 'default' => array( 'background-color' => '#ffffff', 'background-repeat' => 'no-repeat', 'background-attachment' => 'fixed', 'background-position' => 'center center', 'background-size' => 'inherit', 'background-image' => '', ) ), array( 'id' => 'blog-sidebar-layout', 'type' => 'image_select', 'title' => esc_attr__( 'Choose sidebar option for blog', 'atiframe-builder' ), 'subtitle' => esc_attr__('The option work for POST post type', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( '1' => array( 'alt' => 'Without sidebar', 'img' => get_template_directory_uri() . '/images/framework/nosidebar.gif' ), '2' => array( 'alt' => '2 sidebars', 'img' => get_template_directory_uri() . '/images/framework/2sidebars.gif' ), '3' => array( 'alt' => 'Left sidebar', 'img' => get_template_directory_uri() . '/images/framework/leftsidebar.gif' ), '4' => array( 'alt' => 'Right sidebar', 'img' => get_template_directory_uri() . '/images/framework/rightsidebar.gif' ) ), 'default' => '0' ), array( 'id' => 'blog_left_sidebar_widgets', 'type' => 'select', 'title' => esc_attr__( 'Widgets for Blog Left Sidebar', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( 'blog_default_left_sidebar' => 'Left Blog Sidebar', ), 'default' => 'blog_default_left_sidebar', 'required' => array('blog-sidebar-layout', '<', '0') ), array( 'id' => 'blog_right_sidebar_widgets', 'type' => 'select', 'title' => esc_attr__( 'Widgets for Blog Right Sidebar', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => array( 'blog_default_right_sidebar' => 'Right Blog Sidebar', ), 'default' => 'blog_default_right_sidebar', 'required' => array('blog-sidebar-layout', '<', '0') ), array( 'id' => 'blog_header_widget', 'type' => 'select', 'title' => esc_attr__( 'Choose Header for Blog', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => atiframebuilder_get_composer_block_array( 'header' ), 'default' => '1833', ), array( 'id' => 'blog_footer_widget', 'type' => 'select', 'title' => esc_attr__( 'Choose Footer for Blog', 'atiframe-builder' ), //Must provide key => value(array:title|img) pairs for radio options 'options' => atiframebuilder_get_composer_block_array( 'footer' ), 'default' => '1848', ), array( 'id' => 'blog-opt-divide1', 'type' => 'divide' ), /*======== Slider OR Image END ==========*/ array( 'id' => 'thumb-border-radius', 'type' => 'slider', 'title' => esc_attr__( 'Thumbnail\'s Border Radius', 'atiframe-builder' ), 'desc' => esc_attr__( 'Select border radius in px. Min: 0, max: 100, step: 1, default value: 0', 'atiframe-builder' ), 'default' => '12', 'min' => 0, 'step' => 1, 'max' => 100, 'display_value' => 'text' ), array( 'id' => 'is_related_posts', 'type' => 'switch', 'title' => esc_attr__( 'Related Posts for Single Post View', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Press On to template choice appear' , 'atiframe-builder' ), 'default' => true ), array( 'id' => 'related_posts_title', 'type' => 'text', 'title' => esc_attr__( 'Related Posts Title', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Set Title for Related Posts section', 'atiframe-builder' ), 'required' => array( 'is_related_posts', '=', true ), 'default' => 'Related Posts', ), array( 'id' => 'show_post_author', 'type' => 'switch', 'title' => esc_attr__( 'Show Post Author ', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'show_post_category', 'type' => 'switch', 'title' => esc_attr__( 'Show Post Category ', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'show_post_tags', 'type' => 'switch', 'title' => esc_attr__( 'Show Post Tags ', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'show_post_date', 'type' => 'switch', 'title' => esc_attr__( 'Show Post Date ', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'show_comments_count', 'type' => 'switch', 'title' => esc_attr__( 'Show Post Comments count ', 'atiframe-builder' ), 'default' => true, ), array( 'id' => 'show_read_more', 'type' => 'switch', 'title' => esc_attr__( 'Show Read More Link', 'atiframe-builder' ), 'default' => false, ), array( 'id' => 'read_more_text', 'type' => 'text', 'title' => esc_attr__( 'Read More Link Text', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Set Text for Read More Link', 'atiframe-builder' ), 'required' => array( 'show_read_more', '=', true ), 'default' => 'Continue reading', ), ) ) ); // Modal window options /* * <--- END SECTIONS */ Redux::setSection( $atiframebuilder_opt_name, array( 'title' => esc_attr__( 'Modal Window', 'atiframe-builder' ), 'id' => 'modal', 'icon' => 'el el-list-alt', 'fields' => array( array( 'id' => 'modal-info', 'type' => 'info', 'style' => 'info', 'title' => esc_attr__( 'Option enabling you to display a modal window before a user leaves your website.', 'atiframe-builder' ), ), array( 'id' => 'show_modal', 'type' => 'switch', 'title' => esc_attr__( 'Show Modal Window', 'atiframe-builder' ), 'default' => false, ), array( 'id' => 'modal_window', 'type' => 'select', 'data' => 'posts', 'args' => array( 'post_type' => array( 'modal_window', ) ), 'title' => esc_attr__( 'Select Modal Window', 'atiframe-builder' ), 'description' => wp_kses(__( ' Create a new Modal Window here', 'atiframe-builder' ), $allowed_html ), 'required' => array( 'show_modal', '=', true ), 'default' => false, ), array( 'id' => 'close-color', 'type' => 'color_rgba', 'title' => esc_attr__( 'Close Button Color', 'atiframe-builder' ), 'default' => array( 'color' => '#ffffff', 'alpha' => '1' ), 'compiler' => false, 'output' => array( '#ouibounce-modal .modal > i' ), ), array( 'id' => 'agressive_modal', 'type' => 'switch', 'title' => esc_attr__( 'Aggressive Mode', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'The modal to be eligible to fire anytime the page is loaded/ reloaded', 'atiframe-builder' ), 'default' => false, ), array( 'id' => 'time_modal', 'type' => 'text', 'title' => esc_attr__( 'Set a min time before Ouibounce fires, in seconds', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'By default, Ouibounce won\'t fire in the first second to prevent false positives, as it\'s unlikely the user will be able to exit the page within less than a second.', 'atiframe-builder' ), 'default' => '1000', ), array( 'id' => 'day_modal', 'type' => 'text', 'title' => esc_attr__( 'Cookie expiration, in days', 'atiframe-builder' ), 'subtitle' => esc_attr__( 'Ouibounce sets a cookie by default to prevent the modal from appearing more than once per user. By default, the cookie will expire at the end of the session, which for most browsers is when the browser is closed entirely.', 'atiframe-builder' ), 'default' => '5', ), ) ) ); function compiler_action($options, $css, $changed_values) { global $wp_filesystem; $filename = get_stylesheet_uri() . '/style.css'; if( empty( $wp_filesystem ) ) { require_once( ABSPATH .'/wp-admin/includes/file.php' ); WP_Filesystem(); } if( $wp_filesystem ) { $wp_filesystem->put_contents( $filename, $css, FS_CHMOD_FILE // predefined mode settings for WP files ); } } add_filter('redux/options/secretlab/saved', 'atiframebuilder_set_index_page'); function atiframebuilder_set_index_page( $var ) { update_option( 'page_on_front', $var['index-page'] ); update_option( 'show_on_front', 'page' ); if( !empty( $var['contacts_email'] ) && class_exists( 'WPCF7_ContactForm' ) ){ $forms = get_posts( array( 'posts_per_page' => -1, 'post_type'=> 'wpcf7_contact_form', ) ); if ( is_array( $forms ) ) { foreach( $forms as $form ){ $cont_form = wpcf7_contact_form ( $form->ID ); if ( empty( $cont_form->mail['recipient'] ) || in_array ( $cont_form->mail['recipient'], array ( 'info@secretlab.pw', 'spam@atiframe.ru', ) ) ) { wpcf7_save_contact_form( array( 'id' => $form->ID, 'mail' => array( 'recipient' => $var['contacts_email'] ), 'title' => $form->post_title, ) ); } } } } }