Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Remove com_mailto #30

Merged
merged 1 commit into from
May 25, 2015
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
1 change: 0 additions & 1 deletion administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ protected function updateManifestCaches()

// Components
// `type`, `element`, `folder`, `client_id`
$extensions[] = array('component', 'com_mailto', '', 0);
$extensions[] = array('component', 'com_admin', '', 1);
$extensions[] = array('component', 'com_ajax', '', 1);
$extensions[] = array('component', 'com_cache', '', 1);
Expand Down
8 changes: 0 additions & 8 deletions administrator/language/en-GB/en-GB.com_mailto.sys.ini

This file was deleted.

1 change: 0 additions & 1 deletion administrator/language/en-GB/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
<filename>en-GB.com_languages.sys.ini</filename>
<filename>en-GB.com_login.ini</filename>
<filename>en-GB.com_login.sys.ini</filename>
<filename>en-GB.com_mailto.sys.ini</filename>
<filename>en-GB.com_media.ini</filename>
<filename>en-GB.com_media.sys.ini</filename>
<filename>en-GB.com_menus.ini</filename>
Expand Down
34 changes: 2 additions & 32 deletions components/com_content/helpers/icon.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,41 +78,11 @@ public static function create($category, $params, $attribs = array(), $legacy =
* @param boolean $legacy True to use legacy images, false to use icomoon based graphic
*
* @return string The HTML markup for the email item link
* @deprecated
*/
public static function email($article, $params, $attribs = array(), $legacy = false)
{
require_once JPATH_SITE . '/components/com_mailto/helpers/mailto.php';

$uri = JUri::getInstance();
$base = $uri->toString(array('scheme', 'host', 'port'));
$template = JFactory::getApplication()->getTemplate();
$link = $base . JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid), false);
$url = 'index.php?option=com_mailto&tmpl=component&template=' . $template . '&link=' . MailToHelper::addLink($link);

$status = 'width=400,height=350,menubar=yes,resizable=yes';

if ($params->get('show_icons'))
{
if ($legacy)
{
$text = JHtml::_('image', 'system/emailButton.png', JText::_('JGLOBAL_EMAIL'), null, true);
}
else
{
$text = '<span class="icon-envelope"></span> ' . JText::_('JGLOBAL_EMAIL');
}
}
else
{
$text = JText::_('JGLOBAL_EMAIL');
}

$attribs['title'] = JText::_('JGLOBAL_EMAIL');
$attribs['onclick'] = "window.open(this.href,'win2','" . $status . "'); return false;";

$output = JHtml::_('link', JRoute::_($url), $text, $attribs);

return $output;
return '';
}

/**
Expand Down
157 changes: 0 additions & 157 deletions components/com_mailto/controller.php

This file was deleted.

1 change: 0 additions & 1 deletion components/com_mailto/helpers/index.html

This file was deleted.

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

This file was deleted.

1 change: 0 additions & 1 deletion components/com_mailto/index.html

This file was deleted.

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

This file was deleted.

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

This file was deleted.

1 change: 0 additions & 1 deletion components/com_mailto/views/index.html

This file was deleted.

1 change: 0 additions & 1 deletion components/com_mailto/views/mailto/index.html

This file was deleted.

2 changes: 0 additions & 2 deletions components/com_mailto/views/mailto/metadata.xml

This file was deleted.

Loading