Remove the category_legend.inc file now that we color per-calendar.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 4 Feb 2009 17:03:15 +0000 (12:03 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 4 Feb 2009 17:03:15 +0000 (12:03 -0500)
kronolith/lib/Views/Day.php
kronolith/lib/Views/Month.php
kronolith/lib/Views/Week.php
kronolith/templates/category_legend.inc [deleted file]

index 33e013e..1dccef9 100644 (file)
@@ -290,8 +290,6 @@ class Kronolith_View_Day extends Kronolith_Day {
         $template->set('show_slots', true, true);
         echo $template->fetch(KRONOLITH_TEMPLATES . '/day/rows.html')
             . '</tbody></table>';
-
-        require KRONOLITH_TEMPLATES . '/category_legend.inc';
     }
 
     /**
index 4af00e5..c08d490 100644 (file)
@@ -232,7 +232,6 @@ class Kronolith_View_Month {
         }
 
         echo $html . '</tbody></table>';
-        require KRONOLITH_TEMPLATES . '/category_legend.inc';
     }
 
     function getMonth($offset = 0)
index e0f3698..6fa4c58 100644 (file)
@@ -307,8 +307,6 @@ class Kronolith_View_Week {
         $template->set('show_slots', !$more_timeslots, true);
         echo $template->fetch(KRONOLITH_TEMPLATES . '/day/rows.html')
             . '</tbody></table>';
-
-        require KRONOLITH_TEMPLATES . '/category_legend.inc';
     }
 
     /**
diff --git a/kronolith/templates/category_legend.inc b/kronolith/templates/category_legend.inc
deleted file mode 100644 (file)
index d934664..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<div id="footer">
-<?php
-require_once 'Horde/Text.php';
-if ($GLOBALS['prefs']->getValue('show_legend') && count($eventCategories)) {
-    $html = '';
-
-    ksort($eventCategories);
-    foreach ($eventCategories as $category => $v) {
-        if (empty($category)) {
-            continue;
-        }
-
-        $html .= ' <span class="legend-eventbox event category' . hash('md5', $category) . '">' .
-            Text::htmlAllSpaces($category) . '</span>';
-    }
-
-    if (Auth::getAuth() && (!$GLOBALS['prefs']->isLocked('categories') ||
-                            !$GLOBALS['prefs']->isLocked('category_colors'))) {
-        $categoryUrl = Util::addParameter(Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs.php'), array('app' => 'horde', 'group' => 'categories'));
-        $html .= ' ' . Horde::link($categoryUrl, _("Edit categories and colors"), 'iconEdit', '_blank', 'popup(this.href); return false;') . Horde::img('colorpicker.png', _("Edit categories and colors"), '', $GLOBALS['registry']->getImageDir('horde')) . '</a>';
-    }
-
-    echo $html;
-}
-?>
-</div>