Replace calendar panel with a "Return to my calendars" link when displaying display_cals.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 2 Sep 2009 19:24:47 +0000 (15:24 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 29 Sep 2009 20:53:49 +0000 (16:53 -0400)
kronolith/templates/panel.inc
kronolith/themes/screen.css

index ea9b469..9fc97a5 100644 (file)
@@ -1,3 +1,8 @@
+<?php if (!empty($_SESSION['kronolith']['display_cal'])): ?>
+<div id="pageControls">
+ <a id="sbarClose" href="<?php echo Horde_Util::addParameter(Horde::selfUrl(true), 'display_cal', '') ?>"><?php echo _("Return to my calendars")?></a>
+</div>
+<?php else: ?>
 <script type="text/javascript">
 function toggleTags(domid)
 {
index 76df7e9..51382c5 100644 (file)
@@ -220,7 +220,7 @@ body.rightPanel #page {
 body #pageControlsInner {
     display: none;
 }
-body #sbarShow, body #sbarHide {
+body #sbarShow, body #sbarHide, body #sbarClose {
     padding-left: 18px;
     white-space: nowrap;
     font-weight: bold;