$name, 'img' => $sample_patterns_url . $sample_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' ), // 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' => 'submenu', //Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only) 'allow_sub_menu' => true, // Show the sections below the admin menu item or not 'menu_title' => esc_html__( 'Theme Options', 'calibar' ), 'page_title' => esc_html__( 'Theme Options', 'calibar' ), // 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' => false, // Show the panel pages on the admin bar 'admin_bar_icon' => 'dashicons-Jalebi Menu', // 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, 'forced_dev_mode_off' => 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, // 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' => 'calibar-options', // Page slug used to denote the panel, will be based off page title then menu title then opt_name if not provided 'save_defaults' => true, // On load save the defaults to DB before user clicks save or not 'default_show' => false, // If true, shows the default value next to each field that is not the default value. 'default_mark' => '', // What to print by the field's title if the value shown is default. Suggested: * 'show_import_export' => true, // Shows the Import/Export panel when not used as a field. // CAREFUL -> These options are for advanced use only 'transient_time' => 60 * MINUTE_IN_SECONDS, 'output' => true, // Global shut-off for dynamic CSS output by the framework. Will also disable google fonts output 'output_tag' => true, // Allows dynamic CSS to be generated for customizer and google fonts, but stops the dynamic CSS from going to the head // 'footer_credit' => '', // Disable the footer credit of Redux. Please leave if you can help it. // FUTURE -> Not in use yet, but reserved or partially implemented. Use at your own risk. 'database' => '', // possible: options, theme_mods, theme_mods_expanded, transient. Not fully functional, warning! 'use_cdn' => true, // If you prefer not to use the CDN for Select2, Ace Editor, and others, you may download the Redux Vendor Support plugin yourself and run locally or embed it in your code. // HINTS 'hints' => array( 'icon' => 'el el-question-sign', 'icon_position' => 'right', 'icon_color' => 'lightgray', 'icon_size' => 'normal', 'tip_style' => array( 'color' => 'red', 'shadow' => true, 'rounded' => false, 'style' => '', ), 'tip_position' => array( 'my' => 'top left', 'at' => 'bottom right', ), 'tip_effect' => array( 'show' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'mouseover', ), 'hide' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'click mouseleave', ), ), ) ); Redux::setArgs( $opt_name, $args ); /* * ---> END ARGUMENTS */ /* As of Redux 3.5+, there is an extensive API. This API can be used in a mix/match mode allowing for */ Redux::setSection( $opt_name, array( 'title' => esc_html__( 'Header', 'calibar' ), 'id' => 'tr_header', 'desc' => esc_html__( 'Logo/Favicon settings for calibar theme', 'calibar' ), 'subsection' => false, 'icon' => 'el el-arrow-up', 'fields' => array( array( 'id' => 'tr_en_button', 'type' => 'button_set', 'title' => esc_html__( 'Header Right Button', 'calibar' ), 'subtitle' => esc_html__( 'Enable/Disable button in Menu', 'calibar' ), 'options' => array( 'enable' => 'Enable', 'disable' => 'Disable', ), 'default' => 'disable' ), array( 'id' => 'tr_hr_btn', 'type' => 'text', 'title' => esc_html__( 'Header Button Text', 'calibar' ), 'subtitle' => esc_html__( 'Enter Button Text Here.', 'calibar' ), 'required' => array('tr_en_button','=','enable'), ), array( 'id' => 'tr_hr_btn_url', 'type' => 'text', 'title' => esc_html__( 'Header Right Button URL', 'calibar' ), 'subtitle' => esc_html__( 'Enter Button Text Here.', 'calibar' ), 'required' => array('tr_en_button','=','enable'), ), array( 'id' => 'tr_hr_btn_bg', 'type' => 'color', 'title' => esc_html__( 'Button Background Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the theme.', 'calibar' ), 'validate' => 'color', 'output' => array('background-color' => '.tr-menu .right-content .btn.btn-primary'), 'required' => array('tr_en_button','=','enable'), ), array( 'id' => 'tr_hr_btn_bg_hover', 'type' => 'color', 'title' => esc_html__( 'Button Background Hover Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the theme.', 'calibar' ), 'validate' => 'color', 'output' => array( 'background-color' => '.tr-menu .btn.btn-primary:hover', 'background-color' => '.tr-menu .btn.btn-primary:before' ), 'required' => array('tr_en_button','=','enable'), ), array( 'id' => 'tr_hr_btn_border', 'type' => 'color', 'title' => esc_html__( 'Button Border Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the theme.', 'calibar' ), 'validate' => 'color', 'output' => array('border-color' => '.tr-menu .right-content .btn.btn-primary'), 'required' => array('tr_en_button','=','enable'), ), array( 'id' => 'tr_hr_btn_border_hover', 'type' => 'color', 'title' => esc_html__( 'Button Border Hover Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the theme.', 'calibar' ), 'validate' => 'color', 'output' => array('border-color' => '.tr-menu .btn.btn-primary:hover'), 'required' => array('tr_en_button','=','enable'), ), array( 'id' => 'tr_hr_btn_text', 'type' => 'color', 'title' => esc_html__( 'Button Border Hover Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the theme.', 'calibar' ), 'validate' => 'color', 'output' => array('color' => '.tr-menu .btn.btn-primary'), 'required' => array('tr_en_button','=','enable'), ), array( 'id' => 'tr_hr_btn_text_hover', 'type' => 'color', 'title' => esc_html__( 'Button Border Hover Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the theme.', 'calibar' ), 'validate' => 'color', 'output' => array('color' => '.tr-menu .btn.btn-primary:hover'), 'required' => array('tr_en_button','=','enable'), ), array( 'id' => 'tr_logo_header', 'type' => 'media', 'title' => esc_html__( 'Logo', 'calibar' ), 'compiler' => 'true', 'desc' => esc_html__( 'Preferred image size: 168x49', 'calibar' ), 'default' => array( 'url' => CALIBAR_IMGDIR . 'logo.png' ), ), ) ) ); Redux::setSection( $opt_name, array( 'title' => esc_html__( 'Footer', 'calibar' ), 'id' => 'footer_setting', 'desc' => esc_html__( 'Footer settings for calibar theme!', 'calibar' ), 'subsection' => false, 'icon' => 'el el-arrow-down', 'fields' => array( array( 'id' => 'tr_copyright_left', 'title' => esc_html__( 'Enter copyright by default or html in Left', 'calibar' ), 'type' => 'editor', 'args' => array( 'teeny' => true, 'textarea_rows' => 5 ), ), array( 'id' => 'tr_copyright_right', 'title' => esc_html__( 'Enter copyright text by default or html in Right', 'calibar' ), 'type' => 'editor', 'args' => array( 'teeny' => true, 'textarea_rows' => 5 ), ), ) ) ); Redux::setSection( $opt_name, array( 'title' => esc_html__( 'Typography', 'calibar' ), 'id' => 'tr_typography', 'desc' => esc_html__( 'Choose different styles to change the look of the theme!', 'calibar' ), 'subsection' => false, 'icon' => 'el el-font', 'fields' => array( array( 'id' => 'tr_body_typo', 'type' => 'typography', 'title' => esc_html__( 'Body Typography', 'calibar' ), 'google' => true, 'subsets' => false, 'text-align' => false, 'units' =>'px', 'output' => 'body', ), array( 'id' => 'tr_head_typo', 'type' => 'typography', 'title' => esc_html__( 'Global Heading Typography', 'calibar' ), 'google' => true, 'text-transform'=> true, 'subsets' => false, 'line-height' => false, 'text-align' => false, 'font-size' => false, 'units' =>'px', 'output' => 'h1, h2, h3, h4, h5, h6', ), array( 'id' => 'tr_h1_typo', 'type' => 'typography', 'title' => esc_html__( 'H1 Typography', 'calibar' ), 'google' => true, 'text-transform'=> true, 'subsets' => false, 'line-height' => false, 'text-align' => false, 'font-family' => false, 'units' =>'px', 'output' => 'h1', ), array( 'id' => 'tr_h2_typo', 'type' => 'typography', 'title' => esc_html__( 'H2 Typography', 'calibar' ), 'google' => true, 'text-transform'=> true, 'subsets' => false, 'line-height' => false, 'text-align' => false, 'font-family' => false, 'units' =>'px', 'output' => 'h2', ), array( 'id' => 'tr_h3_typo', 'type' => 'typography', 'title' => esc_html__( 'H3 Typography', 'calibar' ), 'google' => true, 'text-transform'=> true, 'subsets' => false, 'line-height' => false, 'text-align' => false, 'font-family' => false, 'units' =>'px', 'output' => 'h3', ), array( 'id' => 'tr_h4_typo', 'type' => 'typography', 'title' => esc_html__( 'H4 Typography', 'calibar' ), 'google' => true, 'text-transform'=> true, 'subsets' => false, 'line-height' => false, 'text-align' => false, 'font-family' => false, 'units' =>'px', 'output' => 'h4', ), array( 'id' => 'tr_h5_typo', 'type' => 'typography', 'title' => esc_html__( 'H5 Typography', 'calibar' ), 'google' => true, 'text-transform'=> true, 'subsets' => false, 'line-height' => false, 'text-align' => false, 'font-family' => false, 'units' =>'px', 'output' => 'h5', ), array( 'id' => 'tr_h6_typo', 'type' => 'typography', 'title' => esc_html__( 'H6 Typography', 'calibar' ), 'google' => true, 'text-transform'=> true, 'subsets' => false, 'line-height' => false, 'text-align' => false, 'font-family' => false, 'units' =>'px', 'output' => 'h6', ), ) ) ); Redux::setSection( $opt_name, array( 'title' => esc_html__( 'Custom Code', 'calibar' ), 'id' => 'tr_custom_code', 'desc' => esc_html__( 'Advanced coding section for altering themes settings/styles!', 'calibar' ), 'subsection' => false, 'icon' => 'el el-cog', 'fields' => array( array( 'id' => 'tr_js_editor_header', 'type' => 'ace_editor', 'title' => esc_html__( 'Header Javascript Code', 'calibar' ), 'subtitle' => esc_html__( 'Paste your js code here without script tag. This code will be placed just before head tag closed', 'calibar' ), 'mode' => 'js', 'theme' => 'monokai' ), array( 'id' => 'tr_js_editor_footer', 'type' => 'ace_editor', 'title' => esc_html__( 'Footer Javascript Code', 'calibar' ), 'subtitle' => esc_html__( 'Paste your js code here without script tag. This code will be placed just before body tag closed', 'calibar' ), 'mode' => 'js', 'theme' => 'monokai' ), ) ) ); Redux::setSection( $opt_name, array( 'title' => esc_html__( 'Breadcrumb Settings', 'calibar' ), 'id' => 'breadcrumb_setting', 'desc' => esc_html__( 'Breadcrumb settings for calibar theme!', 'calibar' ), 'subsection' => false, 'icon' => 'el el-picture', 'fields' => array( array( 'id' => 'tr_blog_breadcrumb', 'type' => 'button_set', 'title' => esc_html__( 'Blog Page Breadcrumb', 'calibar' ), 'subtitle' => esc_html__( 'Enable/Disable breadcrumb for blog page', 'calibar' ), 'options' => array( 'enable' => 'Enable', 'disable' => 'Disable', ), 'default' => 'enable' ), array( 'id' => 'tr_blog_text_align', 'type' => 'button_set', 'title' => esc_html__( 'Breadcrumb Text alignment', 'calibar' ), 'subtitle' => esc_html__( 'Text Position for breadcrumb', 'calibar' ), 'options' => array( 'text-left' => 'Left', 'text-center' => 'Center', 'text-right' => 'Right', ), 'default' => 'text-left' ), array( 'id' => 'tr_blog_bc_img', 'type' => 'media', 'url' => true, 'title' => esc_html__( 'Blog Breadcrumb Background Image', 'calibar' ), 'compiler' => 'true', 'required' => array( 'tr_blog_breadcrumb', '=', 'enable' ), 'desc' => esc_html__( 'Upload image size: 1366x286', 'calibar' ), ), array( 'id' => 'tr_blog_bc_title', 'title' => esc_html__( 'Enter Title for Breadcrumb', 'calibar' ), 'type' => 'text', 'required' => array( 'tr_blog_breadcrumb', '=', 'enable' ), ), array( 'id' => 'tr_blog_bc_subtitle', 'title' => esc_html__( 'Enter Subtitle for Breadcrumb', 'calibar' ), 'type' => 'text', 'required' => array( 'tr_blog_breadcrumb', '=', 'enable' ), ), array( 'id' => 'tr_blog_title_color', 'type' => 'color', 'title' => esc_html__( 'Choose Title Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the title (default: #ffffff).', 'calibar' ), 'default' => '#ffffff', 'validate' => 'color', 'required' => array( 'tr_blog_breadcrumb', '=', 'enable' ), ), array( 'id' => 'tr_blog_subtitle_color', 'type' => 'color', 'title' => esc_html__( 'Choose Subtitle Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the subtitle (default: #ffffff).', 'calibar' ), 'default' => '#ffffff', 'validate' => 'color', 'required' => array( 'tr_blog_breadcrumb', '=', 'enable' ), ), array( 'id' => 'single_blog_bc_settings', 'type' => 'info', 'style'=> 'warning', 'desc' => esc_html__('Single blog post settings!', 'calibar'), ), array( 'id' => 'tr_blog_details_breadcrumb', 'type' => 'button_set', 'title' => esc_html__( 'Blog Details Breadcrumb', 'calibar' ), 'subtitle' => esc_html__( 'Enable/Disable breadcrumb for blog details page', 'calibar' ), 'options' => array( 'enable' => 'Enable', 'disable' => 'Disable', ), 'default' => 'enable' ), array( 'id' => 'tr_single_blog_bc_img', 'type' => 'media', 'url' => true, 'title' => esc_html__( 'Blog Details Breadcrumb Background Image', 'calibar' ), 'compiler' => 'true', 'required' => array( 'tr_blog_details_breadcrumb', '=', 'enable' ), 'desc' => esc_html__( 'Upload image size: 1366x286', 'calibar' ), ), array( 'id' => 'tr_single_blog_text_align', 'type' => 'button_set', 'title' => esc_html__( 'Breadcrumb Text alignment', 'calibar' ), 'subtitle' => esc_html__( 'Text Position for breadcrumb', 'calibar' ), 'options' => array( 'text-left' => 'Left', 'text-center' => 'Center', 'text-right' => 'Right', ), 'default' => 'text-left' ), array( 'id' => 'tr_single_blog_bc_title', 'title' => esc_html__( 'Enter Title for Breadcrumb', 'calibar' ), 'type' => 'text', 'required' => array( 'tr_blog_details_breadcrumb', '=', 'enable' ), ), array( 'id' => 'tr_single_blog_bc_subtitle', 'title' => esc_html__( 'Enter Subtitle for Breadcrumb', 'calibar' ), 'type' => 'text', 'required' => array( 'tr_blog_details_breadcrumb', '=', 'enable' ), ), array( 'id' => 'tr_sc_blog_title_color', 'type' => 'color', 'title' => esc_html__( 'Choose Title Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the title (default: #ffffff).', 'calibar' ), 'default' => '#ffffff', 'validate' => 'color', 'required' => array( 'tr_blog_details_breadcrumb', '=', 'enable' ), ), array( 'id' => 'tr_sc_blog_subtitle_color', 'type' => 'color', 'title' => esc_html__( 'Choose Subtitle Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the subtitle (default: #ffffff).', 'calibar' ), 'default' => '#ffffff', 'validate' => 'color', 'required' => array( 'tr_blog_details_breadcrumb', '=', 'enable' ), ), array( 'id' => 'single_archive_bc_settings', 'type' => 'info', 'style'=> 'warning', 'desc' => esc_html__('Archive/Category/Tags/Search Page Breadcrumb Settings!', 'calibar'), ), array( 'id' => 'tr_archive_bc_img', 'type' => 'media', 'url' => true, 'title' => esc_html__( 'General Breadcrumb Background Image', 'calibar' ), 'compiler' => 'true', 'desc' => esc_html__( 'Upload image size: 1366x286', 'calibar' ), ), array( 'id' => 'tr_archive_title_color', 'type' => 'color', 'title' => esc_html__( 'Choose Title Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the title (default: #ffffff).', 'calibar' ), 'default' => '#ffffff', 'validate' => 'color', ), array( 'id' => 'tr_archive_subtitle_color', 'type' => 'color', 'title' => esc_html__( 'Choose Subtitle Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the subtitle (default: #ffffff).', 'calibar' ), 'default' => '#ffffff', 'validate' => 'color', ), ) ) ); Redux::setSection( $opt_name, array( 'title' => esc_html__( '404 Settings', 'calibar' ), 'id' => '404_setting', 'desc' => esc_html__( 'Footer settings for calibar theme!', 'calibar' ), 'subsection' => false, 'icon' => 'el el-return-key', 'fields' => array( array( 'id' => 'tr_404_bc_img', 'type' => 'media', 'url' => true, 'title' => esc_html__( '404 Background Image', 'calibar' ), 'compiler' => 'true', 'desc' => esc_html__( 'Upload image size: 1366x286', 'calibar' ), ), array( 'id' => 'tr_404_title', 'title' => esc_html__( 'Enter 404 title here.', 'calibar' ), 'type' => 'text', 'default' => 'Nothing Found Here' ), array( 'id' => 'tr_404_content', 'title' => esc_html__( 'Enter 404 content by default or html', 'calibar' ), 'type' => 'editor', 'args' => array( 'teeny' => true, 'textarea_rows' => 10 ), 'default' => 'It looks like nothing was found at this location. Maybe try one of the links below or a search?' ), array( 'id' => 'tr_404_title_color', 'type' => 'color', 'title' => esc_html__( 'Choose Title Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the title (default: #ffffff).', 'calibar' ), 'output' => array('color' => '.not-found h2'), 'validate' => 'color', ), ) ) ); Redux::setSection( $opt_name, array( 'title' => esc_html__( 'Blog Settings', 'calibar' ), 'id' => 'blog_setting', 'desc' => esc_html__( 'Blog settings for calibar theme!', 'calibar' ), 'subsection' => false, 'icon' => 'el el-pencil', 'fields' => array( array( 'id' => 'tr_blog_order', 'type' => 'button_set', 'title' => esc_html__( 'Blog Post Order', 'calibar' ), 'subtitle' => esc_html__( 'Choose whether the post load in Ascending/Descending order', 'calibar' ), 'options' => array( 'ASC' => 'ASC', 'DESC' => 'DESC', ), 'default' => 'DESC' ), array( 'id' => 'single_blog_settings', 'type' => 'info', 'style'=> 'warning', 'desc' => esc_html__('Single blog post settings!', 'calibar'), ), array( 'id' => 'tr_blog_details_sidebar', 'type' => 'button_set', 'title' => esc_html__( 'Blog Details Sidebar', 'calibar' ), 'subtitle' => esc_html__( 'Enable/Disable sidebar for blog details page', 'calibar' ), 'options' => array( 'enable' => 'Enable', 'disable' => 'Disable', ), 'default' => 'enable' ), array( 'id' => 'tr_blog_category', 'type' => 'button_set', 'title' => esc_html__( 'Blog Category', 'calibar' ), 'subtitle' => esc_html__( 'Enable/Disable category show in blog details page', 'calibar' ), 'options' => array( 'enable' => 'Enable', 'disable' => 'Disable', ), 'default' => 'enable' ), array( 'id' => 'tr_blog_tag', 'type' => 'button_set', 'title' => esc_html__( 'Blog Tag', 'calibar' ), 'subtitle' => esc_html__( 'Enable/Disable author information in blog details page', 'calibar' ), 'options' => array( 'enable' => 'Enable', 'disable' => 'Disable', ), 'default' => 'enable' ), array( 'id' => 'tr_author_style', 'type' => 'image_select', 'title' => esc_html__('Author Style', 'calibar'), 'subtitle' => esc_html__('Select Layout for single page suthor style.', 'calibar'), 'options' => array( 'bottom' => array( 'alt' => 'Bottom', 'img' => CALIBAR_URI.'/inc/admin/images/blog-style-one.jpg' ), 'left' => array( 'alt' => 'Left', 'img' => CALIBAR_URI.'/inc/admin/images/blog-style-two.jpg' ), ), 'default' => 'bottom', ), array( 'id' => 'tr_blog_like', 'type' => 'button_set', 'title' => esc_html__( 'Post Like Option', 'calibar' ), 'subtitle' => esc_html__( 'Enable/Disable like option for single post.', 'calibar' ), 'options' => array( 'enable' => 'Enable', 'disable' => 'Disable', ), 'default' => 'enable' ), array( 'id' => 'tr_blog_view', 'type' => 'button_set', 'title' => esc_html__( 'Post View Option', 'calibar' ), 'subtitle' => esc_html__( 'Enable/Disable total view of single post.', 'calibar' ), 'options' => array( 'enable' => 'Enable', 'disable' => 'Disable', ), 'default' => 'disable' ), array( 'id' => 'tr_blog_comments_count', 'type' => 'button_set', 'title' => esc_html__( 'Comments Count', 'calibar' ), 'subtitle' => esc_html__( 'Enable/Disable display comments count in single post.', 'calibar' ), 'required' => array( 'tr_blog_social_share', '=', 'enable' ), 'options' => array( 'enable' => 'Enable', 'disable' => 'Disable', ), 'default' => 'enable' ), ) ) ); Redux::setSection( $opt_name, array( 'title' => esc_html__( 'Potfolio Settings', 'calibar' ), 'id' => 'folio_setting', 'desc' => esc_html__( 'Portfolio settings for calibar theme!', 'calibar' ), 'subsection' => false, 'icon' => 'el el-film', 'fields' => array( array( 'id' => 'info_normal', 'type' => 'info', 'style' => 'critical', 'icon' => 'el-icon-info-sign', 'desc' => __('After Changing the slug name please refresh your permalink form Settings->Permalink->Click Save Changes.', 'calibar') ), array( 'id' => 'tr_folio_slug', 'type' => 'text', 'title' => __('Change Portfolio Slug Name', 'calibar'), 'subtitle' => esc_html__('Change slug name of portfolio. Exp: instead of folio put your_slug.','calibar'), ), array( 'id' => 'single_folio_bc_settings', 'type' => 'info', 'style'=> 'warning', 'desc' => esc_html__('Portfolio Page Breadcrumb Settings!', 'calibar'), ), array( 'id' => 'tr_folio_breadcrumb', 'type' => 'button_set', 'title' => esc_html__( 'Porfolio Single Page Breadcrumb', 'calibar' ), 'subtitle' => esc_html__( 'Enable/Disable breadcrumb for portfolio single page', 'calibar' ), 'options' => array( 'enable' => 'Enable', 'disable' => 'Disable', ), 'default' => 'enable' ), array( 'id' => 'tr_folio_text_align', 'type' => 'button_set', 'title' => esc_html__( 'Breadcrumb Text alignment', 'calibar' ), 'subtitle' => esc_html__( 'Text Position for breadcrumb', 'calibar' ), 'options' => array( 'text-left' => 'Left', 'text-center' => 'Center', 'text-right' => 'Right', ), 'default' => 'text-left' ), array( 'id' => 'tr_folio_bc_img', 'type' => 'media', 'url' => true, 'title' => esc_html__( 'General Breadcrumb Background Image', 'calibar' ), 'compiler' => 'true', 'desc' => esc_html__( 'Upload image size: 1366x286', 'calibar' ), 'required' => array( 'tr_folio_breadcrumb', '=', 'enable' ), ), array( 'id' => 'tr_folio_bc_title', 'title' => esc_html__( 'Enter Title for Breadcrumb', 'calibar' ), 'type' => 'text', 'required' => array( 'tr_folio_breadcrumb', '=', 'enable' ), ), array( 'id' => 'tr_folio_bc_subtitle', 'title' => esc_html__( 'Enter Subtitle for Breadcrumb', 'calibar' ), 'type' => 'text', 'required' => array( 'tr_folio_breadcrumb', '=', 'enable' ), ), array( 'id' => 'tr_folio_title_color', 'type' => 'color', 'title' => esc_html__( 'Choose Title Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the title (default: #ffffff).', 'calibar' ), 'default' => '#ffffff', 'validate' => 'color', 'required' => array( 'tr_folio_breadcrumb', '=', 'enable' ), ), array( 'id' => 'tr_folio_subtitle_color', 'type' => 'color', 'title' => esc_html__( 'Choose Subtitle Color', 'calibar'), 'subtitle' => esc_html__( 'Pick a color for the subtitle (default: #ffffff).', 'calibar' ), 'default' => '#ffffff', 'validate' => 'color', 'required' => array( 'tr_folio_breadcrumb', '=', 'enable' ), ), array( 'id' => 'tr_folio_sidebar', 'type' => 'button_set', 'title' => esc_html__( 'Sidebar', 'calibar' ), 'subtitle' => esc_html__( 'Enable/Disable sidebar for portfolio single page', 'calibar' ), 'options' => array( 'enable' => 'Enable', 'disable' => 'Disable', ), 'default' => 'enable' ), ) ) ); Redux::setSection( $opt_name, array( 'title' => esc_html__( 'Social Icons', 'calibar' ), 'id' => 'social_setting', 'desc' => esc_html__( 'Social icon settings for calibar theme!', 'calibar' ), 'subsection' => false, 'icon' => 'el el-share', 'fields' => array( array( 'id' => 'tr_facebook', 'type' => 'text', 'title' => esc_html__( 'Facebook Url', 'calibar' ), 'default' => '#' ), array( 'id' => 'tr_twitter', 'type' => 'text', 'title' => esc_html__( 'Twiiter Url', 'calibar' ), 'default' => '#' ), array( 'id' => 'tr_gplus', 'type' => 'text', 'title' => esc_html__( 'Google Plus Url', 'calibar' ), 'default' => '#' ), array( 'id' => 'tr_linkedin', 'type' => 'text', 'title' => esc_html__( 'Linkedin Url', 'calibar' ), 'default' => '#' ), array( 'id' => 'tr_pinterest', 'type' => 'text', 'title' => esc_html__( 'Pinterest Url', 'calibar' ), 'default' => '#' ), array( 'id' => 'tr_dribble', 'type' => 'text', 'title' => esc_html__( 'Dribbble Url', 'calibar' ), 'default' => '#' ), array( 'id' => 'tr_instagram', 'type' => 'text', 'title' => esc_html__( 'Instagram Url', 'calibar' ), 'default' => '#' ), array( 'id' => 'tr_behance', 'type' => 'text', 'title' => esc_html__( 'Behance Url', 'calibar' ), 'default' => '#' ), ) ) ); function calibar_remove_menu() { remove_submenu_page('tools.php','redux-about'); } add_action( 'admin_menu', 'calibar_remove_menu',12 ); /** * This is a test function that will let you see when the compiler hook occurs. * It only runs if a field set with compiler=>true is changed. * */ if ( ! function_exists( 'calibar_compiler_action' ) ) { function calibar_compiler_action( $options, $css, $changed_values ) { echo '
";
print_r( $changed_values ); // Values that have changed since the last save
echo "";
}
}