Das ist der code von der sidebar, hoffe, das hilft und hoffe, es ist nicht zu lange für das forum.
<div id="sidebar">
<ul> <li id="calendar">
<?php ec3_get_calendar(); ?>
<h2><?php _e('Die 5 nächsten Termine:'); ?></h2>
<?php ec3_get_events(5,'[b]%DATE%[/b] in %SINCE%
[url="%LINK%"]%TITLE% (%AUTHOR%) [/url]',''); ?>
[/list]
<?php if (function_exists('wp_theme_switcher')) { ?>
<ul>[*]<h2><?php _e('Themes'); ?></h2>
<?php wp_theme_switcher('dropdown'); ?>
<?php } ?>
<ul>
<?php
$today = current_time('mysql', 1);
global $comment;
if ( $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments ORDER BY comment_date_gmt DESC LIMIT 6") ) :?>
<h2><li id="lastcomments"><div class="menutitle"><?php _e('Die 6 neusten Kommentare'); ?></div></h2>
<ul>
<?php foreach ($comments as $comment) {
echo '[*]' . sprintf('%s zu </span/>%s', get_comment_author_link(), '[url="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '"]' . get_the_title($comment->comment_post_ID) . '[/url]');
}
?>
[/list]
<?php
if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 4")):
?>
<h2>
<li id="recents"><div class="menutitle"><?php _e("Die 4 neusten Themen"); ?></div></h2>
<ul>
<?php
foreach ($recentposts as $post) {
if ($post->post_title == '')
$post->post_title = sprintf(__('Post #%s'), $post->ID);
echo "[*]<a href='?p=$post->ID'>";
the_title();
echo '</a>';
}
?>
<?php endif; ?>
[/list]
<?php endif; ?>
[*]
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
[*]<h2><?php // _e('Author'); ?></h2>
A little something about you, the author. Nothing lengthy, just an overview.</p>
-->
[*]
<?php /* If this is a category archive */ if (is_category()) { ?>
You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
You are currently browsing the [url="<?php echo get_settings('siteurl'); ?>"]<?php echo bloginfo('name'); ?>[/url] weblog archives
for the day <?php the_time('l, F jS, Y'); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
You are currently browsing the [url="<?php echo get_settings('siteurl'); ?>"]<?php echo bloginfo('name'); ?>[/url] weblog archives
for <?php the_time('F, Y'); ?>.</p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
You are currently browsing the [url="<?php echo get_settings('siteurl'); ?>"]<?php echo bloginfo('name'); ?>[/url] weblog archives
for the year <?php the_time('Y'); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
Du hast das [url="<?php echo get_settings('siteurl'); ?>"]<?php echo bloginfo('name'); ?>[/url]
durchsucht nach [b]'<?php echo wp_specialchars($s); ?>'[/b]. Wenn Du nichts findest, versuch was anderes. Sei kreativ bei den Suchbegriffen. Du kannst natürlich auch die Monate und Kategorien direkt durchstöbern.</p>
<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
You are currently browsing the [url="<?php echo get_settings('siteurl'); ?>"]<?php echo bloginfo('name'); ?>[/url] weblog archives.</p>
<?php } ?>
[*]<h2><?php _e('Autoren (Anzahl Themen)'); ?></h2>
<ul>
<?php list_authors(1, 0, 0, 0, '', ''); ?>
[/list]
<?php
if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 12")):
?>
<h2>
<li id="recents"><div class="menutitle"><?php _e("Liste neuster Themen"); ?></div></h2>
<ul>
<?php
foreach ($recentposts as $post) {
if ($post->post_title == '')
$post->post_title = sprintf(__('Post #%s'), $post->ID);
echo "[*]<a href='?p=$post->ID'>";
the_title();
echo '</a>';
}
?>
[/list]
<?php endif; ?>
<?php
global $comment;
if ( $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments ORDER BY comment_date_gmt DESC LIMIT 15") ) :?>
<h2><li id="lastcomments"><div class="menutitle"><?php _e('Liste neuster Kommentare'); ?></div></h2>
<ul>
<?php foreach ($comments as $comment) {
echo '[*]' . sprintf('%s zu </span/>%s', get_comment_author_link(), '[url="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '"]' . get_the_title($comment->comment_post_ID) . '[/url]');
}
?>
[/list]
<?php endif; ?>
<?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>
[*]<h2><?php _e('Archiviert'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
[/list]
[*]<h2><?php _e('Categories'); ?></h2>
<ul>
<?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>
[/list]
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php get_links_list(); ?>
[*]<h2><?php _e('Technisches'); ?></h2>
<ul>
<?php wp_register(); ?>
[*]<?php wp_loginout(); ?>
[*][url="http://validator.w3.org/check/referer"]"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?>[/url]
[*][url="http://gmpg.org/xfn/"]<abbr title="XHTML Friends Network">XFN</abbr>[/url]
[*][url="http://wordpress.org/"]">WordPress[/url]
<?php wp_meta(); ?>
[/list]
<?php } ?>
[/list]
</div>
Alles anzeigen