File manager - Edit - /home/jardides/www/Jardi-design/old/administrator/components/com_templateck/views/template/tmpl/edit.php
Back
<?php /** * @name Template Creator CK 3 * @package com_templateck * @copyright Copyright (C) 2013. 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 */ // no direct access defined('_JEXEC') or die; $doc = JFactory::getDocument(); require_once(JPATH_SITE . '/administrator/components/com_templateck/helpers/ckwidgets.php'); require_once(JPATH_SITE . '/administrator/components/com_templateck/helpers/ckmodules.php'); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $doc->language; ?>" lang="<?php echo $doc->language; ?>" dir="<?php echo $doc->direction; ?>"> <head> <?php echo $this->loadTemplate('head'); ?> </head> <body> <?php foreach (JFactory::getApplication()->getMessageQueue() as $messageArr) { if ($messageArr['message']) { ?> <div id="system-message-container"> <button class="close" data-dismiss="alert" type="button" onclick="$ck(this).parent().remove();">×</button> <div class="alert alert-<?php echo $messageArr['type'] ?>"> <h4 class="alert-heading">Message</h4> <p><?php echo $messageArr['message'] ?></p> </div> </div> <?php } } // BC compatibility if (empty($this->item->modules)) $this->item->modules = ''; // loads the needed files for the widgets // check first that the widgets are defined, because of retrocompatibility // get the list of widgets $widgets = CKWidgets::loadWidgets(); // get the widgets states from the template settings if (empty($this->item->widgets)) { $this->item->widgets = ''; } else { $itemWidgets = json_decode(str_replace('|qq|', '"', $this->item->widgets)); } ?> <div id="widgetsElements"> <?php if (count($widgets)) { foreach ($widgets as $widget) { $state = '0'; $data = ''; if (isset($itemWidgets->{$widget->name})) { $state = $widget->installed ? $itemWidgets->{$widget->name}->enabled : '0'; $data = $itemWidgets->{$widget->name}->data; } ?> <div class="widget" data-name="<?php echo $widget->name ?>" data-enabled="<?php echo $state ?>"> <div class="widgetdata"><?php echo $data ?></div> </div> <?php } } ?> </div> <div id="bootstrapload"><link rel="stylesheet" type="text/css" href="<?php echo JUri::base(true) ?>/components/com_templateck/default.css"></div> <form action="<?php echo JRoute::_('index.php?option=com_templateck&layout=edit&id=' . (int) $this->item->id); ?>" enctype="multipart/form-data" method="post" name="adminForm" id="adminForm" class="form-validate"> <input type="hidden" name="htmlcode" id="htmlcode" value="" /> <input type="hidden" name="htmlcode_responsive" id="htmlcode_responsive" value="<?php echo str_replace('"', '|qq|', $this->item->htmlcode_responsive); ?>" /> <input type="hidden" name="option" value="com_templateck" /> <input type="hidden" name="widgets" id="widgets" value="<?php echo $this->item->widgets; ?>" /> <input type="hidden" name="modules" id="modules" value="<?php echo $this->item->modules; ?>" /> <input type="hidden" class="layoutfield" name="layouts[error404]" id="layouts_error404" data-type="error404" value="" /> <input type="hidden" class="layoutfieldid" name="layoutsid[error404]" id="layoutsid_error404" data-type="error404" value="<?php echo $this->item->layouts['error404']->id; ?>" /> <input type="hidden" name="id" value="<?php echo $this->item->id; ?>" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="controller" value="templateck" /> <?php echo JHtml::_('form.token'); ?> <?php echo $this->loadTemplate('mainmenu'); ?> <div id="leftpanel" class="<?php echo ($this->item->htmlcode) ? '' : 'hiddenpanel' ?>"> <div id="addblockmanager"> <div class="ckpopupsubtitle"><?php echo JText::_('CK_ADD_BLOCK_ACTION') ?><span class="subtitle"><?php echo JText::_('CK_DRAG_TO_ADD_BLOCK') ?></span></div> <div class="blocselectcont"><div class="blocselecttitle"><?php echo JText::_('CK_WRAPPER') ?></div><div class="blocselect wrapper dragtoaddwrapper"></div></div> <div class="blocselectcont"><div class="blocselecttitle"><?php echo JText::_('CK_ROW') ?></div><div class="blocselect row dragtoadd" data-type="row"></div></div> <div class="blocselectcontseparator"></div> <div class="blocselectcont"><div class="blocselecttitle"><?php echo JText::_('CK_SINGLE_MODULE') ?></div><div class="blocselect singlemodule dragtoadd" data-type="singlemodule"></div></div> <div class="blocselectcont"><div class="blocselecttitle"><?php echo JText::_('CK_FLEXIBLES_MODULES') ?></div><div class="blocselect flexiblemodules dragtoadd" data-type="flexiblemodules"></div></div> <?php echo CKModules::displayBloc('horizmenu'); ?> <div class="blocselectcont"><div class="blocselecttitle"><?php echo JText::_('CK_LOGO') ?></div><div class="blocselect logo dragtoadd" data-type="logo"></div></div> <div class="blocselectcont"><div class="blocselecttitle"><?php echo JText::_('CK_CUSTOM_BLOCK') ?></div><div class="blocselect custombloc dragtoadd" data-type="custombloc"></div></div> <?php echo CKModules::displayBloc('slideshowck'); ?> <?php echo CKModules::displayBloc('menu'); ?> <div class="clr"></div> </div> <?php echo $this->loadTemplate('favorite'); ?> <?php echo $this->loadTemplate('themes'); ?> <?php //echo $this->loadTemplate('tools'); ?> <?php echo $this->loadTemplate('checkmodules'); ?> </div> <div> <div id="template_container"> <div id="code_areas"> <?php echo $this->loadTemplate('globalinfos'); ?> <div id="popup_editionck" class="ckpopup"> </div> <?php //echo $this->loadTemplate('paramsbuttons'); ?> <div id="html_code" class="code_area"> <div id="htmlconteneur"> <div id="conteneur" class="focusbar focus"> <?php if ($this->item->htmlcode) { echo $this->item->htmlcode; } else { echo $this->loadTemplate('modeles'); } ?> </div> <div class="clr"></div> </div> <div class="clr"></div> </div> <?php echo $this->loadTemplate('package'); ?> <?php //echo $this->loadTemplate('preview'); ?> <div class="clr"></div> </div> <div class="clr"></div> </div> </div> <div class="clr"></div> </form> <?php echo $this->loadTemplate('restore'); ?> <?php echo $this->loadTemplate('replacecolors'); ?> <div id="layout_error404_html" class="ckbloc"> <?php echo ($this->item->layouts['error404']->htmlcode ? $this->item->layouts['error404']->htmlcode : '<div class="ckstyle"></div>'); ?> </div> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings