گناهکار جان لطف کن بگو کد کدام قسمت ها را باید بذارم. من جاهایی که به نظرم رسید رو گذاشتم.
کد قسمت ستون کناری style.css
/*-------SIDEBAR---------*/
#sidebar {
font-size:.9em;
}
#sidebar ul,
#sidebar ol {
padding:0;
}
#sidebar form,
#sidebar p {
padding:0;
margin:0 0 1em 0;
}
#sidebar h2 {
font-family:"Georgia";
background:#6a6765 url('images/stripe_gray-large.gif');
padding: 8px;
margin:10px 0;
font-size: 1.4em;
font-weight:normal;
text-transform:uppercase;
color:darkgray
}
html>body .ellipsis li {
clear:both;
}
html>body .ellipsis li:after {
content: "...";
display:inline;
}
html>body .ellipsis li span {
white-space:nowrap;
overflow:hidden;
max-width:180px;
width:auto !important;
display:inline;
float:left;
}
ol.ellipsis li span {
white-space:nowrap;
text-overflow:ellipsis;
overflow:hidden;
width:190px;
display:block;
}
#sidebar a{
text-decoration: none;
}
#sidebar a:hover,
#sidebar .current_page_item li a:hover,
#sidebar .current-cat li a:hover {
color:#FF3C00;
}
#sidebar .current_page_item a,
#sidebar .current-cat a {
font-weight:bold;
color:#FF3C00;
}
#sidebar .current_page_item li a,
#sidebar .current-cat li a {
font-weight:normal;
color:#515151;
}
#sidebar li img {
vertical-align:middle;
border:0px none;
}
#sidebar input.btn {
margin-left:4px;
}
کد sidebar.php:
<?php global $freshy_options; ?>
<div id="sidebar">
<div>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<?php if(function_exists('yy_menu')) : ?>
<h2><?php _e('هدایتگر',TEMPLATE_DOMAIN); ?></h2>
<ul>
<?php yy_menu('sort_column=menu_order&title_li=',
'hide_empty=0&sort_column=name&optioncount=1&title_li=&hierarchical=1&feed=RSS&feed_image='.get_bloginfo('stylesheet_directory').'/images/icons/feed-icon-10x10.gif'); ?>
</ul>
<?php elseif (function_exists('freshy_menu')) :
freshy_menu($freshy_options['args_pages'],$freshy_options['args_cats']);
endif; ?>
<h2><?php _e('جستجو',TEMPLATE_DOMAIN); ?></h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<h2><?php _e('دوستان',TEMPLATE_DOMAIN); ?></h2>
<ul>
<?php
$ver = substr(get_bloginfo('version'), 0, 3);
if ($ver == "2.1") {
$link_cats = $wpdb->get_results("SELECT DISTINCT cat_name, category_id FROM $wpdb->categories INNER JOIN $wpdb->link2cat ON $wpdb->categories.cat_id=$wpdb->link2cat.category_id");
foreach ($link_cats as $link_cat) {
?>
<li id="linkcat-<?php echo $link_cat->cat_id; ?>"><?php echo $link_cat->cat_name; ?>
<ul>
<?php wp_get_links('category='.$link_cat->category_id.'&before=<li>&after=</li>&show_description=0&limit=100'); ?></li>
</ul>
<?php }
}
//if ($ver>2) echo 'yes';
else {
$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
foreach ($link_cats as $link_cat) {
?>
<li id="linkcat-<?php echo $link_cat->cat_id; ?>"><?php echo $link_cat->cat_name; ?>
<ul>
<?php wp_get_links($link_cat->cat_id); ?>
</ul>
</li>
<?php }
} ?>
</ul>
<?php endif; ?>
</div>
</div>