Changeset 46095
- Timestamp:
- 05/15/08 21:24:04 (2 months ago)
- Files:
-
- collapsing-archives/trunk/CHANGELOG (modified) (1 diff)
- collapsing-archives/trunk/collapsArch.css (modified) (1 diff)
- collapsing-archives/trunk/collapsArch.php (modified) (2 diffs)
- collapsing-archives/trunk/collapsArchList.php (modified) (4 diffs)
- collapsing-archives/trunk/readme.txt (modified) (2 diffs)
- collapsing-archives/trunk/updateOptions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
collapsing-archives/trunk/CHANGELOG
r43636 r46095 1 1 Collapsing Archives Changelog 2 3 * 0.8.6 4 * fixed bug which had wrong markup when months were turned off 2 5 3 6 * 0.8.5 collapsing-archives/trunk/collapsArch.css
r43636 r46095 1 1 /* 2 Collapsing Archives version: 0.8. 52 Collapsing Archives version: 0.8.6 3 3 Copyright 2007 Robert Felty 4 4 collapsing-archives/trunk/collapsArch.php
r43636 r46095 5 5 Description: Allows users to expand and collapse archive links like Blogger 6 6 Author: Robert Felty 7 Version: 0.8. 57 Version: 0.8.6 8 8 Author URI: http://robfelty.com 9 9 … … 82 82 echo "<script type=\"text/javascript\">\n"; 83 83 echo "// <![CDATA[\n"; 84 echo "// These variables are part of the Collapsing Archives Plugin version: 0.8. 5\n// Copyright 2007 Robert Felty (robfelty.com)\n";84 echo "// These variables are part of the Collapsing Archives Plugin version: 0.8.6\n// Copyright 2007 Robert Felty (robfelty.com)\n"; 85 85 echo "collapsArchExpCurrYear = "; 86 86 if (get_option('collapsArchExpandCurrentYear')=='yes') { collapsing-archives/trunk/collapsArchList.php
r43636 r46095 1 1 <?php 2 2 /* 3 Collapsing Archives version: 0.8. 53 Collapsing Archives version: 0.8.6 4 4 5 5 Copyright 2007 Robert Felty … … 145 145 146 146 if($i>=2 && $allPosts[$i-2]->year != $archPost->year ) { 147 if( get_option('collapsArchExpandMonths')=='yes' ) { 148 echo " </ul>\n </li> <!-- close expanded month --> \n"; 149 } else { 150 echo " </li> <!-- close month --> \n"; 151 } 152 echo " </ul>\n </li> <!-- end year -->\n"; 147 if( get_option('collapsArchShowMonths')=='yes' ) { 148 if( get_option('collapsArchExpandMonths')=='yes' ) { 149 echo " </ul>\n </li> <!-- close expanded month --> \n"; 150 } else { 151 echo " </li> <!-- close month --> \n"; 152 } 153 echo " </ul>\n </li> <!-- end year -->\n"; 154 } else { 155 echo " </li> <!-- end year -->\n"; 156 } 153 157 } 154 158 echo " <li class='collapsArch'><span title='$yearTitle' class='collapsArch $yearRel' onclick='expandArch(event); return false' >$ding</span>"; 155 159 $home = get_settings('home'); 156 160 echo "<a href='".get_year_link($archPost->year). "'>$currentYear</a>$yearCount\n"; 157 echo " <ul $monthStyle id='collapsArchList-$currentYear'>\n"; 161 if( get_option('collapsArchShowMonths')=='yes' ) { 162 echo " <ul $monthStyle id='collapsArchList-$currentYear'>\n"; 163 } 158 164 $newYear = false; 159 165 } … … 165 171 $newYear=true; 166 172 } else { 167 if( get_option('collapsArchExpandMonths')=='yes' ) { 168 echo " </ul>\n </li> <!-- close expanded month --> \n"; 169 } else { 170 echo " </li> <!-- close month --> \n"; 171 } 173 if( get_option('collapsArchShowMonths')=='yes' ) { 174 if( get_option('collapsArchExpandMonths')=='yes' ) { 175 echo " </ul>\n </li> <!-- close expanded month --> \n"; 176 } else { 177 echo " </li> <!-- close month --> \n"; 178 } 179 } 172 180 } 173 181 … … 319 327 } 320 328 if( get_option('collapsArchShowMonths')=='yes' && get_option('collapsArchExpandMonths')=='yes' ) { 321 echo " </ul>\n"; 329 echo " </ul>\n 330 </li> <!-- close month --> 331 </ul>"; 322 332 } 323 333 } ?> 324 </li> <!-- close month -->325 </ul>326 334 </li> <!-- close year --> 327 335 </ul> collapsing-archives/trunk/readme.txt
r43640 r46095 5 5 Requires at least: 2.0 6 6 Tested up to: 2.5.1 7 Stable tag: 0.8. 57 Stable tag: 0.8.6 8 8 9 9 This plugin uses Javascript to dynamically expand or collaps the set of … … 107 107 == HISTORY == 108 108 109 * 0.8.6 110 * fixed bug which had wrong markup when months were turned off 111 109 112 * 0.8.5 110 113 * fixed bug (introduced in 0.8.2) that made the widget not show up after an collapsing-archives/trunk/updateOptions.php
r41462 r46095 19 19 else { 20 20 update_option( 'collapsArchShowMonths', 'no' ); 21 update_option( 'collapsArchExpandCurrentMonth', 'no' ); 22 update_option( 'collapsArchShowMonthCount', 'no' ); 23 update_option( 'collapsArchExpandMonths', 'no' ); 21 24 } 22 25
