Файловый менеджер - Редактировать - /var/www/iplanru/data/old/www/i-plan.ru/modules/mod_zoocategory/elements/template.php
Назад
<?php /** * @package ZOO Category * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) YOOtheme GmbH * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ class JElementTemplate extends JElement { var $_name = 'Template'; public function fetchElement($name, $value, &$node, $control_name) { // load config require_once(JPATH_ADMINISTRATOR.'/components/com_zoo/config.php'); $app = App::getInstance('zoo'); // create select $path = dirname(dirname(__FILE__)).'/tmpl'; $options = array(); if (is_dir($path)) { foreach (JFolder::files($path, '^([-_A-Za-z0-9]+)\.php$') as $tmpl) { $tmpl = basename($tmpl, '.php'); $options[] = $app->html->_('select.option', $tmpl, ucwords($tmpl)); } } return $app->html->_('select.genericlist', $options, $control_name.'['.$name.']', '', 'value', 'text', $value); } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45-1~dotdeb+6.1 | Генерация страницы: 0.07 |
proxy
|
phpinfo
|
Настройка