Advertisement
Guest User

Untitled

a guest
Aug 28th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.56 KB | None | 0 0
  1. <?php if ((!function_exists("check_theme_footer") || !function_exists("check_theme_header"))) { ?><?php { /* nothing */ } ?><?php } else { ?>
  2.  
  3. <?php get_header(); ?>
  4.  
  5. <div id="content">
  6.  
  7. <?php $featured_slider_activate = get_theme_option('featured_activate'); if(($featured_slider_activate == '') || ($featured_slider_activate == 'No')) { ?>
  8. <?php { /* nothing */ } ?>
  9. <?php } else { ?>
  10. <?php if((is_home())&& ($paged < 1)) { ?>
  11. <?php include (TEMPLATEPATH . '/featured.php'); ?>
  12. <?php } ?>
  13. <?php } ?>
  14.  
  15. <div id="post-entry">
  16.  
  17. <?php $postcounter = 1; if (have_posts()) : ?>
  18.  
  19. <?php if(is_home()) { ?>
  20.  
  21. <?php $featured_category = get_theme_option('featured_category'); ?>
  22.  
  23. <?php $category_id = get_cat_id($featured_category); ?>
  24.  
  25. <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('showposts=' . '7' . '&' . 'cat=-6'. $category_id . '&' . 'paged=' . $paged); ?>
  26.  
  27. <?php } ?>
  28.  
  29. <?php while (have_posts()) : $postcounter = $postcounter + 1; the_post(); $do_not_duplicate = $post->ID; $the_post_ids = get_the_ID(); ?>
  30.  
  31. <div class="post-meta" id="post-<?php the_ID(); ?>">
  32.  
  33. <h2><a>" rel="bookmark" title="<?php the_title(); ?>"><span><?php the_title(); ?></span></a></h2>
  34.  
  35. <?php $values = get_post_custom_values("post-img"); if (isset($values[0])) : ?>
  36.  
  37. <?php $timthumb_activate = get_theme_option('timthumb_activate'); if($timthumb_activate == 'Yes') { ?>
  38.  
  39. <div class="post-img">
  40. <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>
  41. </div><!-- POST IMG END -->
  42.  
  43. <?php } else { ?>
  44.  
  45. <div class="post-img">
  46. <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>
  47. </div><!-- POST IMG END -->
  48.  
  49. <?php } ?>
  50.  
  51. <?php else: ?>
  52.  
  53. <?php $timthumb_activate = get_theme_option('timthumb_activate'); if($timthumb_activate == 'Yes') { ?>
  54.  
  55. <div class="post-img">
  56. <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>
  57. </div><!-- POST IMG END -->
  58.  
  59. <?php } else { ?>
  60.  
  61. <div class="post-img">
  62. <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>
  63. </div><!-- POST IMG END -->
  64.  
  65. <?php } ?>
  66.  
  67. <?php endif; ?>
  68.  
  69.       <div class="post-date">Postado em
  70.         <?php the_time('d M Y') ?>
  71.         Por
  72.         <?php the_author_posts_link(); ?>
  73.         . em
  74.         <?php the_category(', ') ?>
  75.         .</div>
  76. <div class="post-content">
  77. <?php the_post_excerpt(); ?>
  78. </div><!-- POST CONTENT <?php the_ID(); ?> END  -->
  79. <div class="post-com"><?php comments_number('Sem Comentário', '1 Comentário', '% Comentários'); ?></div>
  80. <div class="clearfix"></div>
  81. </div><!-- POST META <?php the_ID(); ?> END -->
  82.  
  83. <?php $get_google_activate = get_theme_option('adsense_loop_activate'); if(($get_google_activate == '') || ($get_google_activate == 'Disable')) { ?>
  84. <?php } else { ?>
  85. <?php $get_google_code = get_theme_option('adsense_loop'); if($get_google_code == '') { ?>
  86. <?php } else { ?>
  87. <?php if($postcounter <= 4){ ?>
  88. <div class="adsense-loop">
  89. <?php echo stripcslashes($get_google_code); ?>
  90. </div>
  91. <?php } ?>
  92. <?php } ?>
  93. <?php } ?>
  94.  
  95. <?php endwhile; ?>
  96.  
  97. <?php else : ?>
  98.  
  99.     <p class="center">NÃO ENCONTRADO</p>
  100.  
  101.     <p class="center">Desculpe, mas você está procurando por algo que
  102.       não está aqui.</p>
  103.  
  104. <?php endif; ?>
  105.  
  106. </div><!-- POST ENTRY END -->
  107.  
  108. <!--?php include (TEMPLATEPATH . '/paginate.php'); ?-->
  109.  
  110. <div id="post-navigator">
  111. <div class="alignleft"><?php next_posts_link('« Entradas mais antigas') ?></div>
  112. <div class="alignright"><?php previous_posts_link('Entradas mais recentes »') ?></div>
  113. </div>
  114.  
  115. </div><!-- CONTENT END -->
  116.  
  117. <?php get_sidebar(); ?>
  118.  
  119. <?php get_footer(); ?>
  120.  
  121. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement