]> git.mjollnir.org Git - s9y.git/commitdiff
Some new plugin hooks, category plugin can hide/show certain subcategories
authorgarvinhicking <garvinhicking>
Fri, 29 Jul 2005 12:56:09 +0000 (12:56 +0000)
committergarvinhicking <garvinhicking>
Fri, 29 Jul 2005 12:56:09 +0000 (12:56 +0000)
31 files changed:
docs/NEWS
include/admin/category.inc.php
include/functions.inc.php
include/functions_entries.inc.php
include/plugin_internal.inc.php
lang/serendipity_lang_bg.inc.php
lang/serendipity_lang_cn.inc.php
lang/serendipity_lang_cs.inc.php
lang/serendipity_lang_cz.inc.php
lang/serendipity_lang_da.inc.php
lang/serendipity_lang_de.inc.php
lang/serendipity_lang_en.inc.php
lang/serendipity_lang_es.inc.php
lang/serendipity_lang_fa.inc.php
lang/serendipity_lang_fi.inc.php
lang/serendipity_lang_fr.inc.php
lang/serendipity_lang_hu.inc.php
lang/serendipity_lang_is.inc.php
lang/serendipity_lang_it.inc.php
lang/serendipity_lang_ja.inc.php
lang/serendipity_lang_ko.inc.php
lang/serendipity_lang_nl.inc.php
lang/serendipity_lang_no.inc.php
lang/serendipity_lang_pt.inc.php
lang/serendipity_lang_pt_PT.inc.php
lang/serendipity_lang_ro.inc.php
lang/serendipity_lang_ru.inc.php
lang/serendipity_lang_se.inc.php
lang/serendipity_lang_tn.inc.php
lang/serendipity_lang_tw.inc.php
lang/serendipity_lang_zh.inc.php

index 40174e6acf6bff10f9284d275bfb8c416490670b..b76dac6f1cb7b4b206a500ccc462d8fef61e518e 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,15 @@
 Version 0.9 ()
 ------------------------------------------------------------------------
 
+    * Plugin API: Added plugin hooks for category properties, made smarty
+      init function accept plugin values. See the plugin "Properties for
+      Categories" for example usage. The plugin allows to create sub-blogs
+      based on categories (garvinhicking)
+
+    * Categories plugin can be configured to only show specific sub-
+      categories and hide other categories when descending the tree
+      (garvinhicking)
+
     * "Edit entries" panel can now delete entries and returns to the 
       originating panel. Also it now utilizes Cookies (via JS) to remember 
       the last used settings (sortorder, filters) (garvinhicking)
index a6598ff40ecef487846540fa08ced26680c0dd52..4af3e9912ff0f97b213cab52b7b7ae080c751b4a 100644 (file)
@@ -137,10 +137,13 @@ if ($serendipity['GET']['adminAction'] == 'doDelete') {
 
 <?php if ( $serendipity['GET']['adminAction'] == 'edit' || $serendipity['GET']['adminAction'] == 'new' ) {
         if ( $serendipity['GET']['adminAction'] == 'edit' ) {
-            $this_cat = serendipity_fetchCategoryInfo($serendipity['GET']['cid']);
+            $cid = (int)$serendipity['GET']['cid'];
+            $this_cat = serendipity_fetchCategoryInfo($cid);
             echo '<strong>'. sprintf(EDIT_THIS_CAT, htmlspecialchars($this_cat['category_name'])) .'</strong>';
             $save = SAVE;
         } else {
+            $cid = false;
+            $this_cat = array();
             echo '<strong>'. CREATE_NEW_CAT .'</strong>';
             $save = CREATE;
         }
@@ -190,6 +193,7 @@ if ($serendipity['GET']['adminAction'] == 'doDelete') {
             </select>
         </td>
     </tr>
+    <?php serendipity_plugin_api::hook_event('backend_category_showForm', $cid, $this_cat); ?>
 </table>
     <div><input type="submit" name="SAVE" value="<?php echo $save; ?>" class="serendipityPrettyButton" /></div>
 </form>
index 560c50e342c7c203cbb80b4520ae81fab758ea70..2c2d49edb7716c225b7864f38969671101caa2d3 100644 (file)
@@ -573,7 +573,8 @@ function serendipity_addCategory($name, $desc, $authorid, $icon, $parentid) {
 
     serendipity_db_query($query);
     $cid = serendipity_db_insert_id('category', 'categoryid');
-    
+    serendipity_plugin_api::hook_event('backend_category_addNew', $cid);
+
     $data = array(
         'categoryid'           => $cid,
         'category_name'        => $name,
@@ -596,6 +597,7 @@ function serendipity_updateCategory($cid, $name, $desc, $authorid, $icon, $paren
                     WHERE categoryid = ". (int)$cid ."
                         $admin_category";
     serendipity_db_query($query);
+    serendipity_plugin_api::hook_event('backend_category_update', $cid);
 
     $data = array(
         'categoryid'           => $cid,
index d28803c8ebb1a9a047b888a7431b84adf1a3306c..40dd30e00a95830e1f202d149007fcb53387c6b1 100644 (file)
@@ -9,6 +9,8 @@ function serendipity_deleteCategory($category_range, $admin_category) {
         return false;
     }
     
+    serendipity_plugin_api::hook_event('backend_category_delete', $category_range);
+
     return serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}category WHERE category_left BETWEEN {$category_range} {$admin_category}");
 }
 
index 3038406e2af34fcbb5eb218059a86abfa9ef27c8..1c9555026c83c3f6bad32ba114b08718af249090 100644 (file)
@@ -1098,8 +1098,8 @@ class serendipity_categories_plugin extends serendipity_plugin {
         $propbag->add('description', CATEGORY_PLUGIN_DESC);
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Serendipity Team');
-        $propbag->add('version',       '1.0');
-        $propbag->add('configuration', array('authorid', 'image', 'sort_order', 'sort_method', 'allow_select'));
+        $propbag->add('version',       '2.0');
+        $propbag->add('configuration', array('authorid', 'parent_base', 'image', 'sort_order', 'sort_method', 'allow_select', 'hide_parallel'));
         $propbag->add('groups',        array('FRONTEND_VIEWS'));
     }
 
@@ -1123,6 +1123,31 @@ class serendipity_categories_plugin extends serendipity_plugin {
                 $propbag->add('default',     'all');
                 break;
 
+            case 'parent_base':
+                $categories = array('all' => ALL_CATEGORIES);
+                $cats       = serendipity_fetchCategories(); 
+                
+                if (is_array($cats)) {
+                    $cats = serendipity_walkRecursive($cats, 'categoryid', 'parentid', VIEWMODE_THREADED);
+                    foreach($cats as $cat) {
+                        $categories[$cat['categoryid']] = str_repeat(' . ', $cat['depth']) . $cat['category_name'];
+                    }
+                }
+
+                $propbag->add('type',         'select');
+                $propbag->add('name',         CATEGORIES_PARENT_BASE);
+                $propbag->add('description',  CATEGORIES_PARENT_BASE_DESC);
+                $propbag->add('select_values', $categories);
+                $propbag->add('default',      'all');
+                break;
+
+            case 'hide_parallel':
+                $propbag->add('type',         'boolean');
+                $propbag->add('name',         CATEGORIES_HIDE_PARALLEL);
+                $propbag->add('description',  CATEGORIES_HIDE_PARALLEL_DESC);
+                $propbag->add('default',      false);
+                break;
+
             case 'allow_select':
                 $propbag->add('type',         'boolean');
                 $propbag->add('name',         CATEGORIES_ALLOW_SELECT);
@@ -1189,9 +1214,48 @@ class serendipity_categories_plugin extends serendipity_plugin {
 
         $image = $this->get_config('image', serendipity_getTemplateFile('img/xml.gif'));
         $image = (($image == "'none'" || $image == 'none') ? '' : $image);
+
+        $use_parent  = $this->get_config('parent_base');
+        $parentdepth = 0;
+
+        $hide_parallel = serendipity_db_bool($this->get_config('hide_parallel'));
+        $hidedepth     = 0;
+
         if (is_array($categories) && count($categories)) {
             $categories = serendipity_walkRecursive($categories, 'categoryid', 'parentid', VIEWMODE_THREADED);
-            foreach ( $categories as $cat ) {
+            foreach ($categories as $cat) {
+                // Hide parents not wanted
+                if ($use_parent && $use_parent != 'all') {
+                    if ($parentdepth == 0 && $cat['parentid'] != $use_parent && $cat['categoryid'] != $use_parent) {
+                        continue;
+                    } else {
+                        if ($cat['depth'] < $parentdepth) {
+                            $parentdepth = 0;
+                            continue;
+                        }
+
+                        if ($parentdepth == 0) {
+                            $parentdepth = $cat['depth'];
+                        }
+                    }
+                }
+                
+                // Hide parents outside of our tree
+                if ($hide_parallel && $serendipity['GET']['category']) {
+                    if ($hidedepth == 0 && $cat['parentid'] != $serendipity['GET']['category'] && $cat['categoryid'] != $serendipity['GET']['category']) {
+                        continue;
+                    } else {
+                        if ($cat['depth'] < $hidedepth) {
+                            $hidedepth = 0;
+                            continue;
+                        }
+
+                        if ($hidedepth == 0) {
+                            $hidedepth = $cat['depth'];
+                        }
+                    }
+                }
+
                 $html .= '<div style="padding-bottom: 2px;">';
 
                 if ($is_form) {
index e9d83bdb4d5eca39c364de5adda53ac3d806abba..b6fc0bba30d66e839c3a8d612b8ba7858e434211 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index fcb92939b96759a7bce703109174df5a76a99340..f76a63a8c73678276052b829283b6e022b04d53e 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 7ecec23a77b4ae28501ede7cd562a914f9208cb1..54342e765f16c1c80ca163421b9a864f9eb8c5cc 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 77cc3a5b7e9c839be1c25dca04a38dabe568d189..7b129184ba60755912e0adb6db008568aa9cd5e0 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 6e49bd31b03ec56d48ec6c32ad3e974582d4e899..d5e90be807e4bf93a3cae513527e615e614748a0 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index e4a286fd7d37390a4a4748e964022cd342be4d9c..00e8d10d01d8d45767cc8070445cd109cf9bd704 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Templates verwalten');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 89670dcca46bf4922b2ca29a4f85c26610cf8aa6..ac0c9fa49b8ae5c58239f17ee5c25703990576d2 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 57e3bfb6c29a74b8ce5c7ae917296a9911aae4f4..834d7ced12ccf5e230d9827571f7088696397173 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index ea1bdc813a6bd8fae04cb8993838005a6fa7b70c..9a47356f91f2c901f941f22821a52d62d32baa94 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 9dca7fb16cd005fae590d23039b9a2a0747b4ec4..129bcdfaf25537f1b5ef92e85b9a8eb807016a75 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 7ee511c73f2a260f4778e387aa5bf33a409e7f4b..23b0b95e464ffb1be58ca950efa08cc799f921c6 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 20093cab022174ccd2efaa6c5bebf320192de93e..df87c480f9235a8c45735f09df8f14261b1d4498 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 2656033bc5b6f34feb01f68e1a4ca39310699371..01734969f45db510af67f72bb733a08e0633b30f 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index ca3077a46acbe28486af92428dcda00d86ecaaf3..e6f719cc61b8b5d4caa115ea1dd11bee8a2539db 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 51e7f5a7df5cfc566837e1e5dfc8d59945a1cf5f..1132b3a1adc025513b584bdde323d3be142de7cd 100644 (file)
@@ -763,3 +763,7 @@ Serendipity のアップグレードステージを無視しました。正し
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 7971881adb239c60a560f51d0d886f166382f061..666e52e698a3c211b396c913aa5bee008e236b42 100644 (file)
 @define('PERMISSION_ADMINIMAGESSYNC', 'adminImagesSync: 작은 그림 동기화');
 @define('PERMISSION_ADMINCOMMENTS', 'adminComments: 덧글 관리');
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: 템플릿 관리');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
 @define('INSTALL_BLOG_EMAIL', '블로그의 전자우편 주소');
 @define('INSTALL_BLOG_EMAIL_DESC', '발송하는 전자우편의 "보낸 사람" 부분에 나타날 전자우편 주소를 설정합니다. 호스트의 메일 서버에서 인식하는 주소로 반드시 설정하십시오. 상당수의 메일 서버는 보낸 사람 주소를 알 수 없는 전자우편을 거부합니다.');
+
index fb1329e861a1a08f7abf718891bea92a51ca4dda..35ce9d6eea7d4a4f6bd2a33ad7af8ef6de770726 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 70a52fb72ecfe7fb0f42948b9b8b6f6e5c5dd1a1..ab4d0424f22d6eabd0d44305e7bff6259b317a4d 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 121a44a287f8e434cf647a8f8a4a20b55f9dea13..a7bb0d61a55639cf3b474023cff83aac8953eaed 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 55ab36141c7e868cc8df1af287a45f37a6ba72eb..eb62820dc4c0ba4793bd758d384f0daf52d03992 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index df59a005e856d7cdf58a5dd2af4337540c153882..88cc877c5d58147593e6649422d14530f9b9a3c8 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index 65527e684d0f4ab96d9d0296ec3ab08d65a8e955..032e06fe7152f6e961d5588e63b0f1787170022b 100644 (file)
@@ -765,3 +765,7 @@ $i18n_filename_to   = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index cd2a56312792054f542a6d8bb6b3a077de3defcb..1f204ae62ef8ab78755a247caad5195aa746830c 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index d2b9c620aca279662d0f5bdee15c54a2471de7a3..97a1d5bffa4483ac1a18bbb621233f899de014e9 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index bf7f046003da6d2d9b55f848e85fde9350ab8ff8..d638162d6733f7ed771872e7f968601b0ff7533b 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
index feddecdc35f70de5961d5d1d1977ab58cf0abb4a..6677a64d03096cbb6a51f0df6eda6c355017e5df 100644 (file)
 @define('PERMISSION_ADMINTEMPLATES', 'adminTemplates: Administrate templates');
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
+@define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
+@define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
+@define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file