當前位置: 首頁>>代碼示例>>PHP>>正文


PHP VmConfig::loadModJLang方法代碼示例

本文整理匯總了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;
}
開發者ID:juanmcortez,項目名稱:Lectorum,代碼行數:31,代碼來源:mod_virtuemart_search.php

示例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';
}
開發者ID:arkane0906,項目名稱:lasercut-bootstrap,代碼行數:31,代碼來源:mod_virtuemart_cart.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'));
?>
開發者ID:sergy444,項目名稱:joomla,代碼行數:31,代碼來源:mod_virtuemart_manufacturer.php

示例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 );
開發者ID:sergy444,項目名稱:joomla,代碼行數:31,代碼來源:mod_virtuemart_currencies.php

示例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);
開發者ID:juanmcortez,項目名稱:Lectorum,代碼行數:31,代碼來源:mod_virtuemart_product.php


注:本文中的VmConfig::loadModJLang方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。