示例#1
0
function suffusion_evaluate_style($style_name, $suffusion_theme_name = "root")
{
    global $suf_theme_definitions, $suf_element_mapping;
    if (isset($suf_element_mapping[$style_name])) {
        $mapped_style = $suf_element_mapping[$style_name];
        if (isset($suf_theme_definitions[$suffusion_theme_name])) {
            $style_settings = $suf_theme_definitions[$suffusion_theme_name];
            if (isset($style_settings[$mapped_style])) {
                return $style_settings[$mapped_style];
            } else {
                if (isset($style_settings["parent"])) {
                    $parent = $style_settings["parent"];
                    $ancestors = explode(",", $parent);
                    $counter = count($ancestors);
                    for ($i = 0; $i < $counter; $i++) {
                        $recursive = suffusion_evaluate_style($style_name, $ancestors[$i]);
                        if ($recursive != null) {
                            return $recursive;
                        }
                    }
                }
            }
        }
    }
    return '#ffffff';
}
示例#2
0
function suffusion_evaluate_style($style_name, $suffusion_theme_name = "root", $null_return = 'default')
{
    global $suf_theme_definitions, $suf_element_mapping;
    if (isset($suf_element_mapping[$style_name])) {
        $mapped_style = $suf_element_mapping[$style_name];
        if (isset($suf_theme_definitions[$suffusion_theme_name])) {
            $style_settings = $suf_theme_definitions[$suffusion_theme_name];
            if (isset($style_settings[$mapped_style])) {
                return $style_settings[$mapped_style];
            } else {
                if (isset($style_settings["parent"])) {
                    $parent = $style_settings["parent"];
                    $ancestors = explode(",", $parent);
                    foreach ($ancestors as $ancestor) {
                        $recursive = suffusion_evaluate_style($style_name, $ancestor, $null_return);
                        if ($recursive != null) {
                            return $recursive;
                        }
                    }
                }
            }
        }
    }
    if ($null_return == 'empty') {
        return '';
    }
    return '#ffffff';
}
<?php

/**
 * Lists out all the options from the Typography Section of the theme options
 * This file is included in functions.php
 *
 * @package Suffusion
 * @subpackage Admin
 */
global $suffusion_theme_name, $suffusion_safe_font_faces;
$suffusion_typography_options = array(array("name" => "Typography", "type" => "sub-section-2", "category" => "typography", "parent" => "root"), array("name" => "Body Fonts", "category" => "typo-body", "parent" => "typography", "type" => "sub-section-3"), array("name" => "General settings", "category" => "typo-general", "parent" => "typo-body", "type" => "sub-section-4"), array("name" => "Default or custom font styles?", "desc" => "You can decide to go with the colors / text styles of the theme you are using, or choose your own. " . "If you choose default colors / text styles here then the rest of your settings in this section will be ignored. " . "If you choose custom styles then the settings you make here will override the theme's settings.", "id" => "suf_body_font_style_setting", "parent" => "typo-body", "grouping" => "typo-general", "note" => "Please set this option to \"Custom styles\" if you want to override the theme's settings for the fonts.", "type" => "radio", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Font Face", "desc" => "Pick a browser-safe font or a font from Google web-fonts", "id" => "suf_body_font_family", "parent" => "typo-body", "grouping" => "typo-general", "note" => "Note that the fonts may not render correctly here, depending on your OS / browser.", "type" => "select", "options" => $suffusion_safe_font_faces, "std" => "Arial, Helvetica, sans-serif"), array("name" => "Font Color", "desc" => "Set the color of the fonts being used. " . "Make sure that your font color goes well enough with the theme. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_font_color", "parent" => "typo-body", "grouping" => "typo-general", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_font_color", $suffusion_theme_name)), array("name" => "Link Color", "desc" => "Set the color of the links in the main content. Font colors in the sidebar are unaffected. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_link_color", "parent" => "typo-body", "grouping" => "typo-general", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_link_color", $suffusion_theme_name)), array("name" => "Link Decoration", "desc" => "Set the effects for the link text. If you have chosen default styles above then this setting will be ignored.", "id" => "suf_link_style", "parent" => "typo-body", "grouping" => "typo-general", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "none"), array("name" => "Visited Link Color", "id" => "suf_visited_link_color", "parent" => "typo-body", "grouping" => "typo-general", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_visited_link_color", $suffusion_theme_name)), array("name" => "Visited Link Decoration", "id" => "suf_visited_link_style", "parent" => "typo-body", "grouping" => "typo-general", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "none"), array("name" => "Link Hover Color", "id" => "suf_link_hover_color", "parent" => "typo-body", "grouping" => "typo-general", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_link_hover_color", $suffusion_theme_name)), array("name" => "Link Hover Decoration", "desc" => "Set the effects for the link text on which you are hovering. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_link_hover_style", "parent" => "typo-body", "grouping" => "typo-general", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "underline"), array("name" => "Main Content", "desc" => "Change settings for the main content", "category" => "typo-main", "parent" => "typo-body", "type" => "sub-section-4"), array("name" => "Default or custom font styles?", "desc" => "Override skin defaults", "id" => "suf_main_font_style_setting", "parent" => "typo-body", "grouping" => "typo-main", "type" => "checkbox", "std" => ""), array("name" => "Font Settings", "id" => "suf_main_font_size", "parent" => "typo-body", "grouping" => "typo-main", "type" => "font", "options" => array(), "exclude" => array('font-weight', 'font-variant', 'font-style', 'font-face', 'font-color'), "std" => array("font-size" => "14", "font-size-type" => "px")), array("name" => "Post and Page Titles", "desc" => "Change settings for the main content", "category" => "typo-titles", "parent" => "typography", "type" => "sub-section-3"), array("name" => "Default or custom font styles?", "desc" => "Override skin defaults", "id" => "suf_title_font_style_setting", "parent" => "typo-titles", "type" => "checkbox", "std" => ""), array("name" => "Unlinked post titles", "id" => "suf_post_title_font", "parent" => "typo-titles", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "28", "font-size-type" => "px")), array("name" => "Linked post titles", "id" => "suf_post_title_link_font", "parent" => "typo-titles", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "28", "font-size-type" => "px")), array("name" => "Link Hover Settings", "id" => "suf_post_title_link_hover_font", "parent" => "typo-titles", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "28", "font-size-type" => "px")), array("name" => "Content headers", "desc" => "Change settings for the content headers, h1, h2, ... h6", "category" => "typo-headers", "parent" => "typography", "type" => "sub-section-3"), array("name" => "Default or custom font styles?", "desc" => "Override skin defaults", "id" => "suf_header_font_setting", "parent" => "typo-headers", "type" => "checkbox", "std" => ""), array("name" => "H1 Font Settings", "id" => "suf_post_h1_font", "parent" => "typo-headers", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "28", "font-size-type" => "px")), array("name" => "H2 Font Settings", "id" => "suf_post_h2_font", "parent" => "typo-headers", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "26", "font-size-type" => "px")), array("name" => "H3 Font Settings", "id" => "suf_post_h3_font", "parent" => "typo-headers", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "23", "font-size-type" => "px")), array("name" => "H4 Font Settings", "id" => "suf_post_h4_font", "parent" => "typo-headers", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "21", "font-size-type" => "px")), array("name" => "H5 Font Settings", "id" => "suf_post_h5_font", "parent" => "typo-headers", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "19", "font-size-type" => "px")), array("name" => "H6 Font Settings", "id" => "suf_post_h6_font", "parent" => "typo-headers", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "16", "font-size-type" => "px")), array("name" => "Custom Layout", "desc" => "Change settings for custom layouts", "category" => "typo-clt", "parent" => "typography", "type" => "sub-section-3"), array("name" => "Page Title", "category" => "typo-clt-title", "parent" => "typo-clt", "type" => "sub-section-4"), array("name" => "Default or custom font styles?", "desc" => "Override skin defaults", "id" => "suf_clt_title_font_setting", "parent" => "typo-clt", "grouping" => "typo-clt-title", "type" => "checkbox", "std" => ""), array("name" => "Title Font", "desc" => "Setup the font for page title for the custom layout", "id" => "suf_clt_title_font", "parent" => "typo-clt", "grouping" => "typo-clt-title", "type" => "font", "options" => array(), "std" => array("color" => "#444444", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "24", "font-size-type" => "px")), array("name" => "Comments", "desc" => "Change settings for comments", "category" => "typo-comments", "parent" => "typography", "type" => "sub-section-3"), array("name" => "Default or custom font styles?", "desc" => "Override skin defaults", "id" => "suf_comment_font_setting", "parent" => "typo-comments", "type" => "checkbox", "std" => ""), array("name" => "Comment form title", "id" => "suf_comment_header_font", "parent" => "typo-comments", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "16", "font-size-type" => "px")), array("name" => "Comment Body", "id" => "suf_comment_body_font", "parent" => "typo-comments", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "14", "font-size-type" => "px")), array("name" => "Footer", "desc" => "Change settings for the footer", "category" => "typo-footer", "parent" => "typography", "type" => "sub-section-3"), array("name" => "Default or custom font styles?", "desc" => "Override skin defaults", "id" => "suf_footer_font_setting", "parent" => "typo-footer", "type" => "checkbox", "std" => ""), array("name" => "Text", "id" => "suf_footer_text_font", "parent" => "typo-footer", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "28", "font-size-type" => "px")), array("name" => "Links", "id" => "suf_footer_link_font", "parent" => "typo-footer", "type" => "font", "options" => array(), "exclude" => array('font-size', 'font-size-type'), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal")), array("name" => "Link Hovering", "id" => "suf_footer_link_hover_font", "parent" => "typo-footer", "type" => "font", "options" => array(), "exclude" => array('font-size', 'font-size-type'), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal")), array("name" => "Drop Caps", "category" => "typo-drop", "parent" => "typography", "type" => "sub-section-3"), array("name" => "Applicable post views", "desc" => "Set a \"Drop caps\" effect for the first letter in your content.", "id" => "suf_drop_cap_post_views", "parent" => "typo-drop", "type" => "multi-select", "options" => suffusion_get_formatted_options_array("suf_drop_cap_post_views", array('full-content' => 'Full content', 'excerpt' => 'Excerpts', 'suf-tile-text' => 'Tile layout', 'suf-mag-excerpt-text' => 'Magazine tiles', 'page' => 'Static pages')), "std" => ""), array("name" => "Applicable post formats", "id" => "suf_drop_cap_post_formats", "parent" => "typo-drop", "type" => "multi-select", "options" => suffusion_get_formatted_options_array("suf_drop_cap_post_formats", array('standard' => 'Standard', 'aside' => 'Aside', 'status' => 'Status', 'chat' => 'Chat', 'link' => 'Link', 'image' => 'Image', 'gallery' => 'Gallery', 'quote' => 'Quote', 'audio' => 'Audio', 'video' => 'Video')), "std" => ""));
<?php

/**
 * Lists out all the options from the Theme Skinning Section of the theme options
 * This file is included in functions.php
 *
 * @package Suffusion
 * @subpackage Admin
 */
global $suffusion_theme_name, $suffusion_safe_font_faces;
$suffusion_theme_skinning_options = array(array("name" => "Skinning", "type" => "sub-section-2", "category" => "skinning", "parent" => "root"), array("name" => "Theme selection", "type" => "sub-section-3", "category" => "theme-selection", "parent" => "skinning"), array("name" => "Color Scheme", "desc" => "Choose from one of the pre-defined color schemes. You can customize the colors further, if you wish.", "id" => "suf_color_scheme", "parent" => "theme-selection", "type" => "radio", "options" => array("light-theme-green" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Light-theme-green.jpg' alt='Green on a light theme'/><p>Green on a light theme</p></div>", "dark-theme-green" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Dark-theme-green.jpg' alt='Green on a dark theme'/><p>Green on a dark theme</p></div>", "light-theme-pale-blue" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Light-theme-pale-blue.jpg' alt='Pale Blue on a light theme'/><p>Pale Blue on a light theme</p></div>", "dark-theme-pale-blue" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Dark-theme-pale-blue.jpg' alt='Pale Blue on a dark theme'/><p>Pale Blue on a dark theme</p></div>", "light-theme-royal-blue" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Light-theme-royal-blue.jpg' alt='Royal Blue on a light theme'/><p>Royal Blue on a light theme</p></div>", "dark-theme-royal-blue" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Dark-theme-royal-blue.jpg' alt='Royal Blue on a dark theme'/><p>Royal Blue on a dark theme</p></div>", "light-theme-gray-1" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Light-theme-gray-1.jpg' alt='Gray Shade 1 on a light theme'/><p>Gray Shade 1 on a light theme</p></div>", "dark-theme-gray-1" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Dark-theme-gray-1.jpg' alt='Gray Shade 1 on a dark theme'/><p>Gray Shade 1 on a dark theme</p></div>", "light-theme-gray-2" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Light-theme-gray-2.jpg' alt='Gray Shade 2 on a light theme'/><p>Gray Shade 2 on a light theme</p></div>", "dark-theme-gray-2" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Dark-theme-gray-2.jpg' alt='Gray Shade 2 on a dark theme'/><p>Gray Shade 2 on a dark theme</p></div>", "light-theme-red" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Light-theme-red.jpg' alt='Red on a light theme'/><p>Red on a light theme</p></div>", "dark-theme-red" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Dark-theme-red.jpg' alt='Red on a dark theme'/><p>Red on a dark theme</p></div>", "light-theme-orange" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Light-theme-orange.jpg' alt='Orange on a light theme'/><p>Orange on a light theme</p></div>", "dark-theme-orange" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Dark-theme-orange.jpg' alt='Orange on a dark theme'/><p>Orange on a dark theme</p></div>", "light-theme-purple" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Light-theme-purple.jpg' alt='Purple on a light theme'/><p>Purple on a light theme</p></div>", "dark-theme-purple" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/Dark-theme-purple.jpg' alt='Purple on a dark theme'/><p>Purple on a dark theme</p></div>", "minima" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/minima.jpg' alt='Minima'/><p>Minima</p></div>", "photonique" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/photonique.jpg' alt='Photonique'/><p>Photonique</p></div>", "scribbles" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/photonique.jpg' alt='Scribbles'/><p>Scribbles</p></div>"), "std" => "light-theme-gray-1"), array("name" => "Icon Sets", "type" => "sub-section-3", "category" => "icon-sets", "parent" => "skinning"), array("name" => "Icon Sets", "desc" => "Choose from one of the pre-defined icon sets. These apply mostly to byline, page navigation and comment form elements. A lot of these icons are from a <a href='http://www.studiopress.com/graphics/icon-set-bloggers.htm'>set generously released under GPL by StudioPress</a>.", "id" => "suf_iconset", "parent" => "icon-sets", "type" => "radio", "options" => array("iconset-0" => "<div class='picture'><img src='" . get_template_directory_uri() . "/images/iconset-0.png' alt='Set 1'/><p>Set 1</p></div>", "iconset-1" => "<div class='picture'><img src='" . get_template_directory_uri() . "/images/iconset-1.png' alt='Set 2'/><p>Set 2</p></div>", "iconset-2" => "<div class='picture'><img src='" . get_template_directory_uri() . "/images/iconset-2.png' alt='Set 3'/><p>Set 3</p></div>", "iconset-3" => "<div class='picture'><img src='" . get_template_directory_uri() . "/images/iconset-3.png' alt='Set 4'/><p>Set 4</p></div>", "iconset-4" => "<div class='picture'><img src='" . get_template_directory_uri() . "/images/iconset-4.png' alt='Set 5'/><p>Set 5</p></div>", "iconset-5" => "<div class='picture'><img src='" . get_template_directory_uri() . "/images/iconset-5.png' alt='Set 6'/><p>Set 6</p></div>", "iconset-6" => "<div class='picture'><img src='" . get_template_directory_uri() . "/images/iconset-6.png' alt='Set 6'/><p>Set 7</p></div>", "theme" => "Theme Default"), "std" => "theme"), array("name" => "Show icons", "desc" => "Show icons for the following (applicable to the blog layout only):", "id" => "suf_little_icons_enabled", "parent" => "icon-sets", "type" => "multi-select", "options" => suffusion_get_formatted_options_array("suf_little_icons_enabled", array('author' => 'Post/page author', 'date' => 'Post/page date', 'category' => 'Post category', 'tags' => 'Post tag', 'permalink' => 'Post permalink', 'comments' => 'Post/page comments', 'edit' => 'Post/page edit (seen by a logged in author only)')), "std" => "author,date,category,tags,permalink,comments,edit"), array("name" => "Navigation Bar Above Header", "desc" => "Control the settings for the Navigation Bar Above Header", "category" => "navt-skin-settings", "parent" => "skinning", "type" => "sub-section-3"), array("name" => "Default or custom?", "id" => "suf_navt_skin_def_cust", "type" => "radio", "parent" => "navt-skin-settings", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Navigation Bar Background", "desc" => "Setup the background of the navigation bar.", "id" => "suf_navt_skin_settings_bg", "parent" => "navt-skin-settings", "type" => "background", "options" => array(), "std" => array("color" => '#ffffff', "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Navigation Bar Border", "desc" => "Setup the border of the navigation bar.", "id" => "suf_navt_skin_settings_bg_border", "parent" => "navt-skin-settings", "type" => "border", "options" => array(), "std" => array('top' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'right' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'bottom' => array('colortype' => 'custom', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 1, 'border-width-type' => 'px'), 'left' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'))), array("name" => "Navigation Bar Background Font", "desc" => "Setup the font for the navigation bar background.", "id" => "suf_navt_skin_settings_bg_font", "parent" => "navt-skin-settings", "type" => "font", "options" => array(), "std" => array("color" => "#444444", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "14", "font-size-type" => "px")), array("name" => "Navigation Menu Items", "desc" => "Setup the background of the navigation menu items in your page. This is the default background of the navigation menu items.", "id" => "suf_navt_skin_settings", "parent" => "navt-skin-settings", "type" => "background", "options" => array(), "std" => array("color" => '#ffffff', "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Navigation Menu Items Border", "desc" => "Setup the border of the navigation bar.", "id" => "suf_navt_skin_settings_border", "parent" => "navt-skin-settings", "type" => "border", "options" => array(), "std" => array('top' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'right' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'bottom' => array('colortype' => 'custom', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 1, 'border-width-type' => 'px'), 'left' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'))), array("name" => "Navigation Menu Items Font", "desc" => "Setup the font for the menu items.", "id" => "suf_navt_skin_settings_font", "parent" => "navt-skin-settings", "type" => "font", "options" => array(), "std" => array("color" => "#444444", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "14", "font-size-type" => "px")), array("name" => "Navigation Menu Items: Hover", "desc" => "This is the background of a navigation menu item upon hover.", "id" => "suf_navt_skin_settings_hover", "parent" => "navt-skin-settings", "type" => "background", "options" => array(), "std" => array("color" => '#ffffff', "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Navigation Menu Items: Hover Border", "desc" => "Setup the border of the navigation bar.", "id" => "suf_navt_skin_settings_hover_border", "parent" => "navt-skin-settings", "type" => "border", "options" => array(), "std" => array('top' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'right' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'bottom' => array('colortype' => 'custom', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 1, 'border-width-type' => 'px'), 'left' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'))), array("name" => "Navigation Menu Items: Hover Font", "desc" => "Setup the font for the menu items upon hover.", "id" => "suf_navt_skin_settings_hover_font", "parent" => "navt-skin-settings", "type" => "font", "options" => array(), "std" => array("color" => "#444444", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "14", "font-size-type" => "px")), array("name" => "Navigation Menu Items: Visited", "desc" => "This is the background of a visited item in the navigation menu.", "id" => "suf_navt_skin_settings_visited", "parent" => "navt-skin-settings", "type" => "background", "options" => array(), "std" => array("color" => '#ffffff', "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Navigation Menu Items: Visited Border", "desc" => "Setup the border of the navigation bar.", "id" => "suf_navt_skin_settings_visited_border", "parent" => "navt-skin-settings", "type" => "border", "options" => array(), "std" => array('top' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'right' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'bottom' => array('colortype' => 'custom', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 1, 'border-width-type' => 'px'), 'left' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'))), array("name" => "Navigation Menu Items: Visited Font", "desc" => "Setup the font for the visited menu items.", "id" => "suf_navt_skin_settings_visited_font", "parent" => "navt-skin-settings", "type" => "font", "options" => array(), "std" => array("color" => "#444444", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "14", "font-size-type" => "px")), array("name" => "Navigation Menu Items: Highlighted", "desc" => "This is the background of a navigation menu item upon highlighting.", "id" => "suf_navt_skin_settings_hl", "parent" => "navt-skin-settings", "type" => "background", "options" => array(), "std" => array("color" => '#ffffff', "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Navigation Menu Items: Highlighted Border", "desc" => "Setup the border of the navigation bar.", "id" => "suf_navt_skin_settings_hl_border", "parent" => "navt-skin-settings", "type" => "border", "options" => array(), "std" => array('top' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'right' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'bottom' => array('colortype' => 'custom', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 1, 'border-width-type' => 'px'), 'left' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'))), array("name" => "Navigation Menu Items: Highlighted Font", "desc" => "Setup the font for the menu items upon highlighting.", "id" => "suf_navt_skin_settings_hl_font", "parent" => "navt-skin-settings", "type" => "font", "options" => array(), "std" => array("color" => "#444444", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "14", "font-size-type" => "px")), array("name" => "Header", "type" => "sub-section-3", "category" => "header-styles", "parent" => "skinning"), array("name" => "Default styles or custom styles for header?", "desc" => "You can decide to go with the colors / text styles of the theme you are using for the header, or choose your own. " . "If you choose default colors / text styles here then the rest of your settings in this section will be ignored. " . "If you choose custom styles then the settings you make here will override the theme's settings.", "id" => "suf_header_style_setting", "parent" => "header-styles", "type" => "radio", "note" => "Please set this option to \"Custom styles\" if you want to override the theme's settings for the header.", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Header Background Image Type", "desc" => "You can set an image to use for the header. You can either use a predefined image or a custom gradient or nothing at all.", "id" => "suf_header_image_type", "parent" => "header-styles", "type" => "radio", "options" => array("image" => "Use a predefined image", "gradient" => "Use a custom gradient", "rot-image" => "Use a rotating set of images from a folder", "none" => "No image"), "std" => "image"), array("name" => "Header Background Image", "desc" => "Set the image to use for the header background. If this makes the header text unreadble you can try changing the header color. " . "If you have chosen default styles above or a gradient then this setting will be ignored.", "id" => "suf_header_background_image", "parent" => "header-styles", "type" => "upload", "hint" => "Enter the full URL here (including http://), or click on \"Upload Image\"", "std" => ""), array("name" => "Header Background Image Tiling", "desc" => "Set how the predefined header background image should be tiled. This will define how the image will repeat on the background. " . "If you have chosen default styles above or not selected a background image then this setting will be ignored.", "id" => "suf_header_background_repeat", "parent" => "header-styles", "type" => "radio", "options" => array("repeat" => "Repeat both horizontally and vertically", "repeat-x" => "Repeat horizontally only", "repeat-y" => "Repeat vertically only", "no-repeat" => "Do not repeat - show background once only"), "std" => "repeat"), array("name" => "Header Background Image Position", "desc" => "Set the position of the predefined header background image. " . "If you have chosen default styles above or not selected a background image then this setting will be ignored.", "id" => "suf_header_background_position", "parent" => "header-styles", "type" => "radio", "options" => array("top left" => "Top left", "top center" => "Top center", "top right" => "Top right", "center left" => "Center left", "center center" => "Middle of the page", "center right" => "Center right", "bottom left" => "Bottom left", "bottom center" => "Bottom center", "bottom right" => "Bottom right"), "std" => "top left"), array("name" => "Folder for Rotating Header background", "desc" => "Set the folder for rotating header images. If you are not using a rotating header image you can ignore this.", "id" => "suf_header_background_rot_folder", "parent" => "header-styles", "type" => "text", "hint" => "Enter the path to a folder under " . WP_CONTENT_DIR, "std" => ""), array("name" => "Header Background Gradient Style", "desc" => "Choose the style to use for the header gradient. This will be used only if the \"Header Image Type\" is set to \"Use a custom gradient\" and you have custom styles picked.", "id" => "suf_header_gradient_style", "parent" => "header-styles", "type" => "radio", "options" => array("top-down" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/gradient-t2d.jpg' alt='Top to Bottom'/><br /><p>Top to Bottom</p></div>", "down-top" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/gradient-d2t.jpg' alt='Bottom to Top'/><br /><p>Bottom to Top</p></div>", "left-right" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/gradient-l2r.jpg' alt='Left to Right'/><br /><p>Left to Right</p></div>", "right-left" => "<div class='picture'><img src='" . get_template_directory_uri() . "/admin/images/gradient-r2l.jpg' alt='Right to Left'/><br /><p>Right to Left</p></div>"), "std" => "top-down"), array("name" => "Header Background Gradient Start Color", "desc" => "Set the starting color for the gradient. The gradient goes from the Start color to the End color. " . "This will be used only if the \"Header Image Type\" is set to \"Use a custom gradient\" and you have custom styles picked. ", "id" => "suf_header_gradient_start_color", "parent" => "header-styles", "type" => "color-picker", "std" => "FFFFFF"), array("name" => "Header Background Gradient End Color", "desc" => "Set the ending color for the gradient. The gradient goes from the Start color to the End color. " . "This will be used only if the \"Header Image Type\" is set to \"Use a custom gradient\" and you have custom styles picked. ", "id" => "suf_header_gradient_end_color", "parent" => "header-styles", "type" => "color-picker", "std" => "000000"), array("name" => "Header Foreground Image Type", "desc" => "You might want to use a logo or simply have text in your header:", "id" => "suf_header_fg_image_type", "parent" => "header-styles", "type" => "radio", "options" => array("image" => "Use a predefined image or logo", "text" => "Use text"), "std" => "text"), array("name" => "Header Foreground Image", "desc" => "Set the image to use for the header. This could be a logo or a stylized header using your own fonts and graphics. " . "If you have chosen default styles above or a text header then this setting will be ignored.", "id" => "suf_header_fg_image", "parent" => "header-styles", "type" => "upload", "hint" => "Enter the full URL here (including http://), or click on \"Upload Image\"", "std" => ""), array("name" => "Blog Title / Header Color", "desc" => "Set the color of the blog title / header. You can leave the default values in if you don't have a header image. " . "You may need to tweak the colors in case of you have a header background, so that the header can be seen. " . "If you have choose to hide your header (in the layout section) then this setting will be ignored.", "id" => "suf_blog_title_color", "parent" => "header-styles", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_blog_title_color", $suffusion_theme_name)), array("name" => "Blog Title / Header Decoration", "desc" => "Set the effects of the blog title / header. " . "If you have choose to hide your header (in the layout section) then this setting will be ignored.", "id" => "suf_blog_title_style", "parent" => "header-styles", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "none"), array("name" => "Blog Title / Header Hover Color", "desc" => "Set the color of the blog title / header when you hover over it. You can leave the default values in if you don't have a header image. " . "You may need to tweak the colors in case of you have a header background, so that the header can be seen. " . "If you have choose to hide your header (in the layout section) then this setting will be ignored.", "id" => "suf_blog_title_hover_color", "parent" => "header-styles", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_blog_title_hover_color", $suffusion_theme_name)), array("name" => "Blog Title / Header Hover Decoration", "desc" => "Set the effects to show when you hover over the blog title / header. " . "If you have choose to hide your header (in the layout section) then this setting will be ignored.", "id" => "suf_blog_title_hover_style", "parent" => "header-styles", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "none"), array("name" => "Blog Description / Sub-header Color", "desc" => "Set the color of the blog description / sub-header. You can leave the default values in if you don't have a header image or a header background. " . "You may need to tweak the colors in case of you have a header background, so that the header can be seen. " . "If you have choose to hide your header (in the layout section) then this setting will be ignored.", "id" => "suf_blog_description_color", "parent" => "header-styles", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_blog_description_color", $suffusion_theme_name)), array("name" => "Empty Space Between Top of Page and Header", "desc" => "There is a gap of 20px between the top of the page and the header. You can change it here. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_wrapper_margin", "parent" => "header-styles", "type" => "text", "hint" => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.", "std" => "20"), array("name" => "Minimum Height of the Header image", "desc" => "The minimum header is 55px high by default. You can change this setting if you have a header image needs to fit.\r\n\t\t\tNote that both above and below the header is 15px of padding, making the effective minimum height of the header 85px.", "id" => "suf_header_height", "parent" => "header-styles", "type" => "text", "hint" => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.", "std" => "55"), array("name" => "Navigation Bar Below Header", "desc" => "Control the settings for the Navigation Bar Below Header", "category" => "nav-skin-settings", "parent" => "skinning", "type" => "sub-section-3"), array("name" => "Default or custom?", "id" => "suf_nav_skin_def_cust", "type" => "radio", "parent" => "nav-skin-settings", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Navigation Bar Background", "desc" => "Setup the background of the navigation bar.", "id" => "suf_nav_skin_settings_bg", "parent" => "nav-skin-settings", "type" => "background", "options" => array(), "std" => array("color" => '#ffffff', "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Navigation Bar Border", "desc" => "Setup the border of the navigation bar.", "id" => "suf_nav_skin_settings_bg_border", "parent" => "nav-skin-settings", "type" => "border", "options" => array(), "std" => array('top' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'right' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'bottom' => array('colortype' => 'custom', 'color' => '#ffffff', 'style' => 'none', 'border-width' => 1, 'border-width-type' => 'px'), 'left' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'))), array("name" => "Navigation Bar Background Font", "desc" => "Setup the font for the navigation bar background.", "id" => "suf_nav_skin_settings_bg_font", "parent" => "nav-skin-settings", "type" => "font", "options" => array(), "std" => array("color" => "#444444", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "14", "font-size-type" => "px")), array("name" => "Navigation Menu Items", "desc" => "Setup the background of the navigation menu items in your page. This is the default background of the navigation menu items.", "id" => "suf_nav_skin_settings", "parent" => "nav-skin-settings", "type" => "background", "options" => array(), "std" => array("color" => '#ffffff', "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Navigation Menu Items Border", "desc" => "Setup the border of the navigation bar.", "id" => "suf_nav_skin_settings_border", "parent" => "nav-skin-settings", "type" => "border", "options" => array(), "std" => array('top' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'right' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'bottom' => array('colortype' => 'custom', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 1, 'border-width-type' => 'px'), 'left' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'))), array("name" => "Navigation Menu Items Font", "desc" => "Setup the font for the menu items.", "id" => "suf_nav_skin_settings_font", "parent" => "nav-skin-settings", "type" => "font", "options" => array(), "std" => array("color" => "#444444", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "14", "font-size-type" => "px")), array("name" => "Navigation Menu Items: Hover", "desc" => "This is the background of a navigation menu item upon hover.", "id" => "suf_nav_skin_settings_hover", "parent" => "nav-skin-settings", "type" => "background", "options" => array(), "std" => array("color" => '#ffffff', "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Navigation Menu Items: Hover Border", "desc" => "Setup the border of the navigation bar.", "id" => "suf_nav_skin_settings_hover_border", "parent" => "nav-skin-settings", "type" => "border", "options" => array(), "std" => array('top' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'right' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'bottom' => array('colortype' => 'custom', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 1, 'border-width-type' => 'px'), 'left' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'))), array("name" => "Navigation Menu Items: Hover Font", "desc" => "Setup the font for the menu items upon hover.", "id" => "suf_nav_skin_settings_hover_font", "parent" => "nav-skin-settings", "type" => "font", "options" => array(), "std" => array("color" => "#444444", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "14", "font-size-type" => "px")), array("name" => "Navigation Menu Items: Visited", "desc" => "This is the background of a visited item in the navigation menu.", "id" => "suf_nav_skin_settings_visited", "parent" => "nav-skin-settings", "type" => "background", "options" => array(), "std" => array("color" => '#ffffff', "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Navigation Menu Items: Visited Border", "desc" => "Setup the border of the navigation bar.", "id" => "suf_nav_skin_settings_visited_border", "parent" => "nav-skin-settings", "type" => "border", "options" => array(), "std" => array('top' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'right' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'bottom' => array('colortype' => 'custom', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 1, 'border-width-type' => 'px'), 'left' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'))), array("name" => "Navigation Menu Items: Visited Font", "desc" => "Setup the font for the visited menu items.", "id" => "suf_nav_skin_settings_visited_font", "parent" => "nav-skin-settings", "type" => "font", "options" => array(), "std" => array("color" => "#444444", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "14", "font-size-type" => "px")), array("name" => "Navigation Menu Items: Highlighted", "desc" => "This is the background of a navigation menu item upon highlighting.", "id" => "suf_nav_skin_settings_hl", "parent" => "nav-skin-settings", "type" => "background", "options" => array(), "std" => array("color" => '#ffffff', "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Navigation Menu Items: Highlighted Border", "desc" => "Setup the border of the navigation bar.", "id" => "suf_nav_skin_settings_hl_border", "parent" => "nav-skin-settings", "type" => "border", "options" => array(), "std" => array('top' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'right' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'), 'bottom' => array('colortype' => 'custom', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 1, 'border-width-type' => 'px'), 'left' => array('colortype' => 'transparent', 'color' => '#cccccc', 'style' => 'none', 'border-width' => 0, 'border-width-type' => 'px'))), array("name" => "Navigation Menu Items: Highlighted Font", "desc" => "Setup the font for the menu items upon highlighting.", "id" => "suf_nav_skin_settings_hl_font", "parent" => "nav-skin-settings", "type" => "font", "options" => array(), "std" => array("color" => "#444444", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "14", "font-size-type" => "px")), array("name" => "Body Background", "desc" => "Control the settings for the background of the main body.", "category" => "body-bg-settings", "parent" => "skinning", "type" => "sub-section-3"), array("name" => "Default or custom backgrounds for main body?", "desc" => "<b> If you are using WP's native background features, this section will be completely ignored.</b> You can decide to go with the colors / text styles of the theme you are using, or choose your own. " . "If you choose default colors / text styles here then the rest of your settings in this section will be ignored. " . "If you choose custom styles then the settings you make here will override the theme's settings.", "id" => "suf_body_style_setting", "parent" => "body-bg-settings", "note" => "Please set this option to \"Custom styles\" if you want to override the theme's settings for the body.", "type" => "radio", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Body Background Color", "desc" => "Set the color of the background on which the page is. " . "Note that you can have a dark theme on a white background - the colors of the main content window are unaffected by this. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_body_background_color", "parent" => "body-bg-settings", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_body_background_color", $suffusion_theme_name)), array("name" => "Body Background Image", "desc" => "Set the image to use for the background. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_body_background_image", "parent" => "body-bg-settings", "type" => "upload", "hint" => "Enter the full URL here (including http://), or click on \"Upload Image\"", "std" => ""), array("name" => "Body Background Image Tiling", "desc" => "Set how the background image should be tiled. This will define how the image will repeat on the background. " . "If you have chosen default styles above or not selected a background image then this setting will be ignored.", "id" => "suf_body_background_repeat", "parent" => "body-bg-settings", "type" => "radio", "options" => array("repeat" => "Repeat both horizontally and vertically", "repeat-x" => "Repeat horizontally only", "repeat-y" => "Repeat vertically only", "no-repeat" => "Do not repeat - show background once only"), "std" => "repeat"), array("name" => "Background Image Scrolling", "desc" => "You can define your background image to either scroll with the rest of your content or stay fixed. " . "If you have chosen default styles above or not selected a background image then this setting will be ignored.", "id" => "suf_body_background_attachment", "parent" => "body-bg-settings", "type" => "radio", "options" => array("scroll" => "Let the background scroll with the rest of the page", "fixed" => "Keep the background fixed"), "std" => "scroll"), array("name" => "Background Image Position", "desc" => "Set the position of the background image. " . "If you have chosen default styles above or not selected a background image then this setting will be ignored.", "id" => "suf_body_background_position", "parent" => "body-bg-settings", "type" => "radio", "options" => array("top left" => "Top left", "top center" => "Top center", "top right" => "Top right", "center left" => "Center left", "center center" => "Middle of the page", "center right" => "Center right", "bottom left" => "Bottom left", "bottom center" => "Bottom center", "bottom right" => "Bottom right"), "std" => "top left"), array("name" => "Main Wrapper", "desc" => "Control the settings for the wrapper of the main content", "category" => "wrapper-bg-settings", "parent" => "skinning", "type" => "sub-section-3"), array("name" => "Default or custom?", "id" => "suf_wrapper_settings_def_cust", "type" => "radio", "parent" => "wrapper-bg-settings", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Main Wrapper Background", "desc" => "Setup the background of the main container in your page. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_wrapper_bg_settings", "parent" => "wrapper-bg-settings", "type" => "background", "options" => array(), "std" => array("color" => suffusion_evaluate_style("suf_wrapper_background_color", $suffusion_theme_name), "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Show Shadows", "desc" => "You can choose to drop a shadow for your page. Shadows look cool on light backgrounds and not so much on dark backgrounds.", "id" => "suf_show_shadows", "parent" => "wrapper-bg-settings", "type" => "radio", "options" => array("hide" => "Don't show a shadow", "show" => "Show shadow of the main window"), "std" => "hide"), array("name" => "Post Background", "desc" => "Control the settings for the post background", "category" => "post-bg-settings", "parent" => "skinning", "type" => "sub-section-3"), array("name" => "Default or custom?", "id" => "suf_post_bg_settings_def_cust", "type" => "radio", "parent" => "post-bg-settings", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Post Background", "desc" => "Setup the background of the post. If you have chosen default styles above then this setting will be ignored.", "id" => "suf_post_bg_settings", "parent" => "post-bg-settings", "type" => "background", "options" => array(), "std" => array("color" => suffusion_evaluate_style("suf_post_background_color", $suffusion_theme_name), "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "custom")), array("name" => "Date Box", "desc" => "Control the settings for the date box on posts", "category" => "date-box-settings", "parent" => "skinning", "type" => "sub-section-3"), array("name" => "Hide date box?", "id" => "suf_date_box_show", "desc" => "If you don't want to show the date box on posts you can choose to hide it", "type" => "radio", "parent" => "date-box-settings", "options" => array("theme" => "Theme Default", "show" => "Show", "hide" => "Hide", "hide-search" => "Hide on search results. This is useful if your search returns a mix of pages and posts, because it makes the results look consistent (pages don't have a date box)"), "std" => "theme"), array("name" => "Default or custom?", "id" => "suf_date_box_settings_def_cust", "type" => "radio", "parent" => "date-box-settings", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Date Box", "desc" => "Setup the background of the date box. If you have chosen default styles above then this setting will be ignored. If you are setting your own image, make sure it is 48x48 px in size.", "id" => "suf_date_box_settings", "parent" => "date-box-settings", "type" => "background", "options" => array(), "std" => array("color" => "#FFFFFF", "image" => "", "trans" => "0", "position" => "top left", "repeat" => "repeat", "attachment" => "scroll", "colortype" => "transparent")), array("name" => "Month Font", "desc" => "Setup the font for the month to be displayed.", "id" => "suf_date_box_mfont", "parent" => "date-box-settings", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "50", "font-size-type" => "%")), array("name" => "Date Font", "desc" => "Setup the font for the date to be displayed.", "id" => "suf_date_box_dfont", "parent" => "date-box-settings", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "100", "font-size-type" => "%")), array("name" => "Year Font", "desc" => "Setup the font for the year to be displayed.", "id" => "suf_date_box_yfont", "parent" => "date-box-settings", "type" => "font", "options" => array(), "std" => array("color" => "#FFFFFF", "font-face" => "Arial, Helvetica, sans-serif", "font-weight" => "normal", "font-style" => "normal", "font-variant" => "normal", "font-size" => "50", "font-size-type" => "%")), array("name" => "Custom Emphasis Elements", "type" => "sub-section-3", "category" => "emphasis-setup", "parent" => "skinning"), array("name" => "Custom elements to enhance page appearance", "desc" => "Suffusion comes with predefined elements that you can use for emphasizing sections of your blog. There are four types defined\r\n\t\t\t\t<ul class='margin-20'>\r\n\t\t\t\t\t<li>Download - class='download'</li>\r\n\t\t\t\t\t<li>Announcement - class='announcement'</li>\r\n\t\t\t\t\t<li>Note - class='note'</li>\r\n\t\t\t\t\t<li>Warning - class='warning'</li>\r\n\t\t\t\t</ul>\r\n\t\t\t\tTo use any of these elements you can enclose text on your blog within &lt;p&gt; and &lt;/p&gt; tags or &lt;div&gt; and &lt;/div&gt; tags with the class name:\r\n\r\n\t\t\t\t<ul class='margin-20'>\r\n\t\t\t\t\t<li>&lt;p class='download'&gt; Some stuff to download &lt;/p&gt; or &lt;div class='download'&gt;Some other stuff to download&lt;/div&gt;</li>\r\n\t\t\t\t\t<li>&lt;p class='announcement'&gt; Some announcements &lt;/p&gt; or &lt;div class='announcement'&gt;Some more announcements&lt;/div&gt;</li>\r\n\t\t\t\t\t<li>&lt;p class='note'&gt; Notes &lt;/p&gt; or &lt;div class='announcement'&gt;More notes&lt;/div&gt;</li>\r\n\t\t\t\t\t<li>&lt;p class='warning'&gt; Warnings &lt;/p&gt; or &lt;div class='warning'&gt;Other warnings&lt;/div&gt;</li>\r\n\t\t\t\t</ul>", "parent" => "emphasis-setup", "type" => "blurb"), array("name" => "Default styles for emphasis elements?", "desc" => "You can decide to go with the emphasis styles defined with the theme or pick your own. " . "If you choose custom styles then the settings you make here will override the theme's settings.", "id" => "suf_emphasis_customization", "parent" => "emphasis-setup", "type" => "radio", "note" => "Please set this option to \"Custom styles\" if you want to override the theme's settings for the emphasis elements.", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Download", "desc" => "Change setting for the download class", "category" => "emphasis-download", "parent" => "emphasis-setup", "type" => "sub-section-4"), array("name" => "Download Block Font Color", "desc" => "Set the font color for text within a \"download\" block. ", "id" => "suf_download_font_color", "parent" => "emphasis-setup", "grouping" => "emphasis-download", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_download_font_color", $suffusion_theme_name)), array("name" => "Download Block Background Color", "desc" => "Set the background color for a \"download\" block. ", "id" => "suf_download_background_color", "parent" => "emphasis-setup", "grouping" => "emphasis-download", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_download_background_color", $suffusion_theme_name)), array("name" => "Download Block Border Color", "desc" => "Set the border color for a \"download\" block. ", "id" => "suf_download_border_color", "parent" => "emphasis-setup", "grouping" => "emphasis-download", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_download_border_color", $suffusion_theme_name)), array("name" => "Announcement", "desc" => "Change setting for the announcement class", "category" => "emphasis-announcement", "parent" => "emphasis-setup", "type" => "sub-section-4"), array("name" => "Announcement Block Font Color", "desc" => "Set the font color for text within a \"announcement\" block. ", "id" => "suf_announcement_font_color", "parent" => "emphasis-setup", "grouping" => "emphasis-announcement", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_announcement_font_color", $suffusion_theme_name)), array("name" => "Announcement Block Background Color", "desc" => "Set the background color for a \"announcement\" block. ", "id" => "suf_announcement_background_color", "parent" => "emphasis-setup", "grouping" => "emphasis-announcement", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_announcement_background_color", $suffusion_theme_name)), array("name" => "Announcement Block Border Color", "desc" => "Set the border color for a \"announcement\" block. ", "id" => "suf_announcement_border_color", "parent" => "emphasis-setup", "grouping" => "emphasis-announcement", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_announcement_border_color", $suffusion_theme_name)), array("name" => "Note", "desc" => "Change setting for the note class", "category" => "emphasis-note", "parent" => "emphasis-setup", "type" => "sub-section-4"), array("name" => "Note Block Font Color", "desc" => "Set the font color for text within a \"note\" block. ", "id" => "suf_note_font_color", "parent" => "emphasis-setup", "grouping" => "emphasis-note", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_note_font_color", $suffusion_theme_name)), array("name" => "Note Block Background Color", "desc" => "Set the background color for a \"note\" block. ", "id" => "suf_note_background_color", "parent" => "emphasis-setup", "grouping" => "emphasis-note", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_note_background_color", $suffusion_theme_name)), array("name" => "Note Block Border Color", "desc" => "Set the border color for a \"note\" block. ", "id" => "suf_note_border_color", "parent" => "emphasis-setup", "grouping" => "emphasis-note", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_note_border_color", $suffusion_theme_name)), array("name" => "Warning", "desc" => "Change setting for the warning class", "category" => "emphasis-warning", "parent" => "emphasis-setup", "type" => "sub-section-4"), array("name" => "Warning Block Font Color", "desc" => "Set the font color for text within a \"warning\" block. ", "id" => "suf_warning_font_color", "parent" => "emphasis-setup", "grouping" => "emphasis-warning", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_warning_font_color", $suffusion_theme_name)), array("name" => "Warning Block Background Color", "desc" => "Set the background color for a \"warning\" block. ", "id" => "suf_warning_background_color", "parent" => "emphasis-setup", "grouping" => "emphasis-warning", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_warning_background_color", $suffusion_theme_name)), array("name" => "Warning Block Border Color", "desc" => "Set the border color for a \"warning\" block. ", "id" => "suf_warning_border_color", "parent" => "emphasis-setup", "grouping" => "emphasis-warning", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_warning_border_color", $suffusion_theme_name)));
<?php

/**
 * Lists out all the options from the Sidebar Configuration Section of the theme options
 * This file is included in functions.php
 *
 * @package Suffusion
 * @subpackage Admin
 */
global $suffusion_theme_name, $suffusion_sidebar_tabs;
$suffusion_sidebars_and_widgets_options = array(array("name" => "Sidebars", "type" => "sub-section-2", "category" => "sidebar-setup", "parent" => "root"), array("name" => "Sidebar Layout", "type" => "sub-section-3", "category" => "sidebar-layout", "parent" => "sidebar-setup"), array("name" => "Sidebar Layout", "desc" => "Suffusion comes with eight widget areas where you can add widgets. You may choose to not use some of these widget areas depending on your requirements.\n\t\t\t\tBy default Sidebar 1 and Right Header Widgets are enabled.<br />\n\t\t\t\t<div class='central-image'><img src='" . get_template_directory_uri() . "/admin/images/widgets.jpg' alt='Widgets'/></div>\n\t\t\t\tIn addition you have a set of <strong>ad-hoc widget</strong> areas that can be invoked in your posts/pages using the short code [suffusion-widgets id='x']\n\t\t\t\twhere x is a number from 1 to 5.<br />\n\t\t\t\tThere is also a <strong>Static Tabbed Sidebar</strong> which comes bundled with pre-defined widgets. You can display that on the left or right.", "parent" => "sidebar-layout", "type" => "blurb"), array("name" => "Use JQuery Masonry?", "desc" => "You can use JQuery Masonry to adjust the layout of the widget areas in the header and footer. Play with this setting if you don't like how your widgets are displaying.", "id" => "suf_jq_masonry_enabled", "parent" => "sidebar-layout", "type" => "radio", "options" => array("enabled" => "Enabled", "disabled" => "Disabled"), "std" => "disabled"), array("name" => "Top Bar Right Widgets", "category" => "sidebar-setup-tbrh", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Style of \"Top Bar Right Widgets\" widget area", "desc" => "The \"Top Bar Right Widgets\" can either be constrained to a small area or be expanded as a sliding panel:", "id" => "suf_wa_tbrh_style", "parent" => "sidebar-setup-tbrh", "type" => "radio", "options" => array("tiny" => "Show widgets in a tiny widget area", "sliding-panel" => "Show widgets in a sliding panel, unstyled", "spanel-flat" => "Show widgets in a sliding panel, flat", "spanel-boxed" => "Show widgets in a sliding panel, boxed"), "std" => "tiny"), array("name" => "Title styling of widgets in \"Top Bar Right Widgets\" area", "desc" => "If you are displaying widgets in a sliding panel, boxed, you can choose a plain style for the titles of the widgets above the footer or something that goes with the color scheme.", "id" => "suf_header_for_trbh", "parent" => "sidebar-setup-tbrh", "type" => "radio", "options" => array("plain" => "Plain title with lower border (unstyled - white for the light themes and black for the dark themes) - Default", "plain-borderless" => "Plain title without lower border (unstyled - white for the light themes and black for the dark themes)", "scheme" => "Theme-based title (green, gray, blue, red, orange or purple, depending on the selected theme)"), "std" => "plain"), array("name" => "Sliding Panel \"Open\" text", "desc" => "What do you want the sliding panel button to say for opening the panel?", "id" => "suf_wa_tbrh_open_text", "parent" => "sidebar-setup-tbrh", "type" => "text", "std" => "Open"), array("name" => "Sliding Panel \"Close\" text", "desc" => "What do you want the sliding panel button to say for opening the panel?", "id" => "suf_wa_tbrh_close_text", "parent" => "sidebar-setup-tbrh", "type" => "text", "std" => "Close"), array("name" => "Columns in \"Top Bar Right Widgets\"", "desc" => "How many columns of widgets do you want in this widget area? This is applicable only if this particular widget area is a sliding panel.", "id" => "suf_wa_tbrh_columns", "parent" => "sidebar-setup-tbrh", "type" => "select", "options" => array("1" => "1 (One) Column", "2" => "2 (Two) Columns", "3" => "3 (Three) Columns", "4" => "4 (Four) Columns", "5" => "5 (Five) Columns"), "std" => "3"), array("name" => "Sliding Panel skinning", "desc" => "Override skinning CSS of the skin stylesheet, if applicable", "id" => "suf_wa_tbrh_override_theme", "parent" => "sidebar-setup-tbrh", "type" => "checkbox", "std" => ""), array("name" => "Sliding Panel Color", "desc" => "Set the color of the sliding panel", "id" => "suf_wa_tbrh_panel_color", "parent" => "sidebar-setup-tbrh", "type" => "color-picker", "std" => '#040D0F'), array("name" => "Sliding Panel Border", "desc" => "Set the color of the sliding panel's border", "id" => "suf_wa_tbrh_panel_border_color", "parent" => "sidebar-setup-tbrh", "type" => "color-picker", "std" => '#222222'), array("name" => "Sliding Panel Font Color", "desc" => "Set the color of the sliding panel's text", "id" => "suf_wa_tbrh_panel_font_color", "parent" => "sidebar-setup-tbrh", "type" => "color-picker", "std" => '#AAAAAA'), array("name" => "Widgets Above Header", "desc" => "Control the settings of the widget area above header", "category" => "sidebar-setup-wah", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Columns in Widgets Above Header", "desc" => "How many columns of widgets do you want in this widget area? For banner ads etc you might want to leave it at one.", "id" => "suf_wah_columns", "parent" => "sidebar-setup-wah", "type" => "select", "options" => array("1" => "1 (One) Column", "2" => "2 (Two) Columns", "3" => "3 (Three) Columns", "4" => "4 (Four) Columns", "5" => "5 (Five) Columns"), "std" => "1"), array("name" => "Layout Style for widget area", "desc" => "You can choose different layout widths - full width or page width:", "id" => "suf_wah_layout_style", "parent" => "sidebar-setup-wah", "type" => "radio", "options" => array("full-full" => "Widget area is as wide as your browser window and its contents are aligned with your browser window", "full-align" => "Widget area is as wide as your browser window and its contents are aligned with your main contents", "align" => "Widget area and its contents are aligned with your main contents"), "std" => "full-align"), array("name" => "Widgets In Header", "desc" => "Control the settings of the widget area in header", "category" => "sidebar-setup-wih", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Columns in Widgets in Header", "desc" => "How many columns of widgets do you want in this widget area? For banner ads etc you might want to leave it at one. If you are removing the sidebars then you might want to set a value like 3 or 4.", "id" => "suf_wih_columns", "parent" => "sidebar-setup-wih", "type" => "select", "options" => array("1" => "1 (One) Column", "2" => "2 (Two) Columns", "3" => "3 (Three) Columns", "4" => "4 (Four) Columns", "5" => "5 (Five) Columns"), "std" => "1"), array("name" => "Width of Widget Area in Header", "desc" => "Please enter the width in pixels. <b>Do not enter px.</b>", "id" => "suf_wih_width", "parent" => "sidebar-setup-wih", "type" => "text", "hint" => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored. Incompatible values will be treated as 300", "std" => "300"), array("name" => "Right Header Widgets", "desc" => "Control the settings of the Right Header Widgets", "category" => "sidebar-setup-rhw", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Show Search in Widget Area on right side of header", "desc" => "By default the search field is shown in the navigation bar. If you prefer having the search in your sidebar instead, you can disable this.\n\t\t\t\tNote that even if you choose to hide the search field here, if you add a search widget through the widget administration to this widget area.\n\t\t\t\tThis option has been left in for backward compatibility.", "id" => "suf_show_search", "parent" => "sidebar-setup-rhw", "type" => "radio", "options" => array("show" => "Show search with navigation", "hide" => "Hide the search (You can add a widget for the Search, if you wish)"), "std" => "show"), array("name" => "Sidebar 1", "desc" => "Control the settings of your first sidebar", "category" => "sidebar-setup-sidebar-1", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Style of first sidebar", "desc" => "Your sidebar can have widgets displayed in individual boxes or as a flattened list of widgets. Having widgets as boxes lets you use drag and drop.", "id" => "suf_wa_sb1_style", "parent" => "sidebar-setup-sidebar-1", "type" => "radio", "options" => array("boxed" => "Show widgets in individual boxes", "flattened" => "Flatten the sidebar (no boxes for individual widgets)", "tabbed" => "Tabbed Sidebar (Needs ALL your widgets in this sidebar to have a title! Some third party widgets don't use the standard WP way of writing widgets. They will not work!)"), "std" => "boxed"), array("name" => "Default widgets for first sidebar", "desc" => "If you have not added any widgets to the first sidebar in the widget administration section of your control panel and your sidebar is not tabbed, Suffusion shows a set of default widgets. You can disable this if you please: ", "id" => "suf_sidebar_1_def_widgets", "parent" => "sidebar-setup-sidebar-1", "type" => "radio", "options" => array("show" => "Show default widgets if nothing is added in the widget control panel", "hide" => "Hide default widgets if nothing is added in the widget control panel"), "std" => "show"), array("name" => "Drag-and-Drop for First Sidebar", "desc" => "By default drag-and-drop is enabled for the widgets in the first sidebar. You can turn it off, if you please.", "id" => "suf_sidebar_1_dnd", "parent" => "sidebar-setup-sidebar-1", "type" => "radio", "options" => array("enabled" => "Enable drag-and-drop", "disabled" => "Disable drag-and-drop (this will also disable the collapsibility of the widgets)"), "std" => "disabled"), array("name" => "Expand / Collapse for First Sidebar Widgets", "desc" => "By default expand/collapse is enabled for the widgets in the first sidebar. You can turn it off, if you please. " . "This setting is ignored if you have disabled drag-and-drop for the first sidebar.", "id" => "suf_sidebar_1_expcoll", "parent" => "sidebar-setup-sidebar-1", "type" => "radio", "options" => array("enabled" => "Enable expand / collapse", "disabled" => "Disable expand / collapse"), "std" => "enabled"), array("name" => "Sidebar Widgets Titles", "desc" => "You can choose a plain style for the headers of the sidebar widgets, or something that goes with the color scheme. Note that text widgets without a title will not display a header.", "id" => "suf_sidebar_header", "parent" => "sidebar-setup-sidebar-1", "type" => "radio", "options" => array("plain" => "Plain sidebar header with lower border (unstyled - white for the light themes and black for the dark themes)", "plain-borderless" => "Plain sidebar header without lower border (unstyled - white for the light themes and black for the dark themes)", "scheme" => "Theme-based sidebar header (green, gray, blue, red, orange or purple, depending on the selected theme)"), "std" => "plain"), array("name" => "Default or custom font styles for sidebar?", "desc" => "You can decide to go with the colors / text styles of the theme you are using, or choose your own. " . "If you choose default colors / text styles here then the subsequent settings in this section will be ignored. " . "If you choose custom styles then the settings you make here will override the theme's settings.", "id" => "suf_sb_font_style_setting", "parent" => "sidebar-setup-sidebar-1", "note" => "Please set this option to \"Custom styles\" if you want to override the theme's settings for the sidebar fonts.", "type" => "radio", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Sidebar Font Color", "desc" => "Set the color of the fonts being used. " . "Make sure that your font color goes well enough with the theme. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_sb_font_color", "parent" => "sidebar-setup-sidebar-1", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_sb_font_color", $suffusion_theme_name)), array("name" => "Sidebar Link Color", "desc" => "Set the color of the links in the sidebar. Font colors in the main content are unaffected. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_sb_link_color", "parent" => "sidebar-setup-sidebar-1", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_sb_link_color", $suffusion_theme_name)), array("name" => "Sidebar Link Decoration", "desc" => "Set the effects for the link text in the sidebar. If you have chosen default styles above then this setting will be ignored.", "id" => "suf_sb_link_style", "parent" => "sidebar-setup-sidebar-1", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "none"), array("name" => "Sidebar Visited Link Color", "desc" => "Set the color of the visited links in the sidebar. Font colors in the main content are unaffected. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_sb_visited_link_color", "parent" => "sidebar-setup-sidebar-1", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_sb_visited_link_color", $suffusion_theme_name)), array("name" => "Sidebar Visited Link Decoration", "desc" => "Set the effects for the visited link text. If you have chosen default styles above then this setting will be ignored.", "id" => "suf_sb_visited_link_style", "parent" => "sidebar-setup-sidebar-1", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "none"), array("name" => "Sidebar Link Hover Color", "desc" => "Set the color that the links should become when you hover over them in the sidebar. Font colors in the main content are unaffected. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_sb_link_hover_color", "parent" => "sidebar-setup-sidebar-1", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_sb_link_hover_color", $suffusion_theme_name)), array("name" => "Sidebar Link Hover Decoration", "desc" => "Set the effects for the link text on which you are hovering. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_sb_link_hover_style", "parent" => "sidebar-setup-sidebar-1", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "underline"), array("name" => "Sidebar 1 (Bottom)", "desc" => "Control the settings of your lower first sidebar", "category" => "sidebar-setup-sidebar-1-b", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Style of lower first sidebar", "desc" => "Your sidebar can have widgets displayed in individual boxes or as a flattened list of widgets. Having widgets as boxes lets you use drag and drop.", "id" => "suf_wa_sb1b_style", "parent" => "sidebar-setup-sidebar-1-b", "type" => "radio", "options" => array("boxed" => "Show widgets in individual boxes", "flattened" => "Flatten the sidebar (no boxes for individual widgets)", "tabbed" => "Tabbed Sidebar (Needs ALL your widgets in this sidebar to have a title! Some third party widgets don't use the standard WP way of writing widgets. They will not work!)"), "std" => "boxed"), array("name" => "Sidebar 2", "desc" => "Control the settings of your second sidebar", "category" => "sidebar-setup-sidebar-2", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Style of second sidebar", "desc" => "Your sidebar can have widgets displayed in individual boxes or as a flattened list of widgets. Having widgets as boxes lets you use drag and drop.", "id" => "suf_wa_sb2_style", "parent" => "sidebar-setup-sidebar-2", "type" => "radio", "options" => array("boxed" => "Show widgets in individual boxes", "flattened" => "Flatten the sidebar (no boxes for individual widgets)", "tabbed" => "Tabbed Sidebar (Needs ALL your widgets in this sidebar to have a title! Some third party widgets don't use the standard WP way of writing widgets. They will not work!)"), "std" => "boxed"), array("name" => "Drag-and-Drop for Second Sidebar", "desc" => "By default drag-and-drop is enabled for the second sidebar. You can turn it off, if you please. Note that this setting is ignored if you enable only one sidebar", "id" => "suf_sidebar_2_dnd", "parent" => "sidebar-setup-sidebar-2", "type" => "radio", "options" => array("enabled" => "Enable drag-and-drop", "disabled" => "Disable drag-and-drop (this will also disable the collapsibility of the widgets)"), "std" => "disabled"), array("name" => "Expand / Collapse for Second Sidebar Widgets", "desc" => "By default drag-and-drop is enabled for the widgets in the second sidebar. You can turn it off, if you please. " . "Note that this setting is ignored if you enable only one sidebar, or if you have disabled drag-and-drop for the second sidebar.", "id" => "suf_sidebar_2_expcoll", "parent" => "sidebar-setup-sidebar-2", "type" => "radio", "options" => array("enabled" => "Enable expand / collapse", "disabled" => "Disable expand / collapse"), "std" => "enabled"), array("name" => "Sidebar 2 (Bottom)", "desc" => "Control the settings of your lower second sidebar", "category" => "sidebar-setup-sidebar-2-b", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Style of lower second sidebar", "desc" => "Your sidebar can have widgets displayed in individual boxes or as a flattened list of widgets. Having widgets as boxes lets you use drag and drop.", "id" => "suf_wa_sb2b_style", "parent" => "sidebar-setup-sidebar-2-b", "type" => "radio", "options" => array("boxed" => "Show widgets in individual boxes", "flattened" => "Flatten the sidebar (no boxes for individual widgets)", "tabbed" => "Tabbed Sidebar (Needs ALL your widgets in this sidebar to have a title! Some third party widgets don't use the standard WP way of writing widgets. They will not work!)"), "std" => "boxed"), array("name" => "Wide Sidebar (Top)", "desc" => "Control the settings of your upper wide sidebar. This sidebar is only shown if both your sidebars are on the same side.", "category" => "sidebar-setup-wst", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Style of wide sidebar (Top)", "desc" => "Your sidebar can have widgets displayed in individual boxes or as a flattened list of widgets. Having widgets as boxes lets you use drag and drop.", "id" => "suf_wa_wst_style", "parent" => "sidebar-setup-wst", "type" => "radio", "options" => array("boxed" => "Show widgets in individual boxes", "flattened" => "Flatten the sidebar (no boxes for individual widgets)", "tabbed" => "Tabbed Sidebar (Needs ALL your widgets in this sidebar to have a title! Some third party widgets don't use the standard WP way of writing widgets. They will not work!)"), "std" => "boxed"), array("name" => "Wide Sidebar (Bottom)", "desc" => "Control the settings of your lower wide sidebar. This sidebar is only shown if both your sidebars are on the same side.", "category" => "sidebar-setup-wsb", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Style of wide sidebar (Bottom)", "desc" => "Your sidebar can have widgets displayed in individual boxes or as a flattened list of widgets. Having widgets as boxes lets you use drag and drop.", "id" => "suf_wa_wsb_style", "parent" => "sidebar-setup-wsb", "type" => "radio", "options" => array("boxed" => "Show widgets in individual boxes", "flattened" => "Flatten the sidebar (no boxes for individual widgets)", "tabbed" => "Tabbed Sidebar (Needs ALL your widgets in this sidebar to have a title! Some third party widgets don't use the standard WP way of writing widgets. They will not work!)"), "std" => "boxed"), array("name" => "Widget Area Below Header", "desc" => "Control the settings of the widget area below header", "category" => "sidebar-setup-wabh", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Enable Widget Area Below Header?", "desc" => "This widget area spans the width of the blog page and can be positioned just below the header. Do you want it enabled?\n\t\t\t\tYou can use this widget area for banner advertisements, if you wish. These widgets cannot be moved around in the manner that the sidebar widgets can.\n\t\t\t\tNote that even if you don't enable it you will see this in the widget administration menu.", "id" => "suf_widget_area_below_header_enabled", "parent" => "sidebar-setup-wabh", "type" => "radio", "options" => array("enabled" => "Enabled", "disabled" => "Disabled"), "std" => "disabled"), array("name" => "Columns in Widget Area Below Header", "desc" => "How many columns of widgets do you want in this widget area? For banner ads etc you might want to leave it at one. If you are removing the sidebars then you might want to set a value like 3 or 4.", "id" => "suf_widget_area_below_header_columns", "parent" => "sidebar-setup-wabh", "type" => "select", "options" => array("1" => "1 (One) Column", "2" => "2 (Two) Columns", "3" => "3 (Three) Columns", "4" => "4 (Four) Columns", "5" => "5 (Five) Columns"), "std" => "1"), array("name" => "Style of widget area below header", "desc" => "Your sidebar can have widgets displayed in individual boxes or as a flattened list of widgets. Having widgets as boxes lets you use drag and drop.", "id" => "suf_wa_wabh_style", "parent" => "sidebar-setup-wabh", "type" => "radio", "options" => array("boxed" => "Show widgets in individual boxes", "flattened" => "Flatten the sidebar (no boxes for individual widgets)"), "std" => "boxed"), array("name" => "Title styling for widgets below header", "desc" => "You can choose a plain style for the titles of the widgets below the header, or something that goes with the color scheme. Note that text widgets without a title will not be affected by this.", "id" => "suf_header_for_widgets_below_header", "parent" => "sidebar-setup-wabh", "type" => "radio", "options" => array("plain" => "Plain title with lower border (unstyled - white for the light themes and black for the dark themes) - Default", "plain-borderless" => "Plain title without lower border (unstyled - white for the light themes and black for the dark themes)", "scheme" => "Theme-based title (green, gray, blue, red, orange or purple, depending on the selected theme)"), "std" => "plain"), array("name" => "Default or custom font styles for widget area below header?", "desc" => "You can decide to go with the colors / text styles of the theme you are using, or choose your own. " . "If you choose default colors / text styles here then the subsequent settings in this section will be ignored. " . "If you choose custom styles then the settings you make here will override the theme's settings.", "id" => "suf_wabh_font_style_setting", "parent" => "sidebar-setup-wabh", "note" => "Please set this option to \"Custom styles\" if you want to override the theme's settings for the fonts in the widget area below the header.", "type" => "radio", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Font Color for Widget Area Below Header", "desc" => "Set the color of the fonts being used. " . "Make sure that your font color goes well enough with the theme. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_wabh_font_color", "parent" => "sidebar-setup-wabh", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_wabh_font_color", $suffusion_theme_name)), array("name" => "Link Color for Widget Area Below Header", "desc" => "Set the color of the links in the widgets. Font colors in the main content are unaffected. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_wabh_link_color", "parent" => "sidebar-setup-wabh", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_wabh_link_color", $suffusion_theme_name)), array("name" => "Link Decoration for Widget Area Below Header", "desc" => "Set the effects for the link text in the widgets. If you have chosen default styles above then this setting will be ignored.", "id" => "suf_wabh_link_style", "parent" => "sidebar-setup-wabh", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "none"), array("name" => "Visited Link Color for Widget Area Below Header", "desc" => "Set the color of the visited links in the widgets. Font colors in the main content are unaffected. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_wabh_visited_link_color", "parent" => "sidebar-setup-wabh", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_wabh_visited_link_color", $suffusion_theme_name)), array("name" => "Visited Link Decoration for Widget Area Below Header", "desc" => "Set the effects for the visited link text. If you have chosen default styles above then this setting will be ignored.", "id" => "suf_wabh_visited_link_style", "parent" => "sidebar-setup-wabh", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "none"), array("name" => "Link Hover Color for Widget Area Below Header", "desc" => "Set the color that the links should become when you hover over them in the widgets. Font colors in the main content are unaffected. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_wabh_link_hover_color", "parent" => "sidebar-setup-wabh", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_wabh_link_hover_color", $suffusion_theme_name)), array("name" => "Link Hover Decoration for Widget Area Below Header", "desc" => "Set the effects for the link text on which you are hovering. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_wabh_link_hover_style", "parent" => "sidebar-setup-wabh", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "underline"), array("name" => "Widget Area Above Footer", "desc" => "Control the settings of the widget area above footer", "category" => "sidebar-setup-waaf", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Enable Widget Area Above Footer?", "desc" => "This widget area spans the width of the blog page and can be positioned just above the footer. Do you want it enabled?\n\t\t\t\tNote that even if you don't enable it you will see this in the widget administration menu.", "id" => "suf_widget_area_above_footer_enabled", "parent" => "sidebar-setup-waaf", "type" => "radio", "options" => array("enabled" => "Enabled", "disabled" => "Disabled"), "std" => "disabled"), array("name" => "Columns in Widget Area Above Footer", "desc" => "How many columns of widgets do you want in this widget area? For banner ads etc you might want to leave it at one. If you are removing the sidebars then you might want to set a value like 3 or 4.", "id" => "suf_widget_area_above_footer_columns", "parent" => "sidebar-setup-waaf", "type" => "select", "options" => array("1" => "1 (One) Column", "2" => "2 (Two) Columns", "3" => "3 (Three) Columns", "4" => "4 (Four) Columns", "5" => "5 (Five) Columns"), "std" => "1"), array("name" => "Style of widget area above footer", "desc" => "Your sidebar can have widgets displayed in individual boxes or as a flattened list of widgets. Having widgets as boxes lets you use drag and drop.", "id" => "suf_wa_waaf_style", "parent" => "sidebar-setup-waaf", "type" => "radio", "options" => array("boxed" => "Show widgets in individual boxes", "flattened" => "Flatten the sidebar (no boxes for individual widgets)"), "std" => "boxed"), array("name" => "Title styling for widgets above footer", "desc" => "You can choose a plain style for the titles of the widgets above the footer, or something that goes with the color scheme. Note that text widgets without a title will not be affected by this.", "id" => "suf_header_for_widgets_above_footer", "parent" => "sidebar-setup-waaf", "type" => "radio", "options" => array("plain" => "Plain title with lower border (unstyled - white for the light themes and black for the dark themes) - Default", "plain-borderless" => "Plain title without lower border (unstyled - white for the light themes and black for the dark themes)", "scheme" => "Theme-based title (green, gray, blue, red, orange or purple, depending on the selected theme)"), "std" => "plain"), array("name" => "Default or custom font styles for widget area above footer?", "desc" => "You can decide to go with the colors / text styles of the theme you are using, or choose your own. " . "If you choose default colors / text styles here then the subsequent settings in this section will be ignored. " . "If you choose custom styles then the settings you make here will override the theme's settings.", "id" => "suf_waaf_font_style_setting", "parent" => "sidebar-setup-waaf", "note" => "Please set this option to \"Custom styles\" if you want to override the theme's settings for the widget area above the footer.", "type" => "radio", "options" => array("theme" => "Theme styles", "custom" => "Custom styles"), "std" => "theme"), array("name" => "Font Color for Widget Area Above Footer", "desc" => "Set the color of the fonts being used. " . "Make sure that your font color goes well enough with the theme. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_waaf_font_color", "parent" => "sidebar-setup-waaf", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_waaf_font_color", $suffusion_theme_name)), array("name" => "Link Color for Widget Area Above Footer", "desc" => "Set the color of the links in the widgets. Font colors in the main content are unaffected. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_waaf_link_color", "parent" => "sidebar-setup-waaf", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_waaf_link_color", $suffusion_theme_name)), array("name" => "Link Decoration for Widget Area Above Footer", "desc" => "Set the effects for the link text in the widgets. If you have chosen default styles above then this setting will be ignored.", "id" => "suf_waaf_link_style", "parent" => "sidebar-setup-waaf", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "none"), array("name" => "Visited Link Color for Widget Area Above Footer", "desc" => "Set the color of the visited links in the widgets. Font colors in the main content are unaffected. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_waaf_visited_link_color", "parent" => "sidebar-setup-waaf", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_waaf_visited_link_color", $suffusion_theme_name)), array("name" => "Visited Link Decoration for Widget Area Above Footer", "desc" => "Set the effects for the visited link text. If you have chosen default styles above then this setting will be ignored.", "id" => "suf_waaf_visited_link_style", "parent" => "sidebar-setup-waaf", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "none"), array("name" => "Link Hover Color for Widget Area Above Footer", "desc" => "Set the color that the links should become when you hover over them in the widgets. Font colors in the main content are unaffected. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_waaf_link_hover_color", "parent" => "sidebar-setup-waaf", "type" => "color-picker", "std" => suffusion_evaluate_style("suf_waaf_link_hover_color", $suffusion_theme_name)), array("name" => "Link Hover Decoration for Widget Area Above Footer", "desc" => "Set the effects for the link text on which you are hovering. " . "If you have chosen default styles above then this setting will be ignored.", "id" => "suf_waaf_link_hover_style", "parent" => "sidebar-setup-waaf", "type" => "radio", "options" => array("underline" => "Underlined", "none" => "None"), "std" => "underline"), array("name" => "Ad Hoc Widgets 1", "desc" => "Control the settings of Ad Hoc Widgets 1", "category" => "sidebar-setup-adhoc1", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Columns in Widget area", "desc" => "How many columns of widgets do you want in this widget area?", "id" => "suf_adhoc1_columns", "parent" => "sidebar-setup-adhoc1", "type" => "select", "options" => array("1" => "1 (One) Column", "2" => "2 (Two) Columns", "3" => "3 (Three) Columns", "4" => "4 (Four) Columns", "5" => "5 (Five) Columns"), "std" => "1"), array("name" => "Ad Hoc Widgets 2", "desc" => "Control the settings of Ad Hoc Widgets 2", "category" => "sidebar-setup-adhoc2", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Columns in Widget area", "desc" => "How many columns of widgets do you want in this widget area?", "id" => "suf_adhoc2_columns", "parent" => "sidebar-setup-adhoc2", "type" => "select", "options" => array("1" => "1 (One) Column", "2" => "2 (Two) Columns", "3" => "3 (Three) Columns", "4" => "4 (Four) Columns", "5" => "5 (Five) Columns"), "std" => "1"), array("name" => "Ad Hoc Widgets 3", "desc" => "Control the settings of Ad Hoc Widgets 3", "category" => "sidebar-setup-adhoc3", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Columns in Widget area", "desc" => "How many columns of widgets do you want in this widget area?", "id" => "suf_adhoc3_columns", "parent" => "sidebar-setup-adhoc3", "type" => "select", "options" => array("1" => "1 (One) Column", "2" => "2 (Two) Columns", "3" => "3 (Three) Columns", "4" => "4 (Four) Columns", "5" => "5 (Five) Columns"), "std" => "1"), array("name" => "Ad Hoc Widgets 4", "desc" => "Control the settings of Ad Hoc Widgets 4", "category" => "sidebar-setup-adhoc4", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Columns in Widget area", "desc" => "How many columns of widgets do you want in this widget area?", "id" => "suf_adhoc4_columns", "parent" => "sidebar-setup-adhoc4", "type" => "select", "options" => array("1" => "1 (One) Column", "2" => "2 (Two) Columns", "3" => "3 (Three) Columns", "4" => "4 (Four) Columns", "5" => "5 (Five) Columns"), "std" => "1"), array("name" => "Ad Hoc Widgets 5", "desc" => "Control the settings of Ad Hoc Widgets 5", "category" => "sidebar-setup-adhoc5", "parent" => "sidebar-setup", "type" => "sub-section-3"), array("name" => "Columns in Widget area", "desc" => "How many columns of widgets do you want in this widget area?", "id" => "suf_adhoc5_columns", "parent" => "sidebar-setup-adhoc5", "type" => "select", "options" => array("1" => "1 (One) Column", "2" => "2 (Two) Columns", "3" => "3 (Three) Columns", "4" => "4 (Four) Columns", "5" => "5 (Five) Columns"), "std" => "1"), array("name" => "Static Tabbed Sidebar", "type" => "sub-section-3", "category" => "sbtab-settings", "parent" => "sidebar-setup"), array("name" => "Look and Feel", "desc" => "Control look and feel aspects of the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-lf", "type" => "sub-section-4"), array("name" => "Enable Tabbed Sidebar?", "desc" => "Tabbed Sidebars, a.k.a. Tabbed Widgets are used to represent multiple widgets in a single tabbed window.", "id" => "suf_sbtab_enabled", "parent" => "sbtab-settings", "grouping" => "sbtab-lf", "type" => "radio", "note" => "If you have chosen to have 0 sidebars in your \"Sidebars and Widget Areas\" setup, this setting is irrelevant.", "options" => array("enabled" => "Enable Tabbed Sidebar", "disabled" => "Do not enable the Tabbed Sidebar"), "std" => "disabled"), array("name" => "Alignment of Tabbed Sidebar", "desc" => "Which side do you want your tabbed sidebar? Note that you need to have at least one sidebar enabled on the side that you are selecting here, or the other side might be used. ", "id" => "suf_sbtab_alignment", "parent" => "sbtab-settings", "grouping" => "sbtab-lf", "type" => "radio", "options" => array("right" => "Right", "left" => "Left"), "std" => "right"), array("name" => "Contents of Tabbed Sidebar", "desc" => "You can pick what you want to show in the tabbed sidebar: ", "id" => "suf_sbtab_widgets", "parent" => "sbtab-settings", "grouping" => "sbtab-lf", "type" => "multi-select", "options" => $suffusion_sidebar_tabs, "std" => ""), array("name" => "Order of tabs in Tabbed Sidebar", "desc" => "You can define the order of the tabs in the tabbed sidebar: ", "id" => "suf_sbtab_widget_order", "parent" => "sbtab-settings", "grouping" => "sbtab-lf", "type" => "sortable-list", "std" => suffusion_tab_array_prepositions()), array("name" => "Categories", "desc" => "Control look and feel aspects of the Categories pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-cat", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Categories Title", "id" => "suf_sbtab_categories_title", "parent" => "sbtab-settings", "grouping" => "sbtab-cat", "type" => "text", "std" => $suffusion_sidebar_tabs['categories']['title']), array("name" => "Tabbed Sidebar - List categories hierarchically?", "desc" => "You can decide if you want to list your categories in a hierarchical manner: ", "id" => "suf_sbtab_categories_hierarchical", "parent" => "sbtab-settings", "grouping" => "sbtab-cat", "type" => "radio", "options" => array("hierarchical" => "Categories listed hierarchically", "flat" => "Categories listed flat"), "std" => "hierarchical"), array("name" => "Tabbed Sidebar - Show post count for each category?", "desc" => "You can display the number of posts in each category. Categories with 0 posts are excluded: ", "id" => "suf_sbtab_categories_post_count", "parent" => "sbtab-settings", "grouping" => "sbtab-cat", "type" => "radio", "options" => array("show" => "Show Post Count", "hide" => "Hide Post Count"), "std" => "hide"), array("name" => "Archives", "desc" => "Control look and feel aspects of the Archives pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-arch", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Archives Title", "id" => "suf_sbtab_archives_title", "parent" => "sbtab-settings", "grouping" => "sbtab-arch", "type" => "text", "std" => $suffusion_sidebar_tabs['archives']['title']), array("name" => "Tabbed Sidebar - Archive grouping", "desc" => "What kind of grouping do you want to display for your archives? ", "id" => "suf_sbtab_archives_type", "parent" => "sbtab-settings", "grouping" => "sbtab-arch", "type" => "radio", "options" => array("yearly" => "Yearly", "monthly" => "Monthly", "weekly" => "Weekly", "daily" => "Daily", "postbypost" => "Posts ordered by post date", "alpha" => "Posts ordered by post title"), "std" => "monthly"), array("name" => "Tabbed Sidebar - Archive list type", "desc" => "What kind of listing do you want for your archives? ", "id" => "suf_sbtab_archives_list_type", "parent" => "sbtab-settings", "grouping" => "sbtab-arch", "type" => "radio", "options" => array("html" => "A bullet list", "option" => "A dropdown list"), "std" => "html"), array("name" => "Tabbed Sidebar - Show post count for each archive?", "desc" => "You can display the number of posts in each archive. Archives with 0 posts are excluded: ", "id" => "suf_sbtab_archives_post_count", "parent" => "sbtab-settings", "grouping" => "sbtab-arch", "type" => "radio", "options" => array("show" => "Show Post Count", "hide" => "Hide Post Count"), "std" => "hide"), array("name" => "Links", "desc" => "Control look and feel aspects of the Links pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-links", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Links Title", "id" => "suf_sbtab_Links_title", "parent" => "sbtab-settings", "grouping" => "sbtab-links", "type" => "text", "std" => $suffusion_sidebar_tabs['Links']['title']), array("name" => "Meta", "desc" => "Control look and feel aspects of the Meta pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-meta", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Meta Title", "id" => "suf_sbtab_meta_title", "parent" => "sbtab-settings", "grouping" => "sbtab-meta", "type" => "text", "std" => $suffusion_sidebar_tabs['meta']['title']), array("name" => "Pages", "desc" => "Control look and feel aspects of the Pages pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-pages", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Pages Title", "id" => "suf_sbtab_pages_title", "parent" => "sbtab-settings", "grouping" => "sbtab-pages", "type" => "text", "std" => $suffusion_sidebar_tabs['pages']['title']), array("name" => "Recent Comments", "desc" => "Control look and feel aspects of the Recent Comments pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-rc", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Recent Comments Title", "id" => "suf_sbtab_recent_comments_title", "parent" => "sbtab-settings", "grouping" => "sbtab-rc", "type" => "text", "std" => $suffusion_sidebar_tabs['recent_comments']['title']), array("name" => "Recent Posts", "desc" => "Control look and feel aspects of the Recent Posts pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-rp", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Recent Posts Title", "id" => "suf_sbtab_recent_posts_title", "parent" => "sbtab-settings", "grouping" => "sbtab-rp", "type" => "text", "std" => $suffusion_sidebar_tabs['recent_posts']['title']), array("name" => "Search", "desc" => "Control look and feel aspects of the Search pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-search", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Search Title", "id" => "suf_sbtab_search_title", "parent" => "sbtab-settings", "grouping" => "sbtab-search", "type" => "text", "std" => $suffusion_sidebar_tabs['search']['title']), array("name" => "Tag Cloud", "desc" => "Control look and feel aspects of the Tag Cloud pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-tags", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Tag Cloud Title", "id" => "suf_sbtab_tag_cloud_title", "parent" => "sbtab-settings", "grouping" => "sbtab-tags", "type" => "text", "std" => $suffusion_sidebar_tabs['tag_cloud']['title']), array("name" => "Custom Tab 1", "desc" => "Control look and feel aspects of the Custom Tab 1 pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-ct1", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Custom Tab 1 Title", "id" => "suf_sbtab_custom_tab_1_title", "parent" => "sbtab-settings", "grouping" => "sbtab-ct1", "type" => "text", "std" => $suffusion_sidebar_tabs['custom_tab_1']['title']), array("name" => "Tabbed Sidebar - Custom Tab 1 Contents", "id" => "suf_sbtab_custom_tab_1_contents", "parent" => "sbtab-settings", "grouping" => "sbtab-ct1", "type" => "textarea", "std" => ""), array("name" => "Custom Tab 2", "desc" => "Control look and feel aspects of the Custom Tab 2 pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-ct2", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Custom Tab 2 Title", "id" => "suf_sbtab_custom_tab_2_title", "parent" => "sbtab-settings", "grouping" => "sbtab-ct2", "type" => "text", "std" => $suffusion_sidebar_tabs['custom_tab_2']['title']), array("name" => "Tabbed Sidebar - Custom Tab 2 Contents", "id" => "suf_sbtab_custom_tab_2_contents", "parent" => "sbtab-settings", "grouping" => "sbtab-ct2", "type" => "textarea", "std" => ""), array("name" => "Custom Tab 3", "desc" => "Control look and feel aspects of the Custom Tab 3 pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-ct3", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Custom Tab 3 Title", "id" => "suf_sbtab_custom_tab_3_title", "parent" => "sbtab-settings", "grouping" => "sbtab-ct3", "type" => "text", "std" => $suffusion_sidebar_tabs['custom_tab_3']['title']), array("name" => "Tabbed Sidebar - Custom Tab 3 Contents", "id" => "suf_sbtab_custom_tab_3_contents", "parent" => "sbtab-settings", "grouping" => "sbtab-ct3", "type" => "textarea", "std" => ""), array("name" => "Custom Tab 4", "desc" => "Control look and feel aspects of the Custom Tab 4 pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-ct4", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Custom Tab 4 Title", "id" => "suf_sbtab_custom_tab_4_title", "parent" => "sbtab-settings", "grouping" => "sbtab-ct4", "type" => "text", "std" => $suffusion_sidebar_tabs['custom_tab_4']['title']), array("name" => "Tabbed Sidebar - Custom Tab 4 Contents", "id" => "suf_sbtab_custom_tab_4_contents", "parent" => "sbtab-settings", "grouping" => "sbtab-ct4", "type" => "textarea", "std" => ""), array("name" => "Custom Tab 5", "desc" => "Control look and feel aspects of the Custom Tab 5 pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-ct5", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Custom Tab 5 Title", "id" => "suf_sbtab_custom_tab_5_title", "parent" => "sbtab-settings", "grouping" => "sbtab-ct5", "type" => "text", "std" => $suffusion_sidebar_tabs['custom_tab_5']['title']), array("name" => "Tabbed Sidebar - Custom Tab 5 Contents", "id" => "suf_sbtab_custom_tab_5_contents", "parent" => "sbtab-settings", "grouping" => "sbtab-ct5", "type" => "textarea", "std" => ""), array("name" => "Custom Tab 6", "desc" => "Control look and feel aspects of the Custom Tab 6 pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-ct6", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Custom Tab 6 Title", "id" => "suf_sbtab_custom_tab_6_title", "parent" => "sbtab-settings", "grouping" => "sbtab-ct6", "type" => "text", "std" => $suffusion_sidebar_tabs['custom_tab_6']['title']), array("name" => "Tabbed Sidebar - Custom Tab 6 Contents", "id" => "suf_sbtab_custom_tab_6_contents", "parent" => "sbtab-settings", "grouping" => "sbtab-ct6", "type" => "textarea", "std" => ""), array("name" => "Custom Tab 7", "desc" => "Control look and feel aspects of the Custom Tab 7 pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-ct7", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Custom Tab 7 Title", "id" => "suf_sbtab_custom_tab_7_title", "parent" => "sbtab-settings", "grouping" => "sbtab-ct7", "type" => "text", "std" => $suffusion_sidebar_tabs['custom_tab_7']['title']), array("name" => "Tabbed Sidebar - Custom Tab 7 Contents", "id" => "suf_sbtab_custom_tab_7_contents", "parent" => "sbtab-settings", "grouping" => "sbtab-ct7", "type" => "textarea", "std" => ""), array("name" => "Custom Tab 8", "desc" => "Control look and feel aspects of the Custom Tab 8 pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-ct8", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Custom Tab 8 Title", "id" => "suf_sbtab_custom_tab_8_title", "parent" => "sbtab-settings", "grouping" => "sbtab-ct8", "type" => "text", "std" => $suffusion_sidebar_tabs['custom_tab_8']['title']), array("name" => "Tabbed Sidebar - Custom Tab 8 Contents", "id" => "suf_sbtab_custom_tab_8_contents", "parent" => "sbtab-settings", "grouping" => "sbtab-ct8", "type" => "textarea", "std" => ""), array("name" => "Custom Tab 9", "desc" => "Control look and feel aspects of the Custom Tab 9 pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-ct9", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Custom Tab 9 Title", "id" => "suf_sbtab_custom_tab_9_title", "parent" => "sbtab-settings", "grouping" => "sbtab-ct9", "type" => "text", "std" => $suffusion_sidebar_tabs['custom_tab_9']['title']), array("name" => "Tabbed Sidebar - Custom Tab 9 Contents", "id" => "suf_sbtab_custom_tab_9_contents", "parent" => "sbtab-settings", "grouping" => "sbtab-ct9", "type" => "textarea", "std" => ""), array("name" => "Custom Tab 10", "desc" => "Control look and feel aspects of the Custom Tab 10 pseudo-widget in the tabbed sidebar here.", "parent" => "sbtab-settings", "category" => "sbtab-ct10", "type" => "sub-section-4"), array("name" => "Tabbed Sidebar - Custom Tab 10 Title", "id" => "suf_sbtab_custom_tab_10_title", "parent" => "sbtab-settings", "grouping" => "sbtab-ct10", "type" => "text", "std" => $suffusion_sidebar_tabs['custom_tab_10']['title']), array("name" => "Tabbed Sidebar - Custom Tab 10 Contents", "id" => "suf_sbtab_custom_tab_10_contents", "parent" => "sbtab-settings", "grouping" => "sbtab-ct10", "type" => "textarea", "std" => ""));
示例#6
0
/**
 * Add support for various theme functions
 * @return void
 */
function suffusion_add_theme_supports()
{
    add_theme_support('post-thumbnails');
    add_theme_support('menus');
    add_theme_support('automatic-feed-links');
    // Adding post formats, so that users can assign formats to posts. They will be styled in a later release.
    add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'));
    //Suffusion-specific
    add_theme_support('mega-menus');
    // Support for page excerpts
    add_post_type_support('page', 'excerpt');
    // Additional options for Suffusion. This shows the meta box below posts
    add_theme_support('suffusion-additional-options');
    // Support for native custom headers and backgrounds
    global $wp_version;
    $header_args = array('wp-head-callback' => 'suffusion_header_style', 'admin-head-callback' => 'suffusion_admin_header_style', 'admin-preview-callback' => 'suffusion_admin_header_image', 'random-default' => false);
    $body_args = array();
    $options = get_option('suffusion_options');
    $theme_name = suffusion_get_theme_name();
    if (!isset($options) || !is_array($options) || $theme_name == 'root') {
        $header_args['default-text-color'] = '000';
        $header_args['width'] = apply_filters('suffusion_header_image_width', 1000);
        $header_args['height'] = apply_filters('suffusion_header_image_height', 55);
        $header_args['flex-width'] = false;
        $body_args['default-color'] = '444444';
        $body_args['default-image'] = '';
    } else {
        $defaults = array('suf_size_options' => 'custom', 'suf_wrapper_width_type' => 'fixed', 'suf_wrapper_width_preset' => '1000', 'suf_wrapper_width' => '1000', 'suf_main_col_width' => '725', 'suf_sb_1_width' => '260', 'suf_sb_2_width' => '260', 'suf_header_layout_style' => 'theme', 'suf_header_style_setting' => 'theme', 'suf_blog_title_color' => suffusion_evaluate_style('suf_blog_title_color', $theme_name), 'suf_header_height' => '55', 'suf_body_style_setting' => 'theme', 'suf_body_background_color' => suffusion_evaluate_style('suf_body_background_color', $theme_name), 'suf_body_background_image' => suffusion_evaluate_style('suf_body_background_image', $theme_name, 'empty'));
        $options = wp_parse_args((array) $options, $defaults);
        if ($options['suf_header_style_setting'] == 'custom') {
            $header_args['height'] = $options['suf_header_height'] + 30;
            $header_args['default-text-color'] = ltrim($options['suf_blog_title_color'], '#');
        } else {
            $header_args['height'] = 55 + 30;
            $header_args['default-text-color'] = ltrim(suffusion_evaluate_style("suf_blog_title_color", $theme_name), '#');
        }
        if ($options['suf_header_layout_style'] == 'theme') {
            if ($theme_name == 'minima') {
                $options['suf_header_layout_style'] = 'out-cfull-halign';
            } else {
                $options['suf_header_layout_style'] = 'in-align';
            }
        }
        if ($options['suf_header_layout_style'] == 'out-cfull-halign') {
            $header_args['flex-width'] = true;
        } else {
            if ($options['suf_size_options'] == 'theme') {
                $header_args['width'] = apply_filters('suffusion_header_image_width', 1000);
                $header_args['flex-width'] = false;
            } else {
                if ($options['suf_wrapper_width_type'] == 'fixed') {
                    $header_args['flex-width'] = false;
                    if ($options['suf_wrapper_width_preset'] != 'custom' && $options['suf_wrapper_width_preset'] != 'custom-components') {
                        $header_args['width'] = $options['suf_wrapper_width_preset'];
                    } else {
                        if ($options['suf_wrapper_width_preset'] != 'custom') {
                            $header_args['width'] = $options['suf_wrapper_width'];
                        } else {
                            $header_args['width'] = $options['suf_main_col_width'] + $options['suf_sb_1_width'] + $options['suf_sb_2_width'];
                        }
                    }
                } else {
                    $header_args['flex-width'] = true;
                }
            }
        }
        if ($options['suf_body_style_setting'] == 'custom') {
            $body_args['default-color'] = ltrim($options['suf_body_background_color'], '#');
            $body_args['default-image'] = $options['suf_body_background_image'];
        } else {
            $body_args['default-color'] = ltrim(suffusion_evaluate_style('suf_body_background_color', $theme_name), '#');
            $body_args['default-image'] = suffusion_evaluate_style('suf_body_background_image', $theme_name, 'empty');
        }
    }
    add_theme_support('custom-header', $header_args);
    add_theme_support('custom-background', $body_args);
}