From 8e7d7692f6933e582ed46c0d08445cbd7271e72f Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 29 Jun 2009 19:21:34 -0400 Subject: [PATCH] use Horde::fullSrcImg() --- kronolith/lib/Event.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index 9137bc7e3..f855d0161 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -2167,24 +2167,24 @@ abstract class Kronolith_Event $alarm_value = $this->alarm; $title = sprintf(ngettext("Alarm %d minute before", "Alarm %d minutes before", $alarm_value), $alarm_value); } - $status .= '' . $title . ''; + $status .= Horde::fullSrcImg('alarm-' . $icon_color . '.png', array('attr' => array('alt' => $title, 'title' => $title, 'class' => 'iconAlarm'))); } if ($this->recurs()) { $title = Kronolith::recurToString($this->recurrence->getRecurType()); - $status .= '' . $title . ''; + $status .= Horde::fullSrcImg('recur-' . $icon_color . '.png', array('attr' => array('alt' => $title, 'title' => $title, 'class' => 'iconRecur'))); } if ($this->isPrivate()) { $title = _("Private event"); - $status .= '' . $title . ''; + $status .= Horde::fullSrcImg('private-' . $icon_color . '.png', array('attr' => array('alt' => $title, 'title' => $title, 'class' => 'iconPrivate'))); } if (!empty($this->attendees)) { $title = count($this->attendees) == 1 ? _("1 attendee") : sprintf(_("%s attendees"), count($this->attendees)); - $status .= '' . $title . ''; + $status .= Horde::fullSrcImg('attendees.png', array('attr' => array('alt' => $title, 'title' => $title, 'class' => 'iconPeople'))); } if (!empty($this->external) && !empty($this->external_icon)) { @@ -2204,14 +2204,14 @@ abstract class Kronolith_Event $editurl = $this->getEditUrl(array('datetime' => $datetime->strftime('%Y%m%d%H%M%S'), 'url' => $from_url)); $edit = Horde::link($editurl, sprintf(_("Edit %s"), $event_title), 'iconEdit') - . '' . _(' + . Horde::fullSrcImg('edit-' . $icon_color . '.png', array('attr' => 'alt="' . _("Edit") . '"')) . ''; } if ($this->hasPermission(PERMS_DELETE)) { $delurl = $this->getDeleteUrl(array('datetime' => $datetime->strftime('%Y%m%d%H%M%S'), 'url' => $from_url)); $delete = Horde::link($delurl, sprintf(_("Delete %s"), $event_title), 'iconDelete') - . '' . _(' + . Horde::fullSrcImg('delete-' . $icon_color . '.png', array('attr' => 'alt="' . _("Delete") . '"')) . ''; } -- 2.11.0