first commit
This commit is contained in:
399
plugins/jlsitemap/virtuemart/virtuemart.php
Normal file
399
plugins/jlsitemap/virtuemart/virtuemart.php
Normal file
@@ -0,0 +1,399 @@
|
||||
<?php
|
||||
/**
|
||||
* @package JLSitemap - VirtueMart Plugin
|
||||
* @version 1.12.0
|
||||
* @author Joomline - joomline.ru
|
||||
* @copyright Copyright (c) 2010 - 2022 Joomline. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
* @link https://joomline.ru/
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Plugin\CMSPlugin;
|
||||
use Joomla\Registry\Registry;
|
||||
|
||||
class plgJLSitemapVirtueMart extends CMSPlugin
|
||||
{
|
||||
/**
|
||||
* Affects constructor behavior. If true, language files will be loaded automatically.
|
||||
*
|
||||
* @var boolean
|
||||
*
|
||||
* @since 1.6.0
|
||||
*/
|
||||
protected $autoloadLanguage = true;
|
||||
|
||||
/**
|
||||
* Method to get urls array
|
||||
*
|
||||
* @param array $urls Urls array
|
||||
* @param Registry $config Component config
|
||||
*
|
||||
* @return array Urls array with attributes
|
||||
*
|
||||
* @since 1.6.0
|
||||
*/
|
||||
public function onGetUrls(&$urls, $config)
|
||||
{
|
||||
if (!$this->params->get('products_enable')
|
||||
&& !$this->params->get('categories_enable')
|
||||
&& !$this->params->get('manufacturers_enable')
|
||||
&& !$this->params->get('vendors_enable'))
|
||||
{
|
||||
return $urls;
|
||||
}
|
||||
|
||||
// Add config
|
||||
JLoader::register('VmConfig', JPATH_ROOT . '/administrator/components/com_virtuemart/helpers/config.php');
|
||||
|
||||
$db = Factory::getDbo();
|
||||
|
||||
// Get default language
|
||||
if ($defaultLanguage = VmConfig::get('vmDefLang'))
|
||||
{
|
||||
$defaultLanguageKey = str_replace('-', '_', strtolower($defaultLanguage));
|
||||
}
|
||||
else
|
||||
{
|
||||
$defaultLanguage = Factory::getLanguage()->getTag();
|
||||
$defaultLanguageKey = str_replace('-', '_', strtolower($defaultLanguage));;
|
||||
}
|
||||
$languages = (!empty($defaultLanguage) && !empty($defaultLanguageKey)) ?
|
||||
array($defaultLanguageKey => $defaultLanguage) : array();
|
||||
|
||||
// Get other languages
|
||||
$activeLanguages = VmConfig::get('active_languages');
|
||||
$multilanguage = ($config->get('multilanguage') && !empty($activeLanguages));
|
||||
if ($multilanguage)
|
||||
{
|
||||
foreach ($activeLanguages as $language)
|
||||
{
|
||||
$key = str_replace('-', '_', strtolower($language));
|
||||
if (!empty($key) && !empty($language))
|
||||
{
|
||||
$languages[$key] = $language;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Check languages
|
||||
if (empty($languages))
|
||||
{
|
||||
return $urls;
|
||||
}
|
||||
|
||||
// Get products
|
||||
if ($this->params->get('products_enable'))
|
||||
{
|
||||
$query = $db->getQuery(true)
|
||||
->select(array('p.virtuemart_product_id as id', 'p.published', 'p.metarobot',
|
||||
'c.virtuemart_category_id as catid', 'product_canon_category_id as canon_catid'))
|
||||
->leftJoin($db->quoteName('#__virtuemart_product_categories', 'c')
|
||||
. ' ON c.virtuemart_product_id = p.virtuemart_product_id')
|
||||
->from($db->quoteName('#__virtuemart_products', 'p'))
|
||||
->group('p.virtuemart_product_id');
|
||||
|
||||
foreach ($languages as $key => $code)
|
||||
{
|
||||
$query->select(array($key . '.product_name as ' . 'product_name_' . $key))
|
||||
->leftJoin($db->quoteName('#__virtuemart_products_' . $key, $key)
|
||||
. ' ON ' . $key . '.virtuemart_product_id = p.virtuemart_product_id');
|
||||
}
|
||||
|
||||
$rows = $db->setQuery($query)->loadObjectList();
|
||||
$changefreq = $this->params->get('products_changefreq', $config->get('changefreq', 'weekly'));
|
||||
$priority = $this->params->get('products_priority', $config->get('priority', '0.5'));
|
||||
|
||||
foreach ($rows as $row)
|
||||
{
|
||||
// Prepare default title
|
||||
$selector = 'product_name_' . $defaultLanguageKey;
|
||||
$defaultTitle = $row->$selector;
|
||||
|
||||
// Prepare catid
|
||||
$catid = (!empty($row->canon_catid)) ? $row->canon_catid : $row->catid;
|
||||
|
||||
// Prepare default loc attribute
|
||||
$defaultLoc = 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='
|
||||
. $row->id . '&virtuemart_category_id=' . $catid;
|
||||
|
||||
// Prepare exclude attribute
|
||||
$exclude = array();
|
||||
if (preg_match('/noindex/', $row->metarobot))
|
||||
{
|
||||
$exclude[] = array('type' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_PRODUCT'),
|
||||
'msg' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_PRODUCT_ROBOTS'));
|
||||
}
|
||||
if (!$row->published)
|
||||
{
|
||||
$exclude[] = array(
|
||||
'type' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_PRODUCT'),
|
||||
'msg' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_PRODUCT_UNPUBLISH')
|
||||
);
|
||||
}
|
||||
|
||||
foreach ($languages as $key => $code)
|
||||
{
|
||||
$selector = 'product_name_' . $key;
|
||||
$title = (!empty($row->$selector)) ? $row->$selector : $defaultTitle;
|
||||
|
||||
$loc = $defaultLoc;
|
||||
if ($multilanguage)
|
||||
{
|
||||
$loc .= '&lang=' . $code;
|
||||
}
|
||||
|
||||
// Prepare product object
|
||||
$product = new stdClass();
|
||||
$product->type = Text::_('PLG_JLSITEMAP_VIRTUEMART_TYPES_PRODUCT');
|
||||
$product->title = $title;
|
||||
$product->loc = $loc;
|
||||
$product->changefreq = $changefreq;
|
||||
$product->priority = $priority;
|
||||
$product->exclude = (!empty($exclude)) ? $exclude : false;
|
||||
$product->alternates = ($multilanguage) ? array() : false;
|
||||
if ($multilanguage)
|
||||
{
|
||||
foreach ($languages as $alternate)
|
||||
{
|
||||
$product->alternates[$alternate] = $defaultLoc . '&lang=' . $alternate;
|
||||
}
|
||||
}
|
||||
|
||||
// Add product to urls
|
||||
$urls[] = $product;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Get categories
|
||||
if ($this->params->get('categories_enable'))
|
||||
{
|
||||
$query = $db->getQuery(true)
|
||||
->select(array('c.virtuemart_category_id as id', 'c.published', 'c.metarobot'))
|
||||
->from($db->quoteName('#__virtuemart_categories', 'c'));
|
||||
|
||||
foreach ($languages as $key => $code)
|
||||
{
|
||||
$query->select(array($key . '.category_name as ' . 'category_name_' . $key))
|
||||
->leftJoin($db->quoteName('#__virtuemart_categories_' . $key, $key)
|
||||
. ' ON ' . $key . '.virtuemart_category_id = c.virtuemart_category_id');
|
||||
}
|
||||
|
||||
$rows = $db->setQuery($query)->loadObjectList();
|
||||
$changefreq = $this->params->get('categories_changefreq', $config->get('changefreq', 'weekly'));
|
||||
$priority = $this->params->get('categories_priority', $config->get('priority', '0.5'));
|
||||
|
||||
foreach ($rows as $row)
|
||||
{
|
||||
// Prepare default title
|
||||
$selector = 'category_name_' . $defaultLanguageKey;
|
||||
$defaultTitle = $row->$selector;
|
||||
|
||||
// Prepare default loc attribute
|
||||
$defaultLoc = 'index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=0&Itemid=0&virtuemart_category_id='
|
||||
. $row->id;
|
||||
|
||||
// Prepare exclude attribute
|
||||
$exclude = array();
|
||||
if (preg_match('/noindex/', $row->metarobot))
|
||||
{
|
||||
$exclude[] = array('type' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_CATEGORY'),
|
||||
'msg' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_CATEGORY_ROBOTS'));
|
||||
}
|
||||
if (!$row->published)
|
||||
{
|
||||
$exclude[] = array(
|
||||
'type' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_CATEGORY'),
|
||||
'msg' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_CATEGORY_UNPUBLISH')
|
||||
);
|
||||
}
|
||||
|
||||
foreach ($languages as $key => $code)
|
||||
{
|
||||
$selector = 'category_name_' . $key;
|
||||
$title = (!empty($row->$selector)) ? $row->$selector : $defaultTitle;
|
||||
|
||||
$loc = $defaultLoc;
|
||||
if ($multilanguage)
|
||||
{
|
||||
$loc .= '&lang=' . $code;
|
||||
}
|
||||
|
||||
// Prepare category object
|
||||
$category = new stdClass();
|
||||
$category->type = Text::_('PLG_JLSITEMAP_VIRTUEMART_TYPES_CATEGORY');
|
||||
$category->title = $title;
|
||||
$category->loc = $loc;
|
||||
$category->changefreq = $changefreq;
|
||||
$category->priority = $priority;
|
||||
$category->exclude = (!empty($exclude)) ? $exclude : false;
|
||||
$category->alternates = ($multilanguage) ? array() : false;
|
||||
if ($multilanguage)
|
||||
{
|
||||
foreach ($languages as $alternate)
|
||||
{
|
||||
$category->alternates[$alternate] = $defaultLoc . '&lang=' . $alternate;
|
||||
}
|
||||
}
|
||||
|
||||
// Add category to urls
|
||||
$urls[] = $category;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Get manufacturers
|
||||
if ($this->params->get('manufacturers_enable'))
|
||||
{
|
||||
$query = $db->getQuery(true)
|
||||
->select(array('m.virtuemart_manufacturer_id as id', 'm.published', 'm.metarobot'))
|
||||
->from($db->quoteName('#__virtuemart_manufacturers', 'm'));
|
||||
|
||||
foreach ($languages as $key => $code)
|
||||
{
|
||||
$query->select(array($key . '.mf_name as ' . 'manufacturer_name_' . $key))
|
||||
->leftJoin($db->quoteName('#__virtuemart_manufacturers_' . $key, $key)
|
||||
. ' ON ' . $key . '.virtuemart_manufacturer_id = m.virtuemart_manufacturer_id');
|
||||
}
|
||||
|
||||
$rows = $db->setQuery($query)->loadObjectList();
|
||||
$changefreq = $this->params->get('manufacturers_changefreq', $config->get('changefreq', 'weekly'));
|
||||
$priority = $this->params->get('manufacturers_priority', $config->get('priority', '0.5'));
|
||||
|
||||
foreach ($rows as $row)
|
||||
{
|
||||
// Prepare default title
|
||||
$selector = 'manufacturer_name_' . $defaultLanguageKey;
|
||||
$defaultTitle = $row->$selector;
|
||||
|
||||
// Prepare default loc attribute
|
||||
$defaultLoc = 'index.php?option=com_virtuemart&view=manufacturer&layout=details&Itemid=0&virtuemart_manufacturer_id='
|
||||
. $row->id;
|
||||
|
||||
// Prepare exclude attribute
|
||||
$exclude = array();
|
||||
if (preg_match('/noindex/', $row->metarobot))
|
||||
{
|
||||
$exclude[] = array('type' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_MANUFACTURER'),
|
||||
'msg' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_MANUFACTURER_ROBOTS'));
|
||||
}
|
||||
if (!$row->published)
|
||||
{
|
||||
$exclude[] = array(
|
||||
'type' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_MANUFACTURER'),
|
||||
'msg' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_MANUFACTURER_UNPUBLISH')
|
||||
);
|
||||
}
|
||||
|
||||
foreach ($languages as $key => $code)
|
||||
{
|
||||
$selector = 'category_name_' . $key;
|
||||
$title = (!empty($row->$selector)) ? $row->$selector : $defaultTitle;
|
||||
|
||||
$loc = $defaultLoc;
|
||||
if ($multilanguage)
|
||||
{
|
||||
$loc .= '&lang=' . $code;
|
||||
}
|
||||
|
||||
// Prepare manufacturer object
|
||||
$manufacturer = new stdClass();
|
||||
$manufacturer->type = Text::_('PLG_JLSITEMAP_VIRTUEMART_TYPES_MANUFACTURER');
|
||||
$manufacturer->title = $title;
|
||||
$manufacturer->loc = $loc;
|
||||
$manufacturer->changefreq = $changefreq;
|
||||
$manufacturer->priority = $priority;
|
||||
$manufacturer->exclude = (!empty($exclude)) ? $exclude : false;
|
||||
$manufacturer->alternates = ($multilanguage) ? array() : false;
|
||||
if ($multilanguage)
|
||||
{
|
||||
foreach ($languages as $alternate)
|
||||
{
|
||||
$manufacturer->alternates[$alternate] = $defaultLoc . '&lang=' . $alternate;
|
||||
}
|
||||
}
|
||||
|
||||
// Add category to urls
|
||||
$urls[] = $category;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Get vendors
|
||||
if ($this->params->get('vendors_enable'))
|
||||
{
|
||||
$query = $db->getQuery(true)
|
||||
->select(array('m.virtuemart_vendor_id as id', 'm.metarobot'))
|
||||
->from($db->quoteName('#__virtuemart_vendors', 'm'));
|
||||
|
||||
foreach ($languages as $key => $code)
|
||||
{
|
||||
$query->select(array($key . '.vendor_store_name as ' . 'vendor_name_' . $key))
|
||||
->leftJoin($db->quoteName('#__virtuemart_vendors_' . $key, $key)
|
||||
. ' ON ' . $key . '.virtuemart_vendor_id = m.virtuemart_vendor_id');
|
||||
}
|
||||
|
||||
$rows = $db->setQuery($query)->loadObjectList();
|
||||
$changefreq = $this->params->get('vendors_changefreq', $config->get('changefreq', 'weekly'));
|
||||
$priority = $this->params->get('vendors_priority', $config->get('priority', '0.5'));
|
||||
|
||||
foreach ($rows as $row)
|
||||
{
|
||||
// Prepare default title
|
||||
$selector = 'vendor_name_' . $defaultLanguageKey;
|
||||
$defaultTitle = $row->$selector;
|
||||
|
||||
// Prepare default loc attribute
|
||||
$defaultLoc = 'index.php?option=com_virtuemart&view=vendor&layout=tos&Itemid=&virtuemart_vendor_id='
|
||||
. $row->id;
|
||||
|
||||
// Prepare exclude attribute
|
||||
$exclude = array();
|
||||
if (preg_match('/noindex/', $row->metarobot))
|
||||
{
|
||||
$exclude[] = array('type' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_VENDOR'),
|
||||
'msg' => Text::_('PLG_JLSITEMAP_VIRTUEMART_EXCLUDE_VENDOR_ROBOTS'));
|
||||
}
|
||||
|
||||
foreach ($languages as $key => $code)
|
||||
{
|
||||
$selector = 'vendor_name_' . $key;
|
||||
$title = (!empty($row->$selector)) ? $row->$selector : $defaultTitle;
|
||||
|
||||
$loc = $defaultLoc;
|
||||
if ($multilanguage)
|
||||
{
|
||||
$loc .= '&lang=' . $code;
|
||||
}
|
||||
|
||||
// Prepare vendor object
|
||||
$vendor = new stdClass();
|
||||
$vendor->type = Text::_('PLG_JLSITEMAP_VIRTUEMART_TYPES_VENDOR');
|
||||
$vendor->title = $title;
|
||||
$vendor->loc = $loc;
|
||||
$vendor->changefreq = $changefreq;
|
||||
$vendor->priority = $priority;
|
||||
$vendor->exclude = (!empty($exclude)) ? $exclude : false;
|
||||
$vendor->alternates = ($multilanguage) ? array() : false;
|
||||
if ($multilanguage)
|
||||
{
|
||||
foreach ($languages as $alternate)
|
||||
{
|
||||
$vendor->alternates[$alternate] = $defaultLoc . '&lang=' . $alternate;
|
||||
}
|
||||
}
|
||||
|
||||
// Add vendor to urls
|
||||
$urls[] = $vendor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $urls;
|
||||
}
|
||||
}
|
||||
165
plugins/jlsitemap/virtuemart/virtuemart.xml
Normal file
165
plugins/jlsitemap/virtuemart/virtuemart.xml
Normal file
@@ -0,0 +1,165 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension version="3.9" type="plugin" group="jlsitemap" method="upgrade">
|
||||
<name>PLG_JLSITEMAP_VIRTUEMART</name>
|
||||
<author>Joomline</author>
|
||||
<creationDate>13.04.2022</creationDate>
|
||||
<copyright>Copyright (c) 2010 - 2022 Joomline. All rights reserved.</copyright>
|
||||
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
|
||||
<authorEmail>sale@joomline.ru</authorEmail>
|
||||
<authorUrl>https://joomline.ru</authorUrl>
|
||||
<version>1.12.0</version>
|
||||
<description>PLG_JLSITEMAP_VIRTUEMART_DESCRIPTION</description>
|
||||
<languages folder="language">
|
||||
<language tag="en-GB">en-GB/en-GB.plg_jlsitemap_virtuemart.ini</language>
|
||||
<language tag="en-GB">en-GB/en-GB.plg_jlsitemap_virtuemart.sys.ini</language>
|
||||
<language tag="ru-RU">ru-RU/ru-RU.plg_jlsitemap_virtuemart.ini</language>
|
||||
<language tag="ru-RU">ru-RU/ru-RU.plg_jlsitemap_virtuemart.sys.ini</language>
|
||||
</languages>
|
||||
<files>
|
||||
<filename plugin="virtuemart">virtuemart.php</filename>
|
||||
</files>
|
||||
<config>
|
||||
<fields name="params">
|
||||
<fieldset name="products" label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_PRODUCTS">
|
||||
<field name="products_enable" type="radio"
|
||||
label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_ENABLE"
|
||||
default="1"
|
||||
class="btn-group btn-group-yesno">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="products_changefreq" type="list" default="weekly"
|
||||
label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_CHANGEFREQ"
|
||||
showon="products_enable:1">
|
||||
<option value="always">always</option>
|
||||
<option value="hourly">hourly</option>
|
||||
<option value="daily">daily</option>
|
||||
<option value="weekly">weekly</option>
|
||||
<option value="monthly">monthly</option>
|
||||
<option value="yearly">yearly</option>
|
||||
<option value="never">never</option>
|
||||
</field>
|
||||
<field name="products_priority" type="list"
|
||||
default="0.5" label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_PRIORITY"
|
||||
showon="products_enable:1">
|
||||
<option value="0.0">0.0</option>
|
||||
<option value="0.1">0.1</option>
|
||||
<option value="0.2">0.2</option>
|
||||
<option value="0.3">0.3</option>
|
||||
<option value="0.4">0.4</option>
|
||||
<option value="0.5">0.5</option>
|
||||
<option value="0.6">0.6</option>
|
||||
<option value="0.7">0.7</option>
|
||||
<option value="0.8">0.8</option>
|
||||
<option value="0.9">0.9</option>
|
||||
<option value="1">1</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset name="categories" label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_CATEGORIES">
|
||||
<field name="categories_enable" type="radio"
|
||||
label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_ENABLE"
|
||||
default="1"
|
||||
class="btn-group btn-group-yesno">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="categories_changefreq" type="list" default="weekly"
|
||||
label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_CHANGEFREQ"
|
||||
showon="categories_enable:1">
|
||||
<option value="always">always</option>
|
||||
<option value="hourly">hourly</option>
|
||||
<option value="daily">daily</option>
|
||||
<option value="weekly">weekly</option>
|
||||
<option value="monthly">monthly</option>
|
||||
<option value="yearly">yearly</option>
|
||||
<option value="never">never</option>
|
||||
</field>
|
||||
<field name="categories_priority" type="list"
|
||||
default="0.5" label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_PRIORITY"
|
||||
showon="categories_enable:1">
|
||||
<option value="0.0">0.0</option>
|
||||
<option value="0.1">0.1</option>
|
||||
<option value="0.2">0.2</option>
|
||||
<option value="0.3">0.3</option>
|
||||
<option value="0.4">0.4</option>
|
||||
<option value="0.5">0.5</option>
|
||||
<option value="0.6">0.6</option>
|
||||
<option value="0.7">0.7</option>
|
||||
<option value="0.8">0.8</option>
|
||||
<option value="0.9">0.9</option>
|
||||
<option value="1">1</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset name="manufacturers" label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_MANUFACTURERS">
|
||||
<field name="manufacturers_enable" type="radio"
|
||||
label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_ENABLE"
|
||||
default="1"
|
||||
class="btn-group btn-group-yesno">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="manufacturers_changefreq" type="list" default="weekly"
|
||||
label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_CHANGEFREQ"
|
||||
showon="manufacturers_enable:1">
|
||||
<option value="always">always</option>
|
||||
<option value="hourly">hourly</option>
|
||||
<option value="daily">daily</option>
|
||||
<option value="weekly">weekly</option>
|
||||
<option value="monthly">monthly</option>
|
||||
<option value="yearly">yearly</option>
|
||||
<option value="never">never</option>
|
||||
</field>
|
||||
<field name="manufacturers_priority" type="list"
|
||||
default="0.5" label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_PRIORITY"
|
||||
showon="manufacturers_enable:1">
|
||||
<option value="0.0">0.0</option>
|
||||
<option value="0.1">0.1</option>
|
||||
<option value="0.2">0.2</option>
|
||||
<option value="0.3">0.3</option>
|
||||
<option value="0.4">0.4</option>
|
||||
<option value="0.5">0.5</option>
|
||||
<option value="0.6">0.6</option>
|
||||
<option value="0.7">0.7</option>
|
||||
<option value="0.8">0.8</option>
|
||||
<option value="0.9">0.9</option>
|
||||
<option value="1">1</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset name="vendors" label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_VENDORS">
|
||||
<field name="vendors_enable" type="radio"
|
||||
label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_ENABLE"
|
||||
default="0"
|
||||
class="btn-group btn-group-yesno">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="vendors_changefreq" type="list" default="weekly"
|
||||
label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_CHANGEFREQ"
|
||||
showon="vendors_enable:1">
|
||||
<option value="always">always</option>
|
||||
<option value="hourly">hourly</option>
|
||||
<option value="daily">daily</option>
|
||||
<option value="weekly">weekly</option>
|
||||
<option value="monthly">monthly</option>
|
||||
<option value="yearly">yearly</option>
|
||||
<option value="never">never</option>
|
||||
</field>
|
||||
<field name="vendors_priority" type="list"
|
||||
default="0.5" label="PLG_JLSITEMAP_VIRTUEMART_PARAMS_PRIORITY"
|
||||
showon="vendors_enable:1">
|
||||
<option value="0.0">0.0</option>
|
||||
<option value="0.1">0.1</option>
|
||||
<option value="0.2">0.2</option>
|
||||
<option value="0.3">0.3</option>
|
||||
<option value="0.4">0.4</option>
|
||||
<option value="0.5">0.5</option>
|
||||
<option value="0.6">0.6</option>
|
||||
<option value="0.7">0.7</option>
|
||||
<option value="0.8">0.8</option>
|
||||
<option value="0.9">0.9</option>
|
||||
<option value="1">1</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
</fields>
|
||||
</config>
|
||||
</extension>
|
||||
Reference in New Issue
Block a user