Changeset 223609
- Timestamp:
- 03/31/2010 02:41:19 PM (16 years ago)
- Location:
- wp-timeline-archive/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wp-timeline-archive.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-timeline-archive/trunk/readme.txt
r223603 r223609 4 4 Requires at least: 2.7 5 5 Tested up to: 2.9 6 Stable tag: 1.0 6 Stable tag: 1.0.1 7 7 8 8 Displays the archive in a timeline. -
wp-timeline-archive/trunk/wp-timeline-archive.php
r223603 r223609 5 5 Description: Shows archive in a timeline. 6 6 Author: Marcos Esperon 7 Version: 1.0 7 Version: 1.0.1 8 8 Author URI: http://www.dolcebita.com 9 9 */ … … 26 26 */ 27 27 28 define('vNUM','1.0 ');28 define('vNUM','1.0.1'); 29 29 30 30 function timeline_archive($atts = '') { … … 70 70 71 71 if($year != $post->year) { 72 if($month !='' || $day != '') { 73 $month = $day = ''; 74 $output .= '</ul>'; 75 } 76 if($year != '') $output .= '</ul>'; 72 77 $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>'; 74 79 } 75 80 76 81 if($month != $post->month || $day != $post->day) { 82 if($month !='' || $day != '') $output .= '</ul>'; 77 83 $month = $post->month; 78 84 $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>'; 80 86 } 81 87 … … 100 106 101 107 } 108 109 if($month !='' || $day != '') $output .= '</ul>'; 110 if($year != '') $output .= '</ul>'; 102 111 103 112 $output .= ' <div class="clear"></div>';
Note: See TracChangeset
for help on using the changeset viewer.