function __construct(& $subject, $config)
{
[b]if (JFactory::getDocument()->getType() != 'html') { return; }[/b]
$factoryFile = JPATH_ROOT . '/components/com_jfbconnect/libraries/factory.php';
if (!JFile::exists($factoryFile))
{
JFactory::getApplication()->enqueueMessage("File missing: " . $factoryFile . "<br/>Please re-install JFBConnect or disable the JFBCSystem Plugin", 'error');
return; // Don't finish loading this plugin to prevent other errors
}
require_once($factoryFile);
JFBCFactory::initializeJoomla();
parent::__construct($subject, $config);
$scTagArray = array('SCPinterest');
foreach(JFBCFactory::getAllProviders() as $provider)
$scTagArray[] = 'SC'.$provider->name;
$this->scTags = implode('|', $scTagArray);
}public function onAfterRender()
{
if (!JFactory::getApplication()->isAdmin())public function onAfterRender()
{
if (!JFactory::getApplication()->isAdmin() && JFactory::getDocument()->getType() == 'html')Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
