1
0

Fix a lot of single issues and overhaul the language settings

see docs/NEWS and the plugin/changelog files for details
This commit is contained in:
Stephan Brunker
2019-10-13 22:49:03 +02:00
parent b10bbcc2e1
commit 502b837dd6
18 changed files with 730 additions and 596 deletions

View File

@ -0,0 +1,2 @@
2.05.2
* Strip the translation tags in the category links if multilingual plugin is active

View File

@ -15,7 +15,7 @@ class serendipity_plugin_categories extends serendipity_plugin
$propbag->add('description', CATEGORY_PLUGIN_DESC);
$propbag->add('stackable', true);
$propbag->add('author', 'Serendipity Team');
$propbag->add('version', '2.05.2');
$propbag->add('version', '2.05.3');
$propbag->add('configuration', array('title', 'authorid', 'parent_base', 'hide_parent', 'image', 'sort_order', 'sort_method', 'allow_select', 'hide_parallel', 'show_count', 'show_all', 'smarty'));
$propbag->add('groups', array('FRONTEND_VIEWS'));
}
@ -255,6 +255,9 @@ class serendipity_plugin_categories extends serendipity_plugin
}
}
// strip language tags if multilingual plugin is active
serendipity_plugin_api::hook_event('multilingual_strip_langs',$cat['category_name']);
$categories[$cid]['feedCategoryURL'] = serendipity_feedCategoryURL($cat, 'serendipityHTTPPath');
$categories[$cid]['categoryURL'] = serendipity_categoryURL($cat, 'serendipityHTTPPath');
$categories[$cid]['paddingPx'] = $cat['depth']*6;