Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ((!function_exists("check_theme_footer") || !function_exists("check_theme_header"))) { ?><?php { /* nothing */ } ?><?php } else { ?>
- <?php get_header(); ?>
- <div id="content">
- <?php $featured_slider_activate = get_theme_option('featured_activate'); if(($featured_slider_activate == '') || ($featured_slider_activate == 'No')) { ?>
- <?php { /* nothing */ } ?>
- <?php } else { ?>
- <?php if((is_home())&& ($paged < 1)) { ?>
- <?php include (TEMPLATEPATH . '/featured.php'); ?>
- <?php } ?>
- <?php } ?>
- <div id="post-entry">
- <?php $postcounter = 1; if (have_posts()) : ?>
- <?php if(is_home()) { ?>
- <?php $featured_category = get_theme_option('featured_category'); ?>
- <?php $category_id = get_cat_id($featured_category); ?>
- <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('showposts=' . '7' . '&' . 'cat=-6'. $category_id . '&' . 'paged=' . $paged); ?>
- <?php } ?>
- <?php while (have_posts()) : $postcounter = $postcounter + 1; the_post(); $do_not_duplicate = $post->ID; $the_post_ids = get_the_ID(); ?>
- <div class="post-meta" id="post-<?php the_ID(); ?>">
- <h2><a>" rel="bookmark" title="<?php the_title(); ?>"><span><?php the_title(); ?></span></a></h2>
- <?php $values = get_post_custom_values("post-img"); if (isset($values[0])) : ?>
- <?php $timthumb_activate = get_theme_option('timthumb_activate'); if($timthumb_activate == 'Yes') { ?>
- <div class="post-img">
- <a>" title="<?php the_title(); ?>"><img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php $values = get_post_custom_values("post-img"); echo $values[0]; ?>&w=<?php $thumbwidth = get_theme_option('thumb_width'); if($thumbwidth == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbwidth); ?><?php } ?>&h=<?php $thumbheight = get_theme_option('thumb_height'); if($thumbheight == '') { ?>150<?php } else { ?><?php echo stripcslashes($thumbheight); ?><?php } ?>&zc=1&q=100&cropfrom=<?php $thumbcrop = get_theme_option('timthumb_cropping'); if($thumbcrop == '') { ?>topcenter<?php } else { ?><?php echo stripcslashes($thumbcrop); ?><?php } ?>" alt="<?php the_title(); ?>" /></a>
- </div><!-- POST IMG END -->
- <?php } else { ?>
- <div class="post-img">
- <a>" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("post-img"); echo $values[0]; ?>" alt="<?php the_title(); ?>" width="<?php $thumbwidth = get_theme_option('thumb_width'); if($thumbwidth == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbwidth); ?><?php } ?>" height="<?php $thumbheight = get_theme_option('thumb_height'); if($thumbheight == '') { ?>150<?php } else { ?><?php echo stripcslashes($thumbheight); ?><?php } ?>" /></a>
- </div><!-- POST IMG END -->
- <?php } ?>
- <?php else: ?>
- <?php $timthumb_activate = get_theme_option('timthumb_activate'); if($timthumb_activate == 'Yes') { ?>
- <div class="post-img">
- <a>" title="<?php the_title(); ?>"><img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_post_image(); ?>&w=<?php $thumbwidth = get_theme_option('thumb_width'); if($thumbwidth == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbwidth); ?><?php } ?>&h=<?php $thumbheight = get_theme_option('thumb_height'); if($thumbheight == '') { ?>150<?php } else { ?><?php echo stripcslashes($thumbheight); ?><?php } ?>&zc=1&q=100&cropfrom=<?php $thumbcrop = get_theme_option('timthumb_cropping'); if($thumbcrop == '') { ?>topcenter<?php } else { ?><?php echo stripcslashes($thumbcrop); ?><?php } ?>" alt="<?php the_title(); ?>" /></a>
- </div><!-- POST IMG END -->
- <?php } else { ?>
- <div class="post-img">
- <a>" title="<?php the_title(); ?>"><img src="<?php echo get_post_image(); ?>" alt="<?php the_title(); ?>" width="<?php $thumbwidth = get_theme_option('thumb_width'); if($thumbwidth == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbwidth); ?><?php } ?>" height="<?php $thumbheight = get_theme_option('thumb_height'); if($thumbheight == '') { ?>150<?php } else { ?><?php echo stripcslashes($thumbheight); ?><?php } ?>" /></a>
- </div><!-- POST IMG END -->
- <?php } ?>
- <?php endif; ?>
- <div class="post-date">Postado em
- <?php the_time('d M Y') ?>
- Por
- <?php the_author_posts_link(); ?>
- . em
- <?php the_category(', ') ?>
- .</div>
- <div class="post-content">
- <?php the_post_excerpt(); ?>
- </div><!-- POST CONTENT <?php the_ID(); ?> END -->
- <div class="post-com"><?php comments_number('Sem Comentário', '1 Comentário', '% Comentários'); ?></div>
- <div class="clearfix"></div>
- </div><!-- POST META <?php the_ID(); ?> END -->
- <?php $get_google_activate = get_theme_option('adsense_loop_activate'); if(($get_google_activate == '') || ($get_google_activate == 'Disable')) { ?>
- <?php } else { ?>
- <?php $get_google_code = get_theme_option('adsense_loop'); if($get_google_code == '') { ?>
- <?php } else { ?>
- <?php if($postcounter <= 4){ ?>
- <div class="adsense-loop">
- <?php echo stripcslashes($get_google_code); ?>
- </div>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <?php endwhile; ?>
- <?php else : ?>
- <p class="center">NÃO ENCONTRADO</p>
- <p class="center">Desculpe, mas você está procurando por algo que
- não está aqui.</p>
- <?php endif; ?>
- </div><!-- POST ENTRY END -->
- <!--?php include (TEMPLATEPATH . '/paginate.php'); ?-->
- <div id="post-navigator">
- <div class="alignleft"><?php next_posts_link('« Entradas mais antigas') ?></div>
- <div class="alignright"><?php previous_posts_link('Entradas mais recentes »') ?></div>
- </div>
- </div><!-- CONTENT END -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement