Ich bin mit meinem Anfängerlatein am Ende. Ich möchte das Alle Siedebar Menüpunte wie Kategorie/TAGS/Kalender(Bis auf den Admin Bereich im Blog) vor dem Login des Admins (also mir) sichtbar sind. Sichtbar ist aber nur ein Teil. Wo liegt der Fehler?
hier das sidebar.php
Code :
PHP
<div id="sidebar">
<?php if (is_single()) { ?>
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) ?>
<div style="float:right;margin:3px 0px 0px 3px;"><a href="/author/<?php the_author_login(); ?>" title="<?php echo $curauth->display_name; ?>"> <?php echo get_avatar(get_the_author_email(), '25'); ?> </a></div><small>Posted on <span style="font-weight:bold; color:#00bf94;">
<?php the_time('m.d.y') ?>
</span> to
<?php the_category(', ') ?>
by <a href="/index.php?author=<?php the_author_ID(); ?>">
<?php the_author_nickname(); ?>
</a></small>
<h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
<?php the_title(); ?>
</a> </h1>
<p class="postmetadata alt"> <small> View all posts by <a href="/index.php?author=<?php the_author_ID(); ?>">
<?php the_author_nickname(); ?>
</a>.
<?php comments_rss_link('Subscribe'); ?>
to follow comments on this post.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
<a href="#respond">Add your thoughts</a> or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.
<?php } edit_post_link('Edit this entry.','',''); ?>
</small> </p>
<?php } ?>
<?php if (is_search()) { ?>
<?php } ?>
<?php if (is_404()) { ?>
<h1>404. Fiddle-de-dee, file not found.</h1>
<p> <small> Fiddlesticks. </small> </p>
<?php } ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1>Suche in ‘
<?php single_cat_title(); ?>
’ Kategorie</h1>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h1>Archive for
<?php the_time('F jS, Y'); ?>
</h1>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h1>Archive for
<?php the_time('F, Y'); ?>
</h1>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h1>Archive for
<?php the_time('Y'); ?>
</h1>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h1>Posts Tagged ‘
<?php single_tag_title(); ?>
’</h1>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h1>Author Archive for
<?php the_author_posts_link(); ?>
</h1>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h1>Blog Archives</h1>
<?php /* If this is the archives page */ } elseif (is_page('Archives')) { ?>
<?php } ?>
<ul>
<li>
<h2><?php bloginfo('name'); ?>
</h2>
<span style="color:#F44040;">
<?php bloginfo('description'); ?>
</span>
<div style="margin-top:15px;">
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</div>
</li>
<?php
global $user_ID, $user_identity;
get_currentuserinfo();
if (!$user_ID):
?>
<li>
<h2>
Identification
</h2>
<div style="height:5px;"></div>
<form name="loginform" id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post">
<div>
<label>
<input class="textinput" type="text" onclick="value=''" name="log" id="log" value="Username" size="20" tabindex="7" />
</label>
<label>
<input class="textinput" type="password" onclick="value=''" name="pwd" id="pwd" value="Password" size="20" tabindex="8" />
</label>
<label>
<input type="submit" class="button" name="submit" value="" tabindex="10" />
</label>
<label style="display:none;">
<input type="checkbox" name="rememberme" value="forever" tabindex="9" />
</label>
Don't have an account? <a href="<?php echo get_settings('siteurl'); ?>/wp-register.php">Register</a>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
</div>
</form>
</li>
<?php
else:
?>
<li>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar(1) ) : ?>
<?php endif; ?>
<li>
<h2>Logged in als <?php echo $user_identity; ?></h2>
<ul>
<li><a href="<?php bloginfo('url') ?>/wp-admin/">Dashboard</a></li>
<?php if ( $user_level >= 1 ) : ?>
<li><a href="<?php bloginfo('url') ?>/wp-admin/post-new.php">Schreib einen Artikel</a></li>
<?php endif // $user_level >= 1 ?>
<li><a href="<?php bloginfo('url') ?>/wp-admin/profile.php">Profile und persönliche Einstellungen</a></li>
<li><a href="<?php echo wp_logout_url(); ?><?php echo '&redirect_to='.$_SERVER['REQUEST_URI']; ?>">Logout</a></li>
</ul>
<?php
endif;
?>
<li>
<h2>Feeds / Syndication</h2>
Wählen Sie Ihre bevorzugte Methode zur Syndication. Alle Feeds sind Full-posts & ad-frei. Alle Feeds unterliegen dem Copyright und dürfen ohne Erlaubnis nicht verteilt werden.
<ul class="syndicate">
<li><a href="<?php bloginfo('rss2_url'); ?>">Full Feed (RSS/Atom)</a></li>
<li><a href="<?php bloginfo('rss2_url'); ?>">Features / Reviews Feed (RSS/Atom)</a></li>
<li><a href="<?php bloginfo('rss2_url'); ?>">Interviews Feed (RSS/Atom)</a></li>
<li><a href="<?php bloginfo('rss2_url'); ?>">Tips / Resources Feed (RSS/Atom)</a></li>
</ul>
<form style="border:0px solid #ccc;padding:3px;text-align:left;margin-top:8px;" action="http://www.feedburner.com/fb/a/emailverify" method="post" target="popupwindow" onsubmit="window.open('http://www.feedburner.com', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
Subscribe via E-Mail
<input type="text" style="float:right;" class="textinput" name="email"/>
<input type="hidden" value="http://feeds.feedburner.com/~e?ffid=1135921" name="url"/>
<input type="hidden" value="Romanien.com - Reise, Kultur, Design, Restaurants; Features" name="title"/>
<input type="hidden" name="loc" value="en_US"/>
<input type="submit" style="display:none;" value="Subscribe" />
</form>
<br style="clear;both;" />
</li>
<script type="text/javascript"><!--
google_ad_client = "pub-9005201729731795";
/* 300x250, modicus-remix theme */
google_ad_slot = "0336658519";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</li>
</ul>
<div class="bluebox">
<!--Don't be uncool. Leave the theme credit. :) -->
<small>Wordpress theme "<a href="http://www.zidalgo.com/modicus-remix-wordpress-theme" title="Minimalistic Wordpress Theme">Modicus Remix</a>" by <a href="http://www.zidalgo.com" title="Premium Wordpress Themes">Zidalgo</a>.</small></div>
</div>
<!-- end sidebar -->
Alles anzeigen