Refresh Fonts / Check for updates'; $gwf_update_button = '
It will be directly printed inside ",
"group" => "Quick Start",
"class" => "col-md-6",
"id" => "eo_custom_footer_js",
"std" => "",
"type" => "textarea");
$options[] = array( "name" => __('Home', 'eo_theme'),
"icon" => "home",
"type" => "heading");
$options[] = array( "name" => __('Slider -carousel- on homepage', 'eo_theme'),
"desc" => "Display the bootstrap slider carousel on homepage page template. This uses the wordpress featured images.",
"id" => "show_slider",
"std" => "1",
"group" => "carousel",
"class" => eo_opt_dept('show_slider','1','col-md-4|col-md-4','trigger'),
"type" => "checkbox");
$options[] = array( "name" => __('Slider position ?', 'eo_theme'),
"id" => "slider_p",
"group" => "carousel",
"std" => "full",
"type" => "select",
"class" => eo_opt_dept('show_slider','1','col-md-4 col-lg-3| stack'),
"options" => array('full' => 'Full', 'contain' => 'Contained')
);
$options[] = array( "name" => __('No# posts in slider', 'eo_theme'),
"desc" => "Number of posts to show.",
"id" => "slider_postcnt",
"class" => eo_opt_dept('show_slider','1','col-md-4|col-md-4 stack'),
"group" => "carousel",
"std" => "3",
"type" => "text");
$options[] = array( "name" => __('Slider Cat.', 'eo_theme'),
"desc" => "Slider posts category to show.",
"id" => "slider_postcat",
"class" => eo_opt_dept('show_slider','1','col-md-4|col-md-4 stack'),
"group" => "carousel",
"std" => key(eo_get_q_cats()),
"options" => eo_get_q_cats(),
"type" => "select");
$options[] = array( "name" => __('Prevent overflow', 'eo_theme'),
"desc" => "It may stretch down too much if your image is vertical or stretches too much.",
"id" => "caru_of_prevent",
"std" => "1",
"group" => "carousel",
"class" => "trigger ".eo_opt_dept('show_slider','1','col-md-4|col-md-4'),
"type" => "checkbox");
$options[] = array( "name" => __('Max. height', 'eo_theme'),
"desc" => "Value in px.",
"id" => "caru_of_prevent_h",
"class" => "trigger ".eo_opt_dept('show_slider','1','col-md-4|col-md-4'),
"group" => "carousel",
"std" => "320px",
"type" => "text");
$options[] = array( "name" => __('Blog page -jumbotron- unit (*former -hero-)', 'eo_theme'),
"group" => "jumbotron",
"desc" => "Display blog jumbotron hero unit (*former -hero-)",
"id" => "blog_jumbo",
"std" => "0",
"class" => eo_opt_dept('blog_jumbo','1','col-md-6|col-md-12'),
// "class" => "col-md-6 col-lg-4",
"type" => "checkbox");
$options[] = array( "name" => __('What to display in jumbotron -former hero- ?', 'eo_theme'),
"id" => "jumbo_wtd",
"group" => "jumbotron",
"std" => "def_home",
"type" => "select",
"class" => eo_opt_dept('blog_jumbo','1','col-md-6|col-md-6 hide'),
"options" => array('def_home' => 'Blog title & desc', 'custom_html' => 'Custom Html', 'a_page' => 'A page')
);
$options[] = array( "name" => __('Page to display in jumbotron', 'eo_theme'),
"desc" => "Select the page to display in hero.",
"id" => "jumbo_pid",
"group" => "jumbotron",
"std" => key(eo_get_q_pages()),
"type" => "select",
"class" => eo_opt_dept('blog_jumbo','1','col-md-6|col-md-6 hide'),
"options" => eo_get_q_pages()
);
$options[] = array( "name" => __('Homepage page template jumbotron (old hero-unit) background color', 'eo_theme'),
"desc" => "Default used if no color is selected.",
"id" => "jumbo_bg_color",
"group" => "jumbotron",
"class" => eo_opt_dept('blog_jumbo','1','col-md-6 col-lg-4|col-md-6 col-lg-4 hide'),
"std" => "",
"type" => "color");
$options[] = array( "name" => __('Highlights on home', 'eo_theme'),
"desc" => "Display highlights on home.",
"id" => "show_highlights",
"std" => "1",
"group" => "highlights",
"class" => eo_opt_dept('show_highlights','1','col-md-4|col-md-4','trigger'),
"type" => "checkbox");
$options[] = array( "name" => __('No# posts in Highlights', 'eo_theme'),
"desc" => "Number of posts to show.",
"id" => "highl_postcnt",
"class" => "col-md-4 col-lg-3",
"group" => "highlights",
"std" => "4",
"type" => "text");
$options[] = array( "name" => __('Highlights Cat.', 'eo_theme'),
"desc" => "Highlights posts category to show.",
"id" => "highl_postcat",
"class" => "col-md-4 col-lg-3",
"group" => "highlights",
"std" => key(eo_get_q_cats()),
"options" => eo_get_q_cats(),
"type" => "select");
$options[] = array( "name" => __('Featurettes on home', 'eo_theme'),
"desc" => "Display featurettes on home.",
"id" => "show_featurettes",
"std" => "1",
"group" => "featurettes",
"class" => eo_opt_dept('show_featurettes','1','col-md-4|col-md-4','trigger'),
"type" => "checkbox");
$options[] = array( "name" => __('No# posts in featurettes', 'eo_theme'),
"desc" => "Number of posts to show.",
"id" => "feat_postcnt",
"class" => "col-md-4 col-lg-3",
"group" => "featurettes",
"std" => "3",
"type" => "text");
$options[] = array( "name" => __('Featurettes Cat.', 'eo_theme'),
"desc" => "Featurettes posts category to show.",
"id" => "feat_postcat",
"class" => "col-md-4 col-lg-3",
"group" => "featurettes",
"std" => key(eo_get_q_cats()),
"options" => eo_get_q_cats(),
"type" => "select");
// _eo-todo: build multiple dependencies, for example display page selector only if Jumbo disp. is set to page.
$options[] = array( "name" => __('Typography', 'eo_theme'),
"type" => "heading",
"icon" => "text-height"
);
$options[] = array( "name" => __('Refresh fonts from Google', 'eo_theme'),
"type" => "info",
"id" => "check_gwf",
"group" => "Google Fonts",
"class" => "col-md-5",
"desc" => $gwf_update_button
);
$options[] = array( "name" => __('Google Webfont API key', 'eo_theme'),
"desc" => 'You can use the one i created, but it has a 10,000 hit limit, if somehow the limit is exceeded, you might want to get your own.',
"id" => "google_wf_apikey",
"group" => "Google Fonts",
"class" => "col-md-7",
"type" => "text",
"std" => "AIzaSyAMO-3ly3H7EJ801RbtRAQ2bkTqyVtGLoE"
);
$options[] = array( 'name' => 'Body Font',
'desc' => 'Main Body Font.',
'id' => 'eo_typo_body',
//'std' => array( 'source' => 'os_font'),
'group' => 'Font Choices',
'type' => 'typography',
'class' => 'eot',
);
$options[] = array( 'name' => 'Headings',
'desc' => 'Post & Widget titles, headings - h1, h2.',
'id' => 'eo_typo_heading',
'group' => 'Font Choices',
'type' => 'typography',
);
$options[] = array( "name" => __('Link Color', 'eo_theme'),
"desc" => "Default used if no color is selected.",
"id" => "link_color",
"group" => "Link Text",
'class' => 'col-md-6 col-lg-4',
"std" => "",
"type" => "color");
$options[] = array( "name" => __('Link:hover Color', 'eo_theme'),
"desc" => "Default used if no color is selected.",
"id" => "link_hover_color",
"group" => "Link Text",
'class' => 'col-md-6 col-lg-4',
"std" => "",
"type" => "color");
$options[] = array( "name" => __('Link:active Color', 'eo_theme'),
"desc" => "Default used if no color is selected.",
"id" => "link_active_color",
'class' => 'col-md-6 col-lg-4',
"group" => "Link Text",
"std" => "",
"type" => "color");
$options[] = array( "name" => __('Customize', 'eo_theme'),
"type" => "heading",
"icon" => "tasks"
);
$options[] = array( "name" => __('Site name', 'eo_theme'),
"desc" => "Check to show the site name in the navbar",
"id" => "site_name",
"group" => "Top Nav",
"class" => "col-sm-6 col-md-4 col-lg-3",
"std" => "1",
"type" => "checkbox");
$options[] = array( "name" => __('Trim Site name', 'eo_theme'),
"desc" => "Long titles usually look awkward..Trims title to 20 chars..",
"id" => "trim_site_title",
"group" => "Top Nav",
"class" => "col-sm-6 col-md-4 col-lg-3",
"std" => "1",
"type" => "checkbox");
$options[] = array( "name" => __('Position', 'eo_theme'),
"desc" => "Fixed to the top of the window or scroll with content.",
"id" => "nav_position",
"std" => "scroll",
"type" => "select",
"group" => "Top Nav",
"class" => "mini col-sm-6 col-md-4 col-lg-3", //mini, tiny, small
"options" => $fixed_scroll);
$options[] = array( "name" => __('Style', 'eo_theme'),
"desc" => "Default / Inverse color scheme for navbar.",
"id" => "nav_pref",
"std" => "default",
"type" => "select",
"group" => "Top Nav",
"class" => "mini col-sm-6 col-md-4 col-lg-3", //mini, tiny, small
"options" => array("default" => "Default", "inverse" => "Inverse")
);
$options[] = array( "name" => __('Top nav background color', 'eo_theme'),
"desc" => "Default used if no color is selected.",
"id" => "top_nav_bg_color",
"group" => "Top Nav",
"class" => "col-sm-6 col-md-4 col-lg-3",
"std" => "",
"type" => "color");
$options[] = array( "name" => __('Use gradient', 'eo_theme'),
"desc" => "Check to use a gradient for top nav background",
"id" => "showhidden_gradient",
"class" => "col-sm-6 col-md-4 col-lg-3",
"group" => "Top Nav",
"std" => "",
"force_clear" => "yes",
"type" => "checkbox");
$options[] = array( "name" => __('Bottom gradient color', 'eo_theme'),
"desc" => "Top nav background color used as top gradient color.",
"id" => "top_nav_bottom_gradient_color",
"class" => "col-sm-6 col-md-4 col-lg-3",
"group" => "Top Nav",
"std" => "",
"class" => eo_opt_dept('showhidden_gradient','1') ." col-sm-6 col-md-4 col-lg-3",
"type" => "color");
$options[] = array( "name" => __('Top nav item color', 'eo_theme'),
"desc" => "Link color.",
"id" => "top_nav_link_color",
"class" => "col-sm-6 col-md-4 col-lg-3",
"group" => "Top Nav",
"std" => "",
"type" => "color");
$options[] = array( "name" => __('Top nav item hover color', 'eo_theme'),
"desc" => "Link hover color.",
"id" => "top_nav_link_hover_color",
"class" => "col-sm-6 col-md-4 col-lg-3",
"group" => "Top Nav",
"std" => "",
"type" => "color");
$options[] = array( "name" => __('Top nav dropdown item color', 'eo_theme'),
"desc" => "Dropdown item color.",
"id" => "top_nav_dropdown_item",
"class" => "col-sm-6 col-md-4 col-lg-3",
"group" => "Top Nav",
"std" => "",
"type" => "color");
$options[] = array( "name" => __('Top nav dropdown item hover bg color', 'eo_theme'),
"desc" => "Background of dropdown item hover color.",
"id" => "top_nav_dropdown_hover_bg",
"class" => "col-sm-6 col-md-4 col-lg-3",
"group" => "Top Nav",
"std" => "",
"type" => "color");
$options[] = array( "name" => __('Search bar', 'eo_theme'),
"desc" => "Show search bar in top nav",
"id" => "search_bar",
"group" => "Top Nav",
"class" => "col-sm-6 col-md-4 col-lg-3",
"std" => "1",
"type" => "checkbox");
$options[] = array( "name" => __('Custom markup', 'eo_theme'),
"desc" => "Default WP markup doesnt fit bootstrap, so custom nav walker classes are included ",
"id" => "custom_nav_markup",
"group" => "Top Nav",
"class" => "col-sm-6 col-md-4 col-lg-3",
"std" => "1",
"type" => "checkbox");
$options[] = array( "name" => __('FootLeft', 'eo_theme'),
"desc" => "Copyright text © in footer left",
"group" => "Footer",
"class" => "col-sm-12 col-md-4 col-lg-4",
"id" => "foot_copy_left",
"type" => "textarea");
$options[] = array( "name" => __('FootRight', 'eo_theme'),
"desc" => "Footer text © in footer right",
"group" => "Footer",
"class" => "col-sm-4 col-md-4 col-lg-4",
"id" => "foot_copy_right",
"type" => "textarea");
$options[] = array( "name" => __('Sticky Footer', 'eo_theme'),
"desc" => "Make the footer stick to the bottom",
"id" => "sticky_footer",
"class" => "col-sm-6 col-md-2 col-lg-2",
"group" => "Footer",
"prev" => "sticky.jpg",
"std" => "0",
"type" => "checkbox");
$options[] = array( "name" => __('T.author link', 'eo_theme'),
"desc" => "Show a link back to theme's author in footer right.",
"id" => "foot_linkback",
"group" => "Footer",
"class" => "col-sm-6 col-md-2 col-lg-2",
"std" => "1",
"type" => "checkbox");
$options[] = array( "name" => __('-Comments are closed- message on pages', 'eo_theme'),
"desc" => "Suppress 'Comments are closed' message",
"id" => "suppress_comments_message",
"group" => "others",
"std" => "1",
"type" => "checkbox"
);
$options[] = array( "name" => __('Theme', 'eo_theme'),
"type" => "heading",
"icon" => "picture");
/*
$options[] = array( "name" => __('Refresh themes from Bootswatch', 'eo_theme'),
"type" => "info",
"group" => "Bootswatch Themes",
"class" => "col-sm-6",
"id" => "themecheck",
"desc" => $update_button
); */
$options[] = array( "name" => __('Bootswatch.com Themes', 'eo_theme'),
"desc" => "Use theme from bootswatch.com. Note: This may override other styles set in the theme options panel.",
"id" => "use_bsw_themes",
"group" => "Bootswatch Themes",
"class" => "col-sm-6",
"std" => "0",
"type" => "checkbox");
$options[] = array( "name" => __('Select a theme', 'eo_theme'),
"id" => "bsw_theme",
"group" => "Bootswatch Themes",
"std" => "default",
"class" => eo_opt_dept('use_bsw_themes','1'),
"type" => "images",
"options" => $theList,
"imgclass" => "eo_themethumb img-thumbnail col-sm-6 col-md-4 col-lg-3"
);
$options[] = array( "name" => __('Use selected theme for admin too', 'eo_theme'),
"desc" => "Apply the same theme to admin options panel.",
"id" => "use_bsw_theme_admin",
"group" => "Bootswatch Themes",
"class" => eo_opt_dept('use_bsw_themes','1'),
"std" => "0",
"type" => "checkbox");
$options[] = array( "name" => __('Xtend', 'eo_theme'),
"type" => "heading",
"icon" => "gift"
);
$options[] = array( "name" => __('Lightbox', 'eo_theme'),
"desc" => "Use lightbox -colorbox-",
"id" => "use_lightbox",
"group" => "extensions",
"class" => "col-sm-6 col-md-4 col-lg-3",
"std" => "1",
"type" => "checkbox");
$options[] = array( "name" => __('Font Awesome', 'eo_theme'),
"desc" => "Use fontawesome",
"id" => "use_fontawesome",
"class" => "col-sm-6 col-md-4 col-lg-3",
"group" => "extensions",
"std" => "1",
"type" => "checkbox");
$options[] = array( "name" => __('Place[holder].js', 'eo_theme'),
"desc" => "Create fun placeholder images via js for posts that dont have featured img",
"id" => "use_placeholder",
"class" => "col-sm-6 col-md-4 col-lg-3",
"group" => "extensions",
"std" => "1",
"type" => "checkbox");
$options[] = array( "name" => __('Placeholder- regular < img >', 'eo_theme'),
"desc" => "If you dont want the js method; use a placeholder img for posts that dont have featured img",
"id" => "use_placeholder_img",
"class" => "col-sm-6 col-md-4 col-lg-3",
"group" => "extensions",
"std" => "1",
"type" => "checkbox");
$options[] = array( "name" => __('Dev.', 'eo_theme'),
"type" => "heading",
"icon" => "cog"
);
$options[] = array( "name" => __('Load via LESS', 'eo_theme'),
// "desc" => "You can disable it for whatever reason.",
"id" => "use_less",
"std" => "0",
"class" => "col-sm-6 col-md-4 col-lg-3",
"group" => "development",
"type" => "checkbox");
$options[] = array(
'name' => __('LESS Resources', 'eo_theme'),
'desc' => __('Resources to load via LESS.', 'eo_theme'),
'id' => 'use_less_for',
//'std' => array("bootstrap" => "1", "some_other" => "1"),
'std' => array("bootstrap","fontawesome"),
'type' => 'multiselect',
"group" => "development",
"class" => eo_opt_dept('use_less','1','col-sm-6 col-md-4 col-lg-3|col-sm-6 col-md-4 col-lg-3'),
'options' => array(
"bootstrap" => "Bootstrap",
"fontawesome" => "Fontawesome"
// "some_other" => "Some Other"
)
);
$options[] = array( "name" => __('Override.css ?', 'eo_theme'),
"desc" => "Enable rsc/css/override.css file at the end of
so that it overrides everything else.", "id" => "override_css", "std" => "0", "class" => "col-sm-6 col-md-4 col-lg-3", "group" => "development", "type" => "checkbox"); /* $options[] = array( 'name' => __('Multiselect', 'options_framework_theme'), 'desc' => __('Multiselect description.', 'options_framework_theme'), 'id' => 'example_multiselect', 'std' => $multicheck_defaults, // These items get selectd by default 'type' => 'multiselect', 'options' => $multicheck_array);*/ /* $options[] = array( "name" => __('LESS Resources", "desc" => "Resources to load via LESS.", "id" => "use_less_for", // "std" => "default", "type" => "select", "class" => eo_opt_dept('use_less','1'), "group" => "development", "multiple" => "yes", // "class" => "mini col-sm-6 col-md-4 col-lg-3", //mini, tiny, small "options" => array("bootstrap" => "Bootstrap", "fontawesome" => "Fontawesome") );*/ $options[] = array( "name" => __('Load Bootsrap-all-', 'eo_theme'), "desc" => "Really ? Really ??.", "id" => "load_bs_fe", "group" => "development", "class" => "col-sm-6 col-md-4 col-lg-3", "std" => "1", "type" => "checkbox"); $options[] = array( "name" => __('Bootstrap .min ?', 'eo_theme'), // "desc" => "You can disable it for whatever reason.", "id" => "use_bs_min_fe", "std" => "1", "class" => "col-sm-6 col-md-4 col-lg-3", "group" => "development", "desc" => "Use .minified sources for optimized loading speed. Warning: might cause conflicts", "type" => "checkbox"); $options[] = array( 'name' => __('Load Bootstrap jses individually', 'eo_theme'), 'desc' => __('Dont forget to turn previous option OFF. If you dont need them all, select which ones to load.', 'eo_theme'), 'id' => 'bs_js_seperate', // 'std' => array("bootstrap","fontawesome"), 'type' => 'multiselect', "group" => "development", "class" => "col-sm-6 col-md-4 col-lg-3", 'options' => array("affix" => "Affix", "alert" => "Alert", "button" => "Button", "carousel" => "Carousel", "collapse" => "Collapse", "dropdown" => "Dropdown", "modal" => "Modal", "popover" => "Popover", "scrollspy" => "Scrollspy", "tab" => "Tab", "tooltip" => "Tooltip", "transition" => "Transition" ) ); $options[] = array( 'name' => __('Dashboard Boxes', 'eo_theme'), 'desc' => __('You can use this to empty your dashboard and remove unnecessary wp meta boxes in main wp-admin dahboard.', 'eo_theme'), 'id' => 'adm_remove_dash_boxes', //'std' => array("bootstrap" => "1", "some_other" => "1"), 'std' => array("dashboard_recent_drafts","dashboard_incoming_links"), 'type' => 'multiselect', "group" => "development", "class" =>"col-sm-6 col-md-4 col-lg-3", 'options' => array( "dashboard_right_now" => "Dash. Right Now", "dashboard_recent_comments" => "Recent Comments", "dashboard_incoming_links" => "Incoming Links", "dashboard_plugins" => "Plugins Widget", "dashboard_quick_press" => "Quick Press", "dashboard_recent_drafts" => "Recent Drafts", "dashboard_primary" => "Dashboard Primary", "dashboard_secondary" => "Dashboard Secondary", // "some_other" => "Some Other" ) ); $options[] = array( "name" => __('Panel', 'eo_theme'), "type" => "heading", "icon" => "wrench" ); $options[] = array( "name" => __('Admin Top Nav', 'eo_theme'), "desc" => "You may want to enable top nav in smaller screens to save vertical space and use the left menu, or alternatively show it always or never show at all", "id" => "top_nav_adm_show", "group" => "Panel Preferences", "class" => "col-md-4", "std" => "hidden-sm", "options" => array("hidden-sm"=>"Larger screens","hidden"=>"Never","always"=>"Always"), "type" => "select"); $options[] = array( "name" => __('Admin Side Menu Nav', 'eo_theme'), "desc" => "You may want to disable top nav in smaller screens to save vertical space and use the left menu, or alternatively show it always or never show at all", "id" => "side_menu_adm_show", "group" => "Panel Preferences", "class" => "col-md-4", "std" => "auto-l", "options" => array("auto-l"=>"Auto-left","auto-r"=>"Auto-right","hidden"=>"Never"), "type" => "select"); $options[] = array( "name" => __('Expand Panel?', 'eo_theme'), "desc" => "Change only if you have a large monitor, expands the container to 1600px or fluid 100% to take much as much space available.", "id" => "xl_adm", "class" => "col-md-4", "group" => "Panel Preferences", "std" => "default", "force_clear" => "yes", "options" => array("default"=>"Default","xl"=>"XL-1600px","fluid"=>"Fluid-100%"), "type" => "select" ); $options[] = array( "name" => __('Load chosen in admin?', 'eo_theme'), "desc" => "chosen is a very useful jquery plugin for enhancing select inputs, comes very handy when sorting out of many options like Google fonts especially.", "id" => "load_chosen_adm", "std" => "1", "prev" => "load_chosen.jpg", "group" => "Panel Preferences", "class" => "col-sm-6 col-md-4 col-lg-3", // "preq" => "js|bs", "type" => "checkbox"); $options[] = array( "name" => __('Collapse WP menu', 'eo_theme'), "desc" => "Always collapse the left wp menu on theme options page unless you expand it.", "id" => "coll_wp_menu", "group" => "Panel Preferences", "std" => "1", "prev" => "coll_wp_menu.jpg", "preq" => array("js" => "Requires js to uncollapse since its almost impossible to play with admin body classes", "opt" => "Requires X option to be Y" ), "class" => "col-sm-6 col-md-4 col-lg-3", "type" => "checkbox"); $options[] = array( "name" => __('Popover opt. prev.', 'eo_theme'), "desc" => "Popover images for quick preview. You can disable them if you already know what you're doing", // "class" => eo_opt_dept('load_bs_adm','1'), "class" => "col-sm-6 col-md-4 col-lg-3", "id" => "prev_pop", "group" => "Panel Preferences", "std" => "1", "prev" => "prev_pop.jpg", "type" => "checkbox"); $options[] = array( "name" => __('ON/OFF Checkboxes ?', 'eo_theme'), "desc" => "turn checkboxes into ON/OFF switch.", "id" => "adm_cbox", "class" => "col-sm-6 col-md-4 col-lg-3", "group" => "Panel Preferences", "std" => "1", "prev" => "adm_cbox.jpg", "type" => "checkbox"); $options[] = array( "name" => __('Checkboxes Style', 'eo_theme'), "desc" => "Checkboxes switch sytle.", "id" => "cbox_style", "class" => "col-sm-6 col-md-4 col-lg-3", "group" => "Panel Preferences", // "class" => eo_opt_dept('adm_cbox','1'), "std" => "droid", "prev" => "cbox_style.jpg", "options" => array("droid"=>"Android","ios5"=>"iOS5","win8"=>"Windows 8","google"=>"Google - Experimental"), "type" => "select"); $options[] = array( "name" => __('T.author link admin', 'eo_theme'), "desc" => "Show a link back to theme's author in admin footer right.", "id" => "auth_l_adm", "group" => "Panel Preferences", "class" => "col-sm-6 col-md-4 col-lg-3", "std" => "1", "type" => "checkbox"); $options[] = array( "name" => __('Bootstrap Admin', 'eo_theme'), "desc" => "You can disable it for whatever reason.", "id" => "load_bs_adm", "group" => "Panel Preferences", "prev" => "load_bs_adm.jpg", "std" => "1", "type" => "checkbox"); $options[] = array( "name" => 'Delete Options & Settings ?', "type" => "free_html", 'desc' => $del_link_html, "group" => "Under the hood", "id" => "eo_del_all_o", "class" => "col-sm-6", "std" => ""); $options[] = array( "name" => 'Delete Transients ?', "type" => "free_html", "group" => "Under the hood", 'desc' => $del_trans_link_html, "id" => "eo_del_trans_o", "class" => "col-sm-6", "std" => ""); $options[] = array( "name" => __('Test', 'eo_theme'), "icon" => "stats", "type" => "heading"); $options[] = array( "name" => 'Test the BOOTSWATCH theme', "type" => "info", 'desc' => 'Click here to view test page ', "id" => "eo_bswtest", "std" => ""); $options[] = array( "name" => __('About', 'eo_theme'), "type" => "heading", "icon" => "info-sign"); $options[] = array( "name" => 'A few tips and tricks to keep in mind', "type" => "info", "group" => "tips", 'desc' => '
', "id" => "eo_tips_tricks", "class" => "", "std" => ""); $options[] = array( "name" => __('Paypal Message', 'eo_theme'), "desc" => "Do not show paypal message, i have already donated or do not consider donating anyway. Unless turned off, the donation message appears once every week.", "id" => "paypal_msg", "group" => "tips", "std" => "1", "type" => "checkbox"); /* // _eo-review: Review this when adding new font sections $eo_typo_opt = get_option('eo_typo_opt' ); $chosen_fonts = array(); // Create an empty array to save font options to prevent future multi includes or conflicts foreach ( $options as $opt_typo ) { if(array_key_exists("id",$opt_typo) && array_key_exists("type",$opt_typo) && $opt_typo["type"] == "typography" ) { $typovals = eo_get_options($opt_typo["id"]); if( $typovals["source"] == "gwf_font") { $chosen_fonts[$typovals["face"]][] = $typovals["variant"]; } } } update_option('eo_typo_opt',$chosen_fonts);*/ /* if( get_option('eo_gen_opt_cl') ) { $opt_cl_gen = get_option('eo_gen_opt_cl'); } else { $opt_cl_gen = array(); } */ $opt_cl_gen["timest"] = time(); foreach ( $options as $opt_cl_g ) { if(array_key_exists("id",$opt_cl_g) && array_key_exists("class",$opt_cl_g) ) { $optidd = $opt_cl_g["id"]; $optcl = $opt_cl_g["class"]; $opt_cl_gen[$optidd] = $optcl; // var_dump("the cl to write:" . $optcl); } } update_option('eo_gen_opt_cl',$opt_cl_gen); // var_dump("These will be writ: ".time()); // var_dump($opt_cl_gen); if ( get_option('eo_gen_opt_cl' ) ) { $gen_refine_cl = get_option('eo_gen_opt_cl' ); $refined_opts = array(); // Create an empty array to redefine opts foreach ( $options as $opt_refine ) { // var_dump($opt_refine); if(array_key_exists("id",$opt_refine) && array_key_exists("class",$opt_refine) && !empty($opt_refine["class"]) ) { // If we have an $option["id"], and non empty class, get in there if(array_key_exists($opt_refine["id"],$gen_refine_cl) && ! empty($gen_refine_cl[$opt_refine["id"]]) ) { // Unnecessary check ? Check if optid exists in generated classes and the corresponding value is not empty $refine_id = $opt_refine["id"]; // previously generated class val $refine_val = $gen_refine_cl[$refine_id]; // Time to refine the $options[] -$opt_refine- $opt_refine["class"] = $refine_val." refined"; /* foreach( $opt_refine as $key => $opt_redefine ) { //redefine every option array $refined_opts[$key] = array( ); } $refined_opts[$refine_id] = $refine_val." refined"; var_dump("this opt should be refined as:".$refine_val);*/ } } } /* $new_options = $options; var_dump("All refined opts "); var_dump($new_options);*/ // $options = $refined_opts; } // var_dump($options); return $options; } // Store the generated classes based on dependencies.. Might prove useful. _eo-review: Now that we store the created classes, run eo_opt_dept() only once instead of each option ? //$opt_cl_get = optionsframework_options(); /** * Returns an array of system fonts * Feel free to edit this, update the font fallbacks, etc. */ function options_typography_get_os_fonts() { // OS Font Defaults $os_faces = array( 'Arial, sans-serif' => 'Arial', '"Avant Garde", sans-serif' => 'Avant Garde', 'Cambria, Georgia, serif' => 'Cambria', 'Copse, sans-serif' => 'Copse', 'Garamond, "Hoefler Text", Times New Roman, Times, serif' => 'Garamond', 'Georgia, serif' => 'Georgia', '"Helvetica Neue", Helvetica, sans-serif' => 'Helvetica Neue', 'Tahoma, Geneva, sans-serif' => 'Tahoma' ); return $os_faces; } function get_selected_font_arr($slct_fnt) { $all_fonts = get_option("eo_googlefonts_arr"); foreach ($all_fonts as $a_font ) { if (in_array($slct_fnt, $gfw_family)) { return $os_faces; } } } function eo_tips() { echo "
"; } /** * Returns a select list of Google fonts * Feel free to edit this, update the fallbacks, etc. */ function options_typography_get_google_fonts() { // Google Font Defaults $google_faces = array( 'Arvo, serif' => 'Arvo', 'Copse, sans-serif' => 'Copse', 'Droid Sans, sans-serif' => 'Droid Sans', 'Droid Serif, serif' => 'Droid Serif', 'Lobster, cursive' => 'Lobster', 'Nobile, sans-serif' => 'Nobile', 'Open Sans, sans-serif' => 'Open Sans', 'Oswald, sans-serif' => 'Oswald', 'Pacifico, cursive' => 'Pacifico', 'Rokkitt, serif' => 'Rokkit', 'PT Sans, sans-serif' => 'PT Sans', 'Quattrocento, serif' => 'Quattrocento', 'Raleway, cursive' => 'Raleway', 'Ubuntu, sans-serif' => 'Ubuntu', 'Yanone Kaffeesatz, sans-serif' => 'Yanone Kaffeesatz' ); return $google_faces; } ?>