diff --git a/src/components/com_weblinks/helpers/icon.php b/src/components/com_weblinks/helpers/icon.php deleted file mode 100644 index 1445ddf..0000000 --- a/src/components/com_weblinks/helpers/icon.php +++ /dev/null @@ -1,89 +0,0 @@ -' . $button . ''; - } - - /** - * Create a link to edit an existing weblink - * - * @param object $weblink Weblink data - * @param \Joomla\Registry\Registry $params Item params - * @param array $attribs Unused - * - * @return string - */ - public static function edit($weblink, $params, $attribs = array()) - { - $uri = JUri::getInstance(); - - if ($params && $params->get('popup')) - { - return; - } - - if ($weblink->state < 0) - { - return; - } - - JHtml::_('bootstrap.tooltip'); - - $url = WeblinksHelperRoute::getFormRoute($weblink->id, base64_encode($uri)); - $icon = $weblink->state ? 'edit.png' : 'edit_unpublished.png'; - $text = JHtml::_('image', 'system/' . $icon, JText::_('JGLOBAL_EDIT'), null, true); - - if ($weblink->state == 0) - { - $overlib = JText::_('JUNPUBLISHED'); - } - else - { - $overlib = JText::_('JPUBLISHED'); - } - - $date = JHtml::_('date', $weblink->created); - $author = $weblink->created_by_alias ? $weblink->created_by_alias : $weblink->author; - - $overlib .= '<br />'; - $overlib .= $date; - $overlib .= '<br />'; - $overlib .= htmlspecialchars($author, ENT_COMPAT, 'UTF-8'); - - $button = JHtml::_('link', JRoute::_($url), $text); - - return '' . $button . ''; - } -}