本文整理汇总了PHP中VmConfig::loadModJLang方法的典型用法代码示例。如果您正苦于以下问题:PHP VmConfig::loadModJLang方法的具体用法?PHP VmConfig::loadModJLang怎么用?PHP VmConfig::loadModJLang使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VmConfig
的用法示例。
在下文中一共展示了VmConfig::loadModJLang方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
* @version $Id: mod_virtuemart_search.php 6555 2012-10-17 15:49:43Z alatak $
* @package VirtueMart
* @subpackage modules
*
* @copyright (C) 2011 Patrick Kohl
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* VirtueMart is Free Software.
* VirtueMart comes with absolute no warranty.
*
* www.virtuemart.net
*/
if (!class_exists('VmConfig')) {
require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php';
}
VmConfig::loadConfig();
VmConfig::loadModJLang('mod_virtuemart_search', true);
// Load the virtuemart main parse code
$button = $params->get('button', 0);
$imagebutton = $params->get('imagebutton', 0);
$button_pos = $params->get('button_pos', 'left');
$button_text = $params->get('button_text', JText::_('MOD_VIRTUEMART_SEARCH_GO'));
$width = intval($params->get('width', 20));
$maxlength = $width > 20 ? $width : 20;
$text = $params->get('text', JText::_('MOD_VIRTUEMART_SEARCH_TEXT_TXT'));
$set_Itemid = intval($params->get('set_itemid', 0));
$moduleclass_sfx = $params->get('moduleclass_sfx', '');
if ($params->get('filter_category', 0)) {
$category_id = JRequest::getInt('virtuemart_category_id', 0);
} else {
$category_id = 0;
}
示例2: jQuery
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* VirtueMart is Free Software.
* VirtueMart comes with absolute no warranty.
*
* www.virtuemart.net
*/
$jsVars = ' jQuery(document).ready(function(){
jQuery(".vmCartModule").productUpdate();
});';
if (!class_exists('VmConfig')) {
require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php';
}
VmConfig::loadConfig();
VmConfig::loadJLang('com_virtuemart', true);
VmConfig::loadModJLang('mod_virtuemart_cart', true);
//This is strange we have the whole thing again in controllers/cart.php public function viewJS()
if (!class_exists('VirtueMartCart')) {
require JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php';
}
$cart = VirtueMartCart::getCart(false);
$viewName = JRequest::getString('view', 0);
if ($viewName == 'cart') {
$checkAutomaticPS = true;
} else {
$checkAutomaticPS = false;
}
$data = $cart->prepareAjaxData($checkAutomaticPS);
if (!class_exists('CurrencyDisplay')) {
require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'currencydisplay.php';
}
示例3: require
// E: cyber__fr|at|hotmail.com
*
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* VirtueMart is Free Software.
* VirtueMart comes with absolute no warranty.
*
* www.virtuemart.net
*/
/* Load VM fonction */
require('helper.php');
if (!class_exists( 'VirtueMartModelManufacturer' ))
JLoader::import( 'manufacturer', JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'models' );
if (!class_exists( 'VmConfig' )) require(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart'.DS.'helpers'.DS.'config.php');
VmConfig::loadConfig();
VmConfig::loadModJLang('mod_virtuemart_manufacturer', true);
$vendorId = JRequest::getInt('vendorid', 1);
$model = VmModel::getModel('Manufacturer');
$display_style = $params->get( 'display_style', "div" ); // Display Style
$manufacturers_per_row = $params->get( 'manufacturers_per_row', 1 ); // Display X manufacturers per Row
$headerText = $params->get( 'headerText', '' ); // Display a Header Text
$footerText = $params->get( 'footerText', ''); // Display a footerText
$show = $params->get( 'show', 'all'); // Display a footerText
$manufacturers = $model->getManufacturers(true, true,true);
$model->addImages($manufacturers);
if(empty($manufacturers)) return false;
/* load the template */
require(JModuleHelper::getLayoutPath('mod_virtuemart_manufacturer'));
?>
示例4: CONCAT
* VirtueMart comes with absolute no warranty.
*
* www.virtuemart.net
*/
/***********
*
* Prices in the orders are saved in the shop currency; these fields are required
* to show the prices to the user in a later stadium.
*/
if (!class_exists( 'VmConfig' )) require(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart'.DS.'helpers'.DS.'config.php');
VmConfig::loadConfig();
VmConfig::loadModJLang('mod_virtuemart_currencies', true);
$mainframe = Jfactory::getApplication();
$vendorId = JRequest::getInt('vendorid', 1);
$text_before = $params->get( 'text_before', '');
/* table vm_vendor */
$db = JFactory::getDBO();
// the select list should include the vendor currency which is the currency in which the product prices are displayed by default.
$q = 'SELECT CONCAT(`vendor_accepted_currencies`, ",",`vendor_currency`) AS all_currencies, `vendor_currency` FROM `#__virtuemart_vendors` WHERE `virtuemart_vendor_id`='.$vendorId;
$db->setQuery($q);
$vendor_currency = $db->loadAssoc();
$virtuemart_currency_id = $mainframe->getUserStateFromRequest( "virtuemart_currency_id", 'virtuemart_currency_id',JRequest::getInt('virtuemart_currency_id', $vendor_currency['vendor_currency']) );
//if (!$vendor_currency['vendor_accepted_currencies']) return;
//$currency_codes = explode(',' , $currencies->vendor_accepted_currencies );
示例5:
* @subpackage modules
*
* @copyright (C) 2010 - Patrick Kohl
*
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* VirtueMart is Free Software.
* VirtueMart comes with absolute no warranty.
*
* www.virtuemart.net
*/
if (!class_exists('VmConfig')) {
require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php';
}
VmConfig::loadConfig();
VmConfig::loadJLang('com_virtuemart', true);
VmConfig::loadModJLang('mod_virtuemart_product', true);
// Setting
$max_items = $params->get('max_items', 2);
//maximum number of items to display
$layout = $params->get('layout', 'default');
$category_id = $params->get('virtuemart_category_id', null);
// Display products from this category only
$filter_category = (bool) $params->get('filter_category', 0);
// Filter the category
$display_style = $params->get('display_style', "div");
// Display Style
$products_per_row = $params->get('products_per_row', 1);
// Display X products per Row
$show_price = (bool) $params->get('show_price', 1);
// Display the Product Price?
$show_addtocart = (bool) $params->get('show_addtocart', 1);