*/
class Ansel_Widget_Actions extends Ansel_Widget_Base
{
+ /**
+ * @var string
+ */
protected $_supported_views = array('Gallery');
+ /**
+ * @param array $params
+ */
public function __construct($params)
{
$this->_title = _("Gallery Actions");
return $html;
}
- /**
- * Helper function for generating the gallery actions selection widget.
- *
- * @return string The HTML
- */
+ /**
+ * Helper function for generating the gallery actions selection widget.
+ *
+ * @return string The HTML
+ */
protected function _getGalleryActions()
{
global $registry, $conf;
/* Bookmark link */
if ($registry->hasMethod('bookmarks/getAddUrl')) {
- $api_params = array(
+ $api_params = array(
'url' => Ansel::getUrlFor('view', $view_params, true),
'title' => $this->_view->gallery->get('name'));
try {
- $url = $registry->bookmarks->getAddUrl(array($api_params));
+ $url = $registry->bookmarks->getAddUrl($api_params);
} catch (Horde_Exception $e) {}
$html .= '<li>' . Horde::link($url, '', 'widget') . Horde::img('trean.png', '', '', $registry->getImageDir('trean')) . ' ' . _("Add to bookmarks") . '</a></li>';
return $html;
}
-
}