rendered paste body<?php
if ( function_exists('register_sidebars') )
register_sidebars(2, array(
'before_widget' => '<!--sidebox start --><div id="%1$s" class="dbx-box %2$s">',
'after_widget' => '</div></div><!--sidebox end -->',
'before_title' => ' <div class="sidebar_header"><div class="dbx-handle">',
'after_title' => '</div></div><div class="dbx-content">',
));
?>
<?php function widget_itheme_search() {
?><?php
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__('Search'), 'widget_itheme_search');
?><?php function widget_itheme_meta() {
?>
<!--sidebox start -->
<div id="Giris Paneli" class="dbx-box">
<div class="sidebar_header"><div class="dbx-handle">Kullanici Paneli</div></div>
<div class="dbx-content">
<ul>
<?php if (is_user_logged_in()): { ?>
<!-- Kullanici giris yaptiysa gorunecek olan bolum -->
<h2><?php _e('Kullanici paneli') ?></h2>
<ul>
<li><?php wp_loginout(); ?></li>
</ul>
<?php } endif; ?>
<?php if ( !is_user_logged_in()): { ?>
<!-- Kullanini giris yapmadiysa gorunecek olan bolum -->
<h2><?php _e('Giris yapin') ?></h2>
<ul>
<form name="loginform" id="loginform" action="http://wordpres.awardspace.com/wp-login.php" method="post">
<br /><label>Kullanici Adi:<br /><input type="text" name="log" id="log" value="" size="20" tabindex="1" /></label>
<br /><label>Parola:<br /> <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" /></label>
<br /><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />Beni unutma:)</label>
<br /><input type="submit" name="submit" id="login" value="Giris »" tabindex="4" />
</form>
<h2><?php _e('Kayit olun') ?></h2>
<?php wp_register(); ?>
</ul>
<?php } endif; ?>
</ul>
</div>
</div>
<!--sidebox end -->
<!--sidebox start -->
<div id="meta" class="dbx-box">
<div class="sidebar_header"><div class="dbx-handle">Meta</div></div>
<div class="dbx-content">
<ul>
<li class="rss"><a href="<?php bloginfo('rss2_url'); ?>">Yazılar (RSS)</a></li>
<li class="rss"><a href="<?php bloginfo('comments_rss2_url'); ?>">Yorumlar (RSS)</a></li>
</ul>
</div>
</div>
<!--sidebox end -->
<?php
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__('Meta'), 'widget_itheme_meta');
?><?php function widget_itheme_links() {
?>
<!--sidebox start -->
<div id="links" class="dbx-box">
<div class="sidebar_header"><div class="dbx-handle"><?php _e('Links'); ?></div></div>
<div class="dbx-content">
<ul>
<?php get_links('-1', '<li>', '</li>', '<br />', FALSE, 'id', FALSE, FALSE, -1, FALSE); ?>
</ul>
</div>
</div>
<!--sidebox end --><?php
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__('Links'), 'widget_itheme_links');
?>