Title: Collapsible Archive Widget
Author: Ady Romantika
Published: <strong>2007 年 8 月 12 日</strong>
Last modified: 2009 年 3 月 16 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/collapsible-archive-widget.svg)

# Collapsible Archive Widget

 作者：[Ady Romantika](https://profiles.wordpress.org/adywarna/)

[下载](https://downloads.wordpress.org/plugin/collapsible-archive-widget.2.3.1.zip)

 * [详情](https://cn.wordpress.org/plugins/collapsible-archive-widget/#description)
 * [评价](https://cn.wordpress.org/plugins/collapsible-archive-widget/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/collapsible-archive-widget/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/collapsible-archive-widget/#developers)

 [支持](https://wordpress.org/support/plugin/collapsible-archive-widget/)

## 描述

This simple plugin is a widget that displays a collapsible archives list in your
widgetized sidebar by using JavaScripts. In version 2.0.0 script.aculo.us effects
has been added as an option, utilizing the script.aculo.us files supplied with WordPress.

### Configuration

 * Widget title: the title of the widget
 * Show post counts for year: Whether or not to show the post number for each year
 * Show post counts for month: Whether or not to show the post number for each month
 * Abbreviate month names: Check this box to show abbreviation of month names
 * Hide year from month names: Do not print year after month names
 * Use script.aculo.us effects: Whether or not to show effects
 * Expand effect: Effect to use when expanding the list
 * Collapse effect: Effect to use when collapsing the list
 * Expand the list by default: Check this box to have the list expanded when loaded
 * Expand current year by default: Check this box to have the current year expanded
   when loaded
 * Expand current month by default: Check this box to have the current month expanded
   when loaded
 * Show individual posts: Show posts in the list. This should be used in extra caution;
   if you have a lot of posts consider disabling it as this will take time to load
 * Use HTML arrows instead of images (► ▼)
 * Show current month in bold: show current month in bold
 * Show a link to plugin page. Thank you for your support! : Display a link to plugin
   page as a support method

### TODO

 * Add ability for multiple instances
 * Add ability to work as non-widget
 * Add ability to include / exclude categories
 * Expand previous month rather the current
 * Research the practicality to use CSS / allow CSS options
 * List posts without year and month headers (for blogs with few posts)
 * Do not list the posts that are listed on the main page

## 安装

 1. Make a directory `collapsible-archive-widget` under `/wp-content/plugins/`
 2. Upload `collapsible-archive.php` to the `/wp-content/plugins/collapsible-archive-
    widget/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Use your ‘Presentation’/’Sidebar Widgets’ settings to drag and configure
 5. If you want to change your plus and minus images, replace the PNG files. Best size
    is 22×22

## 评价

此插件暂无评价。

## 贡献者及开发者

「Collapsible Archive Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Ady Romantika ](https://profiles.wordpress.org/adywarna/)

[帮助将「Collapsible Archive Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/collapsible-archive-widget)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/collapsible-archive-widget/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/collapsible-archive-widget/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/collapsible-archive-widget/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/collapsible-archive-widget/)。

## 更新日志

 * 03-Aug-2007: Initial version
 * 04-Sep-2007: Added ability to select whether to use abbreviations for the month
   names, and script.aculo.us effects!
 * 27-Sep-2007: Fixed javascript include – effects.js added and scriptaculous.js
   removed (For some reason it worked in 2.2).
 * 10-Nov-2007: Added ability to display posts (with caution), to expand by default,
   and also added plus and minus signs as expand/collapse buttons
 * 24-Aug-2008: Multiple updates: (1) Enqueue javascripts using WordPress API wp_enqueue_script(
   2) Validation as XHTML 1.0 Transitional (3) Add option to expand current year
   and/or month by default (4) REMOVED list type option (5) Added ability to upload
   own plus and minus images (6) Added ability to display plugin link. If you’d 
   like to support this plugin, having the “powered by” on your blog is the best
   way; it’s our only promotion or advertising.
 * 25-Aug-2008: Bugfix to not load javascripts when effects is not used
 * 25-Aug-2008: Code factoring and added ability to use HTML arrows
 * 16-Mar-2009: Separated year and month posts counts, added option to hide year
   after month names, ability to show current month in bold, enabled localized title
 * 17-Mar-2009: Fixed valid XHTML, and highlight (bold) bugfix

## 额外信息

 *  版本 **2.3.1**
 *  最后更新：**17 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 2.1 或更高版本 **
 *  已测试的最高版本为 **2.7.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/collapsible-archive-widget/)
 * 标签
 * [archive](https://cn.wordpress.org/plugins/tags/archive/)[collapse](https://cn.wordpress.org/plugins/tags/collapse/)
   [collapsible](https://cn.wordpress.org/plugins/tags/collapsible/)[collapsible archive](https://cn.wordpress.org/plugins/tags/collapsible-archive/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/collapsible-archive-widget/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/collapsible-archive-widget/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/collapsible-archive-widget/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/collapsible-archive-widget/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/collapsible-archive-widget/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/collapsible-archive-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/collapsible-archive-widget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/collapsible-archive-widget/reviews/)

## 贡献者

 *   [ Ady Romantika ](https://profiles.wordpress.org/adywarna/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/collapsible-archive-widget/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.romantika.name/v2/)