当前位置: 首页>>代码示例>>PHP>>正文


PHP EnmasseHelper::getThemeFromSetting方法代码示例

本文整理汇总了PHP中EnmasseHelper::getThemeFromSetting方法的典型用法代码示例。如果您正苦于以下问题:PHP EnmasseHelper::getThemeFromSetting方法的具体用法?PHP EnmasseHelper::getThemeFromSetting怎么用?PHP EnmasseHelper::getThemeFromSetting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EnmasseHelper的用法示例。


在下文中一共展示了EnmasseHelper::getThemeFromSetting方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 function display($tpl = null)
 {
     $cart = unserialize(JFactory::getSession()->get('cart'));
     CartHelper::checkCart($cart);
     $setting = JModel::getInstance('setting', 'enmasseModel')->getSetting();
     $arData = array();
     $this->payGtyList = JModel::getInstance('payGty', 'enmasseModel')->listAll();
     $this->assignRef('termArticleId', $setting->article_id);
     $this->assignRef('theme', $setting->theme);
     $this->user = JModel::getInstance('user', 'enmasseModel')->getUser();
     $this->assignRef('cart', $cart);
     //get user data was save in the session
     $arData = JFactory::getApplication()->getUserState('com_enmasse.checkout.data');
     if (empty($arData)) {
         //contruct default value for the inputs
         $arData['name'] = $this->user->name;
         $arData['email'] = $this->user->email;
         $arData['receiver_name'] = "";
         $arData['receiver_email'] = "";
         $arData['receiver_msg'] = "";
         $arData['receiver_address'] = "";
         $arData['receiver_phone'] = "";
     }
     $this->arData = $arData;
     $this->_setPath('template', JPATH_SITE . DS . "components" . DS . "com_enmasse" . DS . "theme" . DS . EnmasseHelper::getThemeFromSetting() . DS . "tmpl" . DS);
     $this->_layout = "shop_checkout";
     parent::display($tpl);
 }
开发者ID:marsa1985,项目名称:kazabiz,代码行数:28,代码来源:view.html.php

示例2: Copyright

/* ------------------------------------------------------------------------
  # En Masse - Social Buying Extension 2010
  # ------------------------------------------------------------------------
  # By Matamko.com
  # Copyright (C) 2010 Matamko.com. All Rights Reserved.
  # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
  # Websites: http://www.matamko.com
  # Technical Support:  Visit our forum at www.matamko.com
  ------------------------------------------------------------------------- */
jimport('joomla.application.module.helper');
$oMenu = JFactory::getApplication()->getMenu();
$oItem = $oMenu->getItems('link', 'index.php?option=com_enmasse&view=dealtoday', true);
$sRedirectLink = JRoute::_('index.php?option=com_enmasse&controller=deal&task=today&Itemid=' . $oItem->id, false);
?>
<link href="components/com_enmasse/theme/<?php 
echo EnmasseHelper::getThemeFromSetting();
?>
/css/subscript.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
    function submit_multiform()
    {
        var numberForms = document.forms.length;
        //alert(numberForms);

        var formIndex;
        for (formIndex = 0; formIndex < numberForms; formIndex++)
        {      
            formName = document.forms[formIndex].name.toString(); 
        
            if(formName.substring(0,14) == 'formAcymailing')
            {
开发者ID:marsa1985,项目名称:kazabiz,代码行数:31,代码来源:sub_page.php

示例3: Copyright

<?php

/*------------------------------------------------------------------------
# En Masse - Social Buying Extension 2010
# ------------------------------------------------------------------------
# By Matamko.com
# Copyright (C) 2010 Matamko.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.matamko.com
# Technical Support:  Visit our forum at www.matamko.com
-------------------------------------------------------------------------*/
require_once JPATH_ADMINISTRATOR . DS . "components" . DS . "com_enmasse" . DS . "helpers" . DS . "EnmasseHelper.class.php";
$theme = EnmasseHelper::getThemeFromSetting();
JFactory::getDocument()->addStyleSheet('components/com_enmasse/theme/' . $theme . '/css/screen.css');
$rows = $this->dealList;
$option = 'com_enmasse';
$filter = $this->filter;
$emptyJOpt = JHTML::_('select.option', '', JText::_(''));
// create list status for combobox
$statusJOptList = array();
array_push($statusJOptList, $emptyJOpt);
foreach ($this->statusList as $key => $name) {
    $var = JHTML::_('select.option', $key, JText::_('DEAL_' . str_replace(' ', '_', $name)));
    array_push($statusJOptList, $var);
}
$publishedJOptList = array();
array_push($publishedJOptList, $emptyJOpt);
array_push($publishedJOptList, JHTML::_('select.option', 1, JText::_('PUBLISHED')));
array_push($publishedJOptList, JHTML::_('select.option', 0, JText::_('NOT_PUBLISHED')));
// create list merchant for combobox
$merchantJOptList = array();
开发者ID:marsa1985,项目名称:kazabiz,代码行数:31,代码来源:sales_person_deal_report.php


注:本文中的EnmasseHelper::getThemeFromSetting方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。