Used within different fields. Simply examples. Search for ACTUAL DECLARATION for field examples * */ $ReduxOptionHTML = ''; if ( file_exists( dirname( __FILE__ ) . '/info-html.html' ) ) { Redux_Functions::initWpFilesystem(); global $wp_filesystem; $ReduxOptionHTML = $wp_filesystem->get_contents( dirname( __FILE__ ) . '/info-html.html' ); } // Background Patterns Reader $ReduxOption_patterns_path = ReduxFramework::$_dir . '../ReduxOption/patterns/'; $ReduxOption_patterns_url = ReduxFramework::$_url . '../ReduxOption/patterns/'; $ReduxOption_patterns = array(); if ( is_dir( $ReduxOption_patterns_path ) ) { if ( $ReduxOption_patterns_dir = opendir( $ReduxOption_patterns_path ) ) { $ReduxOption_patterns = array(); while ( ( $ReduxOption_patterns_file = readdir( $ReduxOption_patterns_dir ) ) !== false ) { if ( stristr( $ReduxOption_patterns_file, '.png' ) !== false || stristr( $ReduxOption_patterns_file, '.jpg' ) !== false ) { $name = explode( '.', $ReduxOption_patterns_file ); $name = str_replace( '.' . end( $name ), '', $ReduxOption_patterns_file ); $ReduxOption_patterns[] = array( 'alt' => $name, 'img' => $ReduxOption_patterns_url . $ReduxOption_patterns_file ); } } } } /** * ---> SET ARGUMENTS * All the possible arguments for Redux. * For full documentation on arguments, please refer to: https://github.com/ReduxFramework/ReduxFramework/wiki/Arguments * */ $theme = wp_get_theme(); // For use with some settings. Not necessary. $args = array( // TYPICAL -> Change these values as you need/desire 'opt_name' => $opt_name, // This is where your data is stored in the database and also becomes your global variable name. 'display_name' => $theme->get( 'Name' ) . ' ' . __( 'Theme Options', 'cleania' ), // Name that appears at the top of your panel 'display_version' => $theme->get( 'Version' ), // Version that appears at the top of your panel 'menu_type' => 'menu', //Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only) 'allow_sub_menu' => true, // Show the sections below the admin menu item or not 'menu_title' => $theme->get( 'Name' ) . ' ' . __( 'Options', 'cleania' ), 'page_title' => __( 'Theme Options', 'cleania' ), // 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' => true,//false, // Use a asynchronous font on the front end or font string //'disable_google_fonts_link' => true, // Disable this in case you want to create your own google fonts loader 'admin_bar' => true, // Show the panel pages on the admin bar 'admin_bar_icon' => 'dashicons-performance', // Choose an icon for the admin bar menu 'admin_bar_priority' => 50, // Choose an priority for the admin bar menu 'global_variable' => '', // Set a different name for your global variable other than the opt_name 'dev_mode' => false, // Show the time the page took to load, etc 'update_notice' => false, // If dev_mode is enabled, will notify developer of updated versions available in the GitHub Repo 'customizer' => false,//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' => 45,//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' => '', // Page slug used to denote the panel, will be based off page title then menu title then opt_name if not provided 'save_defaults' => true, // On load save the defaults to DB before user clicks save or not 'default_show' => false, // If true, shows the default value next to each field that is not the default value. 'default_mark' => '', // What to print by the field's title if the value shown is default. Suggested: * 'show_import_export' => true, // Shows the Import/Export panel when not used as a field. // CAREFUL -> These options are for advanced use only 'transient_time' => 60 * MINUTE_IN_SECONDS, 'output' => true, // Global shut-off for dynamic CSS output by the framework. Will also disable google fonts output 'output_tag' => true, // Allows dynamic CSS to be generated for customizer and google fonts, but stops the dynamic CSS from going to the head // 'footer_credit' => '', // Disable the footer credit of Redux. Please leave if you can help it. // FUTURE -> Not in use yet, but reserved or partially implemented. Use at your own risk. 'database' => '', // possible: options, theme_mods, theme_mods_expanded, transient. Not fully functional, warning! 'use_cdn' => true, // If you prefer not to use the CDN for Select2, Ace Editor, and others, you may download the Redux Vendor Support plugin yourself and run locally or embed it in your code. // HINTS 'hints' => array( 'icon' => 'el el-question-sign', 'icon_position' => 'right', 'icon_color' => 'lightgray', 'icon_size' => 'normal', 'tip_style' => array( 'color' => 'red', 'shadow' => true, 'rounded' => false, 'style' => '', ), 'tip_position' => array( 'my' => 'top left', 'at' => 'bottom right', ), 'tip_effect' => array( 'show' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'mouseover', ), 'hide' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'click mouseleave', ), ), ) ); // ADMIN BAR LINKS -> Setup custom links in the admin bar menu as external items. $args['admin_bar_links'][] = array( 'id' => 'codeastrology-docs', 'href' => 'https://cleania.xyz/docs', 'title' => __( 'Documentation', 'cleania' ), ); $args['admin_bar_links'][] = array( 'id' => 'codeastrology-support', 'href' => 'https://codeastrology.com/support', 'title' => __( 'Support', 'cleania' ), ); $args['admin_bar_links'][] = array( 'id' => 'codeastrology-extensions', 'href' => 'https://codeastrology.com/', 'title' => __( 'CodeAstrology', 'cleania' ), ); // SOCIAL ICONS -> Setup custom links in the footer for quick links in your panel footer icons. $args['share_icons'][] = array( 'url' => 'https://github.com/codersaiful/', 'title' => 'Visit us on GitHub', 'icon' => 'el el-github' //'img' => '', // You can use icon OR img. IMG needs to be a full URL. ); $args['share_icons'][] = array( 'url' => 'https://www.facebook.com/CodeAstrology', 'title' => 'Like us on Facebook', 'icon' => 'el el-facebook' ); $args['share_icons'][] = array( 'url' => 'http://twitter.com/CodeAstrology', 'title' => 'Follow us on Twitter', 'icon' => 'el el-twitter' ); $args['share_icons'][] = array( 'url' => 'https://www.linkedin.com/company/codeastrology', 'title' => 'Find us on LinkedIn', 'icon' => 'el el-linkedin' ); /* // Panel Intro text -> before the form if ( ! isset( $args['global_variable'] ) || $args['global_variable'] !== false ) { if ( ! empty( $args['global_variable'] ) ) { $v = $args['global_variable']; } else { $v = str_replace( '-', '_', $args['opt_name'] ); } $args['intro_text'] = sprintf( __( '

Did you know that Redux sets a global variable for you? To access any of your saved options from within your code you can use your global variable: $%1$s

', 'cleania' ), $v ); } else { $args['intro_text'] = __( '

This text is displayed above the options panel. It isn\'t required, but more info is always better! The intro_text field accepts all HTML.

', 'cleania' ); } // Add content after the form. $args['footer_text'] = __( '

This text is displayed below the options panel. It isn\'t required, but more info is always better! The footer_text field accepts all HTML.

', 'cleania' ); */ Redux::setArgs( $opt_name, $args ); /* * ---> END ARGUMENTS */ /* * ---> START HELP TABS */ $tabs = array( array( 'id' => 'redux-help-tab-1', 'title' => __( 'Theme Information 1', 'cleania' ), 'content' => __( '

This is the tab content, HTML is allowed.

', 'cleania' ) ), array( 'id' => 'redux-help-tab-2', 'title' => __( 'Theme Information 2', 'cleania' ), 'content' => __( '

This is the tab content, HTML is allowed.

', 'cleania' ) ) ); Redux::setHelpTab( $opt_name, $tabs ); // Set the help sidebar $content = __( '

This is the sidebar content, HTML is allowed.

', 'cleania' ); Redux::setHelpSidebar( $opt_name, $content ); /* * <--- END HELP TABS */ /* * * ---> START SECTIONS * */ /* As of Redux 3.5+, there is an extensive API. This API can be used in a mix/match mode allowing for */ // -> START Basic Fields Redux::setSection( $opt_name, array( 'title' => __( 'Basic', 'cleania' ), 'id' => 'basics', 'desc' => __( 'Cleania\'s Basic setting for Global.', 'cleania' ), 'customizer_width' => '400px', 'icon' => 'el el-home', 'fields' => array( array( 'id' => 'logo', 'type' => 'media', 'url' => true, 'title' => __( 'Site Logo', 'cleania' ), 'compiler' => 'true', //'mode' => false, // Can be set to false to allow any media type, or can also be set to any mime type. 'desc' => __( 'Main logo for your website. Default size is: 250x68 px. To show Site\'s title, remove logo', 'cleania' ), 'subtitle' => __( 'Upload your logo', 'cleania' ), 'default' => array( 'url' => get_template_directory_uri() . '/images/logo.png' ), //'hint' => array( // 'title' => 'Hint Title', // 'content' => 'This is a hint for the media field with a Title.', //) ), array( 'id' => 'primary_menu', 'type' => 'text', 'title' => __( 'Mobile Menu Text', 'cleania' ), 'subtitle' => __( 'Default Primary Menu', 'cleania' ), 'default' => __( 'Primary Menu','cleania' ), 'desc' => __( 'You can set your own custom text.', 'cleania' ), ), array( 'id' => 'fullwidth', 'type' => 'switch', 'title' => __( 'Full Width', 'cleania' ), 'subtitle' => __( 'Look, default is Off!', 'cleania' ), 'default' => false, 'desc' => __( 'If on, Site will be full width.', 'cleania' ), ), array( 'id' => 'site_slogan', 'type' => 'switch', 'title' => __( 'Slogan', 'cleania' ), 'subtitle' => __( 'Slogan under logo or site title', 'cleania' ), 'default' => true, 'desc' => __( 'Under the logo/Site-Title, will show logo. Default is On, You can hide', 'cleania' ), 'on' => 'Show', 'off' => 'Hide', ), array( 'id' => 'blog_loop', 'type' => 'switch', 'title' => __( 'Blog Loop', 'cleania' ), 'subtitle' => __( 'Set Blog Loop. Full or Excerpt.', 'cleania' ), 'desc'=> __( 'This setting will impact Default Blog Loop/Post Loop page etc..', 'cleania' ), 'default' => true, 'on' => 'Full Content', 'off' => 'Excerpt', ), array( 'id' => 'template_banner', 'type' => 'media', 'url' => true, 'title' => __( 'Banner Image', 'cleania' ), 'compiler' => 'true', //'mode' => false, // Can be set to false to allow any media type, or can also be set to any mime type. 'desc' => __( 'This banner image will display on Header of your your page. Please choose page template to show this image from backend - Page Edit.', 'cleania' ), 'subtitle' => __( 'Upload your Banner', 'cleania' ), 'default' => false, //'hint' => array( // 'title' => 'Hint Title', // 'content' => 'This is a hint for the media field with a Title.', //) ), ), ) ); // -> START Color Selection Redux::setSection( $opt_name, array( 'title' => __( 'Color Selection', 'cleania' ), 'id' => 'color', 'desc' => __( '', 'cleania' ), 'icon' => 'el el-brush' ) ); /******* * This section will use asap, so need this comment part Redux::setSection( $opt_name, array( 'title' => __( 'Basic Text', 'cleania' ), 'id' => 'color-basic', 'desc' => __( 'All type color is changeable from here. Such: header,footer,boody,link etc text and any background color', 'cleania' ), 'subsection' => true, 'fields' => array( array( 'id' => 'color_basic_link', 'type' => 'color', 'output' => array( 'body a', 'ddddd', 'ddddd', 'ddddd', 'ddddd', 'ddddd', 'ddddd', 'ddddd', ), 'title' => __( 'Deep Text', 'cleania' ), 'subtitle' => __( 'Pick Color', 'cleania' ), 'default' => '#396584', ), array( 'id' => 'color_basic_link_inside', 'type' => 'color', 'output' => array( 'aaaaaa', 'aaaaaa', 'aaaaaa', 'aaaaaa', 'aaaaaa', 'aaaaaa', 'aaaaaa', ), 'title' => __( 'Highlight Text', 'cleania' ), 'subtitle' => __( 'Pick Color', 'cleania' ), 'default' => '#00bcd4', ), ), ) ); **/ Redux::setSection( $opt_name, array( 'title' => __( 'Header & Footer', 'cleania' ), 'id' => 'color-header', 'desc' => __( 'Background color change for Header and Footer.', 'cleania' ), 'subsection' => true, 'fields' => array( array( 'id' => 'header_back', 'type' => 'background', 'output' => array( '.site.header-wrapper' ), 'title' => __( 'Solid Header', 'cleania' ), 'subtitle' => __( 'Pick Header Color as Solid Default: #f3f4f5', 'cleania' ), 'default' => '#f3f4f5', //#f3f4f5 ), array( 'id' => 'footer', 'type' => 'background', 'output' => array( 'footer.site-footer' ), 'title' => __( 'Solid Footer', 'cleania' ), 'subtitle' => __( 'Pick Header Color as Solid Default: #f3f4f5', 'cleania' ), 'default' => '#f3f4f5', //#f3f4f5 ), ), ) ); // -> Social Start here $social_field = array( 'facebook' => 'Facebook', 'twitter' => 'Twitter', 'youtube-play' => 'Youtube', 'instagram' => 'Instagram', 'linkedin' => 'LinkedIn', 'xing' => 'Xing', ); $social_field_default = array( 'facebook' => 'https://facebook.com/codersaiful', 'twitter' => 'https://twitter.com/codersaiful', 'youtube-play' => 'https://www.youtube.com/user/codersaiful', 'instagram' => 'https://www.instagram.com/codersaiful/', 'linkedin' => 'https://www.linkedin.com/in/codersaiful/', ); Redux::setSection( $opt_name, array( 'title' => __( 'Social', 'cleania' ), 'desc' => __( 'Social Network icon will be show at Header only. You also be able to change order of these link.', 'cleania' ), 'id' => 'social_network', //'subsection' => true, 'icon' => 'el el-facebook', 'customizer_width' => '700px', 'fields' => array( array( 'id' => 'social_header_footer', 'type' => 'checkbox', 'title' => __( 'Select Location', 'cleania' ), 'subtitle' => __( 'Check for displaying Social Icon Box among Header and Footer.', 'cleania' ), 'desc' => __( 'Remember: If Social URL box is empty, than social icon will not display in front-end.', 'cleania' ), //Must provide key => value pairs for multi checkbox options 'options' => array( 'header' => 'Header - Display in Website Header', 'footer' => 'Footer - Display in Website Footer', ), //See how std has changed? you also don't need to specify opts that are 0. 'default' => array( 'header' => '1', 'footer' => '0', ) ), array( 'id' => 'social_networks', 'type' => 'sortable', 'title' => __( 'Social Networks', 'cleania' ), 'subtitle' => __( 'Enter your full profile URL of your social Site..', 'cleania' ), 'desc' => __( 'Leave empty, if you don\'t want any one.', 'cleania' ), 'label' => true, 'options' => $social_field, 'default' => $social_field_default, ), ), ) ); // -> START WooCommerce if (function_exists( 'WC' ) ): Redux::setSection( $opt_name, array( 'title' => __( 'WooCommerce', 'cleania' ), 'id' => 'wc_title', 'desc' => __( 'Your WooCommerce Settings', 'cleania' ) , 'icon' => 'el el-shopping-cart', ) ); Redux::setSection( $opt_name, array( 'title' => __( 'WooCommerce Basic', 'cleania' ), 'id' => 'wc_basic', 'desc' => __( 'Your WooCommerce Settings', 'cleania' ) , 'subsection' => true, 'fields' => array( array( 'id' => 'shop_column', 'type' => 'button_set', 'title' => __( 'Shop page Columm', 'cleania' ), 'subtitle' => __( 'Set column amount', 'cleania' ), 'desc' => __( 'Select shop page column layout here.', 'cleania' ), 'options' => array( '2' => '2 Column', '3' => '3 Column', '4' => '4 Column', '5' => '5 Column' ), 'default' => '3' ), array( 'id' => 'shop_per_page', 'type' => 'slider', 'title' => __( 'Shop Per page Product', 'cleania' ), 'subtitle' => __( 'Product per page', 'cleania' ), 'desc' => __( 'Set products per page from here.', 'cleania' ), 'default' => 12, 'min' => 2, 'step' => 1, 'max' => 100, 'display_value' => 'text' ), array( 'id' => 'thumbs_column', 'type' => 'button_set', 'title' => __( 'Gallery thumnbail Columm', 'cleania' ), 'subtitle' => __( 'Product gallery thumnbail columns.', 'cleania' ), 'desc' => __( 'Set product gallery thumnbail columns from here.', 'cleania' ), 'options' => array( '2' => '2 Column', '3' => '3 Column', '4' => '4 Column', '5' => '5 Column' ), 'default' => '4' ), array( 'id' => 'related_per_page', 'type' => 'slider', 'title' => __( 'Per page Related Product', 'cleania' ), 'subtitle' => __( 'Per page related product', 'cleania' ), 'desc' => __( 'Set related products per page from here', 'cleania' ), 'default' => 4, 'min' => 2, 'step' => 1, 'max' => 30, 'display_value' => 'text' ), array( 'id' => 'related_column', 'type' => 'button_set', 'title' => __( 'Related product Columm', 'cleania' ), 'subtitle' => __( 'Set column amount', 'cleania' ), 'desc' => __( 'Set related product column from here', 'cleania' ), 'options' => array( '2' => '2 Column', '3' => '3 Column', '4' => '4 Column', '5' => '5 Column' ), 'default' => '4' ), array( 'id' => 'wc_product_bottom_text', 'type' => 'editor', 'title' => __( 'Universal Product Description', 'cleania' ), 'subtitle'=> __( 'default value for each product', 'cleania' ), 'default' => '', 'description' => '

' . __( 'This is Universal product description part, which will display to all product bottom. Leave blank, if no need.', 'cleania' ) . '

', 'args' => array( 'wpautop' => false, 'media_buttons' => false, 'textarea_rows' => 5, //'tabindex' => 1, //'editor_css' => '', 'teeny' => false, //'tinymce' => array(), 'quicktags' => false, ) ), ), ) ); //Added later for Advance Redux::setSection( $opt_name, array( 'title' => __( 'WC Advance', 'cleania' ), 'id' => 'wc_advance', 'desc' => __( 'For Addvance Setting of Woocomemrce', 'cleania' ) , 'subsection' => true, 'fields' => array( array( 'id' => 'wc_add_cart_title', 'type' => 'text', 'title' => __( 'Cart Title', 'cleania' ), 'subtitle' => __( 'Default value empty', 'cleania' ), 'desc' => __( 'This value will display in Minicart. as title', 'cleania' ), 'default' => '' ), ), ) ); Redux::setSection( $opt_name, array( 'title' => __( 'Template Manager', 'cleania' ), 'id' => 'wc_temp_manager', 'desc' => __( 'Your WooCommerce Settings', 'cleania' ) , 'subsection' => true, 'fields' => array( array( 'id' => 'wc_template', 'type' => 'sorter', 'title' => 'Homepage Layout Manager', 'desc' => 'Organize how you want the layout to appear on the homepage.', 'compiler' => 'true', 'placebo' => false, 'options' => array( 'enabled' => array( 'recent' => __( 'Recent Products', 'cleania' ), 'best_seller' => __( 'Best Seller', 'cleania' ), ), 'disabled' => array( 'category' => __( 'Categories', 'cleania' ), 'custom-content' => __( 'Custom Content', 'cleania' ), 'wc-blog' => __( 'Blog Section', 'cleania' ), ), ), ), ), ) ); //Categories Redux::setSection( $opt_name, array( 'title' => __( 'Category Section', 'cleania' ), 'id' => 'wc_temp_category', 'desc' => __( 'Change your category section content', 'cleania' ) , 'subsection' => true, 'fields' => array( array( 'id' => 'wc_temp_category_text', 'type' => 'text', 'title' => __( 'Product categories Title', 'cleania' ), 'subtitle' => __( 'Category section title', 'cleania' ), 'desc' => __( 'Set the category section title here', 'cleania' ), 'default' => __( 'Product Categories', 'cleania' ), ), array( 'id' => 'wc_temp_category_desc_text', 'type' => 'editor', 'title' => __( 'Category Section Content', 'cleania' ), 'default' => '

' . __( 'Place your preffered text for this place. Go to Theme Option from Dashboard of your site.', 'cleania' ) . '

', 'args' => array( 'wpautop' => false, 'media_buttons' => false, 'textarea_rows' => 5, //'tabindex' => 1, //'editor_css' => '', 'teeny' => false, //'tinymce' => array(), 'quicktags' => false, ) ), array( 'id' => 'wc_temp_category_select', 'type' => 'select', 'title' => __( 'Choose Category', 'cleania' ), 'default' => '

' . __( 'Choose from available category', 'cleania' ) . '

', 'data' => 'categories', 'args' => array( 'taxonomy' => 'product_cat', ), 'multi' => true, 'desc' => __( 'Choose Categories to show in the homepage.', 'cleania' ), 'subtitle' => __( 'Select Category For Display', 'cleania' ), ), ), ) ); //Best Seller Redux::setSection( $opt_name, array( 'title' => __( 'Best Seller', 'cleania' ), 'id' => 'wc_temp_best_seller', 'desc' => __( 'Change your Best Seller content', 'cleania' ) , 'subsection' => true, 'fields' => array( array( 'id' => 'wc_temp_bests_text', 'type' => 'text', 'title' => __( 'Best Seller Title', 'cleania' ), 'subtitle' => __( 'Best Seller Section Title', 'cleania' ), 'desc' => __( ' Change the Best Seller Section Title Here', 'cleania' ), 'default' => 'Best Seller', ), array( 'id' => 'wc_temp_bests_desc_text', 'type' => 'editor', 'title' => __( 'Best Seller Content', 'cleania' ), 'default' => '

' . __( 'Place your preffered text for this place. Go to Theme Option from Dashboard of your site.', 'cleania' ) . '

', 'args' => array( 'wpautop' => false, 'media_buttons' => false, 'textarea_rows' => 5, //'tabindex' => 1, //'editor_css' => '', 'teeny' => false, //'tinymce' => array(), 'quicktags' => false, ) ), ), ) ); //Recent Product Redux::setSection( $opt_name, array( 'title' => __( 'Recent Products', 'cleania' ), 'id' => 'wc_temp_recent_product', 'desc' => __( 'Change your Best Seller content', 'cleania' ) , 'subsection' => true, 'fields' => array( array( 'id' => 'wc_temp_recent_text', 'type' => 'text', 'title' => __( 'Recent Product Title', 'cleania' ), 'subtitle' => __( 'Recent product title', 'cleania' ), 'desc' => __( 'Change the recent product section title from here', 'cleania' ), 'default' => __( 'Recent Product', 'cleania' ), ), array( 'id' => 'wc_temp_recent_desc_text', 'type' => 'editor', 'title' => __( 'Recent Product Content', 'cleania' ), 'default' => '

' . __( 'Place your preffered text for this place. Go to Theme Option from Dashboard of your site.', 'cleania' ) . '

', 'args' => array( 'wpautop' => false, 'media_buttons' => false, 'textarea_rows' => 5, //'tabindex' => 1, //'editor_css' => '', 'teeny' => false, //'tinymce' => array(), 'quicktags' => false, ) ), ), ) ); /*/Sale Product //This part will be use in next version Redux::setSection( $opt_name, array( 'title' => __( 'Recent Products', 'cleania' ), 'id' => 'wc_temp_sale_product', 'desc' => __( 'Change your Best Seller content', 'cleania' ) , 'subsection' => true, 'fields' => array( array( 'id' => 'wc_temp_sale_text', 'type' => 'text', 'title' => __( 'Sale Product Text', 'cleania' ), 'subtitle' => __( 'Subtitle sss', 'cleania' ), 'desc' => __( 'Field Description sdddd', 'cleania' ), 'default' => __( 'Sale Product', 'cleania' ), ), array( 'id' => 'wc_temp_sale_desc_text', 'type' => 'editor', 'title' => __( 'Sale Product Desc Text', 'cleania' ), 'default' => '

' . __( 'Lorem ipsum best seller products available inour store check and buy all the products right now. ok ?', 'cleania' ) . '

', 'args' => array( 'wpautop' => false, 'media_buttons' => false, 'textarea_rows' => 5, //'tabindex' => 1, //'editor_css' => '', 'teeny' => false, //'tinymce' => array(), 'quicktags' => false, ) ), ), ) ); */ //Recent Article Redux::setSection( $opt_name, array( 'title' => __( 'Recent Blog', 'cleania' ), 'id' => 'wc_temp_blog', 'desc' => __( 'Change your Best Seller content', 'cleania' ) , 'subsection' => true, 'fields' => array( array( 'id' => 'wc_temp_blog_title', 'type' => 'text', 'title' => __( 'Recent Blog', 'cleania' ), 'subtitle' => __( 'Recent Blog Section title', 'cleania' ), 'desc' => __( 'Change Recent Blog Section title from here', 'cleania' ), 'default' => 'Recent Articles', ), array( 'id' => 'wc_temp_blog_desc', 'type' => 'editor', 'title' => __( 'Blog section description', 'cleania' ), 'default' => '

' . __( 'Place your preffered text for this place. Go to Theme Option from Dashboard of your site.', 'cleania' ) . '

', 'args' => array( 'wpautop' => false, 'media_buttons' => false, 'textarea_rows' => 5, //'tabindex' => 1, //'editor_css' => '', 'teeny' => false, //'tinymce' => array(), 'quicktags' => false, ) ), array( 'id' => 'wc_temp_posts_amount', 'type' => 'slider', 'title' => __( 'Post Amount', 'cleania' ), 'subtitle' => __( 'Recent article post ammount', 'cleania' ), 'desc' => __( 'Set recent article post ammount from here ', 'cleania' ), 'default' => 4, 'min' => 2, 'step' => 2, 'max' => 20, 'display_value' => 'text' ), ), ) ); //Content Part Redux::setSection( $opt_name, array( 'title' => __( 'Custom Content', 'cleania' ), 'id' => 'wc_temp_content', 'desc' => __( 'Write your custom content here.', 'cleania' ) , 'subsection' => true, 'fields' => array( array( 'id' => 'wc_temp_content_content', 'type' => 'editor', 'title' => __( 'In this section, you able to set custom text,content,image etc.', 'cleania' ), 'default' => '

' . __( 'Place your preffered text for this place. Go to Theme Option from Dashboard of your site.', 'cleania' ) . '

', 'args' => array( 'teeny' => true, 'textarea_rows' => 10 ), ), ), ) ); /* //Slider Configuration // This part will be use in next version $args = array( 'post_type' => 'sa_slider', ); $slider_query = new WP_Query($args); $slider = false; if( $slider_query->have_posts() ):while( $slider_query->have_posts() ): $slider_query->the_post(); $slider_id = get_the_ID(); $slider_title = get_the_title(); $slider[$slider_id] = $slider_title; endwhile; endif; wp_reset_query(); if( $slider ){ Redux::setSection( $opt_name, array( 'title' => __( 'Slider', 'cleania' ), 'id' => 'wc_temp_slider', 'desc' => __( 'Change your Best Seller content', 'cleania' ) , 'subsection' => true, 'fields' => array( array( 'id' => 'wc_slider', 'type' => 'select', 'title' => __( 'Select Slider', 'cleania' ), 'subtitle' => __( 'No validation can be done on this field type', 'cleania' ), 'desc' => __( 'This is the description field, again good for additional info.', 'cleania' ), //Must provide key => value pairs for select options 'options' => $slider, //'default' => '2' ), ), ) ); }else{ Redux::setSection( $opt_name, array( 'title' => __( 'Slider', 'cleania' ), 'id' => 'wc_temp_slider', 'desc' => __( 'Change your Best Seller content', 'cleania' ) , 'subsection' => true, 'fields' => array( array( 'id' => 'wc_slider', 'type' => 'info', 'notice' => false, 'style' => 'critical', 'icon' => 'el el-info-circle', 'title' => __( 'Slider not founded!', 'cleania' ), 'desc' => __( 'There is not found any slider, Please check SA Sliders menu. May be, you didn\'s install slider. Please go to Appearence->Install Plugin.', 'cleania' ), 'default' => false ), ), ) ); } */ else: Redux::setSection( $opt_name, array( 'title' => __( 'WooCommerce', 'cleania' ), 'id' => 'wc_title_no_woocommerce', 'desc' => __( 'WooCommrce is not installed. if you want to start your online business, Install it now.', 'cleania' ) , 'icon' => 'el el-shopping-cart-sign', ) ); endif; // -> END WooCommerce // -> Start Footer Redux::setSection( $opt_name, array( 'title' => __( 'Footer', 'cleania' ), 'id' => 'footer', 'desc' => __( 'Change your footer content', 'cleania' ) , 'fields' => array( array( 'id' => 'footer_content', 'type' => 'editor', 'title' => __( 'Footer Content', 'cleania' ), 'subtitle' => __( 'Will display bellow of Footer Sidebar. Mean: Above on Footer Copyright Text.', 'cleania' ), 'default' => false, 'args' => array( 'wpautop' => false, 'media_buttons' => true, 'textarea_rows' => 5, //'tabindex' => 1, //'editor_css' => '', 'teeny' => true, //'tinymce' => array(), 'quicktags' => true, ) ), array( 'id' => 'wordpress_link', 'type' => 'switch', 'title' => __( 'Proud WordPress Link', 'cleania' ), 'subtitle' => __( 'You can disable WordPress link', 'cleania' ), 'default' => true, 'desc' => __( 'Under the logo/Site-Title, will show logo. Default is On, You can hide', 'cleania' ), 'on' => 'Show', 'off' => 'Hide', ), array( 'id' => 'footer_copyright', 'type' => 'editor', 'title' => __( 'Copyright Text', 'cleania' ), 'default' => '

' . __( 'Theme: %1$s by %2$s.', 'cleania' ) . '

', 'args' => array( 'wpautop' => false, 'media_buttons' => false, 'textarea_rows' => 5, //'tabindex' => 1, //'editor_css' => '', 'teeny' => false, //'tinymce' => array(), 'quicktags' => false, ) ), ), ) );