本文整理汇总了PHP中comquick2cartHelper::getLanguageConstantForJs方法的典型用法代码示例。如果您正苦于以下问题:PHP comquick2cartHelper::getLanguageConstantForJs方法的具体用法?PHP comquick2cartHelper::getLanguageConstantForJs怎么用?PHP comquick2cartHelper::getLanguageConstantForJs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类comquick2cartHelper
的用法示例。
在下文中一共展示了comquick2cartHelper::getLanguageConstantForJs方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*
* @since 2.2
*/
public function __construct()
{
// Add social library according to the social integration
$qtcParams = JComponentHelper::getParams('com_quick2cart');
$socialintegration = $qtcParams->get('integrate_with', 'none');
// Load main file
jimport('techjoomla.jsocial.jsocial');
jimport('techjoomla.jsocial.joomla');
if ($socialintegration != 'none') {
if ($socialintegration == 'JomSocial') {
jimport('techjoomla.jsocial.jomsocial');
} elseif ($socialintegration == 'EasySocial') {
jimport('techjoomla.jsocial.easysocial');
}
}
$getLanguageConstantForJs = comquick2cartHelper::getLanguageConstantForJs();
}
示例2: jimport
JHtml::_('behavior.formvalidation');
jimport('joomla.form.formvalidator');
JHtml::_('behavior.tooltip');
JHtmlBehavior::framework();
jimport('joomla.html.parameter');
jimport('joomla.filesystem.file');
JHtml::_('behavior.modal');
$root_url = JUri::root();
$document = JFactory::getDocument();
if (!class_exists('comquick2cartHelper')) {
//require_once $path;
$path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'helper.php';
JLoader::register('comquick2cartHelper', $path);
JLoader::load('comquick2cartHelper');
}
$getLanguageConstantForJs = comquick2cartHelper::getLanguageConstantForJs();
$stepjs_initalization = "\nvar qtc_cartAlertMsg =\"" . JText::_("COM_QUICK2CART_COULD_NOT_CHANGE_CART_DETAIL_NOW") . "\";\nvar qtc_shipMethRemovedMsg =\"" . JText::_("COM_QUICK2CART_COULD_NOT_CHANGE_SHIPMETH_DETAIL_NOW") . "\";\n\n";
$document->addScriptDeclaration($stepjs_initalization);
//$document->addScript($root_url.'components/com_quick2cart/assets/js/fuelux2.3loader.min.js');
$document->addStyleSheet($root_url . 'components/com_quick2cart/assets/css/fuelux2.3.1.css');
$document->addStyleSheet($root_url . 'components/com_quick2cart/assets/css/qtc_steps.css');
//$document->addScript($root_url.'components/com_quick2cart/assets/js/qtc_steps.js');
//$document->addScript($root_url.'components/com_quick2cart/assets/js/flowplayer-3.2.9.min.js');
$user = JFactory::getUser();
$jinput = JFactory::getApplication()->input;
$params = JComponentHelper::getParams('com_quick2cart');
$entered_numerics = "'" . JText::_('QTC_ENTER_NUMERICS') . "'";
?>
<div class="<?php
echo Q2C_WRAPPER_CLASS;
?>