File manager - Edit - /home/opticamezl/www/newok/plugins/system/web357framework/elements/vmcategories.php
Back
<?php /* ====================================================== # Web357 Framework for Joomla! - v2.0.0 (free version) # ------------------------------------------------------- # For Joomla! CMS (v4.x) # Author: Web357 (Yiannis Christodoulou) # Copyright: (©) 2014-2024 Web357. All rights reserved. # License: GNU/GPLv3, https://www.gnu.org/licenses/gpl-3.0.html # Website: https://www.web357.com # Support: support@web357.com # Last modified: Monday 27 October 2025, 03:04:38 PM ========================================================= */ defined('_JEXEC') or die(); use Joomla\CMS\Form\FormField; if (!class_exists( 'VmConfig' )) { require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/config.php'); } if (!class_exists('ShopFunctions')) { require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/shopfunctions.php'); } /* * This element is used by the menu manager * Should be that way */ class JFormFieldVmcategories extends FormField { var $type = 'vmcategories'; protected function getInput() { VmConfig::loadConfig(); if (class_exists('vmLanguage')) { vmLanguage::loadJLang('com_virtuemart'); } if(!is_array($this->value))$this->value = array($this->value); $categorylist = ShopFunctions::categoryListTree($this->value); $name = $this->name; if($this->multiple){ $name = $this->name; $this->multiple = ' multiple="multiple" '; } $id = VmHtml::ensureUniqueId('vmcategories'); $html = '<select id="'.$id.'" class="inputbox" name="' . $name . '" '.$this->multiple.' >'; if(!$this->multiple)$html .= '<option value="0">' . vmText::_('COM_VIRTUEMART_CATEGORY_FORM_TOP_LEVEL') . '</option>'; $html .= $categorylist; $html .= "</select>"; return $html; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings