first commit

This commit is contained in:
2026-02-08 21:16:11 +01:00
commit e17b7026fd
8881 changed files with 1160453 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<layout title="COM_PAGEBUILDERCK_PAGE_VIEW_DEFAULT">
<message>
<![CDATA[COM_PAGEBUILDERCK_PAGE_VIEW_DEFAULT_DESC]]>
</message>
</layout>
<!-- Add fields to the request variables for the layout. -->
<fields name="request">
<fieldset name="request" addfieldpath="administrator/components/com_pagebuilderck/models/fields">
<field
name="id"
type="pagebuilderckpage"
default="0"
label="COM_PAGEBUILDERCK_FIELD_SELECT_PAGE_LABEL"
description="COM_PAGEBUILDERCK_FIELD_SELECT_PAGE_DESC"
extension="COM_PAGEBUILDERCK"
required="true"
/>
</fieldset>
</fields>
<!-- Add fields to the parameters object for the layout. -->
<fields name="params">
</fields>
</metadata>

View File

@@ -0,0 +1,14 @@
<?php
/**
* @name Page Builder CK
* @package com_pagebuilderck
* @copyright Copyright (C) 2015. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/ajaxrendercss.php';

View File

@@ -0,0 +1,13 @@
<?php
/**
* @name Page Builder CK
* @package com_pagebuilderck
* @copyright Copyright (C) 2015. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// loads the admin file
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/ajaxstylescss.php');

View File

@@ -0,0 +1,56 @@
<?php
/**
* @name Page Builder CK
* @package com_pagebuilderck
* @copyright Copyright (C) 2015. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
*/
defined('_JEXEC') or die;
$user = JFactory::getUser();
$canEdit = $user->authorise('core.edit.own', 'com_pagebuilderck');
// frontend medias
PagebuilderckFrontHelper::loadFrontendAssets();
// load the component configuration
$params = JComponentHelper::getParams('com_pagebuilderck');
// load the page/link configuration
$app = JFactory::getApplication();
$pageParams = $app->getParams();
$doc = JFactory::getDocument();
// add the meta in the page
if ($pageParams->get('menu-meta_description'))
{
$doc->setDescription($pageParams->get('menu-meta_description'));
}
if ($pageParams->get('menu-meta_keywords'))
{
$doc->setMetadata('keywords', $pageParams->get('menu-meta_keywords'));
}
if ($pageParams->get('robots'))
{
$doc->setMetadata('robots', $pageParams->get('robots'));
}
// $this->item->params = new JRegistry($this->item->params);
?>
<div class="pagebuilderck <?php echo htmlspecialchars($pageParams->get('pageclass_sfx', '')); ?>">
<?php if ($canEdit && $this->input->get('option', '', 'cmd') == 'com_pagebuilderck' ) { ?>
<a class="btn btn-primary" href="<?php echo JUri::base(true) ?>/index.php?option=com_pagebuilderck&task=page.edit&id=<?php echo $this->item->id ?>"><i class="icon icon-edit"></i> <?php echo JText::_('CK_EDIT') ?></a>
<?php } ?>
<?php if ($pageParams->get('show_page_heading', '1') && $pageParams->get('page_heading')) { ?>
<div class="page-header">
<h1> <?php echo addslashes($pageParams->get('page_heading')); ?> </h1>
</div>
<?php } ?>
<?php if ($this->item->params->get('showtitle')) { ?>
<<?php echo $this->item->params->get('titletag', 'h1') ?> class="pagebuilderck_title"><?php echo $this->item->title ?></<?php echo $this->item->params->get('titletag', 'h1') ?>>
<?php } ?>
<?php echo $this->item->htmlcode; ?>
</div>

View File

@@ -0,0 +1,25 @@
<?php
/**
* @name Page Builder CK
* @package com_pagebuilderck
* @copyright Copyright (C) 2015. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
*/
defined('_JEXEC') or die;
$user = JFactory::getUser();
$app = JFactory::getApplication();
$assoc = isset($app->item_associations) ? $app->item_associations : 0;
// $canEdit = $user->authorise('core.edit', 'com_pagebuilderck');
echo '<p style="color:red">You are not allowed to edit a page in Front. Please do it in the administration area. To edit in Front, please use the articles instead.</p>';
return;
// loads the css and js files
//include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/include.php');
// loads the css and js files
//include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/main.php');

View File

@@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@@ -0,0 +1,37 @@
<?php
/**
* @name Page Builder CK
* @package com_pagebuilderck
* @copyright Copyright (C) 2015. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');
$input = new JInput();
$user = JFactory::getUser();
$app = JFactory::getApplication();
$assoc = isset($app->item_associations) ? $app->item_associations : 0;
$canEdit = $user->authorise('core.edit', 'com_pagebuilderck');
?>
<?php
// loads the css and js files
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/include.php');
?>
<style>
body {background: #fff !important;}
</style>
<button id="applyBtn" type="button" class="hidden" style="display:none;" onclick="Joomla.submitbutton('page.apply');"></button>
<button id="saveBtn" type="button" class="hidden" style="display:none;" onclick="Joomla.submitbutton('page.save');"></button>
<button id="closeBtn" type="button" class="hidden" style="display:none;" onclick="Joomla.submitbutton('page.cancel');"></button>
<?php
// loads the main content
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/main.php');