Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //added in version 2.0
- function show_email_button( &$sbutton){
- extract($sbutton);
- //$uri = JFactory::getURI();
- //$sitehost = $uri->toString( array ('scheme', 'host', 'port' ) );
- $button = '';
- $app = &JFactory::getApplication();
- $template = $app->getTemplate();
- require_once(JPATH_SITE . '/components/com_mailto/helpers/mailto.php');
- //$link = $uri;
- if($count){
- if($style == 'normal')
- {
- $button .= '<div class="allshare_button_emailplg"><div class="allshare_button_emailshareplg"><a onclick="window.open(this.href,\'win2\',\'width=400,height=350,menubar=yes,resizable=yes\'); return false;" title="'.$title.'" href="index.php?option=com_mailto&tmpl=component&template='.$template.'&link='.MailToHelper::addLink( $link ).'"><span>'.JText::_( 'Email' ).'</span></a></div></div>';
- }
- else
- {
- $button .= '<div class="allshare_button_emailcplg"><div class="allshare_button_emailsharecplg"><a onclick="window.open(this.href,\'win2\',\'width=400,height=350,menubar=yes,resizable=yes\'); return false;" title="'.$title.'" href="index.php?option=com_mailto&tmpl=component&template='.$template.'&link='.MailToHelper::addLink( $link ).'"><span>'.JText::_( 'Email' ).'</span></a></div></div>';
- }
- } else {
- $button = '<span class="cbsoclshareitem cbsoclshareitemnormal cbsoclshareitememailnormal"><a onclick="window.open(this.href,\'win2\',\'width=400,height=350,menubar=yes,resizable=yes\'); return false;" href="index.php?option=com_mailto&tmpl=component&template='.$template.'&link=' . MailToHelper::addLink($link) . '">'. JText::_('Email') . '</a></span>';
- }
- return $button;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement