Moin,
habe mal wieder ein kleines Problemchen auf meiner Seite http://www.die-newsblogger.de
möcht die "Tabbs" an dritte Stelle, leider sind die Tabbs in der Sidebar fst inplantiert. So das ich durch verschieben des Codes die Tabbs nur an den Anfang oder ans Ende der Sidebar bekomme. Kann man die Tabbs irgendwie in ein Textwidget packen und dann an die gewünschte stelle packen?
Hier mal der Code:
<?php
if ($wpzoom_sidebar_tabs_show == 'Yes')
{
include(TEMPLATEPATH . '/wpzoom_tabs.php'); // Calling Tab Widget Recent/Comments/Popular/Tags
}
?>
in der wpzoom_tabs.php steht dann
<div id="tabs">
<ul class="tabs_menu">
<li><a href="#tab1">Latest</a></li>
<li><a href="#tab2">Comments</a></li>
<li><a href="#tab3">Popular</a></li>
<li><a href="#tab4">Tags</a></li>
</ul>
<div class="tab_container">
<div id="tab1" class="tab_content">
<!-- Recent Articles -->
<ul>
<?php $the_query = new WP_Query('showposts=5');
while ($the_query->have_posts()) : $the_query->the_post();
?>
<li>
<?php unset($photo);
if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
the_post_thumbnail(array(50,9999, true));
}
else{
if ($wpzoom_cf_use == 'Yes')
{
$photo = get_post_meta($post->ID, $wpzoom_cf_photo, true);
} // if CF used
else
{
if (!$photo)
{
$photo = catch_that_image($post->ID);
}
} // if CF not used
if ($photo)
{
?>
<img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?w=50&h=50&zc=1&src=<?php echo $photo; ?>" alt="<?php the_title(); ?>" />
<?php
}
}
?><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
<div class="clear"></div>
</li>
<?php endwhile; ?>
</ul>
</div>
<!-- Recent Comments -->
<div id="tab2" class="tab_content">
<ul>
<?php dp_recent_comments(5); ?>
</ul>
</div>
<!-- Popular Articles -->
<div id="tab3" class="tab_content">
<ul>
<?php if (function_exists('get_mostpopular')) { get_mostpopular('title=false'); } else { ft_popular_posts(); } ?>
</ul>
</div>
<!-- Tags Widget -->
<div id="tab4" class="tab_content">
<?php if ( function_exists('wp_tag_cloud') ) : ?>
<?php wp_tag_cloud('smallest=8&largest=18'); ?>
<?php endif; ?>
</div>
</div>
</div> <!-- /#tabs -->
Alles anzeigen
wäre nett wenn mir einer helfen würde :)
Grüße
Dr.Disco