Source for file icon.php
Documentation is available at icon.php
* @subpackage com_contact
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Content Component HTML Helper
* @subpackage com_content
public static function email($contact, $params, $attribs =
array())
require_once JPATH_SITE .
'/components/com_mailto/helpers/mailto.php';
$base =
$uri->toString(array('scheme', 'host', 'port'));
$url =
'index.php?option=com_mailto&tmpl=component&link='.
MailToHelper::addLink($link);
$status =
'width=400,height=350,menubar=yes,resizable=yes';
if ($params->get('show_icons'))
$text =
JHtml::_('image', 'system/emailButton.png', JText::_('JGLOBAL_EMAIL'), null, true);
$text =
' '.
JText::_('JGLOBAL_EMAIL');
$attribs['title'] =
JText::_('JGLOBAL_EMAIL');
$attribs['onclick'] =
"window.open(this.href,'win2','".
$status.
"'); return false;";
public static function print_popup($article, $params, $attribs =
array())
$url .=
'&tmpl=component&print=1&layout=default&page='.
@ $request->limitstart;
$status =
'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no';
// checks template image directory for image, if non found default are loaded
if ($params->get('show_icons'))
$text =
JHtml::_('image', 'system/printButton.png', JText::_('JGLOBAL_PRINT'), null, true);
$text =
JText::_('JGLOBAL_ICON_SEP') .
' '.
JText::_('JGLOBAL_PRINT') .
' '.
JText::_('JGLOBAL_ICON_SEP');
$attribs['title'] =
JText::_('JGLOBAL_PRINT');
$attribs['onclick'] =
"window.open(this.href,'win2','".
$status.
"'); return false;";
$attribs['rel'] =
'nofollow';
public static function print_screen($contact, $params, $attribs =
array())
// checks template image directory for image, if non found default are loaded
if ($params->get('show_icons'))
$text =
JHtml::_('image', 'system/printButton.png', JText::_('JGLOBAL_PRINT'), null, true);
$text =
JText::_('JGLOBAL_ICON_SEP') .
' '.
JText::_('JGLOBAL_PRINT') .
' '.
JText::_('JGLOBAL_ICON_SEP');
return '<a href="#" onclick="window.print();return false;">'.
$text.
'</a>';
Documentation generated on Tue, 19 Nov 2013 15:04:58 +0100 by phpDocumentor 1.4.3