These are Calendar objects now.
authorJan Schneider <jan@horde.org>
Sat, 2 Oct 2010 22:19:37 +0000 (00:19 +0200)
committerJan Schneider <jan@horde.org>
Sat, 2 Oct 2010 22:19:45 +0000 (00:19 +0200)
kronolith/templates/calendar_info.php

index bcded01..fbeebcc 100644 (file)
 
 <?php else: ?>
 
-<h2><?php echo htmlspecialchars($calendar->get('name')) ?></h2>
-<?php if ($desc = $calendar->get('desc')): ?>
+<h2><?php echo htmlspecialchars($calendar->name()) ?></h2>
+<?php if ($desc = $calendar->description()): ?>
 <p><em><?php echo htmlspecialchars($desc) ?></em></p>
 <?php endif; ?>
 <p>
- <?php echo $calendar->get('owner') ? sprintf(_("Local calendar owned by %s."), Kronolith::getUserName($calendar->get('owner'))) : _("System calendar.") ?>
+ <?php echo $calendar->owner() ? sprintf(_("Local calendar owned by %s."), Kronolith::getUserName($calendar->owner())) : _("System calendar.") ?>
  <?php echo _("To subscribe to this calendar from another calendar program, use this URL:") ?>
 </p>
 <p class="calendar-info-url">
  <?php echo _("To subscribe to this calendar from a feed reader, use this URL:") ?>
 </p>
 <p class="calendar-info-url">
- <?php echo htmlspecialchars(Kronolith::feedUrl($calendar->getName())) ?>
+ <?php echo htmlspecialchars(Kronolith::feedUrl($calendar->name())) ?>
 </p>
 
 <p>
  <?php echo _("To embed this calendar in another website, use this code:") ?>
 </p>
 <p class="calendar-info-url">
-<?php echo htmlspecialchars(Kronolith::embedCode($calendar->getName())); ?>
+<?php echo htmlspecialchars(Kronolith::embedCode($calendar->name())); ?>
 </p>
 <?php if (Horde_Menu::showService('help')) {
     echo '<p>' . Horde_Help::link('kronolith', 'embed') . ' ' . _("Learn how to embed other calendar views.") . '</p>';