diff --git a/fields/index.html b/fields/index.html new file mode 100644 index 0000000000000000000000000000000000000000..2efb97f319a35f6bd80f1751134ed71ec11888eb --- /dev/null +++ b/fields/index.html @@ -0,0 +1 @@ +<!DOCTYPE html><title></title> diff --git a/fields/vmlengthunit.php b/fields/vmlengthunit.php new file mode 100644 index 0000000000000000000000000000000000000000..b8826300254abf58b7b36a2a13f9796ae652db90 --- /dev/null +++ b/fields/vmlengthunit.php @@ -0,0 +1,27 @@ +<?php +defined('_JEXEC') or die(); +/** + * + * @package VirtueMart + * @subpackage Plugins - Fields + * @author Reinhold Kainhofer, Open Tools + * @link http://www.open-tools.net + * @copyright Copyright (c) 2014 Reinhold Kainhofer. All rights reserved. + * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php + * VirtueMart is free software. This version may have been modified pursuant + * to the GNU General Public License, and as distributed it includes or + * is derivative of works licensed under the GNU General Public License or + * other free or open source software licenses. + */ + +defined('DS') or define('DS', DIRECTORY_SEPARATOR); +if (!class_exists('ShopFunctions')) + require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'shopfunctions.php'); + +class JFormFieldVmLengthUnit extends JFormField { + var $_name = 'vmLengthUnit'; + + protected function getInput() { + return ShopFunctions::renderLWHUnitList($this->name, $this->value); + } +} \ No newline at end of file