__('A Section added by hook', Vision_TEXT_DOMAIN), 'desc' => __('
This is a section created by adding a filter to the sections array. Can be used by child themes to add/remove sections from the options.
', Vision_TEXT_DOMAIN), 'icon' => 'paper-clip', 'icon_class' => 'icon-large', // Leave this as a blank section, no options just some intro text set above. 'fields' => array() ); return $sections; } //add_filter('vision-opts-sections-twenty_eleven', 'add_another_section'); /* * * Custom function for filtering the args array given by a theme, good for child themes to override or add to the args array. * */ function change_framework_args($args){ $args['dev_mode'] = false; return $args; } //add_filter('vision-opts-args-twenty_eleven', 'change_framework_args'); /* * * Most of your editing will be done in this section. * * Here you can override default values, uncomment args and change their values. * No $args are required, but they can be over ridden if needed. * */ function setup_framework_options(){ $args = array(); // Setting dev mode to true allows you to view the class settings/info in the panel. // Default: true $args['dev_mode'] = false; // Set the icon for the dev mode tab. // If $args['icon_type'] = 'image', this should be the path to the icon. // If $args['icon_type'] = 'iconfont', this should be the icon name. // Default: info-sign //$args['dev_mode_icon'] = 'info-sign'; // Set the class for the dev mode tab icon. // This is ignored unless $args['icon_type'] = 'iconfont' // Default: null $args['dev_mode_icon_class'] = 'icon-large'; // If you want to use Google Webfonts, you MUST define the api key. //$args['google_api_key'] = ''; // Define the starting tab for the option panel. // Default: '0'; //$args['last_tab'] = '0'; // Define the option panel stylesheet. Options are 'standard', 'custom', and 'none' // If only minor tweaks are needed, set to 'custom' and override the necessary styles through the included custom.css stylesheet. // If replacing the stylesheet, set to 'none' and don't forget to enqueue another stylesheet! // Default: 'standard' //$args['admin_stylesheet'] = 'standard'; // Add HTML before the form. $args['intro_text'] = __('', Vision_TEXT_DOMAIN); // Add content after the form. $args['footer_text'] = __('', Vision_TEXT_DOMAIN); // Set footer/credit line. //$args['footer_credit'] = __('This text is displayed in the options panel footer across from the WordPress version (where it normally says \'Thank you for creating with WordPress\'). This field accepts all HTML.
', Vision_TEXT_DOMAIN); // Setup custom links in the footer for share icons $args['share_icons']['facebook'] = array( 'link' => 'https://www.facebook.com/pages/Mango-Themes/155845041260285', 'title' => 'Find Us on Facebook', 'img' => Vision_OPTIONS_URL . 'img/social/Facebook.png' ); // Enable the import/export feature. // Default: true $args['show_import_export'] = false; // Set the icon for the import/export tab. // If $args['icon_type'] = 'image', this should be the path to the icon. // If $args['icon_type'] = 'iconfont', this should be the icon name. // Default: refresh //$args['import_icon'] = 'refresh'; // Set the class for the import/export tab icon. // This is ignored unless $args['icon_type'] = 'iconfont' // Default: null $args['import_icon_class'] = 'icon-large'; // Set a custom option name. Don't forget to replace spaces with underscores! $args['opt_name'] = 'eight'; // Set a custom menu icon. //$args['menu_icon'] = ''; // Set a custom title for the options page. // Default: Options $args['menu_title'] = __(' Vision Options', Vision_TEXT_DOMAIN); // Set a custom page title for the options page. // Default: Options $args['page_title'] = __(' Vision Options', Vision_TEXT_DOMAIN); // Set a custom page slug for options page (wp-admin/themes.php?page=***). // Default: vision_options $args['page_slug'] = 'vision_options'; // Set a custom page capability. // Default: manage_options $args['page_cap'] = 'edit_theme_options'; // Set the menu type. Set to "menu" for a top level menu, or "submenu" to add below an existing item. // Default: menu //$args['page_type'] = 'submenu'; // Set the parent menu. // Default: themes.php // A list of available parent menus is available at http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters //$args['page_parent'] = 'options_general.php'; // Set a custom page location. This allows you to place your menu where you want in the menu order. // Must be unique or it will override other items! // Default: null //$args['page_position'] = null; // Set a custom page icon class (used to override the page icon next to heading) //$args['page_icon'] = 'icon-themes'; // Set the icon type. Set to "iconfont" for Font Awesome, or "image" for traditional. // Vision no longer ships with standard icons! // Default: iconfont $args['icon_type'] = 'image'; // Disable the panel sections showing as submenu items. // Default: true //$args['allow_sub_menu'] = false; // Set the help sidebar for the options page. $args['help_sidebar'] = __('This is the sidebar content, HTML is allowed.
', Vision_TEXT_DOMAIN); $sections = array(); $sections[] = array( 'icon' => 'star', 'icon_class' => 'icon-2x', 'title' => __('General Settings', Vision_TEXT_DOMAIN), 'desc' => __('Here you can edit basic theme options.
', Vision_TEXT_DOMAIN), 'fields' => array( array( 'id' => 'logo', 'type' => 'upload', 'title' => __('Custom logo', Vision_TEXT_DOMAIN), 'sub_desc' => __('Choose your own logo. Optimal size is : 300x100px (Width:Height)', Vision_TEXT_DOMAIN), ), array( 'id' => 'background', 'type' => 'upload', 'title' => __('Custom background', Vision_TEXT_DOMAIN), 'sub_desc' => __('Select an image for your background', Vision_TEXT_DOMAIN), ), array( 'id' => 'rm', 'type' => 'textarea', 'title' => __('Read More text', Vision_TEXT_DOMAIN), 'desc' => __('example: More, Continue etc.', Vision_TEXT_DOMAIN), 'validate' => 'no_html', ) ) ); $sections[] = array( 'icon' => 'desktop', 'icon_class' => 'icon-2x', 'title' => __('Slider settings', Vision_TEXT_DOMAIN), 'desc' => __('In this section you can add sliders to your front page.
', Vision_TEXT_DOMAIN), 'fields' => array( array( 'id' => 'slider1', 'type' => 'upload', 'title' => __('First Slider Image', Vision_TEXT_DOMAIN), 'sub_desc' => __('Select an image for your first slider', Vision_TEXT_DOMAIN), ), array( 'id' => 'slider1link', 'type' => 'text', 'title' => __('First Slider link', Vision_TEXT_DOMAIN), 'sub_desc' => __('This must be a URL.', Vision_TEXT_DOMAIN), 'validate' => 'url', ), array( 'id' => 'slider2', 'type' => 'upload', 'title' => __('Second Slider Image', Vision_TEXT_DOMAIN), 'sub_desc' => __('Select an image for your second slider', Vision_TEXT_DOMAIN), ), array( 'id' => 'slider2link', 'type' => 'text', 'title' => __('Second Slider link', Vision_TEXT_DOMAIN), 'sub_desc' => __('This must be a URL.', Vision_TEXT_DOMAIN), 'validate' => 'url', ) ) ); $sections[] = array( 'icon' => 'home', 'icon_class' => 'icon-2x', 'title' => __('Homepage settings', Vision_TEXT_DOMAIN), 'desc' => __('You can customize your homepage details here.
', Vision_TEXT_DOMAIN), 'fields' => array( array( 'id' => 'slogan', 'type' => 'checkbox', 'title' => __('Slogan switcher', Vision_TEXT_DOMAIN), 'sub_desc' => __('Do you want catchy slogan on your page?', Vision_TEXT_DOMAIN), 'switch' => true, 'std' => '1' // 1 = checked | 0 = unchecked ), array( 'id' => 'H1slogan', 'type' => 'textarea', 'title' => __('Enter your slogan H1 here.', Vision_TEXT_DOMAIN), 'desc' => __('Example: Clean and Modern WordPress Theme For Your Business.
', Vision_TEXT_DOMAIN), 'validate' => 'no_html', ), array( 'id' => 'H2slogan', 'type' => 'textarea', 'title' => __('Enter your slogan H2 here.', Vision_TEXT_DOMAIN), 'desc' => __('Example: This is a second line of catchy slogan, you can write here anything you want or just turn it off - whatever feet your needs.
', Vision_TEXT_DOMAIN), 'validate' => 'no_html', ), array( 'id' => 'features', 'type' => 'checkbox', 'title' => __('What we do switcher', Vision_TEXT_DOMAIN), 'sub_desc' => __('Do you want this feature on your page?', Vision_TEXT_DOMAIN), 'switch' => true, 'std' => '1' // 1 = checked | 0 = unchecked ), array( 'id' => '18', 'type' => 'button_set', 'title' => __('How many columns do you like?', Vision_TEXT_DOMAIN), 'sub_desc' => __('Valid only if "what we do" switcher is ON', Vision_TEXT_DOMAIN), 'options' => array('1' => '3 columns', '2' => '4 columns'), // Must provide key => value pairs for radio options 'std' => '1' ), array( 'id' => 'feature1H1', 'type' => 'text', 'title' => __('First Feature H1', Vision_TEXT_DOMAIN), 'validate' => 'no_html', ), array( 'id' => 'ftimg1', 'type' => 'upload', 'title' => __('First Feature Image', Vision_TEXT_DOMAIN), 'sub_desc' => __('Select an image for your first feature', Vision_TEXT_DOMAIN), ), array( 'id' => '1fttext', 'type' => 'textarea', 'title' => __('Enter first feature description here.', Vision_TEXT_DOMAIN), 'desc' => __('You can write here whatever is on your mind.
', Vision_TEXT_DOMAIN), ), array( 'id' => '1ftlink', 'type' => 'text', 'title' => __('First Feature Link', Vision_TEXT_DOMAIN), 'sub_desc' => __('This must be a URL.', Vision_TEXT_DOMAIN), 'validate' => 'url', ), array( 'id' => 'feature2H1', 'type' => 'text', 'title' => __('Second Feature H1', Vision_TEXT_DOMAIN), 'validate' => 'no_html', ), array( 'id' => 'ftimg2', 'type' => 'upload', 'title' => __('Second Feature Image', Vision_TEXT_DOMAIN), 'sub_desc' => __('Select an image for your second feature', Vision_TEXT_DOMAIN), ), array( 'id' => '2fttext', 'type' => 'textarea', 'title' => __('Enter second feature description here.', Vision_TEXT_DOMAIN), 'desc' => __('You can write here whatever is on your mind.
', Vision_TEXT_DOMAIN), ), array( 'id' => '2ftlink', 'type' => 'text', 'title' => __('Second Feature Link', Vision_TEXT_DOMAIN), 'sub_desc' => __('This must be a URL.', Vision_TEXT_DOMAIN), 'validate' => 'url', ), array( 'id' => 'feature3H1', 'type' => 'text', 'title' => __('Third Feature H1', Vision_TEXT_DOMAIN), 'validate' => 'no_html', ), array( 'id' => 'ftimg3', 'type' => 'upload', 'title' => __('First Feature Image', Vision_TEXT_DOMAIN), 'sub_desc' => __('Select an image for your third feature', Vision_TEXT_DOMAIN), ), array( 'id' => '3fttext', 'type' => 'textarea', 'title' => __('Enter third feature description here.', Vision_TEXT_DOMAIN), 'desc' => __('You can write here whatever is on your mind.
', Vision_TEXT_DOMAIN), ), array( 'id' => '3ftlink', 'type' => 'text', 'title' => __('Third Feature Link', Vision_TEXT_DOMAIN), 'sub_desc' => __('This must be a URL.', Vision_TEXT_DOMAIN), 'validate' => 'url', ), array( 'id' => 'feature4H1', 'type' => 'text', 'title' => __('Fourth Feature H1', Vision_TEXT_DOMAIN), 'sub_desc' => __('Only if you choose 4 columns layout.', Vision_TEXT_DOMAIN), 'validate' => 'no_html', ), array( 'id' => 'ftimg4', 'type' => 'upload', 'title' => __('Fourth Feature Image', Vision_TEXT_DOMAIN), 'sub_desc' => __('Select an image for your third feature', Vision_TEXT_DOMAIN), ), array( 'id' => '4fttext', 'type' => 'textarea', 'title' => __('Enter fourth feature description here.', Vision_TEXT_DOMAIN), 'desc' => __('Optional field. If nothing added Facebook logo will not appear.', Vision_TEXT_DOMAIN), 'desc' => __('You can write here whatever is on your mind.
', Vision_TEXT_DOMAIN), ), array( 'id' => '4ftlink', 'type' => 'text', 'title' => __('Fourth Feature Link', Vision_TEXT_DOMAIN), 'sub_desc' => __('This must be a URL.', Vision_TEXT_DOMAIN), 'validate' => 'url', ) ) ); $sections[] = array( 'icon' => 'facebook-sign', 'icon_class' => 'icon-2x', 'title' => __('Social Media Settings', Vision_TEXT_DOMAIN), 'desc' => __('Paste here url to your social media profiles.
', Vision_TEXT_DOMAIN), 'fields' => array( array( 'id' => 'facebook', 'type' => 'text', 'title' => __('Facebook profile link', Vision_TEXT_DOMAIN), 'desc' => __('Optional field. If nothing added Facebook logo will not appear.', Vision_TEXT_DOMAIN), 'validate' => 'url', ), array( 'id' => 'rss', 'type' => 'text', 'title' => __('RSS link', Vision_TEXT_DOMAIN), 'desc' => __('Optional field. If nothing added RSS logo will not appear.', Vision_TEXT_DOMAIN), 'validate' => 'url', ), array( 'id' => 'google', 'type' => 'text', 'title' => __('Google Plus profile link', Vision_TEXT_DOMAIN), 'desc' => __('Optional field. If nothing added Google Plus logo will not appear.', Vision_TEXT_DOMAIN), 'validate' => 'url', ) ) ); $sections[] = array( 'icon' => 'picture', 'icon_class' => 'icon-2x', 'title' => __('Blog and Single Post Settings', Vision_TEXT_DOMAIN), 'desc' => __('Here you can edit your blog settings.
', Vision_TEXT_DOMAIN), 'fields' => array( array( 'id' => 'blogmeta', 'type' => 'checkbox', 'title' => __('Blog meta tags', Vision_TEXT_DOMAIN), 'sub_desc' => __('Do you want meta tags on your page?', Vision_TEXT_DOMAIN), 'switch' => true, 'std' => '1' // 1 = checked | 0 = unchecked ), array( 'id' => 'blogsinglemeta', 'type' => 'checkbox', 'title' => __('Single post meta', Vision_TEXT_DOMAIN), 'sub_desc' => __('Do you want meta tags on your single posts?', Vision_TEXT_DOMAIN), 'switch' => true, 'std' => '1' // 1 = checked | 0 = unchecked ), array( 'id' => 'tags', 'type' => 'checkbox', 'title' => __('Tags on single post', Vision_TEXT_DOMAIN), 'sub_desc' => __('Do you want tags to appear on your single posts?', Vision_TEXT_DOMAIN), 'switch' => true, 'std' => '1' // 1 = checked | 0 = unchecked ), array( 'id' => 'autinf', 'type' => 'checkbox', 'title' => __('Author Infobox', Vision_TEXT_DOMAIN), 'sub_desc' => __('Do you want author infobox on your single posts?', Vision_TEXT_DOMAIN), 'switch' => true, 'std' => '1' // 1 = checked | 0 = unchecked ) ) ); $tabs = array(); if (function_exists('wp_get_theme')){ $theme_data = wp_get_theme(); $item_uri = $theme_data->get('ThemeURI'); $description = $theme_data->get('Description'); $author = $theme_data->get('Author'); $author_uri = $theme_data->get('AuthorURI'); $version = $theme_data->get('Version'); $tags = $theme_data->get('Tags'); }else{ $theme_data = wp_get_theme(trailingslashit(get_stylesheet_directory()) . 'style.css'); $item_uri = $theme_data['URI']; $description = $theme_data['Description']; $author = $theme_data['Author']; $author_uri = $theme_data['AuthorURI']; $version = $theme_data['Version']; $tags = $theme_data['Tags']; } $item_info = '' . __('Theme URL: ', Vision_TEXT_DOMAIN) . '' . $item_uri . '
'; $item_info .= ''; $item_info .= '' . __('Version: ', Vision_TEXT_DOMAIN) . $version . '
'; $item_info .= '' . $description . '
'; $item_info .= ''; $item_info .= '