Changeset 46095

Show
Ignore:
Timestamp:
05/15/08 21:24:04 (2 months ago)
Author:
robfelty
Message:

updating the trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • collapsing-archives/trunk/CHANGELOG

    r43636 r46095  
    11Collapsing Archives Changelog 
     2 
     3* 0.8.6 
     4    * fixed bug which had wrong markup when months were turned off 
    25 
    36* 0.8.5 
  • collapsing-archives/trunk/collapsArch.css

    r43636 r46095  
    11/* 
    2 Collapsing Archives version: 0.8.5 
     2Collapsing Archives version: 0.8.6 
    33Copyright 2007 Robert Felty 
    44 
  • collapsing-archives/trunk/collapsArch.php

    r43636 r46095  
    55Description: Allows users to expand and collapse archive links like Blogger  
    66Author: Robert Felty 
    7 Version: 0.8.5 
     7Version: 0.8.6 
    88Author URI: http://robfelty.com 
    99 
     
    8282            echo "<script type=\"text/javascript\">\n"; 
    8383            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"; 
    8585            echo "collapsArchExpCurrYear = "; 
    8686            if (get_option('collapsArchExpandCurrentYear')=='yes') { 
  • collapsing-archives/trunk/collapsArchList.php

    r43636 r46095  
    11<?php 
    22/* 
    3 Collapsing Archives version: 0.8.5 
     3Collapsing Archives version: 0.8.6 
    44 
    55Copyright 2007 Robert Felty 
     
    145145       
    146146      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        } 
    153157      } 
    154158      echo "  <li class='collapsArch'><span title='$yearTitle' class='collapsArch $yearRel' onclick='expandArch(event); return false' >$ding</span>"; 
    155159      $home = get_settings('home'); 
    156160      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      } 
    158164      $newYear = false; 
    159165    } 
     
    165171        $newYear=true;  
    166172      } 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        } 
    172180      } 
    173181 
     
    319327  } 
    320328  if( get_option('collapsArchShowMonths')=='yes' && get_option('collapsArchExpandMonths')=='yes' ) { 
    321     echo "        </ul>\n"; 
     329    echo "        </ul>\n 
     330      </li> <!-- close month --> 
     331    </ul>"; 
    322332  } 
    323333} ?> 
    324       </li> <!-- close month --> 
    325     </ul> 
    326334  </li> <!-- close year --> 
    327335</ul> 
  • collapsing-archives/trunk/readme.txt

    r43640 r46095  
    55Requires at least: 2.0 
    66Tested up to: 2.5.1 
    7 Stable tag: 0.8.5 
     7Stable tag: 0.8.6 
    88 
    99This plugin uses Javascript to dynamically expand or collaps the set of 
     
    107107== HISTORY == 
    108108 
     109* 0.8.6 
     110    * fixed bug which had wrong markup when months were turned off 
     111 
    109112* 0.8.5 
    110113    * fixed bug (introduced in 0.8.2) that made the widget not show up after an 
  • collapsing-archives/trunk/updateOptions.php

    r41462 r46095  
    1919            else { 
    2020                  update_option( 'collapsArchShowMonths', 'no' ); 
     21                  update_option( 'collapsArchExpandCurrentMonth', 'no' ); 
     22                  update_option( 'collapsArchShowMonthCount', 'no' ); 
     23                  update_option( 'collapsArchExpandMonths', 'no' ); 
    2124            } 
    2225