index.html000060400000000054152456032670006546 0ustar00contentplugin.php000060400000006166152456032670010165 0ustar00params)){ $plugin = JPluginHelper::getPlugin('acymailing', 'contentplugin'); $this->params = new acyParameter( $plugin->params ); } $this->paramsContent = JComponentHelper::getParams('com_content'); acymailing_importPlugin('content'); $excludedHandlers = array('plgContentEmailCloak','pluginImageShow'); $excludedNames = array('system' => array('SEOGenerator','SEOSimple'), 'content' => array('webeecomment','highslide','smartresizer','phocagallery')); $excludedType = array_keys($excludedNames); if(!ACYMAILING_J16){ $this->dispatcherContent = JDispatcher::getInstance(); foreach ($this->dispatcherContent->_observers as $id => $observer){ if (is_array($observer) AND in_array($observer['handler'],$excludedHandlers)){ $this->dispatcherContent->_observers[$id]['event'] = ''; }elseif(is_object($observer)){ if(in_array($observer->_type,$excludedType) AND in_array($observer->_name,$excludedNames[$observer->_type])){ $this->dispatcherContent->_observers[$id] = null; } } } } if(!class_exists('JSite')) include_once(ACYMAILING_ROOT.'includes'.DS.'application.php'); } function acymailing_replacetags(&$email,$send = true){ $art = new stdClass(); $art->title = $email->subject; $art->introtext = $email->body; $art->fulltext = $email->body; $art->attribs = ''; $art->state=1; $art->created_by=@$email->userid; $art->images = ''; $art->id = 0; $art->section = 0; $art->catid = 0; $context = 'com_acymailing'; try{ if(!empty($email->body)){ $art->text = $email->body; if(!ACYMAILING_J16){ $resultsPlugin = acymailing_trigger('onPrepareContent', array(&$art, &$this->paramsContent, 0)); }else{ if($send) $art->text .= '{emailcloak=off}'; $resultsPlugin = acymailing_trigger('onContentPrepare', array($context, &$art, &$this->paramsContent, 0)); if($send) $art->text = str_replace(array('{emailcloak=off}','{* emailcloak=off}'),'',$art->text); } $email->body = $art->text; } if(!empty($email->altbody)){ $art->text = $email->altbody; if(!ACYMAILING_J16){ $resultsPlugin = acymailing_trigger('onPrepareContent', array(&$art, &$this->paramsContent, 0)); }else{ if($send) $art->text .= '{emailcloak=off}'; $resultsPlugin = acymailing_trigger('onContentPrepare', array ($context,&$art, &$this->paramsContent, 0 )); if($send) $art->text = str_replace(array('{emailcloak=off}','{* emailcloak=off}'),'',$art->text); } $email->altbody = $art->text; } }catch(Exception $e){ acymailing_display(array('An error occured with the AcyMailing contentplugin plugin, you may want to disable it from the AcyMailing configuration page',$e->getMessage()),'error'); } } }//endclass contentplugin.xml000060400000002545152456032670010173 0ustar00 AcyMailing : trigger Joomla Content plugins November 2009 3.7.0 Acyba dev@acyba.com http://www.acyba.com Copyright (C) 2009-2018 ACYBA SAS - All rights reserved.. GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html This plugin enables you to trigger the content plugin system on AcyMailing. The Joomla Content plugin system has not been developed to be triggered from the backend and so you may have some non compatible plugins, that's why this plugin is not enabled by default contentplugin.php