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' ), // 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 Options', 'adrian-lite' ), 'page_title' => __( 'Theme Options', 'adrian-lite' ), // 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, // 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' => '', // Set a different name for your global variable other than the opt_name 'dev_mode' => false, // Show the time the page took to load, etc 'update_notice' => true, // If dev_mode is enabled, will notify developer of updated versions available in the GitHub Repo 'customizer' => true, // Enable basic customizer support //'open_expanded' => true, // Allow you to start the panel in an expanded way initially. //'disable_save_warn' => true, // Disable the save warning when a user changes a field // 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' => '', // 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, // 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', ), ), ) ); // 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'] = ""; } else { $args['intro_text'] = ""; } // Add content after the form. $args['footer_text'] = ""; Redux::setArgs( $opt_name, $args ); /* * ---> END ARGUMENTS */ /* * ---> START HELP TABS */ $tabs = array( array( 'id' => 'redux-help-tab-1', 'title' => __( 'Theme Information 1', 'adrian-lite' ), 'content' => __( '
This is the tab content, HTML is allowed.
', 'adrian-lite' ) ), array( 'id' => 'redux-help-tab-2', 'title' => __( 'Theme Information 2', 'adrian-lite' ), 'content' => __( 'This is the tab content, HTML is allowed.
', 'adrian-lite' ) ) ); Redux::setHelpTab( $opt_name, $tabs ); // Set the help sidebar $content = __( 'This is the sidebar content, HTML is allowed.
', 'adrian-lite' ); 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 */ // Header // Top Header Redux::setSection( $opt_name, array( 'title' => __( 'Header', 'adrian-lite' ), 'id' => 'header-options', 'icon' => 'el el-arrow-up', ) ); // Top Header Redux::setSection( $opt_name, array( 'title' => __( 'Top Header', 'adrian-lite' ), 'desc' => __( 'Here you can change the top header area of the theme. ', 'adrian-lite' ), 'id' => 'top-header-options', 'subsection' => true, 'fields' => array( array( 'id' => 'top-header-switch', 'type' => 'switch', 'title' => __('Top Header', 'adrian-lite'), 'subtitle' => __('Turn on/off to show or hide top header area', 'adrian-lite'), 'default' => true, ), array( 'id' => 'top-header-link-color', 'type' => 'color', 'title' => __('Link Color', 'adrian-lite'), 'subtitle' => __('Select top header link color', 'adrian-lite'), 'default' => '#fff', 'validate' => 'color', 'transparent' => false ), array( 'id' => 'top-header-height', 'type' => 'slider', 'title' => __('Height', 'adrian-lite'), 'subtitle' => __('Select top header area height. In pixels', 'adrian-lite'), 'default' => 65, "min" => 1, "step" => 1, "max" => 500, 'display_value' => 'label', ), array( 'id' => 'top-header-phone', 'type' => 'text', 'title' => __('Phone', 'adrian-lite'), 'subtitle' => __('Give your phone number here', 'adrian-lite'), ), array( 'id' => 'top-header-mail', 'type' => 'text', 'title' => __('Email', 'adrian-lite'), 'subtitle' => __('Give your mail adress here', 'adrian-lite'), ), array( 'id' => 'top-header-fb', 'type' => 'text', 'title' => __('Facebook', 'adrian-lite'), 'subtitle' => __('Give your Facebook url here', 'adrian-lite'), ), array( 'id' => 'top-header-twt', 'type' => 'text', 'title' => __('Twitter', 'adrian-lite'), 'subtitle' => __('Give your Twitter url here', 'adrian-lite'), ), array( 'id' => 'top-header-ins', 'type' => 'text', 'title' => __('Instagram', 'adrian-lite'), 'subtitle' => __('Give your Instagram url here', 'adrian-lite'), ), array( 'id' => 'top-header-gog', 'type' => 'text', 'title' => __('Google', 'adrian-lite'), 'subtitle' => __('Give your Google plus url here', 'adrian-lite'), ), array( 'id' => 'top-header-lin', 'type' => 'text', 'title' => __('Linkedin', 'adrian-lite'), 'subtitle' => __('Give your Linkedin url here', 'adrian-lite'), ), ), ) ); // Main Header Redux::setSection( $opt_name, array( 'title' => __( 'Main Header', 'adrian-lite' ), 'desc' => __( 'Here you can change the main header area of the theme. ', 'adrian-lite' ), 'id' => 'main-header-options', 'subsection' => true, 'fields' => array( array( 'id' =>'custom-header', 'type' => 'select', 'data' => 'posts', 'args' => array('post_type' => 'cblock'), 'title' => __('Custom Header', 'adrian-lite'), 'subtitle' => __('You can select a custom header source.', 'adrian-lite'), ), array( 'id' => 'header-position', 'type' => 'radio', 'title' => __('Header Position', 'adrian-lite'), 'subtitle' => __('Select position of header relative/fixed', 'adrian-lite'), 'options' => array( 'relative' => 'Position Relative', 'fixed' => 'Position Fixed' ), 'default' => 'fixed' ), array( 'id' => 'main-header-bg', 'type' => 'color_rgba', 'title' => __('Background Color', 'adrian-lite'), 'subtitle' => __('Change background of main menu', 'adrian-lite'), 'output' => array( 'background' => '.main-header' ), 'default' => array( 'color' => '#fff', 'alpha' => .8 ), ), array( 'id' => 'site-logo', 'type' => 'media', 'url' => true, 'title' => __('Logo', 'adrian-lite'), 'subtitle' => __('Upload a logo', 'adrian-lite'), 'desc' => __('W:150px H:65px', 'adrian-lite'), 'default' => array( 'url'=> false ) ), array( 'id' => 'shop-card-switch', 'type' => 'switch', 'title' => __('Shop card', 'adrian-lite'), 'subtitle' => __('Turn on/off to show or hide shop card in menu area', 'adrian-lite'), 'default' => false, ), ), ) ); // Breadcrumbs Redux::setSection( $opt_name, array( 'title' => __( 'Breadcrumbs', 'adrian-lite' ), 'desc' => __( 'Here you can make changes on the main breadcrumb area. ', 'adrian-lite' ), 'id' => 'breadcrumb-options', 'icon' => 'el el-quotes', 'fields' => array( array( 'id' => 'breadcrumb-on', 'type' => 'switch', 'title' => __('Show/Hide', 'adrian-lite'), 'subtitle' => __('Turn on/off to show or hide breadcrumbs', 'adrian-lite'), 'default' => true, ), array( 'id' => 'breadcrumb-spacing', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('px'), 'units_extended' => 'false', 'left' => 'false', 'right' => 'false', 'title' => __('Margin Option', 'adrian-lite'), 'subtitle' => __('Add margin to breadcrumb.', 'adrian-lite'), 'default' => array( 'margin-top' => '0px', 'margin-bottom' => '0px', 'units' => 'px', ) ), array( 'id' => 'breadcrumb-bg-color', 'type' => 'color', 'title' => __('Bacground Color', 'adrian-lite'), 'subtitle' => __('Change breadcrumb background color', 'adrian-lite'), 'output' => array( 'background-color' => '.breadcrumb' ), 'default' => '#eaeaea', 'validate' => 'color', 'transparent' => false ), array( 'id' => 'breadcrumb-link-color', 'type' => 'color', 'title' => __('Link Color', 'adrian-lite'), 'subtitle' => __('Change breadcrumb link color', 'adrian-lite'), 'output' => array( 'color' => '.breadcrumb,.breadcrumb ul#crumbs a, .breadcrumb ul#crumbs a:visited, .breadcrumb ul#crumbs a:hover,.breadcrumb ul#crumbs span.current' ), 'default' => '#333', 'validate' => 'color', 'transparent' => false ), array( 'id' => 'breadcrumb-position', 'type' => 'radio', 'title' => __('Position', 'adrian-lite'), 'subtitle' => __('Select position of breadcrumbs left/right', 'adrian-lite'), 'options' => array( 'text-left' => 'Left', 'text-right' => 'Right' ), 'default' => 'text-left' ), ), ) ); // Layout Redux::setSection( $opt_name, array( 'title' => __( 'Layout', 'adrian-lite' ), 'desc' => __( 'Here you can make some changes on page layout. ', 'adrian-lite' ), 'id' => 'page-layout', 'icon' => 'el el-website', 'fields' => array( array( 'id' => 'preloader-switch', 'type' => 'switch', 'title' => __('Preloader', 'adrian-lite'), 'subtitle' => __('Turn on/off to show or hide preloader', 'adrian-lite'), 'default' => false, ), array( 'id' => 'preloader', 'type' => 'media', 'url' => true, 'title' => __('Preloader', 'adrian-lite'), 'subtitle' => __('Upload custom preloader', 'adrian-lite'), 'default' => array( 'url'=> 'https://i.hizliresim.com/1J39YG.gif' ) ), array( 'id' => 'sidebar-position', 'type' => 'radio', 'title' => __('Sidebar Position', 'adrian-lite'), 'subtitle' => __('Select position of sidebar left/right', 'adrian-lite'), 'options' => array( 'left' => 'Left', 'right' => 'Right' ), 'default' => 'right' ), ), ) ); // Blog Redux::setSection( $opt_name, array( 'title' => __( 'Blog', 'adrian-lite' ), 'desc' => __( 'Here you can make some changes on blog page. ', 'adrian-lite' ), 'id' => 'blog-settings', 'icon' => 'el el-edit', 'fields' => array( array( 'id' => 'show-post-nav', 'type' => 'switch', 'title' => __('Show Post Navigation', 'adrian-lite'), 'subtitle' => __('Turn on/off to show or hide posts navigation on single page', 'adrian-lite'), 'default' => true, ), array( 'id' => 'show-author', 'type' => 'switch', 'title' => __('Show Author', 'adrian-lite'), 'subtitle' => __('Turn on/off to show or hide author box on single page', 'adrian-lite'), 'default' => true, ), array( 'id' => 'show-related-posts', 'type' => 'switch', 'title' => __('Show Related Posts', 'adrian-lite'), 'subtitle' => __('Turn on/off to show or hide related posts on single page', 'adrian-lite'), 'default' => true, ), array( 'id' => 'related-post-by', 'type' => 'radio', 'title' => __('Related Posts By', 'adrian-lite'), 'subtitle' => __('Select related posts by tags/categories', 'adrian-lite'), 'options' => array( '1' => 'Categories', '0' => 'Tags' ), 'default' => '1' ), ), ) ); // Colors Redux::setSection( $opt_name, array( 'title' => __( 'Colors', 'adrian-lite' ), 'desc' => __( 'Here you can change the color scheme of the theme. ', 'adrian-lite' ), 'id' => 'site-colors', 'icon' => 'el el-brush', 'fields' => array( array( 'id' => 'main-color', 'type' => 'color', 'title' => __('Primary Color', 'adrian-lite'), 'subtitle' => __('Pick a main color for the theme', 'adrian-lite'), 'default' => '#f6eb14', 'validate' => 'color', 'transparent' => false, 'output' => array( 'border-color' => '.main-header .site-title a,.read-more,nav.navigation.pagination .nav-links span.page-numbers.current,.widget .tag-cloud-link,.widget .tag-cloud-link:hover,ul.comment-list ul.children,.comment-form p.form-submit .btn-default,ul.products li a.add_to_cart_button:hover,ul.products li a.add_to_cart_button,.price_slider_amount .button,.woocommerce-info, .woocommerce-error,.entry-content blockquote,.top-search-box form#searchform input', 'background' =>'.cart-item-count span,.comment-box,h2.widget-title::after,.entry-title a::after,.read-more a::after,.scroll-top,.footer-widget ul.social-links li,h2.footer-widget-title::after,.widget .tag-cloud-link:hover,.about-author a::after,.related-posts span.title::after,h2.comments-title::after,h3.comment-reply-title::after,.comment-form p.form-submit .btn-default:hover,.woocommerce span.onsale,ul.products li a.add_to_cart_button:hover,.woocommerce .widget_price_filter .ui-slider .ui-slider-range,.woocommerce .widget_price_filter .ui-slider .ui-slider-handle,.product_title.entry-title::after,.staff ul li,.h-blog .comment-count,.ms-testimonials-1 .ms-skin-default .ms-nav-next:after,.ms-testimonials-1 .ms-skin-default .ms-nav-prev:after', 'color' => '.footer-widget ul.contact li i,h1.footer-widget-title,.comment-body .reply a,.star-rating span:before,p.stars:hover a:before,p.stars.selected a.active:before,p.stars.selected a:not(.active):before,.product_meta a:hover,.entry-meta span a:hover,.entry-meta span a:active,.entry-footer a:hover,nav.woocommerce-MyAccount-navigation ul li a, p.lost_password a, a.woocommerce-terms-and-conditions-link' ) ), array( 'id' => 'secondary-color', 'type' => 'color', 'title' => __('Secondary Color', 'adrian-lite'), 'subtitle' => __('Pick a secondary color for the theme', 'adrian-lite'), 'default' => '#000000', 'validate' => 'color', 'transparent' => false, 'output' => array( 'color' => '.main-header .site-title a,.entry-meta span a,.entry-footer a,.post-navigation-links a, .post-navigation-links a:hover,.post-navigation-links a:active,.about-author a, .about-author a:hover,.about-author a:active', 'background' => '.site-footer,.top-header' ) ), array( 'id' => 'tertiary-color', 'type' => 'color', 'title' => __('Tertiary Color', 'adrian-lite'), 'subtitle' => __('Pick a third color for the theme. For footer area', 'adrian-lite'), 'default' => '#131212', 'validate' => 'color', 'transparent' => false, 'output' => array( 'background' => '.site-footer' ) ), array( 'id' => 'quartic-color', 'type' => 'color', 'title' => __('Quartic Color', 'adrian-lite'), 'subtitle' => __('Pick a fourth color for the theme. For footer bottom area ', 'adrian-lite'), 'default' => '#171616', 'validate' => 'color', 'transparent' => false, 'output' => array( 'background' => '.site-info' ) ), ) ) ); // Typography Redux::setSection( $opt_name, array( 'title' => __( 'Typography', 'adrian-lite' ), 'desc' => __( 'Here you can change the typography of the theme. ', 'adrian-lite' ), 'id' => 'typography-options', 'icon' => 'el el-font', 'fields' => array( array( 'id' => 'body-typography', 'type' => 'typography', 'title' => __('Body', 'adrian-lite'), 'google' => true, 'font-backup' => false, 'font-weight' => false, 'font-style' => false, 'text-align' => false, 'subsets' => false, 'color' => false, 'output' => array('body','.entry-content p','.entry-content'), 'units' =>'px', 'default' => array( 'font-family' => 'Raleway', 'google' => true, 'font-size' => '15px', 'line-height' => '20px' ), ), array( 'id' => 'entry-post-title', 'type' => 'typography', 'title' => __('Post Title', 'adrian-lite'), 'google' => true, 'font-backup' => false, 'font-weight' => false, 'font-style' => false, 'text-align' => false, 'subsets' => false, 'color' => false, 'output' => array('.entry-title a'), 'units' =>'px', 'default' => array( 'font-family' => 'Raleway', 'google' => true, 'font-size' => '35px', 'line-height' => '40px' ), ) ) ) ); // Footer Redux::setSection( $opt_name, array( 'title' => __( 'Footer', 'adrian-lite' ), 'desc' => __( 'Here you can make some changes on site footer. ', 'adrian-lite' ), 'id' => 'footer-settings', 'icon' => 'el el-arrow-down', 'fields' => array( array( 'id' =>'custom-footer', 'type' => 'select', 'data' => 'posts', 'args' => array('post_type' => 'cblock'), 'title' => __('Custom Footer', 'adrian-lite'), 'subtitle' => __('You can select a custom footer source.', 'adrian-lite'), ), array( 'id' => 'footer-color', 'type' => 'color', 'title' => __('Color', 'adrian-lite'), 'subtitle' => __('Pick a color for the footer.', 'adrian-lite'), 'default' => '#FFFFFF', 'validate' => 'color', 'transparent' => false, 'output' => array( 'color' => '.footer-widget p.info, h2.footer-widget-title, .site-footer .widget ul li a, .footer-widget ul.social-links li a,.site-footer,.footer-widget ul.contact li span,.site-footer .widget .tag-cloud-link,.site-info a, .site-info a:hover,.site-info', ) ), array( 'id'=>'site-info', 'type' => 'textarea', 'title' => __('Site Info', 'adrian-lite'), 'validate' => 'html_custom', 'default' => 'Proudly powered by WordPress | Responsive Multi-Purpose WordPress Theme: Adrian by sncworks', 'allowed_html' => array( 'a' => array( 'href' => array(), 'title' => array() ), 'br' => array(), 'span' => array() ) ), ), ) ); /* * <--- END SECTIONS */