File manager - Edit - /home/jardides/www/Jardi-design/old/plugins/pagebuilderck/contact/layouts/edit_contact.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'); $contact_modaledition_url = JUri::root(true) . "/administrator/index.php?option=com_contact&task=contact.edit&view=contact&layout=modal&tmpl=component&id="; ?> <div id="elementscontainer"> <div class="menulink" tab="tab_contact"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_FORM_EDITION'); ?></div> <div class="tab menustyles ckproperty" id="tab_contact"> <div class="menustylesblocktitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_EDITION'); ?></div> <div class="menustylesblockaccordion"> <div> <a class="ckbuttonstyle" href="javascript:void(0)" onclick="CKBox.open({url: URIROOT + '/administrator/index.php?option=com_contact&view=contacts&layout=modal&tmpl=component&function=ckSelectContact', style: {padding: '10px'}})"><?php echo JText::_('CK_SELECT'); ?></a> <a class="ckbuttonstyle" href="javascript:void(0)" onclick="ckOpenContactEditionPopup()"><?php echo JText::_('CK_EDIT') ?></a> <input class="inputbox" type="hidden" value="" name="contactid" id="contactid" style="width:100px;" onchange="ckSetContactOptions()" /> <input class="inputbox" type="text" value="" name="contactname" id="contactname" style="width:250px;" disabled /> </div> </div> <div class="menustylesblocktitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_DESIGN'); ?></div> <div class="menustylesblockaccordion"> <div class="menupaneblock"> <div class="menupaneblock"> <div class="menupanetitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_LAYOUT'); ?></div> <select class="inputbox" type="list" value="" name="contactcklayout" id="contactcklayout" style="width:90%; min-width: 200px; clear:both;" onchange="ckSetContactOptions()" > <option value="horizontal"><?php echo JText::_('CK_HORIZONTAL'); ?></option> <option value="vertical"><?php echo JText::_('CK_VERTICAL'); ?></option> </select> <div> <span class="ckoption-label"> <img class="ckoption-icon" src="<?php echo $this->imagespath; ?>width.png" width="16" height="16" /> <?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_LABELS_WIDTH'); ?> </span> <span class="ckoption-field"> <input id="contactcklabelswidth" name="contactcklabelswidth" class="inputbox" value="" type="text" onchange="ckSetContactOptions()" /> </span> <div class="clr"></div> </div> <div> <span class="ckoption-label"> <img class="ckoption-icon" src="<?php echo $this->imagespath; ?>width.png" width="16" height="16" /> <?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_FIELDS_WIDTH'); ?> </span> <span class="ckoption-field"> <input id="contactckinputswidth" name="contactckinputswidth" class="inputbox" value="" type="text" onchange="ckSetContactOptions()" /> </span> <div class="clr"></div> </div> <div class="menupanetitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_SHOW_LABELS'); ?></div> <select class="inputbox" type="list" value="" name="contactckshowlabels" id="contactckshowlabels" style="width:90%; min-width: 200px; clear:both;" onchange="ckSetContactOptions()" > <option value="1"><?php echo JText::_('JYES'); ?></option> <option value="0"><?php echo JText::_('JNO'); ?></option> <option value="placeholder"><?php echo JText::_('PLG_PAGEBUILDERCK_LABEL_IN_PLACEHOLDER'); ?></option> </select> <div class="menupanetitle"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_BUTTON_ALIGN'); ?></div> <span class="ckoption-field ckbutton-group"> <input id="buttonalignementleft" class="inputbox" name="buttonalignement" value="left" type="radio" onclick="ckSetAlignButton()"> <label class="ckbutton" for="buttonalignementleft"> <img src="<?php echo $this->imagespath; ?>text_align_left.png" width="16" height="16" /> </label> <input id="buttonalignementcenter" class="inputbox" name="buttonalignement" value="center" type="radio" onclick="ckSetAlignButton()"> <label class="ckbutton" for="buttonalignementcenter"> <img src="<?php echo $this->imagespath; ?>text_align_center.png" width="16" height="16" /> </label> <input id="buttonalignementright" class="inputbox" name="buttonalignement" value="right" type="radio" onclick="ckSetAlignButton()"> <label class="ckbutton" for="buttonalignementright"> <img src="<?php echo $this->imagespath; ?>text_align_right.png" width="16" height="16" /> </label> </span> </div> </div> <div style="clear:both;"></div> </div> </div> <div class="menulink" tab="tab_blocstyles"><?php echo JText::_('CK_STYLES'); ?></div> <div class="tab menustyles ckproperty" id="tab_blocstyles"> <?php echo $this->menustyles->createBlocStyles('bloc', 'contact', '') ?> </div> <div class="menulink" tab="tab_rowstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_ROW_STYLE'); ?></div> <div class="tab menustyles ckproperty" id="tab_rowstyles"> <div class="menustylescustom" data-prefix="contactckrows" data-rule=".contactck .contactck-group"><?php echo $this->menustyles->createBlocStyles('contactckrows') ?></div> </div> <div class="menulink" tab="tab_labelstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_LABEL_STYLE'); ?></div> <div class="tab menustyles ckproperty" id="tab_labelstyles"> <div class="menustylescustom" data-prefix="contactcklabels" data-rule=".contactck label"><?php echo $this->menustyles->createBlocStyles('contactcklabels') ?></div> </div> <div class="menulink" tab="tab_inputstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INPUT_STYLE'); ?></div> <div class="tab menustyles ckproperty" id="tab_inputstyles"> <div class="menustylescustom" data-prefix="contactckinputs" data-rule=".contactck input|.contactck textarea"><?php echo $this->menustyles->createBlocStyles('contactckinputs') ?></div> </div> <div class="menulink" tab="tab_inputfocusstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_INPUT_FOCUS_STYLE'); ?></div> <div class="tab menustyles ckproperty" id="tab_inputfocusstyles"> <div class="menustylescustom" data-prefix="contactckinputsfocus" data-rule=".contactck input:focus|.contactck textarea:focus"><?php echo $this->menustyles->createBlocStyles('contactckinputsfocus') ?></div> </div> <div class="menulink" tab="tab_buttonstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_BUTTON_STYLE'); ?></div> <div class="tab menustyles ckproperty" id="tab_buttonstyles"> <div class="menustylescustom" data-prefix="contactckbuttons" data-rule=".contactck .contactck-button"><?php echo $this->menustyles->createBlocStyles('contactckbuttons', '', $expert = false, $showlinks = false, '', $showtext = true, $showdimensions = true, $showdecoration = true, $showshadow = true, $showmargins = true) ?></div> </div> <div class="menulink" tab="tab_buttonhoverstyles"><?php echo JText::_('PLG_PAGEBUILDERCK_CONTACT_BUTTON_HOVER_STYLE'); ?></div> <div class="tab menustyles ckproperty" id="tab_buttonhoverstyles"> <div class="menustylescustom" data-prefix="contactckbuttonshover" data-rule=".contactck .contactck-button:hover"><?php echo $this->menustyles->createBlocStyles('contactckbuttonshover', '', $expert = false, $showlinks = false, '', $showtext = true, $showdimensions = true, $showdecoration = true, $showshadow = true, $showmargins = true) ?></div> </div> </div> <script language="javascript" type="text/javascript"> function ckLoadEditionPopup() { var focus = $ck('.editfocus'); // $ck('#previewareabloc > .inner').html(focus.find('.contactck')[0].outerHTML); ckFillEditionPopup(focus.attr('id')); ckSetAlignButton(); } function ckBeforeSaveEditionPopup() { var focus = $ck('.editfocus'); // focus.find('> .inner').html($ck('#previewareabloc .contactck')[0].outerHTML); ckSaveEditionPopup(focus.attr('id')); } function jSelectContact(id, name) { $ck('#popup_editionck #contactid').val(id); $ck('#popup_editionck #contactname').val(name); CKBox.close(); } function ckSetAlignButton() { var align = $ck('input[name="buttonalignement"]:checked').val(); $ck('.editfocus .contactck-actions').css('text-align', align); } function ckOpenContactEditionPopup() { if (! $ck('#popup_editionck #contactid').val()) { alert('<?php echo JText::_('PLG_PAGEBUILDERCK_SELECT_CONTACT_FIRST', true) ?>'); return; } ckOpenContactIframe($ck('#popup_editionck #contactid').val()); } function ckOpenContactIframe(id) { ckLoadIframeEdition('<?php echo $contact_modaledition_url ?>'+id, 'ckeditioncontactpopup', 'contact.apply', 'contact.cancel'); // ckLoadIframeEdition("<?php echo JUri::root(true) ?>/administrator/index.php?option=com_contact&task=contact.add&tmpl=component&layout=modal", 'ckeditioncontactpopup', 'contact.apply', 'contact.cancel'); } function ckSetContactOptions() { var focus = $ck('.editfocus'); if ($ck('#contactckshowlabels').val() == 'placeholder') { jQuery('.editfocus .contactck-field').each(function() { jQuery(this).find('input, textarea').attr('placeholder', jQuery(this).attr('data-placeholder')); }); } else { jQuery('.editfocus .contactck-field').each(function() { jQuery(this).find('input, textarea').attr('placeholder', ''); }); } if ($ck('#contactckshowlabels').val() == '1') { $ck('.editfocus .contactck-label').show(); } else { $ck('.editfocus .contactck-label').hide(); } if ($ck('#contactcklayout').val() == 'horizontal') { $ck('.editfocus .contactck').removeClass('verticalck'); focus.removeClass('verticalck'); } else { $ck('.editfocus .contactck').addClass('verticalck'); focus.addClass('verticalck'); } $ck('.editfocus .contactck-label').width($ck('#contactcklabelswidth').val()); $ck('.contactck-label', focus).width($ck('#contactcklabelswidth').val()); $ck('.editfocus .contactck-field').width($ck('#contactckinputswidth').val()); $ck('.contactck-field', focus).width($ck('#contactckinputswidth').val()); } function ckSelectContact(id, name, c, d, url) { $ck('#contactid').val(id); $ck('#contactname').val(name); CKBox.close(); } </script>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings