| Server IP : 46.105.57.169 / Your IP : 216.73.216.84 Web Server : Apache System : Linux webd003.cluster120.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : maitricfuz ( 93378) PHP Version : 8.4.10 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/m/a/i/maitricfuz/www/saint-martin-lg/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 = Pagebuilderck\CKFof::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')) {
\Joomla\CMS\Plugin\PluginHelper::importPlugin('content');
$modulecontent = \Joomla\CMS\HTML\HTMLHelper::_('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 = \Joomla\CMS\MVC\Model\BaseDatabaseModel::getInstance('Page', 'PagebuilderckModel');
// parse the html code through the model page
$model->parseHtml($modulecontent);
require \Joomla\CMS\Helper\ModuleHelper::getLayoutPath('mod_pagebuilderck', $params->get('layout', 'default'));
}