File manager - Edit - /home/jardides/www/Jardi-design/j37/plugins/pagebuilderck/button/layouts/edit_button.php
Back
<?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 - http://www.template-creator.com - http://www.joomlack.fr */ defined('_JEXEC') or die; $input = new JInput(); $id = $input->get('ckid', '', 'string'); // $mediabox = JPluginHelper::getPlugin('system', 'mediabox_ck'); // $mediaboxParams = new JRegistry($mediabox->params); ?> <div id="elementscontainer"> <div class="menulink current" tab="tab_button"><?php echo JText::_('PLG_PAGEBUILDERCK_BUTTON_EDITION'); ?></div> <div class="menulink" tab="tab_iconstyles"><?php echo JText::_('CK_ICON_EDITION'); ?></div> <div class="menulink" tab="tab_blocstyles"><?php echo JText::_('CK_STYLES'); ?></div> <div class="menulink" tab="tab_blochoverstyles"><?php echo JText::_('CK_STYLES_HOVER'); ?></div> <div class="clr"></div> <div id="elementscontent"> <div class="tab menustyles current ckproperty" id="tab_button"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_BUTTON_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_BUTTON_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;width:800px;"> <div class="menustylesblock" style="width:850px;"> <div class="menustylesblocktitle"><?php echo JText::_('CK_LINK') ?></div> <div class="menustylesblockaccordion"> <div style="text-align:left;clear:both;"> <div style="width:150px;float:left;text-align:left;margin:5px 5px 0 0;line-height: 15px;"><?php echo JText::_('CK_TEXT'); ?></div><div style="float:left;text-align:right;margin:5px 5px 0 0;"><img src="<?php echo $this->imagespath; ?>edit-lipsum.png" width="15" height="15" align="top" /></div><div style="float:left;"><input class="inputbox" type="text" name="linktext" id="linktext" size="10" value="" style="width:300px;" onchange="ckUpdateLinkText(this.value)" /></div><div style="float:left;text-align:left;margin-left:3px;"></div> </div> <div style="text-align:left;clear:both;"> <div style="width:150px;float:left;text-align:left;margin:5px 5px 0 0;line-height: 15px;"><?php echo JText::_('CK_LINK_URL'); ?></div><div style="float:left;text-align:right;margin:5px 5px 0 0;"><img src="<?php echo $this->imagespath; ?>link.png" width="15" height="15" align="top" /></div><div style="float:left;"><input class="inputbox" type="text" name="linkurl" id="linkurl" size="10" value="" style="width:300px;" onchange="ckUpdateLinkAttribute('href', this.value)" /></div><div style="float:left;text-align:left;margin-left:3px;"></div> </div> <div style="text-align:left;clear:both;"> <div style="width:150px;float:left;text-align:left;margin:5px 5px 0 0;line-height: 15px;"><?php echo JText::_('CK_REL_TAG'); ?></div><div style="float:left;text-align:right;margin:5px 5px 0 0;"><img src="<?php echo $this->imagespath; ?>text_signature.png" width="15" height="15" align="top" /></div><div style="float:left;"><input class="inputbox" type="text" name="linkrel" id="linkrel" size="10" value="" style="width:300px;" onchange="ckUpdateLinkAttribute('rel', this.value)" /></div><div style="float:left;text-align:left;margin-left:3px;"></div> </div> <div style="text-align:left;clear:both;"> <div style="width:150px;float:left;text-align:left;margin:5px 5px 0 0;line-height: 15px;"><?php echo JText::_('CK_CSS_CLASS'); ?></div><div style="float:left;text-align:right;margin:5px 5px 0 0;"><img src="<?php echo $this->imagespath; ?>text_signature.png" width="15" height="15" align="top" /></div><div style="float:left;"><input class="inputbox" type="text" name="linkcss" id="linkcss" size="10" value="" style="width:300px;" onchange="ckUpdateLinkAttribute('class', this.value)" /></div><div style="float:left;text-align:left;margin-left:3px;"></div> </div> <div style="text-align:left;clear:both;"> <div style="width:150px;float:left;text-align:left;margin:5px 5px 0 0;line-height: 15px;"><?php echo JText::_('CK_ONCLICK'); ?></div><div style="float:left;text-align:right;margin:5px 5px 0 0;"><img src="<?php echo $this->imagespath; ?>hand-point-090.png" width="15" height="15" align="top" /></div><div style="float:left;"><input class="inputbox" type="text" name="linkonlick" id="linkonlick" size="10" value="" style="width:300px;" onchange="ckUpdateLinkAttribute('onclick', this.value)" /></div><div style="float:left;text-align:left;margin-left:3px;"></div> </div> <div style="text-align:left;clear:both;"> <div style="width:150px;float:left;text-align:left;margin:5px 5px 0 0;line-height: 15px;"><?php echo JText::_('CK_TARGET'); ?></div><div style="float:left;text-align:right;margin:5px 5px 0 0;"><img src="<?php echo $this->imagespath; ?>link_add.png" width="15" height="15" align="top" /></div><div style="float:left;"><input class="inputbox" type="text" name="linktarget" id="linktarget" size="10" value="" style="width:300px;" onchange="ckUpdateLinkAttribute('target', this.value)" /></div><div style="float:left;text-align:left;margin-left:3px;"></div> </div> </div> </div> <div class="menustylesblock" style="width:850px;"> <div class="menustylesblocktitle"><?php echo JText::_('CK_DIMENSIONS'); ?></div> <div class="menustylesblockaccordion"> <div style="text-align:left;clear:both;"> <div style="float:left;text-align:right;margin:5px 5px 0 0;line-height: 15px;;"><?php echo JText::_('CK_WIDTH'); ?></div><div style="float:left;text-align:right;margin:5px 5px 0 0;"><img src="<?php echo $this->imagespath; ?>width.png" width="15" height="15" align="top" /></div><div style="float:left;"><input class="inputbox" type="text" name="blocwidth" id="blocwidth" size="2" value="" style="" /></div><div style="float:left;text-align:left;margin-left:3px;"></div> <div style="float:left;text-align:right;margin:5px 5px 0 10px;line-height: 15px;;"><?php echo JText::_('CK_HEIGHT'); ?></div><div style="float:left;text-align:right;margin:5px 5px 0 0;"><img src="<?php echo $this->imagespath; ?>height.png" width="15" height="15" align="top" /></div><div style="float:left;"><input class="inputbox" type="text" name="blocheight" id="blocheight" size="2" value="" style="" /></div><div style="float:left;text-align:left;margin-left:3px;"></div> <div class="clr"></div> </div> <div class="menupanetitle"><?php echo JText::_('CK_ALIGN'); ?></div> <div style="text-align:left;"> <div style="margin:5px 0 0 0px;" class="btn-group"> <div style="float:left;margin:0px 0px 0 2px;"><input type="radio" class="inputbox" name="buttonalignement" id="buttonalignementleft" onclick="ckSetAlignButton()" value="left" style="width:16px;border:none;margin:0 2px;display:none;" /><label for="buttonalignementleft" class="btn"><img src="<?php echo $this->imagespath; ?>text_align_left.png" width="16" height="16" /></label></div> <div style="float:left;margin:0px 5px 0 2px;"></div> <div style="float:left;margin:0px 0px 0 2px;"><input type="radio" class="inputbox" name="buttonalignement" id="buttonalignementcenter" onclick="ckSetAlignButton()" value="center" style="width:16px;border:none;margin:0 2px;display:none;" /><label for="buttonalignementcenter" class="btn"><img src="<?php echo $this->imagespath; ?>text_align_center.png" width="16" height="16" /></label></div> <div style="float:left;margin:0px 5px 0 2px;"></div> <div style="float:left;margin:0px 0px 0 2px;"><input type="radio" class="inputbox" name="buttonalignement" id="buttonalignementright" onclick="ckSetAlignButton()" value="right" style="width:16px;border:none;margin:0 2px;display:none;" /><label for="buttonalignementright" class="btn"><img src="<?php echo $this->imagespath; ?>text_align_right.png" width="16" height="16" /></label></div> <div style="float:left;margin:0px 5px 0 2px;"></div> </div> </div> </div> </div> </td> </tr> </table> <div class="clr"></div> </div> <div class="tab menustyles ckproperty" id="tab_iconstyles"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_BUTTON_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_BUTTON_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <div class="menupanetitle"><?php echo JText::_('CK_ICON_STYLES'); ?></div> <?php echo $this->menustyles->createIconStyles('icon', 'icon', '#previewareabloc .buttonck i.fa', false, true, false) ?> </td> </tr> </table> <div class="clr"></div> </div> <div class="tab menustyles ckproperty" id="tab_blocstyles"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_BUTTON_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_BUTTON_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <?php echo $this->menustyles->createBlocStyles('bloc', 'button', '') ?> </td> </tr> </table> <div class="clr"></div> </div> <div class="tab menustyles ckproperty" id="tab_blochoverstyles"> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('PLG_PAGEBUILDERCK_BUTTON_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('PLG_PAGEBUILDERCK_BUTTON_INFOS_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <?php echo $this->menustyles->createBlocStyles('blochover', 'button', '') ?> </td> </tr> </table> <div class="clr"></div> </div> </div> </div> <div id="previewarea" class="clearfix"> <div class="previewareatitle"><?php echo JText::_('CK_PREVIEWAREA_TITLE'); ?></div> <div id="previewareabloc" class=""> <div class="ckstyle"></div> <a style="display:inline-block;" class="buttonck iconck inner" href="javascript:void(0)"><span class ="iconck"></span>Click me</a> </div> </div> <div class="clr"></div> <script language="javascript" type="text/javascript"> function ckLoadEditionPopup() { var focus = $ck('.editfocus'); // $ck('#previewareabloc .buttonck').click(function(e) {e.preventDefault();return false;}); $ck('#previewareabloc .buttonck')[0].outerHTML = focus.find('.buttonck')[0].outerHTML; $ck('#previewareabloc .ckstyle').html(focus.find('.ckstyle').html()); ckFillEditionPopup(focus.attr('id')); $ck('#previewareabloc').css('text-align', $ck('#previewareabloc .buttonck').attr('data-align')); } function ckSetAlignButton() { var align = $ck('input[name="buttonalignement"]:checked').val(); $ck('#previewareabloc .buttonck').attr('data-align', align); $ck('#previewareabloc').css('text-align', align); } function ckBeforeSaveEditionPopup() { var focus = $ck('.editfocus'); var button = $ck('#previewareabloc .buttonck'); focus.find('.buttonck')[0].outerHTML = $ck('#previewareabloc .buttonck')[0].outerHTML; focus.find('.ckstyle').html($ck('#previewareabloc .ckstyle').html()); if ($ck('#previewareabloc a.buttonck').attr('data-align')) focus.css('text-align', focus.find('.buttonck').attr('data-align')); ckSaveEditionPopup(focus.attr('id')); ckCloseEditionPopup(); } function ckUpdateLinkAttribute(attribute, value) { var buttonpreview = $ck('#previewareabloc .buttonck'); if (attribute == 'class') { if (value) { buttonpreview.addClass(value); } else { buttonpreview.attr('class', 'buttonck inner'); } } else { if (value) { buttonpreview.attr(attribute, value.replace(/"/g, '\'')); if (attribute == 'onclick') $ck('#linkonlick').val($ck('#linkonlick').val().replace(/"/g, '\'')); } else { buttonpreview.removeAttr(attribute, value); } } } function ckUpdateLinkText(text) { var buttonpreview = $ck('#previewareabloc .buttontextck'); buttonpreview.text(text); } function ckSelectFaIcon(iconclass) { $ck('#previewareabloc .buttonck').find('i.fa').remove(); $ck('#previewareabloc .buttonck').prepend('<i class="' + iconclass + '"></i>'); $ck('#previewareabloc .buttonck i.fa').css('vertical-align', $ck('#iconicon-position button.active').attr('data-position')) .addClass($ck('#iconicon-size button.active').attr('data-width')); ckSetIconMargin('#previewareabloc .buttonck i.fa', '#iconicon_margin'); } ckInitIconSize('#previewareabloc .buttonck i.fa', '#iconicon-size button'); ckInitIconPosition('#previewareabloc .buttonck i.fa', '#iconicon-position button'); ckInitOptionsTabs(); ckInitColorPickers(); ckInitAccordions(); </script>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings