SHARE
TWEET

Untitled

a guest Mar 21st, 2013 32 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. QUESTO LO TROVI IN tmpl_home.php
  2.  
  3. <h2>Ultime comunicazioni</h2>
  4. <?php
  5.         if(($inevidenza) != "") :
  6.          ?>
  7.         <?php
  8.         global $post;
  9.         $myposts = get_posts('numberposts=3&category='.$inevidenza);
  10.         foreach($myposts as $post) :
  11.                         setup_postdata($post);
  12.                         global $more;
  13.                         $more = 0;
  14.         ?>
  15.                 <h3><?php the_time('j M y') ?> - <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  16.                   <?php the_excerpt(); ?>
  17.         <?php endforeach; ?>
  18.        
  19. <p class="dx"><a href="index.php/news/"> Tutte le news ... </ a></p>   
  20. <?php
  21.         endif;
  22. ?>
  23. <?php
  24.         if(($ultimecomunicazioni) != "") :
  25.          ?>
  26.         <?php
  27.         global $post;
  28.         $myposts = get_posts('numberposts=3&category='.$ultimecomunicazioni);
  29.         foreach($myposts as $post) :
  30.                         setup_postdata($post);
  31.                         global $more;
  32.                         $more = 0;
  33.         ?>
  34.                 <h3><?php the_time('j M y') ?> - <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  35.                   <?php the_excerpt(); ?>
  36.         <?php endforeach; ?>
  37.        
  38.         <p class="dx"><a href="circolari/">Tutte le circolari...</a></p>
  39.  
  40. MODIFICA COSì
  41. <h2>Ultime comunicazioni</h2>
  42. <?php
  43.         endif;
  44. ?>
  45. <?php
  46.         if(($ultimecomunicazioni) != "") :
  47.          ?>
  48.         <?php
  49.         global $post;
  50.         $myposts = get_posts('numberposts=3&category='.$ultimecomunicazioni);
  51.         foreach($myposts as $post) :
  52.                         setup_postdata($post);
  53.                         global $more;
  54.                         $more = 0;
  55.         ?>
  56.                 <h3><?php the_time('j M y') ?> - <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  57.                   <?php the_excerpt(); ?>
  58.         <?php endforeach; ?>
  59.        
  60.         <p class="dx"><a href="circolari/">Tutte le circolari...</a></p>
  61. <?php
  62.         if(($inevidenza) != "") :
  63.          ?>
  64.         <?php
  65.         global $post;
  66.         $myposts = get_posts('numberposts=3&category='.$inevidenza);
  67.         foreach($myposts as $post) :
  68.                         setup_postdata($post);
  69.                         global $more;
  70.                         $more = 0;
  71.         ?>
  72.                 <h3><?php the_time('j M y') ?> - <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  73.                   <?php the_excerpt(); ?>
  74.         <?php endforeach; ?>
  75.        
  76. <p class="dx"><a href="index.php/news/"> Tutte le news ... </ a></p>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top