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 @@
<html><body></body></html>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;">
<g transform="matrix(2.08267,0,0,2.08267,-425.202,2.84748)">
<g transform="matrix(5.58723,0,0,5.58723,204.162,-1.36723)">
<rect x="0" y="0" width="44" height="44" style="fill:none;fill-rule:nonzero;"/>
</g>
<g transform="matrix(5.58723,0,0,5.58723,204.162,-1.36723)">
<path d="M14.667,16.5L29.333,16.5" style="fill:none;fill-rule:nonzero;stroke:black;stroke-width:1.72px;"/>
</g>
<g transform="matrix(5.58723,0,0,5.58723,204.162,-1.36723)">
<path d="M14.667,23.833L25.667,23.833" style="fill:none;fill-rule:nonzero;stroke:black;stroke-width:1.72px;"/>
</g>
<g transform="matrix(5.58723,0,0,5.58723,204.162,-1.36723)">
<path d="M16.5,33L11,33C7.983,33 5.5,30.517 5.5,27.5L5.5,12.833C5.5,9.816 7.983,7.333 11,7.333L33,7.333C36.017,7.333 38.5,9.816 38.5,12.833L38.5,27.5C38.5,30.517 36.017,33 33,33L27.5,33L22,38.5L16.5,33Z" style="fill:none;fill-rule:nonzero;stroke:black;stroke-width:1.72px;"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1 @@
<html><body></body></html>

View File

@@ -0,0 +1,11 @@
; @copyright Copyright (C) 2010 Cédric KEIFLIN alias ced1870
; https://www.joomlack.fr
; @license GNU/GPL
; Double quotes in the values have to be formatted as "_QQ_"
PLG_PAGEBUILDERCK_MESSAGE_XML_NAME="Page Builder CK - Message box"
PLG_PAGEBUILDERCK_MESSAGE_MENUITEM_TITLE="Message box"
PLG_PAGEBUILDERCK_MESSAGE_MENUITEM_DESC="A styled box for your message"
PLG_PAGEBUILDERCK_MESSAGE_CLOSEBUTTON_LABEL="Close button"

View File

@@ -0,0 +1,7 @@
; @copyright Copyright (C) 2010 Cédric KEIFLIN alias ced1870
; https://www.joomlack.fr
; @license GNU/GPL
; Double quotes in the values have to be formatted as "_QQ_"
PLG_PAGEBUILDERCK_MESSAGE_XML_NAME="Page Builder CK - Message box"

View File

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

View File

@@ -0,0 +1,10 @@
; @copyright Copyright (C) 2010 Cédric KEIFLIN alias ced1870
; https://www.joomlack.fr
; @license GNU/GPL
; Double quotes in the values have to be formatted as "_QQ_"
PLG_PAGEBUILDERCK_MESSAGE_XML_NAME="Page Builder CK - Boite à message"
PLG_PAGEBUILDERCK_MESSAGE_MENUITEM_TITLE="Boite à message"
PLG_PAGEBUILDERCK_MESSAGE_MENUITEM_DESC="Un message avec style prédéfini"
PLG_PAGEBUILDERCK_MESSAGE_CLOSEBUTTON_LABEL="Bouton de fermeture"

View File

@@ -0,0 +1,7 @@
; @copyright Copyright (C) 2010 Cédric KEIFLIN alias ced1870
; https://www.joomlack.fr
; @license GNU/GPL
; Double quotes in the values have to be formatted as "_QQ_"
PLG_PAGEBUILDERCK_MESSAGE_XML_NAME="Page Builder CK - Boite à message"

View File

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

View File

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

View File

@@ -0,0 +1,197 @@
<?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;
?>
<div id="elementscontainer">
<div class="menulink" tab="tab_edition"><?php echo JText::_('CK_EDITION'); ?></div>
<div class="tab menustyles ckproperty tab_fullscreen" id="tab_edition">
<div class="menupanetitle"><?php echo JText::_('CK_TITLE'); ?></div>
<input type="text" id="<?php echo $id; ?>_title" onchange="ckUpdatePreviewArea()" style="width: 90%;" />
<div class="menupanetitle"><?php echo JText::_('CK_TEXT'); ?></div>
<textarea id="<?php echo $id; ?>_text" data-id="<?php echo $id; ?>_text"onchange="ckUpdatePreviewArea()"></textarea>
</div>
<div class="menulink" tab="tab_blocstyles"><?php echo JText::_('CK_STYLES'); ?></div>
<div class="tab menustyles ckproperty" id="tab_blocstyles">
<div class="ckoption">
<span class="ckoption-label">
<img class="ckoption-icon" src="<?php echo $this->imagespath; ?>switch.png" width="16" height="16" />
<?php echo JText::_('PLG_PAGEBUILDERCK_MESSAGE_CLOSEBUTTON_LABEL'); ?>
</span>
<span class="ckoption-field ckbutton-group">
<input id="message_close_button_1" class="inputbox" name="message_close_button" value="1" type="radio" >
<label class="ckbutton" for="message_close_button_1">
<?php echo JText::_('JYES'); ?>
</label>
<input id="message_close_button_0" class="inputbox" name="message_close_button" value="0" type="radio" checked>
<label class="ckbutton" for="message_close_button_0">
<?php echo JText::_('JNO'); ?>
</label>
</span>
<div class="clr"></div>
</div>
<div class="menupanetitle"><?php echo JText::_('CK_VARIATIONS'); ?></div>
<div class="messageckvariation" onclick="ckApplyMessageVariation('info');">
<div class="messageck alertck alertck-info">
<div>
<div class="messageck_title">Title</div>
<div class="messageck_text">Text Here</div>
</div>
</div>
</div>
<div class="messageckvariation" onclick="ckApplyMessageVariation('success');">
<div class="messageck alertck alertck-success">
<div>
<div class="messageck_title">Title</div>
<div class="messageck_text">Text Here</div>
</div>
</div>
</div>
<div class="messageckvariation" onclick="ckApplyMessageVariation('warning');">
<div class="messageck alertck alertck-warning">
<div>
<div class="messageck_title">Title</div>
<div class="messageck_text">Text Here</div>
</div>
</div>
</div>
<div class="messageckvariation" onclick="ckApplyMessageVariation('danger');">
<div class="messageck alertck alertck-danger">
<div>
<div class="messageck_title">Title</div>
<div class="messageck_text">Text Here</div>
</div>
</div>
</div>
<div class="menustylescustom" data-prefix="message" data-rule=".messageck">
<?php echo $this->menustyles->createBackgroundColor('message', $usegradient = false, $title = '', $expert = false) ?>
<?php echo $this->menustyles->createSingleBorders('message', $usegradient = false, $title = '', $expert = false) ?>
</div>
<div class="clr"></div>
</div>
<div class="menulink" tab="tab_iconstyles"><?php echo JText::_('CK_ICON'); ?></div>
<div class="tab menustyles ckproperty" id="tab_iconstyles">
<?php echo $this->menustyles->createIcon('icon', '.editfocus .iconck .pbckicon', false, false, true, false, true, false) ?>
<?php echo $this->menustyles->createBackground('icon') ?>
<?php echo $this->menustyles->createDimensions('icon', true, true) ?>
<?php echo $this->menustyles->createDecoration('icon') ?>
<?php echo $this->menustyles->createShadow('icon') ?>
<?php echo $this->menustyles->createCustom('icon') ?>
</div>
<div class="menulink" tab="tab_titlestyles"><?php echo JText::_('CK_TITLE_STYLES'); ?></div>
<div class="tab menustyles ckproperty" id="tab_titlestyles">
<?php echo $this->menustyles->createTextStyles('messagetitle', 'messageck', '') ?>
</div>
<div class="menulink" tab="tab_contentstyles"><?php echo JText::_('CK_TEXT_STYLES'); ?></div>
<div class="tab menustyles ckproperty" id="tab_contentstyles">
<?php echo $this->menustyles->createTextStyles('messagetext', 'messageck', '') ?>
</div>
</div>
<div class="clr"></div>
<script language="javascript" type="text/javascript">
var focus = $ck('.editfocus');
var textID = '<?php echo $id; ?>_text';
function ckLoadEditionPopup() {
var textID = '<?php echo $id; ?>_text';
// $ck('#previewarea .ckstyle').html(focus.find('.ckstyle').html());
// $ck('#previewarea .messageck').html(focus.find('.messageck').html());
// $ck('#previewarea .messageck').attr('class', focus.find('.messageck').attr('class'));
$ck('#<?php echo $id; ?>_title').val(focus.find('.messageck_title').html());
$ck('#<?php echo $id; ?>_text').val(focus.find('.messageck_text').html());
ckLoadEditorOnTheFly(textID);
ckFillEditionPopup(focus.attr('id'));
ckGetIconPosition('.editfocus .messageck i.fa', '#messageicon-position button');
ckGetIconMargin('.editfocus .messageck i.fa', '#messageicon_margin');
$ck('#iconicon-class').val(focus.find('.iconck > i').attr('data-iconclass'));
}
function ckBeforeSaveEditionPopup() {
var focus = $ck('.editfocus');
var textID = '<?php echo $id; ?>_text';
ckSaveEditorOnTheFly(textID);
ckUpdatePreviewArea();
// ckSaveEditionPopup(focus.attr('id'));
// ckCloseEditionPopup();
}
function ckSaveInlineEditionPopup() {
ckBeforeSaveEditionPopup();
}
function ckBeforeCloseEditionPopup() {
var textID = '<?php echo $id; ?>_text';
ckRemoveEditorOnTheFly(textID);
}
function ckUpdatePreviewArea() {
$ck('.editfocus .messageck_title').html($ck('#<?php echo $id; ?>_title').val());
$ck('.editfocus .messageck_text').html($ck('[data-id="' + textID + '"]').val());
var closeButton = $ck('#elementscontainer input[name="message_close_button"]:checked').val();
if (closeButton == '1') {
if (! focus.find('.messageck button.close').length) {
focus.find('.messageck').prepend('<button type="button" class="close" data-dismiss="alert">×</button>');
}
ckMessageCloseButtonDisable();
} else {
focus.find('.messageck button.close').remove();
}
}
function ckSelectIcon(icon) {
$ck('#messageicon-class').val(iconclass);
$ck('.editfocus .messageck').find('i').remove();
$ck('.editfocus .messageck > div').before('<i class="' + iconclass + '" data-iconclass="' + iconclass + '"></i>');
$ck('.editfocus .messageck i.fa').css('vertical-align', $ck('#messageicon-position button.active').attr('data-position'))
.addClass($ck('#messageicon-size button.active').attr('data-width'));
ckSetIconMargin('.editfocus .messageck i.fa', '#messageicon_margin');
}
function ckSelectIcon(icon) {
$ck('.editfocus .messageck').find('.pbckicon, i').remove();
$ck('.editfocus .messageck > div').prepend('<span class="iconck">' + icon + '</span>');
$ck('.editfocus .messageck .pbckicon').css('vertical-align', $ck('#messageicon-position button.active').attr('data-position'))
.addClass($ck('#messageicon-size button.active').attr('data-width'));
ckSetIconMargin('.editfocus .messageck i.fa', '#messageicon_margin');
return $ck('.editfocus .pbckicon');
}
// function _ckSelectIcon(icon) {
// $ck('.editfocus .messageck').find('i.fa').remove();
// $ck('.editfocus .messageck_text').before('<i class="' + iconclass + '"></i>');
// $ck('.editfocus .messageck i.fa').css('vertical-align', $ck('#messageicon-position button.active').attr('data-position'))
// .addClass($ck('#separatoricon-size button.active').attr('data-width'));
// ckSetIconMargin('.editfocus .messageck i.fa', '#messageicon_margin');
// }
function ckApplyMessageVariation(variation) {
$ck('.editfocus .messageck').attr('class', 'messageck alertck alertck-' + variation);
}
ckInitIconPosition('.editfocus .messageck i.fa', '#messageicon-position button');
// do not use for now because we need to update the layout to add the contentck
// the base code shall have the .inner in it, for not it does not
/*function ckUpdateLayout(btn) {
$ck(btn).parent().find('.active').removeClass('active');
$ck(btn).addClass('active');
var layout = $ck(btn).attr('data-layout');
var focus = $ck('.editfocus');
// for B/C
if (! focus.find('.contentck').length) {
focus.find('> .inner').append('<div class="contentck" />');
var contentck = focus.find('.contentck');
contentck.append(focus.find('.titleck'));
contentck.append(focus.find('.textck'));
}
focus.attr('data-layout', layout);
}*/
</script>

View File

@@ -0,0 +1 @@
<html><body></body></html>

View File

@@ -0,0 +1,87 @@
<?php
/**
* @copyright Copyright (C) 2015 Cédric KEIFLIN alias ced1870
* https://www.template-creator.com
* https://www.joomlack.fr
* @license GNU/GPL
* */
defined('_JEXEC') or die('Restricted access');
jimport('joomla.event.plugin');
class plgPagebuilderckMessage extends JPlugin {
private $context = 'PLG_PAGEBUILDERCK_MESSAGE';
private $type = 'message';
function __construct(&$subject, $params) {
parent::__construct($subject, $params);
}
/*
* Construct the Menu Item to drag into the interface
*
* Return Object with item data
*/
public function onPagebuilderckAddItemToMenu() {
// load the language files of the plugin
$this->loadLanguage();
// create the menu item
$menuitem = new stdClass();
$menuitem->type = $this->type;
$menuitem->group = 'text';
$menuitem->title = JText::_($this->context . '_MENUITEM_TITLE');
$menuitem->description = JText::_($this->context . '_MENUITEM_DESC');
$menuitem->image = JUri::root(true) . '/plugins/pagebuilderck/message/assets/images/message.svg';
return $menuitem;
}
/*
* Display the html code for the item to be used into the interface
*
* Return String the html code
*/
public function onPagebuilderckLoadItemContentMessage() {
$input = JFactory::getApplication()->input;
$id = $input->get('ckid', '', 'string');
// ckstyle and inner classes are needed to get the styles from the interface
?>
<div id="<?php echo $id; ?>" class="cktype" data-type="message">
<div class="ckstyle">
</div>
<div class="messageck alertck alertck-info">
<div>
<div class="messageck_title">Message title</div>
<div class="messageck_text">Text Here</div>
</div>
</div>
</div>
<?php
}
/*
* Load the interface for the item edition
*
* Return String the html code
*/
public function onPagebuilderckLoadItemOptionsMessage() {
// load the language files of the plugin
$this->loadLanguage();
// load the interface for the options
$tpl = JPATH_SITE . '/plugins/pagebuilderck/message/layouts/edit_message.php';
return $tpl;
}
/*
* Display the html code for the item to be used into the frontend page
* @param string the item object from simple_html_dom
*
* Return String the html code
*/
public function onPagebuilderckRenderItemMessage($item) {
return $item->innertext;
}
}

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="3" type="plugin" group="pagebuilderck" method="upgrade">
<name>plg_pagebuilderck_message_xml_name</name>
<creationDate>December 2015</creationDate>
<copyright>Copyright (C) 2015. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later</license>
<author>Cedric Keiflin</author>
<authorEmail>ced1870@gmail.com</authorEmail>
<authorUrl>https://www.joomlack.fr</authorUrl>
<version>3.0.0</version>
<description>Message item for Page Builder CK</description>
<files>
<filename plugin="message">message.php</filename>
<folder>language</folder>
<folder>layouts</folder>
<folder>assets</folder>
</files>
<languages folder="language">
<language tag="en-GB">en-GB/en-GB.plg_pagebuilderck_message.sys.ini</language>
<language tag="en-GB">en-GB/en-GB.plg_pagebuilderck_message.ini</language>
<language tag="fr-FR">fr-FR/fr-FR.plg_pagebuilderck_message.sys.ini</language>
<language tag="fr-FR">fr-FR/fr-FR.plg_pagebuilderck_message.ini</language>
</languages>
</extension>