Файловый менеджер - Редактировать - /home/digilove/public_html/41423/media.php.tar
Назад
home/digilove/public_html/components/com_media/media.php 0000644 00000001160 15232574444 0017502 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage com_media * * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; // Load the com_media language files, default to the admin file and fall back to site if one isn't found $lang = JFactory::getLanguage(); $lang->load('com_media', JPATH_ADMINISTRATOR, null, false, true) || $lang->load('com_media', JPATH_SITE, null, false, true); // Hand processing over to the admin base file require_once JPATH_COMPONENT_ADMINISTRATOR . '/media.php'; home/digilove/public_html/plugins/fields/media/media.php 0000644 00000002014 15235265205 0017400 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Media * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields Media Plugin * * @since 3.7.0 */ class PlgFieldsMedia extends FieldsPlugin { /** * Transforms the field into a DOM XML element and appends it as a child on the given parent. * * @param stdClass $field The field. * @param DOMElement $parent The field node parent. * @param JForm $form The form. * * @return DOMElement * * @since 3.7.0 */ public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form); if (!$fieldNode) { return $fieldNode; } $fieldNode->setAttribute('hide_default', 'true'); return $fieldNode; } } home/digilove/public_html/plugins/fields/media/tmpl/media.php 0000644 00000001230 15235506777 0020367 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Media * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; if ($field->value == '') { return; } $class = $fieldParams->get('image_class'); if ($class) { $class = ' class="' . htmlentities($class, ENT_COMPAT, 'UTF-8', true) . '"'; } $value = (array) $field->value; $buffer = ''; foreach ($value as $path) { if (!$path) { continue; } $buffer .= sprintf('<img src="%s"%s>', htmlentities($path, ENT_COMPAT, 'UTF-8', true), $class ); } echo $buffer; home/digilove/public_html/110/plugins/fields/media/media.php 0000644 00000002014 15235573705 0017710 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Media * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields Media Plugin * * @since 3.7.0 */ class PlgFieldsMedia extends FieldsPlugin { /** * Transforms the field into a DOM XML element and appends it as a child on the given parent. * * @param stdClass $field The field. * @param DOMElement $parent The field node parent. * @param JForm $form The form. * * @return DOMElement * * @since 3.7.0 */ public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form); if (!$fieldNode) { return $fieldNode; } $fieldNode->setAttribute('hide_default', 'true'); return $fieldNode; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка