blob: aa86a5f584b1ac03788e547d513b64fd9ea5b21b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s"><div>',
'after_widget' => "</div></li>\n",
'before_title' => '<h2>',
'after_title' => "</h2>\n",
));
include(dirname(__FILE__).'/themetoolkit.php');
themetoolkit(
'else',
array(
'sidebar' => 'Sidebar transparency {radio|transparent|Transparent|opaque|Opaque}',
),
__FILE__
);
function else_sidebar() {
global $else;
if ($else->option['sidebar'] == "opaque") {
echo '#sidebar ul {
background: url('; bloginfo('template_directory'); echo '/images/sidebar2b.gif) repeat-y;
}
#sidebar ul li {
background: url('; bloginfo('template_directory'); echo '/images/sidebar-bottomb.gif) no-repeat bottom left;
}
#sidebar h2 {
background: url('; bloginfo('template_directory'); echo '/images/sidebar-topb.gif) no-repeat;
}
#sidebar #search p, .widget_search div div {
background: url('; bloginfo('template_directory'); echo '/images/sidebar-top.gif) no-repeat;
}
#calendar div {
background: url('; bloginfo('template_directory'); echo '/images/sidebar-top.gif) no-repeat;
}';
}
}
if (!$else->is_installed()) {
$set_defaults['sidebar'] = 'transparent';
$result = $else->store_options($set_defaults);
}
?>
|