diff -c serendipity_plugin_category_dhtml_menu.php.org serendipity_plugin_category_dhtml_menu.php
*** serendipity_plugin_category_dhtml_menu.php.org Sun Nov 6 09:46:54 2005
--- serendipity_plugin_category_dhtml_menu.php Sun Nov 6 09:45:26 2005
***************
*** 1,6 ****
--- 1,7 ----
<?php
/**
* @author Jackson Miller <docblock@jaxn.org>
+ * @modified by Frode Stenstrom www.stenstrom.no
* @license PHP
* @package additional_plugins
* @version $Id: serendipity_plugin_category_dhtml_menu.php,v 1.8 2005/08/01 18:20:07 garvinhicking Exp $
***************
*** 43,49 ****
'php' => '4.1.0'
));
$propbag->add('author', 'Jackson Miller');
! $propbag->add('version', '1.3');
$propbag->add('groups', array('FRONTEND_VIEWS'));
}
--- 44,50 ----
'php' => '4.1.0'
));
$propbag->add('author', 'Jackson Miller');
! $propbag->add('version', '1.4');
$propbag->add('groups', array('FRONTEND_VIEWS'));
}
***************
*** 108,114 ****
$which_category = $this->get_config('authorid');
// build an accessible array of categories
! foreach (serendipity_fetchCategories(empty($which_category) ? 'all' : $which_category) as $cat) {
$categories[$cat['categoryid']] = $cat;
}
--- 109,115 ----
$which_category = $this->get_config('authorid');
// build an accessible array of categories
! foreach (serendipity_fetchCategories(empty($which_category) ? ALL_CATEGORIES : $which_category) as $cat) {
$categories[$cat['categoryid']] = $cat;
}
***************
*** 118,124 ****
}
// node for all categories
! $all_cats = new HTML_TreeNode(array('text'=>'All','link'=>($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] : '')));
// create a top level for "all categories"
// this serves as the title
--- 119,125 ----
}
// node for all categories
! $all_cats = new HTML_TreeNode(array('text'=>ALL_CATEGORIES,'link'=>($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] : '')));
// create a top level for "all categories"
// this serves as the title
Basically, I have modifies to code to respect and use existing translations of ALL_CATEGORIES.
I am trying to solve why the category tree is allways expanded. I would like for it to behave the same way that the LINK list plugin does. If anyone knows how to do this, drop me a PM og email to Frode@Stenstrom. Jackson Miller, are you listening?