Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header();?>
- <div id="category">
- <ul>
- <?php if (have_posts()): while (have_posts()) : the_post();?>
- <li>
- <a href="<?php the_Permalink()?>">
- <?php
- $key="img";
- $img = get_post_meta($post->ID,$key,true);
- if(isset($img) && $img >= '1'){ ?>
- <a href="<?php the_Permalink()?>" title="<?php the_title();?>" alt="<?php the_title();?>">
- <img src="<?php echo get_option('home');?>/<?php $key="img";echo get_post_meta($post->ID,$key,true);?>"
- title="<?php the_title();?>" alt="<?php the_title();?>" width="100px" height="80px"></a>
- <?php }else{}?>
- <span class="titulo"><a href="<?php the_Permalink()?>"><?php the_title();?></a></span>
- <span class="meta">
- <span><?php if(function_exists('the_ratings')) { the_ratings(); } ?></span>
- <?php comments_popup_link('0 comentário','1 comentário','% Comentários'); ?> |
- <?php if(function_exists('the_views')){the_views();}?>
- </span>
- <p><?php the_excerpt(); ?></p>
- </li>
- <?php endwhile; else:?>
- <?php endif;?>
- </ul>
- <div class="paginator"><?php wp_pagenavi(); ?></div><!--paginator-->
- <span class="google"><img src="<?php bloginfo('template_directory'); ?>/images/468x60.gif" /></span>
- </div><!--category-->
- <div id="single_sidebar">
- <?php include (TEMPLATEPATH . '/cat_sidebar.php'); ?>
- </div><!--single_sidebar-->
- <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement