From 0e6f562551c8f7120002086808f36cdbb17048db Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer <reinhold@kainhofer.com> Date: Thu, 11 Sep 2014 01:15:29 +0200 Subject: [PATCH] Fields for VM3 --- fields/index.html | 1 + fields/vmlengthunit.php | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 fields/index.html create mode 100644 fields/vmlengthunit.php diff --git a/fields/index.html b/fields/index.html new file mode 100644 index 0000000..2efb97f --- /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 0000000..b882630 --- /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 -- GitLab