| Server IP : 87.98.231.4 / Your IP : 216.73.217.178 [ Web Server : Apache System : Linux webm007.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : grupmartgn ( 667608) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/grupmartgn/elanartcrafts/modules/mod_pagebuilderck/ |
Upload File : |
<?php
/**
* @copyright Copyright (C) 2015 Cédric KEIFLIN alias ced1870
* http://www.template-creator.com
* http://www.joomlack.fr
* @license GNU/GPL
* */
defined('_JEXEC') or die;
if (! file_exists(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/pagebuilderckfront.php')) return;
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/pagebuilderckfront.php';
// get the html code of the page
$modulecontent = $params->get('pagedition');
$app = JFactory::getApplication();
// Detecting Active Variables
$templateedition = $app->input->get('tckedition', 0, 'int');
global $pagebuilderckEditionLoaded, $ckFrontEditionLoaded;
if ($templateedition && $pagebuilderckEditionLoaded === true) {
echo '<div class="workspaceck pagebuilderck pbck-module-edition" data-id="' . $module->id . '">' . $modulecontent . '</div>';
} 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'));
}