sidebar.php kodum
css de sidemenu
.sidemenu ul {
margin:0px 0px 20px 0px;
padding:0;
text-align:right;
color:#aaaaaa;
}
.sidemenu ul li {
background:url("images/dotted-lines.gif") repeat-x scroll left bottom transparent;
list-style:none outside none;
margin:0px 0px 0px 0px;
padding:6px 3px;
}
.sidemenu ul li a, .sidemenu ul li a:visited {
color:#5D95CA;
float:left;
text-align:left;
font-weight:normal;
padding-left:0;
font-size:12px;
}
.sidemenu ul li a span {
color:#9F9F9F;
font-family:'Lucida Grande','Lucida Sans Unicode',Geneva,Verdana,Sans-Serif;
font-size:0.9em;
font-style:normal;
font-weight:normal;
}
.sidemenu ul li a:hover {
border:medium none;
color:#000000;
}
.sidemenu ul ul {
margin:0 0 0 5px;
padding:0;
}
.sidemenu ul ul li {
background:none repeat scroll 0 0 transparent;
}
kategoriler 2 sütun yapmak için eklemem gereken kodlar ise
$cats = explode(“
”,wp_list_categories(‘title_li=&echo=0&depth=1&style=none’));
$cat_n = count($cats) – 1;
for ($i=0;$i<$cat_n;$i++):
if ($i<$cat_n/2):
$cat_left = $cat_left.’’.$cats[$i].’ ’;
elseif ($i>=$cat_n/2):
$cat_right = $cat_right.’’.$cats[$i].’ ’;
endif;
endfor;
?>
css için
.right {float:left; width:140px;}
.left {float:left; width:140px;}