Advertisement
Guest User

Untitled

a guest
Jun 15th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.24 KB | None | 0 0
  1. <?php get_header();?>
  2. <?php get_sidebar();?>  
  3.  
  4.        <div id="content">
  5.  
  6.          <div id="content_destaque">
  7.  
  8.            <div id="content_destaque_conteudo">
  9.             <ul>
  10.               <li>
  11.               <?php query_posts('showposts=1&category_name=noticias&offset=1');?>
  12.               <?php if (have_posts()): while (have_posts()) : the_post();?>
  13.  
  14.               <h1><a href="<?php the_Permalink()?>"><?php the_title();?></a></h1>
  15.  
  16.               <?php endwhile; else:?>
  17.               <?php endif;?>
  18.               </li>
  19.               <li>
  20.               <ul>
  21.                 <?php query_posts('showposts=2&category_name=noticias&offset=2');?>
  22.                 <?php if (have_posts()): while (have_posts()) : the_post();?>
  23.  
  24.                 <li><a href="<?php the_Permalink()?>"><?php the_title();?></a></li>
  25.  
  26.                 <?php endwhile; else:?>
  27.                 <?php endif;?>
  28.               </ul>
  29.               </li>
  30.             <li>
  31.                  <?php query_posts('showposts=1&category_name=noticias&offset=4');?>
  32.                  <?php if (have_posts()): while (have_posts()) : the_post();?>
  33.  
  34.                  <a href="<?php the_Permalink()?>"><img src="<?php echo get_image('imagem_single', 1, 1, 0, get_the_ID(), null, null, 'mini100'); ?>" width="100" height="50" border="0" /> </a>
  35.                  <p><a href="<?php the_Permalink()?>"><?php the_title();?></a></p>
  36.  
  37.                  <?php endwhile; else:?>
  38.                  <?php endif;?>
  39.             </li>
  40.             </ul>
  41.            </div><!--fecha content_destaque_conteudo-->
  42.  
  43.            <div id="content_destaque_destaque">
  44.             <?php query_posts('showposts=1&category_name=noticias');?>
  45.             <?php if (have_posts()): while (have_posts()) : the_post();?>
  46.  
  47.             <span><a href="<?php the_Permalink()?>">Postado em <?php the_time('j M Y');?></a></span>
  48.               <a href="<?php the_Permalink()?>"><img src="<?php echo get_image('imagem_single', 1, 1, 0, get_the_ID(), null, null, 'mini350'); ?>" alt="<?php the_title();?>" width="350" height="175" border="0" /> </a>
  49.               <p><a href="<?php the_Permalink()?>"><?php the_title();?></a></p>
  50.  
  51.               <?php endwhile; else:?>
  52.               <?php endif;?>
  53.            </div><!--content_destaque_destaque-->
  54.  
  55.          </div><!--fecha content destaque-->
  56.  
  57.            <div id="content_entretenimento">
  58.  
  59.             <div id="content_entretenimento_conteudo">
  60.             <ul>
  61.             <?php query_posts('showposts=2&category_name=entretenimento');?>
  62.             <?php if (have_posts()): while (have_posts()) : the_post();?>
  63.  
  64.               <li>
  65.               <a href="<?php the_Permalink()?>"><img src="<?php echo get_settings('home'); ?>/<?php $key="img";echo get_post_meta($post->ID,$key,true);?>" alt="<?php the_title();?>" width="200" height="100" border="0" /> </a>
  66.               <a href="<?php the_Permalink()?>"><?php the_title();?></a>
  67.               </li>
  68.  
  69.             <?php endwhile; else:?>
  70.             <?php endif;?>
  71.             </ul>
  72.             </div><!--fecha content_entretenimento_conteudo-->
  73.  
  74.               <div id="content_entretenimento_anuncio">
  75.               <script type="text/javascript"><!--
  76.               google_ad_client = "ca-pub-2878119439698643";
  77.               /* entretenimento_propaganda */
  78.               google_ad_slot = "2843186442";
  79.               google_ad_width = 200;
  80.               google_ad_height = 200;
  81.               //-->
  82.               </script>
  83.               <script type="text/javascript"
  84.               src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  85.               </script>
  86.               </div><!--fecha content_entretenimento_anuncio-->
  87.  
  88.            </div><!--fecha content_entretenimento-->
  89.  
  90.              <div id="content_esportes">
  91.  
  92.               <div id="content_esportes_conteudo">
  93.               <ul>
  94.               <?php query_posts('showposts=3&category_name=esportes');?>
  95.               <?php if (have_posts()): while (have_posts()) : the_post();?>
  96.  
  97.               <li>
  98.               <a href="<?php the_Permalink()?>"><img src="<?php echo get_settings('home'); ?>/<?php $key="img";echo get_post_meta($post->ID,$key,true);?>" alt="<?php the_title();?>" width="200" height="100" border="0" /> </a>
  99.  
  100.               <h1><a href="<?php the_Permalink()?>"><?php $category = get_the_category(); echo $category[1]->cat_name;?></a></h1>
  101.               <p><a href="<?php the_Permalink()?>"><?php the_title();?></a></p>
  102.               </li>
  103.  
  104.               <?php endwhile; else:?>
  105.               <?php endif;?>
  106.  
  107.               </ul>
  108.               </div><!--fecha content_esportes_conteudo-->
  109.  
  110.                <div id="content_esportes_comentados">
  111.                <h1 class="especial">+ COMENTADOS</h1>
  112.                <ol>
  113.                  <?php get_mostcommented(5); ?>
  114.                </ol>
  115.                </div><!--fecha content_esportes_comentados-->
  116.  
  117.              </div><!--fecha content_esportes-->
  118.  
  119.               <div id="content_tecnologia">
  120.  
  121.                 <div id="content_tecnologia_destaque">
  122.                 <ul>
  123.                 <?php query_posts('showposts=1&category_name=tecnologia');?>
  124.                 <?php if (have_posts()): while (have_posts()) : the_post();?>
  125.  
  126.                 <li>
  127.                 <a href="<?php the_Permalink()?>"><img src="<?php echo get_settings('home'); ?>/<?php $key="img";echo get_post_meta($post->ID,$key,true);?>" alt="<?php the_title();?>" width="350" height="175" border="0" /> </a>
  128.                 <a href="<?php the_Permalink()?>"><?php the_title();?></a>
  129.                 </li>
  130.  
  131.                 <?php endwhile; else:?>
  132.                 <?php endif;?>
  133.  
  134.                 </ul>
  135.                 </div><!--fecha content_tecnologia_destaque-->
  136.  
  137.                   <div id="content_tecnologia_conteudo">
  138.                   <ul>
  139.  
  140.                   <?php query_posts('showposts=3&category_name=tecnologia&offset=1');?>
  141.                   <?php if (have_posts()): while (have_posts()) : the_post();?>
  142.  
  143.                   <li><a href="<?php the_Permalink()?>"><?php the_title();?></a></li>
  144.  
  145.                   <?php endwhile; else:?>
  146.                   <?php endif;?>
  147.  
  148.                   </ul>
  149.                   </div><!--fecha content_tecnologia_conteudo-->
  150.  
  151.               </div><!--fecha content_tecnologia-->
  152.  
  153.                 <div id="content_vistos">
  154.  
  155.                  <div id="content_vistos_conteudo">
  156.                   <h1>+ VISTOS</h1>
  157.  
  158.                   <?php if (function_exists('get_most_viewed')): ?>
  159.  
  160.                    <ol>
  161.                     <?php get_most_viewed('post', 5); ?>
  162.                    </ol>
  163.  
  164.                   <?php endif; ?>
  165.  
  166.                  </div><!--fecha content_vistos_conteudo-->
  167.  
  168.                   <div id="content_vistos_anuncio">
  169.                   <h1>/Videos</h1>
  170.  
  171.                    <?php query_posts('showposts=1&category_name=videos');?>
  172.                    <?php if (have_posts()): while (have_posts()) : the_post();?>
  173.  
  174.                     <?php $key="vga";echo get_post_meta($post->ID,$key,true);?>
  175.  
  176.                    <?php endwhile; else:?>
  177.                    <?php endif;?>
  178.  
  179.                   </div><!--fecha content_vistos_anuncio-->
  180.  
  181.                 </div><!--fecha content_vistos-->
  182.  
  183.        </div><!--fecha content-->
  184.  
  185. <?php include (TEMPLATEPATH . '/right_sidebar.php'); ?>
  186.  
  187. <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement