'Wide', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } /* ------------------------------------------------- SEARCH WIDGET -------------------------------------------------- */ // define the widget function widget_search() { global $tag_widget_title; ?> __("Theme's width", 'default'), "id" => $shortname."_width", "type" => "select", "std" => "wide", "options" => array("Standard" => "standard", "Wide" => "wide" ), ), array( "name" => __("Background", 'default'), "id" => $shortname."_bg", "type" => "select", "std" => "#E3E4E4 url(" . $dir . "/images/bg/shining.png) repeat-x scroll center top", "options" => array("Two gears (default)" => "#1E2022 url(" . $dir . "/images/bg/two-gears.gif) repeat scroll 0 0", "Two gears (yellow)" => "#1E2022 url(" . $dir . "/images/bg/two-gears-yellow.gif) repeat scroll 0 0", "Two gears (grayscale)" => "#e7e8e8 url(" . $dir . "/images/bg/two-gears-gray.gif) repeat scroll 0 0", "One gear" => "#1E2022 url(" . $dir . "/images/bg/gear.gif) repeat scroll 0 0", "Lines" => "#1E2022 url(" . $dir . "/images/bg/lines.gif) repeat scroll 0 0", "Lines (grayscale)" => "#e7e8e8 url(" . $dir . "/images/bg/lines-gray.gif) repeat scroll 0 0", "Lines (intensive)" => "#1E2022 url(" . $dir . "/images/bg/lines-intensive.gif) repeat scroll 0 0", "Clover" => "#1E2022 url(" . $dir . "/images/bg/clover.gif) repeat scroll 0 0", "Solid (light black)" => "#1E2022 none no-repeat scroll 0 0", "Solid (grey)" => "#e7e8e8 none no-repeat scroll 0 0", "Gradient (dark)" => "#1e2022 url(" . $dir . "/images/bg/gradient-dark.gif) repeat-x scroll 0 0", "Gradient (grey)" => "#e3e4e4 url(" . $dir . "/images/bg/gradient-grey.gif) repeat-x scroll 0 0", "Gradient (grey reversed)" => "#b9baba url(" . $dir . "/images/bg/gradient-grey-rev.gif) repeat-x scroll 0 0", "Shiny" => "#E3E4E4 url(" . $dir . "/images/bg/shining.png) repeat-x scroll center top" ), ), array( "name" => __("Header's background", 'default'), "id" => $shortname."_header_bg", "type" => "select", "std" => "black url(" . $dir . "/images/header-pattern.gif) repeat-x scroll 0 0", "options" => array("Black gradient (default)" => "black url(" . $dir . "/images/header-pattern.gif) repeat-x scroll 0 0", "Black (solid)" => "black no-repeat scroll 0 0", "Drops (dark)" => "#e7e8e8 url(" . $dir . "/images/header-bg-drops.gif) repeat-x scroll 0 0" ), ), array( "name" => __("Exclude pages from the header
(just put ids '20, 4, 15' (no quotes))", 'default'), "id" => $shortname."_pages_to_exclude", "type" => "text", "std" => "" ), array( "name" => __("Logo visibility", 'default'), "id" => $shortname."_logo_visibility", "type" => "select", "std" => "on", "options" => array("Show" => "on", "Hide" => "off" ), ), array( "name" => __("Email's icon visibility", 'default'), "id" => $shortname."_email_visibility", "type" => "select", "std" => "on", "options" => array("Show" => "on", "Hide" => "off" ), ), array( "name" => __("Search visibility", 'default'), "id" => $shortname."_search_visibility", "type" => "select", "std" => "on", "options" => array("Show" => "on", "Hide" => "off" ), ), array( "name" => __("First menu item's visibility", 'default'), "id" => $shortname."_home_visibility", "type" => "select", "std" => "on", "options" => array("Show" => "on", "Hide" => "off") ), array( "name" => __("Label of the first menu item", 'default'), "id" => $shortname."_home_label", "type" => "text", "std" => "Home" ), array( "name" => __("Banner's visibility", 'default'), "id" => $shortname."_banner_visibility", "type" => "select", "std" => "on", "options" => array("Show" => "on", "Hide" => "off" ), ), array( "name" => __("Banner's backgrounud", 'default'), "id" => $shortname."_banner_bg", "type" => "select", "std" => "#5C9EBA url(" . $dir . "/images/bg/banner/banner-bg-blue-extended.gif) no-repeat scroll 0 0", "options" => array("Blue (default)" => "#5C9EBA url(" . $dir . "/images/bg/banner/banner-bg-blue-extended.gif) no-repeat scroll 0 0", "Blue intensive" => "#4da1d4 url(" . $dir . "/images/bg/banner/banner-bg-blue-intensive.gif) no-repeat scroll 0 0", "Blue dark" => "#7d92a0 url(" . $dir . "/images/bg/banner/banner-bg-blue-dark.gif) no-repeat scroll 0 0", "Brown" => "#cf8023 url(" . $dir . "/images/bg/banner/banner-bg-brown.gif) no-repeat scroll 0 0", "Brown (old)" => "#f09a53 url(" . $dir . "/images/bg/banner/banner-bg.gif) no-repeat scroll 0 0", "Brown (gradient)" => "#cf7c2c url(" . $dir . "/images/bg/banner/banner-bg-brown-gradient.gif) no-repeat scroll 0 0", "Brown (yellowish)" => "#ca8900 url(" . $dir . "/images/bg/banner/banner-bg-yellow.gif) no-repeat scroll 0 0" ), ), array( "name" => __("Banner's image", 'default'), "id" => $shortname."_banner_image", "type" => "select", "std" => "gear.png", "options" => array("Gear" => "gear.png", "Bird" => "bird.png", "Bulb" => "bulb.png", "Earth" => "earth.png", "User" => "user.png", "User 2" => "user2.png", "Binoculars" => "bino.png" ), ), array( "name" => __("Banner's text", 'default'), "id" => $shortname."_banner_text", "type" => "textarea", "std" => "

Here you could put some info!

In order to edit this block, please go to the option page and edit the text. If you want to get rid of this banner, you may also do this through an options page.

" ) ); foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } wp_redirect("themes.php?page=functions.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); } header("Location: themes.php?page=functions.php&reset=true"); die; } } add_theme_page($themename." Options", "Theme Options", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '

'.$themename.' settings saved.

'; if ( $_REQUEST['reset'] ) echo '

'.$themename.' settings reset.

'; ?>

: " />
:
:

  • id="li-comment-">

    comment_approved == '0') : ?> .

    $depth, 'max_depth' => $args['max_depth']))) ?>

  • id="li-comment-">

    comment_approved == '0') : ?> .