$alarm_value = $this->alarm;
$title = sprintf(ngettext("Alarm %d minute before", "Alarm %d minutes before", $alarm_value), $alarm_value);
}
- $status .= '<img src="' . Horde::url($registry->getImageDir(), true, -1) . '/alarm-' . $icon_color . '.png" alt="' . $title . '" title="' . $title . '" class="iconAlarm" />';
+ $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 .= '<img src="' . Horde::url($registry->getImageDir(), true, -1) . '/recur-' . $icon_color . '.png" alt="' . $title . '" title="' . $title . '" class="iconRecur" />';
+ $status .= Horde::fullSrcImg('recur-' . $icon_color . '.png', array('attr' => array('alt' => $title, 'title' => $title, 'class' => 'iconRecur')));
}
if ($this->isPrivate()) {
$title = _("Private event");
- $status .= '<img src="' . Horde::url($registry->getImageDir(), true, -1) . '/private-' . $icon_color . '.png" alt="' . $title . '" title="' . $title . '" class="iconPrivate" />';
+ $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 .= '<img src="' . Horde::url($registry->getImageDir(), true, -1) . '/attendees.png" alt="' . $title . '" title="' . $title . '" class="iconPeople" />';
+ $status .= Horde::fullSrcImg('attendees.png', array('attr' => array('alt' => $title, 'title' => $title, 'class' => 'iconPeople')));
}
if (!empty($this->external) && !empty($this->external_icon)) {
$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')
- . '<img src="' . Horde::url($registry->getImageDir(), true, -1) . '/edit-' . $icon_color . '.png" alt="' . _("Edit") . '" />'
+ . Horde::fullSrcImg('edit-' . $icon_color . '.png', array('attr' => 'alt="' . _("Edit") . '"'))
. '</a>';
}
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')
- . '<img src="' . Horde::url($registry->getImageDir(), true, -1) . '/delete-' . $icon_color . '.png" alt="' . _("Delete") . '" />'
+ . Horde::fullSrcImg('delete-' . $icon_color . '.png', array('attr' => 'alt="' . _("Delete") . '"'))
. '</a>';
}