}
if ($('image_delete_link')) {
//TODO : Guess we should have PHP save the localized text for this...
- var deleteAction = function() {return window.confirm("Do you want to permanently delete " + SlideController.photos[SlideController.photoId][1])};
+ var deleteAction = function() { SlideController.pause(); if (!window.confirm("Do you want to permanently delete " + SlideController.photos[SlideController.photoId][1])) { alert("blah"); return false; } return true;};
$('image_delete_link').href = SlideController.baseUrl + '/image.php' + params + '&actionID=delete';
- $('image_delete_link').observe('click', deleteAction);
+ $('image_delete_link').observe('click', function(e) { return deleteAction(); e.stop(); });
}
$('image_download_link').href = SlideController.baseUrl + '/img/download.php?image=' + SlideController.photos[SlideController.photoId][3];
$('image_download_link').observe('click', function() {SlideController.pause();});
try {
$gallery = $this->_getGallery();
} catch (Horde_Exception $e) {
- return Horde::link(
- Ansel::getUrlFor('view', array('view' => 'List'), true))
- . _("Gallery") . '</a>';
+ return Ansel::getUrlFor('view', array('view' => 'List'), true)->link() . _("Gallery") . '</a>';
}
// Build the gallery name.
if (isset($this->_params['gallery'])) {
} catch (VFS_Exception $e) {}
/* Delete from storage */
- $GLOBALS['injector']->getInstance('Ansel_Storage')->getScope()->deleteImage($image->id);
+ $GLOBALS['injector']->getInstance('Ansel_Storage')->getScope()->removeImage($image->id);
if (!$isStack) {
$this->_gallery->updateImageCount(1, false);
}
public function removeImage($image_id)
{
$this->_db->exec('DELETE FROM ansel_images WHERE image_id = ' . (int)$image_id);
- $this->_db->exec('DELETE FROM ansel_image_attributes WHERE image_id = ' . (int)$imageid);
+ $this->_db->exec('DELETE FROM ansel_image_attributes WHERE image_id = ' . (int)$image_id);
}
/**
$cellwidth = round(100 / $tilesperrow);
$count = 0;
$action_links = array();
+ $url = new Horde_Url('#');
if ($GLOBALS['conf']['gallery']['downloadzip']) {
- $action_links[] = Horde::link('#', '', 'widget', '', 'downloadSelected(); return false;') . _("Download selected images") . '</a>';
-
+ $action_links[] = $url->link(array('class' => 'widget', 'onclick.raw' => 'downloadSelected(); return false;')) . _("Download selected images") . '</a>';
}
if (!empty($option_edit)) {
- $action_links[] = Horde::link('#', '', 'widget', '', 'editDates(); return false;') . _("Edit Dates") . '</a>';
+ $action_links[] = $url->link(array('class' => 'widget', 'onclick.raw' => 'editDates(); return false;')) . _("Edit Dates") . '</a>';
}
if (!empty($option_delete)) {
- $action_links[] = Horde::link('#', '', 'widget', '', 'deleteSelected(); return false;') . _("Delete") . '</a>';
+ $action_links[] = $url->link(array('class' => 'widget', 'onclick.raw' => 'deleteSelected(); return false;')) . _("Delete") . '</a>';
}
if (!empty($option_move)) {
- $action_links[] = Horde::link('#', '', 'widget', '', 'moveSelected(); return false;') . _("Move") . '</a>';
+ $action_links[] = $url->link(array('class' => 'widget', 'onclick.raw' =>'moveSelected(); return false;')) . _("Move") . '</a>';
}
if (!empty($option_copy)) {
- $action_links[] = Horde::link('#', '', 'widget', '', 'copySelected(); return false;') . _("Copy") . '</a>';
+ $action_links[] = $url->link(array('class' => 'widget', 'onclick.raw' => 'copySelected(); return false;')) . _("Copy") . '</a>';
}
Horde::addScriptFile('popup.js', 'horde');
include ANSEL_TEMPLATES . '/view/gallery.inc';
$this->_geometry = $this->resource->getDimensions('screen');
} catch (Horde_Exception $e) {
Horde::logMessage($e, 'ERR');
- $this->_geometry = $conf['screen'];
+ $this->_geometry = $GLOBALS['conf']['screen'];
}
/* Get the image lists */
/**
* Ansel_Widget_Actions:: class to wrap the display of gallery actions
*
+ * Copyright 2008-2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @TODO: Use Horde_View for html template output.
+ *
* @author Michael J. Rubinsky <mrubinsk@horde.org>
* @package Ansel
*/
if ($this->_view->gallery->hasFeature('upload')) {
$uploadurl = Horde::applicationUrl('img/upload.php')->add(
array('gallery' => $id,
- 'page' => !empty($this->_view->_params['page']) ? $this->_view->_params['page'] : 0)
- );
+ 'page' => !empty($this->_view->_params['page']) ? $this->_view->_params['page'] : 0));
}
$html .= '<ul style="list-style-type:none;">';
if (empty($this->_params['hide_slideshow']) &&
$this->_view->gallery->hasFeature('slideshow') &&
$this->_view->gallery->countImages()) {
+
/* Slideshow link */
if (!empty($this->_params['slideshow_link'])) {
$slideshow_url = str_replace(array('%i', '%g'),
}
$html .= '<li>' . $slideshow_url->link(array('class' => 'widget')) . Horde::img('slideshow_play.png', _("Start Slideshow")) . ' ' . _("Start Slideshow") . '</a></li>';
}
+
+ /* Upload and new subgallery Urls */
if (!empty($uploadurl) && $this->_view->gallery->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::EDIT)) {
$html .= '<li>' . $uploadurl->link(array('class' => 'widget')) . Horde::img('image_add.png') . ' ' . _("Upload photos") . '</a></li>';
if ($GLOBALS['registry']->getAuth() &&
$this->_view->gallery->get('owner') == $GLOBALS['registry']->getAuth()) {
- $html .= '<li>' . Horde::link('#', '', 'popup widget', '', Horde::popupJs(Horde::applicationUrl('perms.php'), array('params' => array('cid' => $this->_view->gallery->id), 'urlencode' => true)) . 'return false;') . Horde::img('perms.png') . ' ' . _("Set permissions") . '</a></li>';
+ $url = new Horde_Url('#');
+ $html .= '<li>' . $url->link(array('class' => 'popup widget', 'onclick' => Horde::popupJs(Horde::applicationUrl('perms.php'), array('params' => array('cid' => $this->_view->gallery->id), 'urlencode' => true)) . 'return false;')) . Horde::img('perms.png') . ' ' . _("Set permissions") . '</a></li>';
} elseif (!empty($conf['report_content']['driver']) &&
(($conf['report_content']['allow'] == 'authenticated' &&
$registry->isAuthenticated()) ||
} else {
$title = _point2Deg($data['image_latitude'], true) . ' ' . _point2Deg($data['image_longitude']);
}
- $other_images .= Horde::link('#', $title, '', '', "mapEdit.setLocation('" . $data['image_latitude'] . "', '" . $data['image_longitude'] . "', '" . $data['image_location'] . "');return false") . '<img src="' . Ansel::getImageUrl($id, 'mini', true) . '" alt="[thumbnail]" /></a>';
+ $tempurl = new Horde_Url('#');
+ $other_images .= $tempurl->link(array('title' => $title, 'onclick' => "mapEdit.setLocation('" . $data['image_latitude'] . "', '" . $data['image_longitude'] . "', '" . $data['image_location'] . "');return false")) . '<img src="' . Ansel::getImageUrl($id, 'mini', true) . '" alt="[thumbnail]" /></a>';
}
}
$other_images .= '</div>';
</span>
<?php
printf(_("Galleries grouped by %s"), $groupby);
-echo ' ' . Horde::link(Ansel::getUrlFor('group', array())) .
-Horde::img('reload.png', _("Refresh List")) ?></a>
+echo ' ' . Ansel::getUrlFor('group', array())->link() . Horde::img('reload.png', _("Refresh List")) ?></a>
</div>
<div class="anselActions widget">
<?php echo _("Group by:") . ' ' . implode(' | ', $groupby_links) ?>
$owner_title = sprintf(_("%s's Galleries"), $group);
}
-$link = Horde::link(Ansel::getUrlFor('view', array('groupby' => $groupby,
- 'owner' => $group,
- 'view' => 'List')));
+$link = Ansel::getUrlFor('view', array('groupby' => $groupby,
+ 'owner' => $group,
+ 'view' => 'List'))->link();
$num_galleries = $GLOBALS['injector']->getInstance('Ansel_Storage')->getScope()->countGalleries($GLOBALS['registry']->getAuth(), Horde_Perms::SHOW,
$group, null, false);
echo $imageurl->copy()->add('actionID', 'previewgrayscale')->link() . Horde::img('image/grayscale.png') . ' ' . _("Grayscale") . '</a> ';
}
if (Ansel::isAvailable('text_watermark')) {
- echo Horde::link('#', '', '', '_blank', Horde::popupJs($imageurl, array('params' => array('actionID' => 'setwatermark', 'share' => $gallery->getName()), 'width' => 450, 'height' => 250, 'urlencode' => true)) . 'return false;') . Horde::img('text.png') . ' ' . _("Watermark") . '</a> ';
+ $url = new Horde_Url('#');
+ echo $url->link(array('target' => '_blank', 'onclick.raw' => Horde::popupJs($imageurl, array('params' => array('actionID' => 'setwatermark', 'share' => $gallery->getName()), 'width' => 450, 'height' => 250, 'urlencode' => true)) . 'return false;')) . Horde::img('text.png') . ' ' . _("Watermark") . '</a> ';
}
$selfUrl = Horde::selfUrl(true);
echo $selfUrl->copy()->add('actionID','cropedit')->link() . Horde::img('image/crop.png') . _("Crop") . '</a>';
echo $imageurl->copy()->add('actionID', 'previewgrayscale')->link() . Horde::img('image/grayscale.png') . ' ' . _("Grayscale") . '</a> ';
}
if (Ansel::isAvailable('TextWatermark')) {
- echo Horde::link('#', '', '', '_blank', Horde::popupJs(Horde::applicationUrl($imageurl), array('params' => array('actionID' => 'setwatermark', 'share' => $gallery->getName()), 'width' => 450, 'height' => 250, 'urlencode' => true)) . 'return false;') . Horde::img('text.png') . ' ' . _("Watermark") . '</a> ';
+ $url = new Horde_Url('#');
+ echo $url->link(array('target' => '_blank', 'onclick.raw' => Horde::popupJs(Horde::applicationUrl($imageurl), array('params' => array('actionID' => 'setwatermark', 'share' => $gallery->getName()), 'width' => 450, 'height' => 250, 'urlencode' => true)) . 'return false;')) . Horde::img('text.png') . ' ' . _("Watermark") . '</a> ';
}
$selfUrl = Horde::selfUrl(true);
echo $imageurl->copy()->add('actionID', 'previewgrayscale')->link() . Horde::img('image/grayscale.png') . ' ' . _("Grayscale") . '</a> ';
}
if (Ansel::isAvailable('text_watermark')) {
- echo Horde::link('#', '', '', '_blank', Horde::popupJs(Horde::applicationUrl($imageurl), array('params' => array('actionID' => 'setwatermark', 'share' => $gallery->getName()), 'width' => 450, 'height' => 250, 'urlencode' => true)) . 'return false;') . Horde::img('text.png') . ' ' . _("Watermark") . '</a> ';
+ $url = new Horde_Url('#');
+ echo $url->link(array('target' => '_blank', 'onclick.raw' => Horde::popupJs(Horde::applicationUrl($imageurl), array('params' => array('actionID' => 'setwatermark', 'share' => $gallery->getName()), 'width' => 450, 'height' => 250, 'urlencode' => true)) . 'return false;')) . Horde::img('text.png') . ' ' . _("Watermark") . '</a> ';
}
$selfUrl = Horde::selfUrl(true);
<span class="rightFloat">
<?php ($galleries_perpage < $num_galleries) ? printf(_("%d to %d of %d Galleries"), $start, $end, $num_galleries) : printf(ngettext("%d Gallery", "%d Galleries", $num_galleries), $num_galleries) ?>
</span>
- <?php echo @htmlspecialchars($list_title, ENT_COMPAT, $GLOBALS['registry']->getCharset()) . ' ' . Horde::link(Horde::applicationUrl($refresh_link), _("Refresh List")) . Horde::img('reload.png', _("Refresh List")) . '</a>' ?>
+ <?php echo @htmlspecialchars($list_title, ENT_COMPAT, $GLOBALS['registry']->getCharset()) . ' ' . Horde::applicationUrl($refresh_link)->link(array('title' => _("Refresh List"))) . Horde::img('reload.png', _("Refresh List")) . '</a>' ?>
</div>
<table width="100%" style="background:<?php echo $styleDef['background'] ?>;"><tr>
-<?php echo '<div class="image-tile" id="imagetile_' . (int)$image->id . '">' . Horde::link($view_url, $image->filename, '', '', $imgOnClick, $title, '', $imgAttributes) . '<img src="' . $thumb_url . '" alt="' . htmlspecialchars($image->filename) . '" /></a>'; ?>
+<?php echo '<div class="image-tile" id="imagetile_' . (int)$image->id . '">' . $view_url->link(array_merge(array('title' => $image->filename, 'onclick.raw' => $imgOnClick)), $imgAttributes) . '<img src="' . $thumb_url . '" alt="' . htmlspecialchars($image->filename) . '" /></a>'; ?>
<div style="valign: bottom;">
<div class="image-tile-caption" id="<?php echo (int)$image->id . 'caption'?>"><?php echo $imageCaption ?></div>
<?php if ($GLOBALS['registry']->getAuth() || $option_select): ?>
<div><label><input type="checkbox" class="checkbox" name="image[<?php echo (int)$image->id ?>]" /> <?php echo _("Select for Action") ?></label></div>
<?php endif; ?>
<?php if ($view != 'Gallery'): ?>
-<div><?php echo _("From: ") . Horde::link($gallery_url) . $parent->get('name') ?></a></div>
+<div><?php echo _("From: ") . $gallery_url->link() . $parent->get('name') ?></a></div>
<?php endif; ?>
<?php if (($conf['comments']['allow'] == 'all' || ($conf['comments']['allow'] == 'authenticated' && $GLOBALS['registry']->getAuth())) && empty($params['hide_comments'])): ?>
- <div><?php echo Horde::link($img_view_url . '#messagediv', _("View or leave comments")) ?> <?php printf(ngettext("%d comment", "%d comments", $image->commentCount), $image->commentCount) ?></a></div>
+ <div><?php echo $img_view_url->copy()->setAnchor('messagediv')->link(array('title' => _("View or leave comments"))) . sprintf(ngettext("%d comment", "%d comments", $image->commentCount), $image->commentCount) ?></a></div>
<?php endif;
if ($option_select): ?>
<div>
<?php endif; ?>
<?php if (!empty($option_select) && $this->numTiles): ?>
<table class="anselActions" cellspacing="0" width="100%"><tr><td>
- <?php echo '<span class="widget">' . _("Select:") . '</span> '
- . Horde::link('#', '', 'widget', '', 'selectAll(); return false;')
+ <?php $tempurl = new Horde_Url('#');
+ echo '<span class="widget">' . _("Select:") . '</span> '
+ . $tempurl->link(array('class' => 'widget', 'onclick' => 'selectAll(); return false;'))
. _("All") . '</a> | '
- . Horde::link('#', '', 'widget', '', 'selectNone(); return false;')
+ . $tempurl->link(array('class' => 'widget', 'onclick' => 'selectNone(); return false;'))
. _("None") . '</a>'; ?>
</td>
<td align="right">
<?php endif; ?>
<?php if (!empty($option_select) && $this->numTiles): ?>
<table class="anselActions" cellspacing="0" width="100%"><tr><td>
- <?php printf(_("Select: %s, %s"),
- Horde::link('#', _("Select All"), '', '', 'selectAll(); return false;') . _("All") . '</a>',
- Horde::link('#', _("Select None"), '', '', 'selectNone(); return false;') . _("None") . '</a>');?>
+ <?php $tempurl = new Horde_Url('#');
+ printf(_("Select: %s, %s"),
+ $tempurl->link(array('title' => _("Select All"), 'onclick' => 'selectAll(); return false;')) . _("All") . '</a>',
+ $tempurl->link(array('title' => _("Select None"), 'onclick' => 'selectNone(); return false;')) . _("None") . '</a>');?>
</td><td align="right">
<?php if ($option_delete || $option_move || $option_copy) echo _("Actions: ") ?>
<?php if ($GLOBALS['conf']['gallery']['downloadzip']): ?>
- <?php echo Horde::link('#', '', 'widget', '', 'downloadSelected(); return false;') . _("Download selected photos")?></a> |
+ <?php echo $tempurl->link(array('class' => 'widget', 'onclick' => 'downloadSelected(); return false;')) . _("Download selected photos")?></a> |
<?php endif; ?>
<?php if ($option_edit): ?>
- <?php echo Horde::link('#', _("Edit Dates"), 'widget', '', 'editDates(); return false;') . _("Edit Dates"); ?></a> |
+ <?php echo $tempurl->link(array('title' => _("Edit Dates"), 'class' => 'widget', 'onclick' => 'editDates(); return false;')) . _("Edit Dates"); ?></a> |
<?php endif; ?>
<?php if ($option_delete): ?>
- <?php echo Horde::link('#', _("Delete"), 'widget', '', 'deleteSelected(); return false;') . _("Delete"); ?></a>
+ <?php echo $tempurl->link(array('title' => _("Delete"), 'class' => 'widget', 'onclick' => 'deleteSelected(); return false;')) . _("Delete"); ?></a>
<?php endif; ?>
<?php if ($option_move): ?>
- | <?php echo Horde::link('#', _("Move"), 'widget', '', 'moveSelected(); return false;') . _("Move"); ?></a>
+ | <?php echo $tempurl->link(array('title' => _("Move"), 'class' => 'widget', 'onclick' => 'moveSelected(); return false;')) . _("Move"); ?></a>
<?php endif; ?>
<?php if ($option_copy): ?>
- | <?php echo Horde::link('#', _("Copy"), 'widget', '', 'copySelected(); return false;') . _("Copy"); ?></a>
+ | <?php echo $tempurl->link(array('title' => _("Copy"), 'class' => 'widget', 'onclick' => 'copySelected(); return false;')) . _("Copy"); ?></a>
<?php endif; ?>
<select name="new_gallery"><option value="-1"><?php echo _("Selected photos to") ?></option><?php echo Ansel::selectGalleries(array('selected' => $this->galleryId, 'perm' => Horde_Perms::EDIT)) ?></select>
</td></tr></table>
<tr>
<td valign="top" style="background-color:<?php echo $this->_style['background']; ?>;">
<?php
+ $tempurl = new Horde_Url('#');
$needSeperator = false;
$actionHTML = '';
if ($this->gallery->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::EDIT) && empty($this->_params['api'])) {
$needSeperator = true;
- $actionHTML .= Horde::link('#', '', '', '_blank', $this->_urls['prop_popup'] . 'return false;', '', '', array('id' => 'image_properties_link')) . _("Properties") . '</a>';
- $actionHTML .= ' | ' . Horde::link($this->_urls['edit'], '', '', '', '', '', '', array('id' => 'image_edit_link')) . _("Edit") . '</a>';
+ $actionHTML .= $tempurl->link(array('target' => '_blank', 'onclick' => $this->_urls['prop_popup'] . 'return false;', 'id' => 'image_properties_link')) . _("Properties") . '</a>';
+ $actionHTML .= ' | ' . $this->_urls['edit']->link(array('id' => 'image_edit_link')) . _("Edit") . '</a>';
}
if ($this->gallery->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::DELETE) && empty($this->_params['api'])) {
- $actionHTML .= ' | ' . Horde::link($this->_urls['delete'], '', '', '', 'return window.confirm(\'' . addslashes(sprintf(_("Do you want to permanently delete ''%s''?"), $this->resource->filename)) . '\');', '', '', array('id' => 'image_delete_link')) . _("Delete") . '</a>';
+ $actionHTML .= ' | ' . $this->_urls['delete']->link(array('onclick' => 'return window.confirm(\'' . addslashes(sprintf(_("Do you want to permanently delete ''%s''?"), $this->resource->filename)) . '\');', 'id' => 'image_delete_link')) . _("Delete") . '</a>';
}
if (!empty($conf['ecard']['enable']) && !empty($this->_urls['ecard'])) {
- $actionHTML .= (empty($this->_params['api']) && $needSeperator ? ' | ' : '') . Horde::link($this->_urls['ecard'], '', '', '_blank', '', '', '', array('id' => 'image_ecard_link')) . _("Send an Ecard"); $needSeperator = true . '</a>';
+ $actionHTML .= (empty($this->_params['api']) && $needSeperator ? ' | ' : '') . $this->_urls['ecard']->link(array('target' => '_blank', 'id' => 'image_ecard_link')) . _("Send an Ecard"); $needSeperator = true . '</a>';
}
if ($this->gallery->canDownload()) {
- $actionHTML .= (empty($this->_params['api']) && $needSeperator ? ' | ' : '') . Horde::link($this->_urls['download'], '', '', '', '', '', '', array('id' => 'image_download_link')) . _("Download Original Photo"); $needSeperator = true . '</a>';
+ $actionHTML .= (empty($this->_params['api']) && $needSeperator ? ' | ' : '') . $this->_urls['download']->link(array('id' => 'image_download_link')) . _("Download Original Photo"); $needSeperator = true . '</a>';
}
if (empty($this->_params['api']) &&
(!$GLOBALS['registry']->getAuth() ||
$GLOBALS['registry']->isAuthenticated()) ||
$conf['report_content']['allow'] == 'all')) {
- $actionHTML .= ($needSeperator ? ' | ' : '' ) . Horde::link($this->_urls['report']) . _("Report") . '</a>';
+ $actionHTML .= ($needSeperator ? ' | ' : '' ) . $this->_urls['report']->link() . _("Report") . '</a>';
}
if (strlen($actionHTML)) {
echo '<div class="control anselActions" style="text-align:center;">' . $actionHTML . '</div>';
<table class="control" width="100%" cellspacing="0">
<tr>
<td>
- <?php printf(_("Select: %s, %s"),
- Horde::link('#', _("Select All"), '', '', 'selectAll(); return false;') . _("All") . '</a>',
- Horde::link('#', _("Select None"), '', '', 'selectNone(); return false;') . _("None") . '</a>');?>
+ <?php $tempurl = new Horde_Url('#');
+ printf(_("Select: %s, %s"),
+ $tempurl->link(array('title' => _("Select All"), 'onclick' => 'selectAll(); return false;')) . _("All") . '</a>',
+ $tempurl->link(array('title' => _("Select None"), 'onclick' => 'selectNone(); return false;')) . _("None") . '</a>');?>
</td>
<td class="rightAlign">
<?php echo _("Actions: ") ?>
- <?php echo Horde::link('#', _("Delete"), 'widget', '', 'deleteSelected(); return false;') . _("Delete"); ?></a>
+ <?php echo $tempurl->link(array('title' => _("Delete"), 'class' => 'widget', 'onclick' => 'deleteSelected(); return false;')) . _("Delete"); ?></a>
<?php if ($option_move): ?>
- | <?php echo Horde::link('#', _("Move"), 'widget', '', 'moveSelected(); return false;') . _("Move"); ?></a>
+ | <?php echo $tempurl->link(array('title' => _("Move"), 'class' => 'widget', 'onclick' => 'moveSelected(); return false;')) . _("Move"); ?></a>
<?php endif; ?>
<?php if ($option_copy): ?>
- | <?php echo Horde::link('#', _("Copy"), 'widget', '', 'copySelected(); return false;') . _("Copy"); ?></a>
+ | <?php echo $tempurl->link(array('title' => _("Copy"), 'class' => 'widget', 'onclick' => 'copySelected(); return false;')) . _("Copy"); ?></a>
<?php endif; ?>
<select name="new_gallery"><option value="-1"><?php echo _("Selected photos to") ?></option><?php echo Ansel::selectGalleries(array('perms' => Horde_Perms::EDIT))?></select>
</td>
<tr class="control">
<td>
<?php if ($this->gallery->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::EDIT)): ?>
- <?php echo Horde::link('#', '', '', '_blank', 'SlideController.pause();' . $this->_urls['prop_popup'], '', '', array('id' => 'image_properties_link')) . _("Properties") ?></a>
- | <?php echo Horde::link(Horde::applicationUrl($this->_urls['edit']), '', '', '', '', '', '', array('id' => 'image_edit_link')) . _("Edit") ?></a>
+ <?php $url = new Horde_Url('#'); echo $url->link(array('onclick.raw' => $this->_urls['prop_popup'] . ' SlideController.pause(); return false;','id' => 'image_properties_link')) . _("Properties") ?></a>
+ | <?php echo Horde::applicationUrl($this->_urls['edit'])->link(array('id' => 'image_edit_link')) . _("Edit") ?></a>
<?php endif; ?>
<?php if ($this->gallery->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::DELETE)): ?>
- | <?php echo Horde::link($this->_urls['delete'], '', '', '', 'return window.confirm(\'' . addslashes(sprintf(_("Do you want to permanently delete \"%s\"?"), $this->resource->filename)) . '\');', '', '', array('id' => 'image_delete_link')) . _("Delete") ?></a>
+ | <?php echo $this->_urls['delete']->link(array('id' => 'image_delete_link')) . _("Delete") ?></a>
<?php endif; ?>
</td>
<td class="rightAlign">
-
-<?php if (!empty($conf['ecard']['enable'])): ?>
- <?php echo Horde::link($this->_urls['ecard'], '', '', '_blank', 'SlideController.pause();' . Horde::popupJs($ecardurl, array('urlencode' => true)) . 'return false;', '', '', array('id' => 'image_ecard_link')) . _("Send an Ecard") ?></a> |
+<?php if (!empty($GLOBALS['conf']['ecard']['enable'])): ?>
+ <?php echo $this->_urls['ecard']->link(array('target' => '_blank', 'onclick' => 'SlideController.pause();' . Horde::popupJs($this->_urls['ecard'], array('urlencode' => true)) . 'return false;', 'id' => 'image_ecard_link')) . _("Send an Ecard") ?></a> |
<?php endif; ?>
- <?php echo Horde::link($this->_urls['download'], '', '', '', 'SlideController.pause();', '', '', array('id' => 'image_download_link')) . _("Download Original Photo") ?></a>
+ <?php echo $this->_urls['download']->link(array('onclick' => 'SlideController.pause();', 'id' => 'image_download_link')) . _("Download Original Photo") ?></a>
</td>
</tr>
</table>