diff --git a/library.js b/library.js index 2d6bd19..4495add 100644 --- a/library.js +++ b/library.js @@ -87,11 +87,12 @@ library.defineWidgetAreas = function(areas, callback) { }; library.getThemeConfig = function(config, callback) { - + meta.settings.get('persona', function(err, settings) { config.hideSubCategories = settings.hideSubCategories === 'on'; + config.hideCategoryLastPost = settings.hideCategoryLastPost === 'on'; }); - + callback(false, config); }; diff --git a/templates/admin/plugins/persona.tpl b/templates/admin/plugins/persona.tpl index d39dd72..37595d2 100644 --- a/templates/admin/plugins/persona.tpl +++ b/templates/admin/plugins/persona.tpl @@ -8,6 +8,12 @@ Hide subcategories on categories view +
+ +
diff --git a/templates/partials/categories/item.tpl b/templates/partials/categories/item.tpl index ca8b467..f32cbcc 100644 --- a/templates/partials/categories/item.tpl +++ b/templates/partials/categories/item.tpl @@ -33,8 +33,10 @@ {../totalPostCount}
[[global:posts]] + + \ No newline at end of file