[dev] trean block - patch

Stefan Kronawithleitner stefan at kronawithleitner.at
Mon May 3 10:37:32 PDT 2004


small patch - getting trean-block to use same colors and design as the other
blocks.

btw, there's a bug somewhere - no matter which category i select, there are
always  _all_ bookmarks shown. i think there's a parameter missing when calling
_trean_list(), right? but i don't know how to fix this, sorry...

any thoughts?

stefan
-------------- next part --------------
--- bookmarks.php.old	2004-04-06 22:24:24.000000000 +0200
+++ bookmarks.php	2004-05-03 19:13:38.413379000 +0200
@@ -40,7 +40,7 @@
         foreach (Trean::listCategories() as $id => $cat) {
             $catname = explode(':', $cat);
             $catname = array_pop($catname);
-            $params['category']['values'][$id] = $catname;;
+            $params['category']['values'][$id] = $catname;
         }
 
         $GLOBALS['registry']->popApp();
@@ -56,7 +56,7 @@
     {
         global $registry;
 
-        $html  = Horde::link(Horde::url($registry->getInitialPage(), true), $registry->getParam('name'), 'header') . $registry->getParam('name') . '</a> - ';
+        $html  = Horde::link(Horde::url($registry->getInitialPage(), true), $registry->getParam('name'), 'header') . $registry->getParam('name') . '</a> :: ';
         $html .= Horde::link(Horde::applicationUrl('add.php', true), _("New Bookmark"), 'smallheader') . Horde::img('trean.gif', _("New Note"), 'hspace="5"', Horde::url($registry->getParam('graphics'), true, -1)) . _("New Bookmark") . '</a>';
 
         return $html;
@@ -71,14 +71,13 @@
     {
         require_once dirname(__FILE__) . '/../base.php';
         global $registry, $prefs, $conf;
-
+        
         $bookmarks = _trean_list();
 
-        $class = 0;
         $html = '';
         $template = TREAN_TEMPLATES . '/block/' . $this->_params['template'] . '.inc';
         foreach ($bookmarks as $id => $bookmark) {
-            $html .= '<tr><td class="item' . $class . '" style="padding: 5px;width:100%;">';
+            $html .= '<tr><td class="summary" style="padding: 5px;width:100%;">';
 
             ob_start();
             $bookmark->displayHTML($template, $this->_params['category'], $id);


More information about the dev mailing list