Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/04/2015, 17:24
Avatar de TMeister
TMeister
Crazy Coder
 
Fecha de Ingreso: enero-2002
Ubicación: En la Oficina
Mensajes: 2.880
Antigüedad: 22 años, 3 meses
Puntos: 193
Respuesta: visible por 7 días

Quedaría de esta forma:

Código PHP:
Ver original
  1. <?php
  2.     $post_date = strtotime( $post->post_date );
  3.     $limit_time = time() - ( 7 * DAY_IN_SECONDS );
  4. ?>
  5. <?php if ($post_date > $limit_time):?>
  6.     <div class="nuevo"></div>
  7. <?php endif ?>
  8.  
  9. <div class="div_fondito">
  10.     <section class="suf-mag-excerpts suf-mag-excerpts-3">
  11.  
  12.         <!--sección vídeos -->
  13.         <?php
  14.             query_posts('cat=35&showposts=6');
  15.             while (have_posts ()): the_post();
  16.             global $post;
  17.             $thumb = vp_get_thumb_url($post->post_content);
  18.             /**
  19.              * GET THE POST TIME & TIME - 7 DAYS
  20.              */
  21.             $post_date = strtotime( $post->post_date );
  22.             $limit_time = time() - ( 7 * DAY_IN_SECONDS );
  23.         ?>
  24.  
  25.             <li class="suf-mag-excerpt entry-content suf-tile-3c below">
  26.  
  27.                 <?php if ($post_date > $limit_time):?>
  28.                     <div class="nuevo"></div>
  29.                 <?php endif ?>
  30.  
  31.                 <div align="center" style="font-style:italic" class="div_bloque">
  32.                     <?php if(function_exists('the_views')) { the_views(); } ?>
  33.                 </div>
  34.  
  35.                 <div class="div_bloque">
  36.                     <a href="<?php the_permalink() ?>">
  37.                         <?php
  38.                             if ($thumb!='')
  39.                                 echo '<img width=90px height=120px;" src="'.$thumb.'" alt="'. get_the_title().'" />';
  40.                         ?>
  41.                     </a>
  42.                 </div>
  43.  
  44.                 <div class="div_bloque">
  45.                     <a class="entry-title" href="<?php the_permalink(); ?>">
  46.                         <?php the_title(); ?>
  47.                     </a>
  48.                 </div>
  49.             </li>
  50.         <?php endwhile; ?>
  51.     </section>
  52. </div>