Linux 软件免费装
Banner图

Moo Collapsing Archives

开发者 3dolab
更新时间 2016年2月6日 19:35
PHP版本: 2.8 及以上
WordPress版本: 4.4.2

标签

widget posts sidebar menu navigation collapsible mootools archives collapsing

下载

0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 0.5.8 0.1 0.2 0.3 0.4 0.4.1 0.5 0.5.1 0.5.2

详情介绍:

This is a relatively simple plugin that uses Javascript based on MooTools framework to make the Archive links in the sidebar collapsable by year and/or month. Fork of Rob Felty's Collapsing Archives. Multiple languages content is now fully supported through compatibility with qTranslate and WPML Multilingual CMS Plugin Homepage: http://www.3dolab.net/en/mootools-collapsing-categories-and-archives Running Demo banner image by Karora icon by Jdforrester 有什么新东西? See the CHANGELOG for more information

安装:

IMPORTANT! Please deactivate before upgrading, then re-activate the plugin. MANUAL INSTALLATION Unpack the contents to wp-content/plugins/ so that the files are in a collapsing-archives directory. Now enable the plugin. To use the plugin, change the following here appropriate (most likely sidebar.php): Change From: To something of the following: <?php if( function_exists('collapsArch') ) { collapsArch(); } else { echo "<ul>\n"; wp_get_archives(); echo "</ul>\n"; } ?> You can specify options for collapsArch. See options section. WIDGET INSTALLATION For those who have widget capabilities, (default in Wordpress 2.3+), installation is easier. Unzip contents to wp-content/plugins/ so that the files are in a mootools-collapsing-archives/ directory. You must enable the plugin, then simply go the Presentation > Widgets section and add the Widget.

屏幕截图:

  • the widget in action
  • the Admin Widget Settings page

其他记录:

Options and configuration $defaults=array( 'noTitle' => '', 'inExcludeCat' => 'exclude', 'inExcludeCats' => '', 'inExcludeYear' => 'exclude', 'inExcludeYears' => '', 'sort' => 'DESC', 'showPages' => false, 'linkToArch' => true, 'showYearCount' => true, 'expandCurrentYear' => true, 'expandMonths' => true, 'expandYears' => true, 'expandCurrentMonth' => true, 'showMonthCount' => true, 'showPostTitle' => true, 'expand' => '0', 'showPostDate' => false, 'postDateFormat' => 'm/d', 'animate' => 0, 'postTitleLength' => '', 'debug' => '0', ); 比如 collapsArch('animate=1&sort=ASC&expand=3,inExcludeCats=general,uncategorized') This will produce a list with: Fallback This plugin relies on Javascript, but does degrade gracefully if it is not present/enabled to show all of the archive links as usual.

常见问题:

How do I change the style of the collapsing archives lists?

The collapsing archives plugin uses several IDs and classes which can be styled with CSS. These can be changed from the settings page. You may have to rename some of the id statements. For example, if your sidebar is called "myawesomesidebar", you would rewrite the line sidebar li.collapsArch {list-style-type:none} to myawesomesidebar li.collapsArch {list-style-type:none} If you are using the plugin manually (i.e. inserting code into your theme), you may want to replace #sidebar with #collapsArchList

There seems to be a newline between the collapsing/expanding symbol and the category name. How do I fix this?

If your theme has some css that says something like sidebar li a {display:block} that is the problem. You probably want to add a float:left to the .sym class

How do I include/exclude pages, or posts belonging to certain categories?

Check the corrisponding boxes in the widget settings. If you are using WPML, please enter each category multiple times as the ID/name of the translations is required alongside the default language. See OPTIONS AND CONFIGURATIONS for manual triggering.

更新日志:

0.5.8 (2016.02.06) 0.5.7 (2013.10.22) 0.5.6 (2011.07.12) 0.5.5 (2011.06.21) 0.5.4 (2011.06.06) 0.5.3 (2011.01.03) 0.5.2 (2010.12.07) 0.5.1 (2010.11.01) 0.5 (2010.10.30) 0.4.1 (2010.10.21) 0.4 (2010.10.20) 0.3 (2010.09.25) 0.2 (2010.06.28) 0.1 (2010.06.16)