get('pagedition'); $app = JFactory::getApplication(); // Detecting Active Variables $templateedition = $app->input->get('tckedition', 0, 'int'); global $pagebuilderckEditionLoaded, $ckFrontEditionLoaded; if ($templateedition && $pagebuilderckEditionLoaded === true) { echo '
' . $modulecontent . '
'; } else { // pass through the content plugins if ($params->get('preparecontent', '0')) { JPluginHelper::importPlugin('content'); $modulecontent = JHtml::_('content.prepare', $modulecontent, '', 'mod_pagebuilderck.content'); } $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx', '')); // frontend medias PagebuilderckFrontHelper::loadFrontendAssets(); // get the page model include_once JPATH_ROOT . '/components/com_pagebuilderck/models/page.php'; $model = JModelLegacy::getInstance('Page', 'PagebuilderckModel'); // parse the html code through the model page $model->parseHtml($modulecontent); require JModuleHelper::getLayoutPath('mod_pagebuilderck', $params->get('layout', 'default')); }