<?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>&nbsp;</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();