first commit
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @copyright Copyright (C) 2019. 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');
|
||||
$tables = array('colorpalette', 'colorpalettefromsettings', 'colorpalettefromtemplate')
|
||||
?>
|
||||
<div id="ckcolorspalette" class="ckinterface">
|
||||
<h3><?php echo JText::_('CK_COLOR_PALETTE') ?></h3>
|
||||
<p><?php echo JText::_('CK_COLOR_PALETTE_DESC') ?></p>
|
||||
<?php
|
||||
foreach ($tables as $t) {
|
||||
?>
|
||||
<div style="width: 30%;float: left; margin-right: 2%;">
|
||||
<h4><?php echo JText::_('CK_COLOR_PALETTE_' . strtoupper($t)) ?></h4>
|
||||
<table data-selector="<?php echo $t ?>" style="width: 100%;vertical-align: middle;" class="ckedition cktable cktable-striped cktable-bordered cktable-hover">
|
||||
<?php
|
||||
for ($i=1;$i<=5;$i++) {
|
||||
?>
|
||||
<tr>
|
||||
<td style="width:5%"><span class="label"><?php echo $i ?></span></td>
|
||||
<td class="ckbutton-group">
|
||||
<?php if ($t == 'colorpalette') { ?>
|
||||
<input class="inputbox colorPicker" type="text" value="" name="palettecolor<?php echo $i ?>" id="palettecolor<?php echo $i ?>" size="6" style="width:70px;padding:5px;"/>
|
||||
<?php } else { ?>
|
||||
<input class="inputbox" type="text" value="" name="<?php echo $t . $i ?>" id="<?php echo $t . $i ?>" size="6" style="width:70px;padding:5px;" disabled/>
|
||||
<span class="ckbutton" onclick="ckCopyPaletteFrom(this)"><span class="fa fa-copy"></span></span>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<script>
|
||||
ckInitColorPickers();
|
||||
</script>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?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');
|
||||
|
||||
/*$option = $this->input->get('dataoption', '', 'string');
|
||||
$view = $this->input->get('dataview', '', 'string');
|
||||
$id = $this->input->get('dataid', '', 'int');
|
||||
// get the custom css option
|
||||
* */
|
||||
$customcss = $this->input->get('customcss', '', 'raw');
|
||||
|
||||
?>
|
||||
<script>
|
||||
// init the custom editor
|
||||
var ckcustomcsseditor = CodeMirrorCK.fromTextArea(document.getElementById("ckcustomcsseditor"), {
|
||||
mode: "css",
|
||||
lineNumbers: true,
|
||||
});
|
||||
setTimeout(function() {
|
||||
ckcustomcsseditor.refresh();
|
||||
}, 100);
|
||||
</script>
|
||||
<div class="cktitle"><?php echo JText::_('CK_CUSTOMCSS'); ?></div>
|
||||
<div class="ckdesc"><?php echo JText::_('CK_CUSTOMCSS_DESC'); ?></div>
|
||||
<textarea id="ckcustomcsseditor" cols="50" rows="20" style="color: #777;"><?php echo $customcss; ?></textarea>
|
||||
@@ -0,0 +1,179 @@
|
||||
<?php
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
$app = JFactory::getApplication();
|
||||
$objclass = $app->input->get('objclass', '');
|
||||
//$saveFunc = $app->input->get('savefunc', 'ckSaveEditionPopup', 'cmd');
|
||||
// get global component params
|
||||
$params = JComponentHelper::getParams('com_pagebuilderck');
|
||||
?>
|
||||
|
||||
<div class="menuck clearfix fixedck">
|
||||
<div class="inner clearfix">
|
||||
<div class="headerck">
|
||||
<span class="headerckicon cktip" title="<?php echo JText::_('CK_SAVE_CLOSE'); ?>" onclick="ckCloseEdition();">×</span>
|
||||
<span class="headercktext"><?php echo JText::_('CK_ROWWIDTH_EDIT'); ?></span>
|
||||
</div>
|
||||
<div id="elementscontainer">
|
||||
<div class="clr"></div>
|
||||
<div id="elementscontent" class="ckinterface" style="padding: 5px;">
|
||||
<p><a href="https://www.joomlack.fr/en/documentation/page-builder-ck/236-full-with-rows" target="_blank"><?php echo JText::_('CK_READ_DOCUMENTATION') ?></a></p>
|
||||
<div class="ckbutton-group" style="margin-top: 5px;">
|
||||
<input id="fullwidth" name="fullwidth" value="1" type="radio" onchange="ckSwitchFullwidthState('fullwidth');" />
|
||||
<label class="ckbutton btn" for="fullwidth" style="width:auto;margin-left:5px;" ><?php echo JText::_('CK_FULLWIDTH') ?></label>
|
||||
<input id="fixedwidth" name="fullwidth" value="0" type="radio" onchange="ckSwitchFullwidthState('fixedwidth');" />
|
||||
<label class="ckbutton btn" for="fixedwidth" style="width:auto;"><?php echo JText::_('CK_FIXEDWIDTH') ?></label>
|
||||
</div>
|
||||
<div id="fullwidthoptions">
|
||||
<div class="ckbutton-group" style="margin-top: 5px;">
|
||||
<input id="fullwidthoptionstd" name="fullwidthoption" value="std" type="radio" onchange="ckSwitchFullwidthType('standard');" />
|
||||
<label class="ckbutton btn" for="fullwidthoptionstd" style="width:auto;margin-left:5px;" ><?php echo JText::_('CK_FULLWIDTH_STANDARD') ?></label>
|
||||
<input id="fullwidthoptionjs" name="fullwidthoption" value="js" type="radio" onchange="ckSwitchFullwidthType('javascript');" />
|
||||
<label class="ckbutton btn" for="fullwidthoptionjs" style="width:auto;"><?php echo JText::_('CK_FULLWIDTH_JAVASCRIPT') ?></label>
|
||||
</div>
|
||||
<div id="fullwidthoptionstandard">
|
||||
<div class="ckalert ckalert-info"><?php echo JText::_('CK_FULLWIDTH_STANDARD_INFO') ?></div>
|
||||
</div>
|
||||
<div id="fullwidthoptionjavascript">
|
||||
<div class="ckalert ckalert-danger"><?php echo JText::_('CK_FULLWIDTH_JAVASCRIPT_ALERT') ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="fixedwidthoptions">
|
||||
<div class="ckbutton-group" style="margin-top: 5px;">
|
||||
<input id="fixedwidthoptionresolution" name="fixedwidthoption" value="resolution" type="radio" onchange="ckSwitchFixedwidthType('resolution');" />
|
||||
<label class="ckbutton btn" for="fixedwidthoptionresolution" style="width:auto;margin-left:5px;" ><?php echo JText::_('CK_FIXEDWIDTH_RESOLUTION') ?></label>
|
||||
<input id="fixedwidthoptiontck" name="fixedwidthoption" value="tck" type="radio" onchange="ckSwitchFixedwidthType('templatecreator');" />
|
||||
<label class="ckbutton btn" for="fixedwidthoptiontck" style="width:auto;"><?php echo JText::_('CK_FIXEDWIDTH_TEMPLATECREATOR') ?></label>
|
||||
</div>
|
||||
<div id="fixedwidthoptionresolutionvalue">
|
||||
<div class="ckalert ckalert-info"><?php echo JText::_('CK_FIXEDWIDTH_INFO') ?></div>
|
||||
<div class="menuckinfos"><?php echo JText::_('CK_RESOLUTION') ?></div>
|
||||
<input id="fixedwidthresolution" type="text" onchange="ckSwitchFixedwidthType();" style="margin-left:5px;" placeholder="<?php echo $params->get('fixedwidthresolution', '1000') ?>" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
var focus = $ck('.editfocus');
|
||||
function ckBeforeSaveEditionPopup() {
|
||||
// empty to avoid function from items to be called
|
||||
}
|
||||
|
||||
function ckLoadEdition() {
|
||||
var maxwidth = focus.attr('data-fixedwidth');
|
||||
if (maxwidth) $ck('#elementscontainer #fixedwidthresolution').val(maxwidth);
|
||||
var focusinner = focus.find('> .inner');
|
||||
// fullwidth JS
|
||||
if (focus.hasClass('rowckfullwidth')) {
|
||||
$ck('#elementscontainer #fullwidth').click();
|
||||
$ck('#elementscontainer #fullwidthoptionjs').click();
|
||||
// ckSwitchFullwidthState('fullwidth');
|
||||
// ckSwitchFullwidthType('javascript');
|
||||
// fixed width component option
|
||||
} else if (focusinner.hasClass('pbck-container')) {
|
||||
$ck('#elementscontainer #fixedwidth').click();
|
||||
$ck('#elementscontainer #fixedwidthoptionresolution').click();
|
||||
// ckSwitchFullwidthState('fixedwidth');
|
||||
// ckSwitchFixedwidthType('resolution');
|
||||
// fixed width automatic with Template Creator CK
|
||||
} else if (focusinner.hasClass('tck-container')) {
|
||||
$ck('#elementscontainer #fixedwidth').click();
|
||||
$ck('#elementscontainer #fixedwidthoptiontck').click();
|
||||
// ckSwitchFullwidthState('fixedwidth');
|
||||
// ckSwitchFixedwidthType('templatecreator');
|
||||
// fixed width by value
|
||||
} else if (focus.attr('data-fixedwidth')) {
|
||||
$ck('#elementscontainer #fixedwidth').click();
|
||||
$ck('#elementscontainer #fixedwidthoptionresolution').click();
|
||||
ckSwitchFullwidthState('fixedwidth');
|
||||
ckSwitchFixedwidthType('resolution');
|
||||
// standard
|
||||
} else {
|
||||
$ck('#elementscontainer #fullwidth').click();
|
||||
$ck('#elementscontainer #fullwidthoptionstd').click();
|
||||
ckSwitchFullwidthState('fullwidth');
|
||||
ckSwitchFullwidthType('standard');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function ckSwitchFullwidthState(type) {
|
||||
if (type == 'fixedwidth') {
|
||||
$ck('#fullwidthoptions').hide();
|
||||
$ck('#fixedwidthoptions').show();
|
||||
ckSwitchFixedwidthType();
|
||||
} else {
|
||||
$ck('#fullwidthoptions').show();
|
||||
$ck('#fixedwidthoptions').hide();
|
||||
ckSwitchFullwidthType();
|
||||
}
|
||||
}
|
||||
|
||||
function ckSwitchFullwidthType(type) {
|
||||
if (type == 'javascript') {
|
||||
$ck('#fullwidthoptionstandard').hide();
|
||||
$ck('#fullwidthoptionjavascript').show();
|
||||
ckAddFullWidthJs();
|
||||
} else {
|
||||
$ck('#fullwidthoptionstandard').show();
|
||||
$ck('#fullwidthoptionjavascript').hide();
|
||||
ckremoveAllWidths();
|
||||
}
|
||||
}
|
||||
function ckSwitchFixedwidthType(type) {
|
||||
$ck('#elementscontainer #fullwidthoptionstd').click();
|
||||
if (type == 'templatecreator') {
|
||||
$ck('#fixedwidthoptionresolutionvalue').hide();
|
||||
ckAddFixedWidthTemplatecreator();
|
||||
} else {
|
||||
$ck('#fixedwidthoptionresolutionvalue').show();
|
||||
$ck('#elementscontainer #fixedwidthoptionresolution').click();
|
||||
var resolutionvalue = $ck('#elementscontainer #fixedwidthresolution').val();
|
||||
if (resolutionvalue) {
|
||||
ckAddFixedWidthResolutionValue();
|
||||
} else {
|
||||
ckAddFixedWidthResolutionDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function ckAddFixedWidthResolutionValue() {
|
||||
ckremoveAllWidths();
|
||||
var resolutionvalue = $ck('#elementscontainer #fixedwidthresolution').val();
|
||||
focus.attr('data-fixedwidth', resolutionvalue);
|
||||
focus.find('> .inner').css('max-width', ckTestUnit(resolutionvalue));
|
||||
}
|
||||
|
||||
function ckAddFixedWidthResolutionDefault() {
|
||||
ckremoveAllWidths();
|
||||
focus.find('> .inner').addClass('pbck-container');
|
||||
}
|
||||
|
||||
function ckAddFixedWidthTemplatecreator() {
|
||||
ckremoveAllWidths();
|
||||
focus.find('> .inner').addClass('tck-container');
|
||||
}
|
||||
|
||||
function ckAddFullWidthJs() {
|
||||
ckToggleFullwidthRow(focus.attr('id'), 1);
|
||||
}
|
||||
|
||||
function ckremoveAllWidths() {
|
||||
focus
|
||||
.removeAttr('data-fixedwidth');
|
||||
focus.find('> .inner')
|
||||
.removeClass('pbck-container')
|
||||
.removeClass('tck-container')
|
||||
.css('max-width', '');
|
||||
ckToggleFullwidthRow(focus.attr('id'), 0);
|
||||
}
|
||||
|
||||
ckLoadEdition();
|
||||
ckInitColorPickers();
|
||||
ckInitOptionsTabs();
|
||||
ckInitAccordions();
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
<html><body></body></html>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?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');
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/stylescss.php';
|
||||
|
||||
$id = $this->input->get('ckobjid', '', 'string');
|
||||
$class = $this->input->get('objclass', '', 'string');
|
||||
//$fields = stripslashes( $this->input->get('fields', '', 'string'));
|
||||
$fields = $this->input->get('fields', '', 'string');
|
||||
$fields = json_decode($fields);
|
||||
$customstyles = stripslashes( $this->input->get('customstyles', '', 'string'));
|
||||
$customstyles = json_decode($customstyles);
|
||||
$action = $this->input->get('action', '', 'string');
|
||||
$cssstyles = new CssStyles();
|
||||
$styles = $cssstyles->create($fields, $id, $action, $class, 'ltr', $customstyles);
|
||||
|
||||
if ($action == 'preview') {
|
||||
echo '<style>' . $styles . '</style>';
|
||||
} else {
|
||||
return $styles;
|
||||
}
|
||||
|
||||
exit();
|
||||
@@ -0,0 +1,41 @@
|
||||
<?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');
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/stylescss.php';
|
||||
|
||||
$id = $this->input->get('ckobjid', '', 'string');
|
||||
$class = $this->input->get('objclass', '', 'string');
|
||||
$responsiverange = $this->input->get('responsiverange', '', 'int');
|
||||
//$fields = stripslashes( $this->input->get('fields', '', 'string'));
|
||||
$fields = $this->input->get('fields', '', 'string');
|
||||
$fields = json_decode($fields);
|
||||
$customstyles = stripslashes( $this->input->get('customstyles', '', 'string'));
|
||||
$customstyles = json_decode($customstyles);
|
||||
$cssstyles = new CssStyles();
|
||||
$textstyles = '';
|
||||
|
||||
$newstyles = '';
|
||||
$styles = $cssstyles->create($fields, $id, $action = 'preview', $class, 'ltr', $customstyles);
|
||||
$newstyles .= str_replace('#' . $id, '.ckresponsiveactive[ckresponsiverange*="' . $responsiverange . '"] #' . $id, $styles);
|
||||
|
||||
if (stristr($class, 'blockck')) {
|
||||
// split the fontsize to give it a new rule
|
||||
if (isset($fields->blocfontsize)) {
|
||||
$textfields = new stdClass();
|
||||
$textfields->blocfontsize = $fields->blocfontsize;
|
||||
unset($fields->blocfontsize);
|
||||
}
|
||||
$textstyles = $cssstyles->create($textfields, $id, $action = 'preview', $class, 'ltr', $customstyles);
|
||||
$textstyles = str_replace('#' . $id, '.ckresponsiveactive[ckresponsiverange="' . $responsiverange . '"] #' . $id, $textstyles);
|
||||
$textstyles = str_replace('> .inner', '> .inner *', $textstyles);
|
||||
}
|
||||
|
||||
echo '<style>' . $newstyles . $textstyles . '</style>';
|
||||
exit();
|
||||
@@ -0,0 +1,190 @@
|
||||
<?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');
|
||||
|
||||
$objid = $this->input->get('ckobjid', '');
|
||||
$fields = $this->input->get('fields', '', 'string');
|
||||
$fields = json_decode($fields);
|
||||
|
||||
$prefix = 'bloc';
|
||||
$blocfontsize = isset($fields->blocfontsize) ? $fields->blocfontsize : '';
|
||||
$blocmarginleft = isset($fields->blocmarginleft) ? $fields->blocmarginleft : '';
|
||||
$blocmarginright = isset($fields->blocmarginright) ? $fields->blocmarginright : '';
|
||||
$blocmargintop = isset($fields->blocmargintop) ? $fields->blocmargintop : '';
|
||||
$blocmarginbottom = isset($fields->blocmarginbottom) ? $fields->blocmarginbottom : '';
|
||||
$blocmargins = isset($fields->blocmargins) ? $fields->blocmargins : '';
|
||||
$blocpaddingleft = isset($fields->blocpaddingleft) ? $fields->blocpaddingleft : '';
|
||||
$blocpaddingright = isset($fields->blocpaddingright) ? $fields->blocpaddingright : '';
|
||||
$blocpaddingtop = isset($fields->blocpaddingtop) ? $fields->blocpaddingtop : '';
|
||||
$blocpaddingbottom = isset($fields->blocpaddingbottom) ? $fields->blocpaddingbottom : '';
|
||||
$blocpaddings = isset($fields->blocpaddings) ? $fields->blocpaddings : '';
|
||||
?>
|
||||
<div class="menuck clearfix fixedck">
|
||||
<div class="inner clearfix">
|
||||
<div class="headerck">
|
||||
<span class="headerckicon cktip" title="<?php echo JText::_('CK_SAVE_CLOSE'); ?>" onclick="ckRenderResponsiveCss();ckCloseEdition();">×</span>
|
||||
<span class="headerckicon cksave cktip" title="<?php echo JText::_('CK_APPLY'); ?>" onclick="ckRenderResponsiveCss();"><span class="fa fa-check"></span></span>
|
||||
<span class="headercktext"><?php echo JText::_('CK_CSS_EDIT'); ?></span>
|
||||
</div>
|
||||
<?php include PAGEBUILDERCK_PATH . '/views/page/tmpl/responsivetoolbar.php'; ?>
|
||||
<div id="elementscontainer">
|
||||
<div class="ckclr"></div>
|
||||
<div id="elementscontent" class="ckinterface">
|
||||
<div class="ckproperty" id="tab_blocstyles">
|
||||
<div class="menustylesblock" style="padding: 10px 5px;">
|
||||
<div class="menupanetitle"><?php echo JText::_('CK_POLICE'); ?></div>
|
||||
<div class="menustyles-row" style="width:60%;">
|
||||
<div class="menustyles-text" style="margin: auto;"><?php echo JText::_('CK_SIZE'); ?></div>
|
||||
<div class="menustyles-field">
|
||||
<input class="inputbox ckresponsivable" name="<?php echo $prefix; ?>fontsize" id="<?php echo $prefix; ?>fontsize" type="text" placeholder="<?php echo $blocfontsize ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ckclr"></div>
|
||||
<div class="menupanetitle"><?php echo JText::_('CK_MARGINS'); ?></div>
|
||||
<div class="menustyles-row">
|
||||
<div class="menustyles-column" style="width:60%;">
|
||||
<div class="menustyles-row" style="justify-content: end;">
|
||||
<div class="menustyles-text" style="margin: auto;">
|
||||
<?php echo JText::_('CK_TOP'); ?>
|
||||
</div>
|
||||
<div class="menustyles-icon">
|
||||
<img src="<?php echo $this->imagespath; ?>margintop.svg" width="20" height="20" />
|
||||
</div>
|
||||
<div class="menustyles-field" >
|
||||
<input class="inputbox ckresponsivable" type="text" name="<?php echo $prefix; ?>margintop" id="<?php echo $prefix; ?>margintop" value="" placeholder="<?php echo $blocmargintop ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="menustyles-row" style="justify-content: end;">
|
||||
<div class="menustyles-text" style="margin: auto;">
|
||||
<?php echo JText::_('CK_RIGHT'); ?>
|
||||
</div>
|
||||
<div class="menustyles-icon">
|
||||
<img src="<?php echo $this->imagespath; ?>marginright.svg" width="20" height="20" />
|
||||
</div>
|
||||
<div class="menustyles-field" >
|
||||
<input class="inputbox ckresponsivable" type="text" name="<?php echo $prefix; ?>marginright" id="<?php echo $prefix; ?>marginright" value="" placeholder="<?php echo $blocmarginright ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menustyles-row" style="justify-content: end;">
|
||||
<div class="menustyles-text" style="margin: auto;">
|
||||
<?php echo JText::_('CK_BOTTOM'); ?>
|
||||
</div>
|
||||
<div class="menustyles-icon">
|
||||
<img src="<?php echo $this->imagespath; ?>marginbottom.svg" width="20" height="20" />
|
||||
</div>
|
||||
<div class="menustyles-field" >
|
||||
<input class="inputbox ckresponsivable" type="text" name="<?php echo $prefix; ?>marginbottom" id="<?php echo $prefix; ?>marginbottom" value="" placeholder="<?php echo $blocmarginbottom ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menustyles-row" style="justify-content: end;">
|
||||
<div class="menustyles-text" style="margin: auto;">
|
||||
<?php echo JText::_('CK_LEFT'); ?>
|
||||
</div>
|
||||
<div class="menustyles-icon">
|
||||
<img src="<?php echo $this->imagespath; ?>marginleft.svg" width="20" height="20" />
|
||||
</div>
|
||||
<div class="menustyles-field" >
|
||||
<input class="inputbox ckresponsivable" type="text" name="<?php echo $prefix; ?>marginleft" id="<?php echo $prefix; ?>marginleft" value="" placeholder="<?php echo $blocmarginleft ?>" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menustyles-column" style="justify-content: center;position:relative;display:flex;margin-left:10px;">
|
||||
<div style="width:10px;height:40px;border-top:1px solid #ccc;border-right:1px solid #ccc;position:absolute;left:0;top:3px;"></div>
|
||||
<div class="menustyles-row">
|
||||
<div class="menustyles-icon">
|
||||
<img src="<?php echo $this->imagespath; ?>margins.svg" width="20" height="20" />
|
||||
</div>
|
||||
<div class="menustyles-field" >
|
||||
<input class="inputbox ckresponsivable" type="text" name="<?php echo $prefix; ?>margins" id="<?php echo $prefix; ?>margins" size="1" value="" placeholder="<?php echo $blocmargins ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div style="width:10px;height:40px;border-bottom:1px solid #ccc;border-right:1px solid #ccc;position:absolute;left:0;bottom:3px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<p> </p>
|
||||
<div class="menupanetitle"><?php echo JText::_('CK_PADDINGS'); ?></div>
|
||||
<div class="menustyles-row">
|
||||
<div class="menustyles-column" style="width:60%;">
|
||||
<div class="menustyles-row" style="justify-content: end;">
|
||||
<div class="menustyles-text" style="margin: auto;">
|
||||
<?php echo JText::_('CK_TOP'); ?>
|
||||
</div>
|
||||
<div class="menustyles-icon">
|
||||
<img src="<?php echo $this->imagespath; ?>paddingtop.svg" width="20" height="20" />
|
||||
</div>
|
||||
<div class="menustyles-field" >
|
||||
<input class="inputbox ckresponsivable" type="text" name="<?php echo $prefix; ?>paddingtop" id="<?php echo $prefix; ?>paddingtop" value="" placeholder="<?php echo $blocpaddingtop ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="menustyles-row" style="justify-content: end;">
|
||||
<div class="menustyles-text" style="margin: auto;">
|
||||
<?php echo JText::_('CK_RIGHT'); ?>
|
||||
</div>
|
||||
<div class="menustyles-icon">
|
||||
<img src="<?php echo $this->imagespath; ?>paddingright.svg" width="20" height="20" />
|
||||
</div>
|
||||
<div class="menustyles-field" >
|
||||
<input class="inputbox ckresponsivable" type="text" name="<?php echo $prefix; ?>paddingright" id="<?php echo $prefix; ?>paddingright" value="" placeholder="<?php echo $blocpaddingright ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="menustyles-row" style="justify-content: end;">
|
||||
<div class="menustyles-text" style="margin: auto;">
|
||||
<?php echo JText::_('CK_BOTTOM'); ?>
|
||||
</div>
|
||||
<div class="menustyles-icon">
|
||||
<img src="<?php echo $this->imagespath; ?>paddingbottom.svg" width="20" height="20" />
|
||||
</div>
|
||||
<div class="menustyles-field" >
|
||||
<input class="inputbox ckresponsivable" type="text" name="<?php echo $prefix; ?>paddingbottom" id="<?php echo $prefix; ?>paddingbottom" value="" placeholder="<?php echo $blocpaddingbottom ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="menustyles-row" style="justify-content: end;">
|
||||
<div class="menustyles-text" style="margin: auto;">
|
||||
<?php echo JText::_('CK_LEFT'); ?>
|
||||
</div>
|
||||
<div class="menustyles-icon">
|
||||
<img src="<?php echo $this->imagespath; ?>paddingleft.svg" width="20" height="20" />
|
||||
</div>
|
||||
<div class="menustyles-field" >
|
||||
<input class="inputbox ckresponsivable" type="text" name="<?php echo $prefix; ?>paddingleft" id="<?php echo $prefix; ?>paddingleft" value="" placeholder="<?php echo $blocpaddingleft ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menustyles-column" style="justify-content: center;position:relative;display:flex;margin-left:10px;">
|
||||
<div style="width:10px;height:40px;border-top:1px solid #ccc;border-right:1px solid #ccc;position:absolute;left:0;top:3px;"></div>
|
||||
<div class="menustyles-row">
|
||||
<div class="menustyles-icon">
|
||||
<img src="<?php echo $this->imagespath; ?>paddings.svg" width="20" height="20" />
|
||||
</div>
|
||||
<div class="menustyles-field" >
|
||||
<input class="inputbox ckresponsivable" type="text" name="<?php echo $prefix; ?>paddings" id="<?php echo $prefix; ?>paddings" size="1" value="" placeholder="<?php echo $blocpaddings ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div style="width:10px;height:40px;border-bottom:1px solid #ccc;border-right:1px solid #ccc;position:absolute;left:0;bottom:3px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
ckInitColorPickers();
|
||||
ckInitOptionsTabs();
|
||||
ckInitAccordions();
|
||||
function ckBeforeSaveEditionPopup() {
|
||||
// empty to avoid function from items to be called
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
exit();
|
||||
@@ -0,0 +1,78 @@
|
||||
<?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');
|
||||
|
||||
use Pagebuilderck\CKFof;
|
||||
|
||||
$objid = $this->input->get('ckobjid', '');
|
||||
$acl = $this->input->get('acl', '', 'string');
|
||||
|
||||
$user = JFactory::getUser();
|
||||
$groups = JAccess::getGroupsByUser($user->id);
|
||||
|
||||
?>
|
||||
<div class="menuck clearfix fixedck">
|
||||
<div class="inner clearfix">
|
||||
<div class="headerck">
|
||||
<span class="headerckicon cktip" data-placement="bottom" title="<?php echo JText::_('CK_SAVE_CLOSE'); ?>" onclick="ckSetAcl();ckCloseEdition();">×</span>
|
||||
<span class="headerckicon cksave cktip" data-placement="bottom" title="<?php echo JText::_('CK_APPLY'); ?>" onclick="ckSetAcl();"><span class="fa fa-check"></span></span>
|
||||
<span class="headercktext"><?php echo JText::_('CK_ACL_EDIT'); ?></span>
|
||||
</div>
|
||||
<div id="elementscontainer" style="padding:5px;box-sizing: border-box;">
|
||||
<?php if (! CKFof::userCan('core.itemacl')) {
|
||||
echo JText::_('CK_NO_RIGHTS');
|
||||
} else {
|
||||
?>
|
||||
<table class="cktable cktable-bordered" style="background:#fff;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo JText::_('CK_GROUP') ?></th>
|
||||
<th><?php echo JText::_('CK_VIEW_CONTENT') ?></th>
|
||||
<th><?php echo JText::_('CK_EDIT') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$groups = CKFof::dbLoadObjectList("SELECT * FROM #__usergroups ORDER BY lft ASC");
|
||||
$indent = 0;
|
||||
foreach ($groups as $i => $group) {
|
||||
if ($group->id == 8) continue;
|
||||
?>
|
||||
<tr class="ckaclrow" data-group="<?php echo $group->id ?>">
|
||||
<td>
|
||||
<?php
|
||||
if (isset($groups[$i-1])) {
|
||||
if (($groups[$i-1]->rgt - $group->lft) > 1) $indent++;
|
||||
if (($groups[$i-1]->rgt - $group->lft) < -1) $indent--;
|
||||
echo str_repeat('-', $indent);
|
||||
}
|
||||
?>
|
||||
<?php echo $group->title ?>
|
||||
</td>
|
||||
<td>
|
||||
<input id="aclgroup<?php echo $group->id ?>_view" name="aclgroup<?php echo $group->id ?>_view" value="2" type="checkbox" checked class="ckaclfieldview"/>
|
||||
</td>
|
||||
<td>
|
||||
<input id="aclgroup<?php echo $group->id ?>_edit" name="aclgroup<?php echo $group->id ?>_edit" value="1" type="checkbox" checked class="ckaclfieldedit" />
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
exit();
|
||||
@@ -0,0 +1,178 @@
|
||||
<?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');
|
||||
$app = JFactory::getApplication();
|
||||
$objclass = $app->input->get('objclass', '');
|
||||
$objid = $app->input->get('ckobjid', '');
|
||||
$expertmode = $app->input->get('expertmode', false);
|
||||
$saveFunc = $app->input->get('savefunc', 'ckSaveEditionPopup', 'cmd');
|
||||
|
||||
$showheight = (stristr($objclass, 'mainbanner') OR stristr($objclass, 'bannerlogo') OR stristr($objclass, 'horizmenu')) ? true : false;
|
||||
$showwidth = ((stristr($objclass, 'wrapper') OR stristr($objclass, 'bannerlogo') OR stristr($objclass, 'banner') OR stristr($objclass, 'column')) AND !stristr($objclass, 'content')) ? true : false;
|
||||
$isContent = (stristr($objclass, 'content') OR stristr($objclass, 'bannerlogodesc')) ? true : false;
|
||||
$isBody = stristr($objclass, 'body') ? true : false;
|
||||
$isWrapper = false;
|
||||
$isLogo = (stristr($objclass, 'bannerlogo')) ? true : false;
|
||||
$isModulesContainer = stristr($objclass, 'flexiblemodules') ? true : false;
|
||||
$isMaincontentContainer = stristr($objclass, 'maincontent') ? true : false;
|
||||
$isHoriznav = (stristr($objclass, 'horiznav') || stristr($objclass, 'bannermenu')) ? true : false;
|
||||
$isFavorite = (stristr($objclass, 'pbckmyfavorite')) ? true : false;
|
||||
$isColumn = (stristr($objclass, 'blockck')) ? true : false;
|
||||
$isRow = (stristr($objclass, 'rowck')) ? true : false;
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/menustyles.php';
|
||||
$menustyles = new MenuStyles();
|
||||
?>
|
||||
|
||||
<div class="menuck clearfix fixedck">
|
||||
<div class="inner clearfix">
|
||||
<div class="headerck">
|
||||
<span class="headerckicon cktip" data-placement="bottom" title="<?php echo JText::_('CK_SAVE_CLOSE'); ?>" onclick="<?php echo $saveFunc ?>();ckGetPreviewAreastylescss();ckCloseEdition();">×</span>
|
||||
<span class="headerckicon cksave cktip" data-placement="bottom" title="<?php echo JText::_('CK_APPLY'); ?>" onclick="ckGetPreviewAreastylescss('', '', '', false, '<?php echo $saveFunc ?>');"><span class="fa fa-check"></span></span>
|
||||
<span class="headerckicon ckclean cktip" data-placement="bottom" title="<?php echo JText::_('CK_CLEAR_STYLES'); ?>" onclick="ckClearStylesFromPanel();"><span class="fa fa-paint-brush"></span></span>
|
||||
<span class="headercktext"><?php echo JText::_('CK_CSS_EDIT'); ?></span>
|
||||
</div>
|
||||
<div id="elementscontainer">
|
||||
<?php
|
||||
$menulinktext = $isWrapper ? JText::_('CK_WRAPPER_STYLES') : JText::_('CK_STYLES');
|
||||
$blocinfos = $isWrapper ? JText::_('CK_WRAPPER_INFOS') : JText::_('CK_BLOC_INFOS');
|
||||
$blocdesc = $isWrapper ? JText::_('CK_WRAPPER_DESC') : JText::_('CK_BLOC_DESC');
|
||||
?>
|
||||
<div class="clr"></div>
|
||||
<div class="tab menustylescustom" data-prefix="rowbg" data-rule=""></div>
|
||||
<div id="elementscontent" class="ckinterface">
|
||||
<?php if ($isRow) { ?>
|
||||
<div class="menulink" tab="tab_rowbgstyles"><?php echo JText::_('CK_ROW_WRAPPER'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_rowbgstyles">
|
||||
<?php echo $menustyles->createBlocStyles('rowbg') ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="menulink" tab="tab_blocstyles"><?php echo $menulinktext; ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_blocstyles">
|
||||
<?php echo $menustyles->createBlocStyles('bloc', $objclass, $expertmode) ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php if (! $isFavorite) { ?>
|
||||
<div class="menulink" tab="tab_animations"><?php echo JText::_('CK_ANIMATIONS'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_animations">
|
||||
<?php echo $menustyles->createAnimations('bloc') ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="menulink" tab="tab_effects"><?php echo JText::_('CK_EFFECTS'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_effects">
|
||||
<?php echo $menustyles->createEffects('bloc') ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="menulink" tab="tab_videobgstyles"><?php echo JText::_('CK_VIDEO_BACKGROUND_STYLES'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_videobgstyles">
|
||||
<?php echo $menustyles->createVideobgStyles() ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="menulink" tab="tab_overlaystyles"><?php echo JText::_('CK_OVERLAY_STYLES'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_overlaystyles">
|
||||
<div class="ckoption">
|
||||
<?php echo $menustyles->createOverlayStyles() ?>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($isRow) { ?>
|
||||
<div class="menulink" tab="tab_divider"><?php echo JText::_('CK_DIVIDER'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_divider">
|
||||
<?php echo $menustyles->createDivider() ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($isRow || $isColumn) { ?>
|
||||
<div class="menulink" tab="tab_link"><?php echo JText::_('CK_LINK'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_link">
|
||||
<div class="ckoption">
|
||||
<span class="ckoption-label">
|
||||
<img class="ckoption-icon" src="<?php echo PAGEBUILDERCK_MEDIA_URI; ?>/images/menustyles/link.png" width="16" height="16" />
|
||||
<?php echo JText::_('CK_LINK_URL'); ?></span>
|
||||
<span class="ckoption-field ckoption-field-with-button">
|
||||
<input class="inputbox" type="text" name="wraplinkurl" id="wraplinkurl" value="" />
|
||||
<span class="ckbuttonstyle" onclick="ckCallLinkManagerPopup('wraplinkurl', 'files')">+</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="ckoption">
|
||||
<span class="ckoption-label">
|
||||
<img class="ckoption-icon" src="<?php echo PAGEBUILDERCK_MEDIA_URI; ?>/images/menustyles/text_signature.png" width="16" height="16" />
|
||||
<?php echo JText::_('CK_LINK_TEXT'); ?></span>
|
||||
<span class="ckoption-field">
|
||||
<input class="inputbox" type="text" name="wraplinktext" id="wraplinktext" value="" />
|
||||
</span>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="ckoption">
|
||||
<span class="ckoption-label">
|
||||
<img class="ckoption-icon" src="<?php echo PAGEBUILDERCK_MEDIA_URI; ?>/images/menustyles/text_signature.png" width="16" height="16" />
|
||||
<?php echo JText::_('CK_CSS_CLASS'); ?></span>
|
||||
<span class="ckoption-field">
|
||||
<input class="inputbox" type="text" name="wraplinkclass" id="wraplinkclass" value="" />
|
||||
</span>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="ckoption">
|
||||
<span class="ckoption-label">
|
||||
<img class="ckoption-icon" src="<?php echo PAGEBUILDERCK_MEDIA_URI; ?>/images/menustyles/link_go.png" width="16" height="16" />
|
||||
<?php echo JText::_('CK_LINK_TARGET'); ?></span>
|
||||
<span class="ckoption-field">
|
||||
<select class="inputbox" type="list" name="wraplinktarget" id="wraplinktarget" value="" >
|
||||
<option value="default"><?php echo JText::_('CK_DEFAULT'); ?></option>
|
||||
<option value="_blank"><?php echo JText::_('CK_LINK_TARGET_NEW'); ?></option>
|
||||
</select>
|
||||
</span>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="ckoption">
|
||||
<span class="ckoption-label">
|
||||
<img class="ckoption-icon" src="<?php echo PAGEBUILDERCK_MEDIA_URI; ?>/images/menustyles/link_add.png" width="16" height="16" />
|
||||
<?php echo JText::_('CK_LINK_ICON'); ?></span>
|
||||
<span class="ckoption-field ckbutton-group">
|
||||
<input type="radio" class="inputbox" name="wraplinkicon" id="wraplinkiconYes" value="1" checked />
|
||||
<label for="wraplinkiconYes" class="ckbutton"><?php echo JText::_('JYES') ?></label>
|
||||
<input type="radio" class="inputbox" name="wraplinkicon" id="wraplinkiconNo" value="0" />
|
||||
<label for="wraplinkiconNo" class="ckbutton"><?php echo JText::_('JNO') ?></label>
|
||||
</span>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="menulink" tab="tab_linkstyles"><?php echo JText::_('CK_LINK_STYLES'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_linkstyles">
|
||||
<div class="menustylescustom" data-prefix="link" data-rule="a.pbck-link-wrap"><?php echo $menustyles->createBlocStyles('link') ?></div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="menulink" tab="tab_linkstyleshover"><?php echo JText::_('CK_LINK_STYLES_HOVER'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_linkstyleshover">
|
||||
<div class="menustylescustom" data-prefix="linkhover" data-rule="a.pbck-link-wrap:hover|.ckfakehover:hover > a.pbck-link-wrap"><?php echo $menustyles->createBlocStyles('linkhover') ?></div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
ckInitColorPickers();
|
||||
ckInitOptionsTabs();
|
||||
ckInitAccordions();
|
||||
ckInitRangeInputs();
|
||||
function ckBeforeSaveEditionPopup() {
|
||||
ckApplyParallax();
|
||||
ckApplyLinkWrap();
|
||||
// empty to avoid function from items to be called
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
exit();
|
||||
Reference in New Issue
Block a user