Commit 9dacbdac authored by lechuck's avatar lechuck Committed by lucha

extended-categories-widget 3.9.3

parent eb52e5da
......@@ -27,7 +27,7 @@ class AVH_EC_Core
*/
$catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
$this->version = '3.8.5';
$this->version = '3.9.3';
$this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->';
$this->db_options_core = 'avhec';
$this->db_options_tax_meta = 'avhec-tax_meta';
......
......@@ -27,7 +27,7 @@ class AVH_EC_Core
*/
$catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
$this->version = '3.8.5';
$this->version = '3.9.3';
$this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->';
$this->db_options_core = 'avhec';
$this->db_options_tax_meta = 'avhec-tax_meta';
......
......@@ -113,14 +113,19 @@ class AVH_EC_Category_Group
$all_categories = $this->getAllCategoriesTermID();
if (false === $this->getTermIDBy('slug', 'none')) {
$none_group_id = wp_insert_term('none', $this->taxonomy_name, array('description' => __('This group will not show the widget.', 'avh-ec')));
$all_group_id = wp_insert_term('All', $this->taxonomy_name, array('description' => __('Holds all the categories.', 'avh-ec')));
$home_group_id = wp_insert_term('Home', $this->taxonomy_name, array('description' => __('This group will be shown on the front page.', 'avh-ec')));
// Fill the standard groups with all categories
$home_group_id = wp_insert_term('Home', $this->taxonomy_name, array('description' => __('This group will be shown on the front page.', 'avh-ec')));
$this->setCategoriesForGroup($home_group_id['term_id'], $all_categories);
$this->setWidgetTitleForGroup($all_group_id['term_id'], '');
$this->setWidgetTitleForGroup($home_group_id['term_id'], '');
}
if (false === $this->getTermIDBy('slug', 'all')) {
$all_group_id = wp_insert_term('All', $this->taxonomy_name, array('description' => __('Holds all the categories.', 'avh-ec')));
if (! is_wp_error($all_group_id)) {
$this->setWidgetTitleForGroup($all_group_id['term_id'], '');
} else {
trigger_error($all_group_id->get_error_message(), E_USER_NOTICE);
}
}
$options = get_option($this->db_options_widget_titles);
if (!$options) {
......
......@@ -34,7 +34,7 @@ class AVH_EC_Core
*/
$catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
$this->version = '3.8.5';
$this->version = '3.9.3';
$this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->';
$this->db_options_core = 'avhec';
$this->db_options_tax_meta = 'avhec-tax_meta';
......@@ -747,6 +747,12 @@ class AVHEC_Walker_Category extends Walker
$link .= ' ' . gmdate('Y-m-d', $object->last_update_timestamp);
}
// When on a single post get the post's category. This ensures that that category will be given the CSS style of "current category".
if (is_single()) {
$post_cats = get_the_category();
$current_category = $post_cats[0]->term_id;
}
if (isset($current_category) && $current_category) {
$_current_category = get_category($current_category);
}
......
AVH Extended Categories Authors
This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
(readme.txt) and the git logs, available at
https://github.com/petervanderdoes/AVH-Extended-Categories
Peter van der Does
Stephan
flynsarmy
Portions of the project are derived from other open source works are clearly
marked.
This file is auto generated, any changes will be lost.
......@@ -3,8 +3,8 @@ Contributors: petervanderdoes
Donate link: http://blog.avirtualhome.com/wordpress-plugins/
Tags: extended, categories, widget, top categories
Requires at least: 2.3
Tested up to: 3.6.1
Stable tag: 3.8.5
Tested up to: 3.8
Stable tag: 3.9.3
The AVH Extended Categories Widgets gives you three widgets for displaying categories.
== Description ==
......@@ -73,7 +73,7 @@ Translations:
* Swedish - Svenska (sv_SE)
* Turkish - Türkçe (tr)
Some of the translations are incomplete. Currently we're in the middle of changing the way you can help with translations. Keep an eye on the [website](http:///blog.avirtualhome.com) for the announcement.
Some of the translations are incomplete. You can help translate all of the AVH Software by registering at our [translation site](http://translate.avirtualhome.com).
= Get involved =
......@@ -102,7 +102,7 @@ Here is how it works: Say you have 5 top level categories and each top level has
You select to display all categories, select to Show hierarchy and select how many levels you want to show, in this case Toplevel only.
= I want to help and translate the plug-in =
I have setup a project in [Launchpad](https://translations.launchpad.net/avhextendedcategories/trunk) for translating the plug-in.
You can help translate all of the AVH Software by registering at our [translation site](http://translate.avirtualhome.com).
= Multiple Category Groups =
The following is an explanation how assigning multiple groups to page/post works.
......@@ -139,6 +139,17 @@ Whether Widget 2 shows Movie or Music depends on the creation order of groups. I
None
== Changelog ==
= Version 3.9.3 =
* Log errors as E_USER_NOTICE when creating category groups.
= Version 3.9.1 =
* When the category group home is deleted there are MySQL errors.
= Version 3.9.0 =
* Add CSS classes to output when on a single post.
* Added language: Serbian - Српски (sr) thanks to Borisa Djuraskovic - http://www.webhostinghub.com
* Update language: Spanish - Español (es) thanks to Andrew Kurtis - http://www.webhostinghub.com
= Version 3.8.5 =
* Bugfix: Options of the group widgets are not obeyed.
......
......@@ -3,7 +3,7 @@
* Plugin Name: AVH Extended Categories Widgets
* Plugin URI: http://blog.avirtualhome.com/wordpress-plugins
* Description: Replacement of the category widget to allow for greater customization of the category widget.
* Version: 3.8.5
* Version: 3.9.3
* Author: Peter van der Does
* Author URI: http://blog.avirtualhome.com/
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment