
homesidebar.php
By: a guest on
Oct 10th, 2010 | syntax:
PHP | size: 1.28 KB | hits: 100 | expires: Never
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
?>
<ul class="sidebar">
<li>
<h2><?php _e('Blogg'); ?></h2>
<ul>
<?php $my_query = new WP_Query('showposts='.$bz_blogno.'&category_name='.$bz_blog); while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li>
<div class="testi">
<div class="testi_img"><?php mtheme_thumb1(); ?></div>
<h6 class="tits"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php echo shorten_text(get_the_title(), 50); ?></a></h6>
<h3 class="slide_small"><?php the_time('d M Y'); ?></h3>
<p><?php the_excerpt("Les mer"); ?> </p>
</div>
</li>
<?php endwhile; ?>
</ul>
</li>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar("Home Sidebar") ) : else : ?>
<li>
<h2><?php _e('Archives'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<?php endif; ?>
</ul>