File manager - Edit - /home/jardides/www/Jardi-design/administrator/components/com_templateck/views/template/tmpl/ajaxtabcustomcode.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 to this file defined('_JEXEC') or die('Restricted access'); $app = JFactory::getApplication(); $templateid = $app->input->get('templateid', ''); $templatename = $app->input->get('templatename', '', 'string'); $path = JPATH_ROOT . '/components/com_templateck/projects/' . $templatename; $customcode = ''; $customcodeendbody = ''; // test if a custom css exists if (JFile::exists($path . '/customheader.php')) { $customcode = JFile::read($path . '/customheader.php'); } else { $db = JFactory::getDbo(); $query = ' SELECT options FROM #__templateck_templates' . ' WHERE id = ' . $templateid; $db->setQuery($query); $customcode = $db->loadResult(); } if (JFile::exists($path . '/customcodeendbody.php')) { $customcodeendbody = JFile::read($path . '/customcodeendbody.php'); } ?> <script> var editor_customcode = CodeMirror.fromTextArea(document.getElementById("customcode"), { mode: "javascript", // styleActiveLine: true, lineNumbers: true, lineWrapping: true }); var editor_customcodeendbody = CodeMirror.fromTextArea(document.getElementById("customcodeendbody"), { mode: "javascript", // styleActiveLine: true, lineNumbers: true, lineWrapping: true }); </script> <table> <tr> <td style="vertical-align:top;"> <div class="layoutinfos"> <div class="layoutinfostitle"><?php echo JText::_('CK_PAGECUSTOMCODE_INFOS'); ?></div> <div class="layoutinfosdesc"><?php echo JText::_('CK_PAGECUSTOMCODE_DESC'); ?></div> </div> </td> <td style="vertical-align:top;"> <div class="menupanetitle"><?php echo JText::_('CK_CUSTOMCODE_IN_HEAD'); ?></div> <textarea id="customcode" cols="50" rows="20" style="color: #777;"><?php echo $customcode; ?></textarea> <div class="menupanetitle"><?php echo JText::_('CK_CUSTOMCODE_END_BODY'); ?></div> <textarea id="customcodeendbody" cols="50" rows="20" style="color: #777;"><?php echo $customcodeendbody; ?></textarea> </td> </tr> </table>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings