Guest User

home.php

a guest
Sep 27th, 2011
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.80 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <!-- home -->
  4.  
  5. <div id="content">
  6.  
  7.     <div id="contentleft">
  8.        
  9.         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  10.        
  11.         <div id="postPreview">
  12.        
  13.             <div id="titoloArticolo">
  14.                 <h1> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
  15.             </div> <!--end titolo articolo-->
  16.        
  17.             <div id="metaPost">
  18.                 <h6>Publicato il: <?php the_time('j F Y') ?>  |  Categorie: <?php the_category(', ') ?>  |  Commenti: <?php comments_popup_link('0', '1', '%'); ?></h6>
  19.             </div> <!--end metaPost-->
  20.        
  21.             <?php
  22.             if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
  23.                 <div id="thumbnails">
  24.                     <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?></a>
  25.                 </div>
  26.             <?php }
  27.             else { $postimage = get_post_meta($post->ID, 'campo-thumbnail', true);
  28.             if ($postimage) { echo '<img src="'.$postimage.'" alt="" />'; } }
  29.             ?>
  30.        
  31.             <div id="riassunto">
  32.                 <?php the_content(__('<span class="continua">...continua</span>'));?>
  33.             </div> <!--end riassunto-->
  34.        
  35.         </div>
  36.          
  37.         <div id="divisorePost"></div> <!-- divisore articoli -->   
  38.            
  39.         <div class="nofloat"></div>
  40.    
  41.         <?php endwhile; else: ?>
  42.    
  43.         <p><?php _e('Spiacenti, nessun articolo per questa categoria.'); ?></p>
  44.         <?php endif; ?>
  45.         <div class="nofloat"></div>
  46.  
  47.         <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
  48.  
  49.         <div class="nofloat"></div>
  50.  
  51.     </div><!--contentleft-->
  52.  
  53.     <?php include(TEMPLATEPATH."/l_sidebar.php");?>
  54.     <?php include(TEMPLATEPATH."/r_sidebar.php");?>
  55.  
  56.     <div class="nofloat"></div>
  57.  
  58. </div><!--content -->
  59.  
  60. <?php get_footer(); ?>
  61.  
Advertisement
Add Comment
Please, Sign In to add comment