Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETE FROM `#__extensions` WHERE `name` = 'com_mailto';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETE FROM "#__extensions" WHERE "name" = 'com_mailto';
34 changes: 0 additions & 34 deletions administrator/components/com_content/src/Service/HTML/Icon.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Workflow\Workflow;
use Joomla\Component\Content\Site\Helper\RouteHelper;
use Joomla\Component\Mailto\Site\Helper\MailtoHelper;
use Joomla\Registry\Registry;

/**
Expand Down Expand Up @@ -88,39 +87,6 @@ public function create($category, $params, $attribs = array(), $legacy = false)
return $output;
}

/**
* Method to generate a link to the email item page for the given article
*
* @param object $article The article information
* @param Registry $params The item parameters
* @param array $attribs Optional attributes for the link
* @param boolean $legacy True to use legacy images, false to use icomoon based graphic
*
* @return string The HTML markup for the email item link
*
* @since 4.0.0
*/
public function email($article, $params, $attribs = array(), $legacy = false)
{
$uri = Uri::getInstance();
$base = $uri->toString(array('scheme', 'host', 'port'));
$template = $this->application->getTemplate();
$link = $base . Route::_(RouteHelper::getArticleRoute($article->slug, $article->catid, $article->language), false);
$url = 'index.php?option=com_mailto&tmpl=component&template=' . $template . '&link=' . MailtoHelper::addLink($link);

$height = Factory::getApplication()->get('captcha', '0') === '0' ? 450 : 550;
$status = 'width=400,height=' . $height . ',menubar=yes,resizable=yes';

$text = LayoutHelper::render('joomla.content.icons.email', array('params' => $params, 'legacy' => $legacy));

$attribs['title'] = Text::_('JGLOBAL_EMAIL_TITLE');
$attribs['onclick'] = "window.open(this.href,'win2','" . $status . "'); return false;";
$attribs['rel'] = 'nofollow';
$attribs['class'] = 'dropdown-item';

return HTMLHelper::_('link', Route::_($url), $text, $attribs);
}

/**
* Display an edit icon for the article.
*
Expand Down
34 changes: 0 additions & 34 deletions administrator/components/com_mailto/mailto.xml

This file was deleted.

52 changes: 0 additions & 52 deletions administrator/components/com_mailto/services/provider.php

This file was deleted.

8 changes: 0 additions & 8 deletions administrator/language/en-GB/com_mailto.sys.ini

This file was deleted.

41 changes: 0 additions & 41 deletions build/media_source/com_mailto/js/mailto-default.es6.js

This file was deleted.

55 changes: 0 additions & 55 deletions components/com_mailto/forms/mailto.xml

This file was deleted.

22 changes: 0 additions & 22 deletions components/com_mailto/helpers/mailto.php

This file was deleted.

Loading