jQuery Archive List Widget

説明

This plugin provides a widget and a filter to display a collapsible archive list in your sidebar or posts using the jQuery JS library.

機能

  1. Display a collapsed list of your archives to reduce space.
  2. Uses jQuery to add effects and to be compatible with most browsers.
  3. Select your expand/collapse symbol and date format.
  4. Support for archive filters.
  5. Auto expands current/select year from posts.
  6. Select the categories to exclude
  7. Multiple instances support.
  8. Shortcode support [jQueryArchiveList]
  9. Generates valid HTML5 code.
  10. Supports multiple languages.
  11. Compatible with most JS caché and minify plugins.
  12. And more to come…

設定

  • Title: title of the widget.
  • Trigger Symbol: characters to be displayed as bullet.
  • Effect: jQuery’s effect to use.
  • Expand: when to expand the content of the list.
  • Month Format: month’s display format of the month.
  • Show number of posts: display how many post are published in the year or in the month.
  • Show posts under months: show post’s title under months.
  • Only expand/reduce by clicking the symbol: select if animations start when click the link or just the bullet.
  • Exclude categories: Select the categories to exclude.
  • Post type: Lets you choose the custom types besides posts.

スクリーンショット

  • Here you can see a list of the archives, archives for each month are hidden under years.
  • Here you can see a list of archives and its month archives expanded.

インストール

  1. Make a directory jquery-archive-list-widget under /wp-content/plugins/
  2. Upload all downloaded files to /wp-content/plugins/jquery-archive-list-widget/
  3. Activate plugin at the plugins section.
  4. Go to Presentation -> Widgets and drag the jQuery Archive List to your sidebar and configure it, if you want to display it inside a post then write [jQueryArchiveList] at the location where it will be shown and save it.

FAQ

Why this plugin is not working?

By support experience, like 99% of problems are due to:

  • There’s a Javascript error caused by other plugin and it stops any further code execution, check your browser’s logs to find the problem and deactivate the conflict plugin.
  • Your template doesn’t have a wp_footer() function, this plugin requires this function to load JS code at the end of the website to improve speed.
  • You’re using a plugin that removes WordPress’ jQuery version and inserts an old one.
I’m using custom permalinks, How can I change the links?

Currently there’s no function in WP API for getting link for date archives when using custom permalinks. So, you’ll need to modify/hack the source code to support your custom link structure, you can do this by changing the lines where I call get_month_link and get_year_link.

How I can send you a translation?

Send me the translated .mo file to migueluseche(a)skatox.com and indicate the language, I can read english or spanish, so please write me on these languages.

Can I use images as bullets or trigger symbols?

Yes, select ‘Empty Space’ as trigger symbol and Save, then you can add any custom background using CSS,
just play with the widget’s classes: .jaw_symbol, .jaw_years, .jaw_months.

Can I show this list inside posts?

Yes, only write [jQueryArchiveList] anywhere inside a post or page’s contest and it will be replaced for
the archive list when rendering the content. You can add the following parameters to change its behavior:

  1. showcount ( boolean ): select if you want to show the count post inside that month/year.
  2. showpost ( boolean ): show post’s titles under months.
  3. expand (“none”, “never”, “expand”): never expand by default, current year only and always expand.
  4. month_format (“short”, “full”, “number”): the format of the date.
  5. ex_sym: the expansion symbol.
  6. con_sym: the collapse symbol.
  7. only_sym_link: only expand/collapse when clicking the bullet.
  8. fx_in (“”, “slideDown”, “fadeIn”): the jQuery effect to implement.
  9. exclude: IDs (comma separated) of the categories to exclude.
  10. type: ID of the type of the posts to show, this is if you’re using custom type posts. By default will show posts.

So for example:

[jQuery Archive List month_format=number showpost=1 showcount=1 ex_sym=+ con_sym=- fx_in=fadeIn type=page]

Will show a widget with months as numbers, show posts under months and their count, the simbols are + and – and the effect is fadeIn. You can check source code for more information.

How I contribute to this plugin?

By using it, recommending it to other users, giving it 5 starts at plugin’s wordpress page, suggesting features or coding new features and finally by DONATING using plugin’s website’s donate link.

How can i add multiples instances?

Since 2.0 you can add as many instances as you want, but there’s another way to do it, just add a new Text widget only with the shortcode [jQueryArchiveList] then it will have a new copy of the widget.

Can I have different instances with different configuration?

Since 2.0 it’s possible. Each instance has its own configuration. Shortcode widgets are controlled by shortcode attributes.

評価

Fantastic: Thank you

Hello Miguel,

Jquery archive list widget is great. You have keep the widget simple but effective. It does what it should. it is difficult to find archive widgets or plugins. It is even more difficult to find archive widgets and plugins that show the archives of blog posts, pages or media.

Your widget does this and so much more without making it difficult to use. It is also compatible with other widgets and plugins.

Thank you for a fantastic widget. I wish you continued success with this widget and all you do. I hope that will consider maintaining this widget and eventually releasing updates.

Best wishes

Very helpful!

I like how this plugin gives many customizable options. Most of the other archive plugin/widgets I downloaded only allowed for a display by month, and when you click the month it opens up all the posts for that month. I don’t like that! I like being able to drill down by month and then by post title.

41件のレビューをすべて表示

貢献者と開発者

“jQuery Archive List Widget” is open source software. The following people have contributed to this plugin.

貢献者

“jQuery Archive List Widget” has been translated into Brazilian Portuguese. Thank you to the translators for their contributions.

Translate “jQuery Archive List Widget” into your language.

Interested in development?

Browse the code or subscribe to the development log by RSS.

変更履歴

3.0.6

  • Fixed some compatibility issues with translations plugins like PolyLang.

3.0.5

  • Fixed Javascript bug present in Internet Explorer 6,7,8,9,10.

3.0.4

  • Shortcut has been changed to [jQueryArchiveList] because WordPress 4.4 doesn’t let to use spaces in shortcodes.

3.0.3

  • Minor fixes to add total compability with WordPress 4.3

3.0.2

  • Solved missing months bug.

3.0.1

  • Solved month linking bug.
  • Checkbox are easier to click at widget’s configuration, now each text is a label.

3.0

  • Complete rewrite of the javascript code, it has less size, easier to understand and should work faster.
  • Added support for custom posts, now you can create archive widgets for your custom posts.
  • Added active CSS class to indicate when a link points to current URL.
  • Added title attribute to links to generate valid HTML5 code.
  • Added Dutch translation (thanks to Patrick Schreibing).
  • Migrated category selection to WordPress checkbox tool.
  • Solved bugs when excluding categories.
  • Solved bug of missing expanded class on months (thanks to pjarts).
  • Solved not expanding months bug when selecting some options.

2.2

  • Added support for HTTPS, now the plugin generates the correct link if HTTPS is being used, thanks to bridgetwes for the patch.
  • Added more expansion options, you can select if you want to expand: only on current date, current loaded post, both, none or all archives dates.
  • Added an option to show only posts from selected category when visiting a category page.

2.0.1

  • Added option to exclude categories when using shortcodes, just add categorie’s ID separated by commas in the exclude attribute.
  • Solved bug of not including JS file when using a filter without any widget.
  • Solved bug of not including JS in some WP installlations under Windows.

2.0

  • Huge update thanks to donations! If you upgrade to this version you’ll NEED to configurate the widget AGAIN, due to architecture rewriting configuration may get lost.
  • Added support for multiples instances, finally you can have as many widgets as you want without any hack 🙂
  • Added support for dynamic widgets.s
  • Added an option to not have any effect when expanding or collapsing.
  • Added an option to activate the expand/collapse only when clicking the bullet.
  • Removed dynamic generation of the JS file, now you don’t need write permissions on the folder.
  • Rewroted JS code, now it is a single JS file for all instances, improved perfomance and compatible with all cache plugins.
  • Updated translation files for Spanish, Czech, Slovak and Italian.

1.4.2

  • Fixed some several bugs, thanks to Marco Lizza who reviewed the code and fixed them. Plugin should be more stable and won’t throw errors when display_errors is on.

1.4.1

  • Solved Javascript bug where in some configurations, months and posts links were not working.

1.4

  • Updated i10n functions to WordPress 3.5, no more deprecations warning should appear with i10n stuff.
  • Solved the i10n bug of not transating the exclude categories label.
  • Improved Javascript code (please save again the configuration to take effect)
  • Better shortcode/filter support. now it has attributes for different behavior on instances. (There’s no support for effect and symbol because it is managed through the JS file )

1.3

  • Improved query performance and added option to exclude categories. (thanks to Michael Westergaard for the work)

1.2.3

  • Fixing i18n bug due to new wordpress changes, now it loads your language (if it was translated) correctly.

1.2.2

  • Fixed the bug of wrong year displaying on pages.
  • JS code is not generated dynamically, now it generates in a separated file. For better performance and to support any minify plugins.

1.2.1

  • Improved generated HTML code to be more compatible when JS is off, also helps to search engines to navigate through archives pages.
  • Fixed a bug where in some cases a wrong year expanded at home page.
  • Added Slovak translation

1.2

  • Added option to automatically expand current year or post’s year (thanks to Michael Westergaard for most of the work)
  • Cleaned code and make it more readable for future hacks from developers.

1.1.2

  • Changed plugin’s JS file loading to the footer, so it doesn’t affect your site’s loading speed.
  • Added default value for widget’s title. And it is included in translation files, so this can be used in multi-language sites.
  • Plugin translated to Czech (CZ) thanks to Tomas Valenta.

1.1.1

  • Removed   characters, all spacing should be done by CSS.

1.1

  • Added support for multiples instances (by writing [jQueryArchiveList] on any Text widget)
  • Added support for WordPress’ reading filters, like reading permissions using Role Scoper plugin (thanks to Ramiro García for the patch)
  • Improved compatibility with WordPress 3.x

1.0

  • Added support for month’s format
  • Now the jquery archive list can be printed from a post, just write [jQueryArchiveList] anywhere inside the post.
  • Added support for i18n, so you can translate widget configuration’s text to your language.
  • Separed JS code from HTML code, so browsers should cache JS content for faster processing.
  • Automatic loading of jQuery JS library.
  • Almost all code were rewritten for better maintainer and easy way to add new features.
  • Improved code to be more WordPress compatible.

0.1.3

  • Initial public version.