Plugin Directory

Changeset 223609


Ignore:
Timestamp:
03/31/2010 02:41:19 PM (16 years ago)
Author:
hanok
Message:

Version 1.0.1 listas separadas

Location:
wp-timeline-archive/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-timeline-archive/trunk/readme.txt

    r223603 r223609  
    44Requires at least: 2.7
    55Tested up to: 2.9
    6 Stable tag: 1.0
     6Stable tag: 1.0.1
    77
    88Displays the archive in a timeline.
  • wp-timeline-archive/trunk/wp-timeline-archive.php

    r223603 r223609  
    55Description: Shows archive in a timeline.
    66Author: Marcos Esperon
    7 Version: 1.0
     7Version: 1.0.1
    88Author URI: http://www.dolcebita.com
    99*/
     
    2626*/
    2727
    28 define('vNUM','1.0');
     28define('vNUM','1.0.1');
    2929
    3030function timeline_archive($atts = '') {
     
    7070       
    7171        if($year != $post->year) {
     72          if($month !='' || $day != '') {
     73            $month = $day = '';
     74            $output .= '</ul>';
     75          }
     76          if($year != '') $output .= '</ul>';
    7277          $year = $post->year;
    73           $output .= '<li class="box year"><a href="'.get_option('home').'/'.$year.'/">'.$year.'</a></li>';
     78          $output .= '<li class="box year"><a href="'.get_option('home').'/'.$year.'/">'.$year.'</a></li><ul>';
    7479        }
    7580       
    7681        if($month != $post->month || $day != $post->day) {
     82          if($month !='' || $day != '') $output .= '</ul>';
    7783          $month = $post->month;
    7884          $day = $post->day;
    79           $output .= '<li class="box day"><a href="'.get_option('home').'/'.$year.'/'.$month.'/'.$day.'/">'.date_i18n( __( 'd'), strtotime($post->post_date)).'<span>'.date_i18n( __( 'M \'y'), strtotime($post->post_date)).'</span></a></li>';
     85          $output .= '<li class="box day"><a href="'.get_option('home').'/'.$year.'/'.$month.'/'.$day.'/">'.date_i18n( __( 'd'), strtotime($post->post_date)).'<span>'.date_i18n( __( 'M \'y'), strtotime($post->post_date)).'</span></a></li><ul>';
    8086        }
    8187       
     
    100106       
    101107      }
     108     
     109      if($month !='' || $day != '') $output .= '</ul>';
     110      if($year != '') $output .= '</ul>';
    102111     
    103112      $output .= '  <div class="clear"></div>';
Note: See TracChangeset for help on using the changeset viewer.