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


PHP comquick2cartHelper::loadQuicartAssetFiles方法代码示例

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


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

示例1: _getquick2cartstoreHTML

 function _getquick2cartstoreHTML()
 {
     jimport('joomla.filesystem.file');
     if (JFile::exists(JPATH_SITE . '/components/com_quick2cart/quick2cart.php')) {
         $lang = JFactory::getLanguage();
         $lang->load('com_quick2cart', JPATH_SITE);
         $path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'helper.php';
         if (!class_exists('comquick2cartHelper')) {
             //require_once $path;
             JLoader::register('comquick2cartHelper', $path);
             JLoader::load('comquick2cartHelper');
         }
         // Load assets
         comquick2cartHelper::loadQuicartAssetFiles();
         $product_path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'helpers' . DS . 'product.php';
         if (!class_exists('productHelper')) {
             //require_once $path;
             JLoader::register('productHelper', $product_path);
             JLoader::load('productHelper');
         }
         $params = $this->params;
         $no_of_stores = $params->get('no_of_stores', '2');
         //Get profile id
         $user = CFactory::getRequestUser();
         $model = new productHelper();
         $target_data = $model->getUserStores($user->_userid, $no_of_stores);
         if (!empty($target_data)) {
             $html = "\n\t\t\t\t<div class='techjoomla-bootstrap' >\n\t\t\t\t\t<div  class='row-fluid'>\n\t\t\t\t\t<ul class='thumbnails'  >\n\t\t\t\t\t";
             foreach ($target_data as $data) {
                 $path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'views' . DS . 'vendor' . DS . 'tmpl' . DS . 'thumbnail.php';
                 //@TODO  condition vise mod o/p
                 ob_start();
                 include $path;
                 $html .= ob_get_contents();
                 ob_end_clean();
             }
             $html .= "\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>";
             return $html;
         }
     }
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:41,代码来源:quick2cartstore.php

示例2: define

if (!defined('Q2C_WRAPPER_CLASS')) {
    if (JVERSION < '3.0') {
        define('Q2C_WRAPPER_CLASS', "q2c-wrapper techjoomla-bootstrap");
    } else {
        define('Q2C_WRAPPER_CLASS', "q2c-wrapper");
    }
}
//require_once JPATH_SITE . '/components/com_quick2cart/defines.php';
comquick2cartHelper::defineIcons('SITE');
$path = JPATH_SITE . '/components/com_quick2cart/helper.php';
if (!class_exists('comquick2cartHelper')) {
    JLoader::register('comquick2cartHelper', $path);
    JLoader::load('comquick2cartHelper');
}
// Load assets
comquick2cartHelper::loadQuicartAssetFiles();
$path = JPATH_SITE . '/components/com_quick2cart/helpers/storeHelper.php';
if (!class_exists('storeHelper')) {
    JLoader::register('storeHelper', $path);
    JLoader::load('storeHelper');
}
$path = JPATH_SITE . '/components/com_quick2cart/helpers/zoneHelper.php';
if (!class_exists('zoneHelper')) {
    JLoader::register('zoneHelper', $path);
    JLoader::load('zoneHelper');
}
$path = JPATH_SITE . '/components/com_quick2cart/helpers/taxHelper.php';
if (!class_exists('taxHelper')) {
    JLoader::register('taxHelper', $path);
    JLoader::load('taxHelper');
}
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:quick2cart.php

示例3: _getquick2cartproductHTML

    function _getquick2cartproductHTML()
    {
        jimport('joomla.filesystem.file');
        if (JFile::exists(JPATH_SITE . '/components/com_quick2cart/quick2cart.php')) {
            $lang = JFactory::getLanguage();
            $lang->load('com_quick2cart', JPATH_SITE);
            $path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'helper.php';
            if (!class_exists('comquick2cartHelper')) {
                JLoader::register('comquick2cartHelper', $path);
                JLoader::load('comquick2cartHelper');
            }
            // Load assets
            comquick2cartHelper::loadQuicartAssetFiles();
            $product_path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'helpers' . DS . 'product.php';
            if (!class_exists('productHelper')) {
                JLoader::register('productHelper', $product_path);
                JLoader::load('productHelper');
            }
            $params = $this->params;
            $no_of_prod = $params->get('no_of_prod', '2');
            // Get profile id
            $user = CFactory::getRequestUser();
            $model = new productHelper();
            $target_data = $model->getUserProducts($user->_userid, $no_of_prod);
            if (!empty($target_data)) {
                $random_container = 'q2c_pc_js_my_products';
                $html = "\n\t\t\t\t\t<div class='" . Q2C_WRAPPER_CLASS . "' >\n\t\t\t\t\t\t<div class='row-fluid'>\n\t\t\t\t\t\t\t<div id='q2c_pc_js_my_products'>";
                foreach ($target_data as $data) {
                    $path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'views' . DS . 'product' . DS . 'tmpl' . DS . 'product.php';
                    ob_start();
                    include $path;
                    $html .= ob_get_contents();
                    ob_end_clean();
                }
                $html .= "\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>";
                ob_start();
                ?>
					<?php 
                // Get pin width
                $pin_width = $params->get('pin_width');
                if (empty($pin_width)) {
                    $pin_width = 170;
                }
                // Get pin padding
                $pin_padding = $params->get('pin_padding');
                if (empty($pin_padding)) {
                    $pin_padding = 7;
                }
                // Calulate columnWidth (columnWidth = pin_width+pin_padding)
                $columnWidth = $pin_width + $pin_padding;
                ?>

					<style type="text/css">
						.q2c_pin_item_<?php 
                echo $random_container;
                ?>
 { width: <?php 
                echo $pin_width . 'px';
                ?>
 !important; }
					</style>

					<script type="text/javascript">
						var pin_container_<?php 
                echo $random_container;
                ?>
 = 'q2c_pc_js_my_products';

						techjoomla.jQuery(document).ready(function()
						{
							var container_<?php 
                echo $random_container;
                ?>
 = document.getElementById(pin_container_<?php 
                echo $random_container;
                ?>
);
							var msnry = new Masonry( container_<?php 
                echo $random_container;
                ?>
, {
								columnWidth: <?php 
                echo $columnWidth;
                ?>
,
								itemSelector: '.q2c_pin_item_<?php 
                echo $random_container;
                ?>
',
								gutter: <?php 
                echo $pin_padding;
                ?>
});

							setTimeout(function(){
								var container_<?php 
                echo $random_container;
                ?>
 = document.getElementById(pin_container_<?php 
                echo $random_container;
//.........这里部分代码省略.........
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:101,代码来源:quick2cartproduct.php


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