本文整理汇总了PHP中JHTML::Stylesheet方法的典型用法代码示例。如果您正苦于以下问题:PHP JHTML::Stylesheet方法的具体用法?PHP JHTML::Stylesheet怎么用?PHP JHTML::Stylesheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JHTML
的用法示例。
在下文中一共展示了JHTML::Stylesheet方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
public function display($tpl = null)
{
$app = JFactory::getApplication();
$Itemid = JRequest::getInt('Itemid');
$user = JFactory::getUser();
$session = JFactory::getSession();
$auth = $session->get('auth');
if ($user->id || isset($auth['users_info_id']) && $auth['users_info_id'] > 0) {
$app->Redirect('index.php?option=com_redshop&view=account&Itemid=' . $Itemid);
}
$params = $app->getParams('com_redshop');
JHTML::Script('joomla.javascript.js', 'includes/js/', false);
JHTML::Script('jquery-1.4.2.min.js', 'components/com_redshop/assets/js/', false);
JHTML::Script('jquery.validate.js', 'components/com_redshop/assets/js/', false);
JHTML::Script('common.js', 'components/com_redshop/assets/js/', false);
JHTML::Script('jquery.metadata.js', 'components/com_redshop/assets/js/', false);
JHTML::Script('registration.js', 'components/com_redshop/assets/js/', false);
JHTML::Stylesheet('validation.css', 'components/com_redshop/assets/css/');
$field = new extraField();
// Field_section 7 : Customer Registration
$lists['extra_field_user'] = $field->list_all_field(7);
// Field_section 8 : Company Address
$lists['extra_field_company'] = $field->list_all_field(8);
$this->lists = $lists;
$this->params = $params;
parent::display($tpl);
}
示例2: displayredManufacturer
/**
* Display Product Data
*/
function displayredManufacturer($limit = 0)
{
$uri = JUri::getInstance();
$url = $uri->root();
$database = JFactory::getDbo();
$Itemid = JRequest::getInt('Itemid', 0);
$extra_data = new producthelper();
$document = JFactory::getDocument();
JHTML::Script('jquery-1.js', 'modules/mod_redmanufacturer/js/', false);
JHTML::Script('jquery.js', 'modules/mod_redmanufacturer/js/', false);
JHTML::Stylesheet('jquery.css', 'modules/mod_redmanufacturer/css/');
echo $this->params->get('pretext', "");
$qlimit = "";
if ($limit > 0) {
$qlimit = "LIMIT {$limit}";
}
$query = "SELECT m.media_name,ma.manufacturer_name,ma.manufacturer_id FROM #__redshop_manufacturer as ma " . "LEFT JOIN #__redshop_media AS m ON m.`section_id`=ma.manufacturer_id " . "WHERE m.media_section='manufacturer' " . "AND m.published=1 " . "AND ma.published=1 " . $qlimit;
$database->setQuery($query);
$rows = $database->loadObjectList();
?>
<script type="text/javascript">
var dom1 = {};
dom1.query = jQuery.noConflict(true);
var mycarousel_itemList = [
<?php
for ($i = 0; $i < count($rows); $i++) {
$thumbUrl = RedShopHelperImages::getImagePath($rows[$i]->media_name, '', 'thumb', 'manufacturer', $this->ImageWidth, $this->ImageHeight, USE_IMAGE_SIZE_SWAPPING);
?>
{url: "<?php
echo $thumbUrl;
?>
", title: '<?php
echo $rows[$i]->manufacturer_name;
?>
', ahref: '<a href="<?php
echo JRoute::_('index.php?option=com_redshop&view=manufacturers&layout=' . $this->PageLink . '&mid=' . $rows[$i]->manufacturer_id . '&Itemid=' . $Itemid);
?>
" title="<?php
echo $rows[$i]->manufacturer_name;
?>
">'}
<?php
if ($i < count($rows) - 1) {
?>
,
<?php
}
}
?>
];
function mycarousel_itemVisibleInCallback(carousel, item, i, state, evt) {
// The index() method calculates the index from a
// given index who is out of the actual item range.
var idx = carousel.index(i, mycarousel_itemList.length);
carousel.add(i, mycarousel_getItemHTML(mycarousel_itemList[idx - 1]));
}
;
function mycarousel_itemVisibleOutCallback(carousel, item, i, state, evt) {
carousel.remove(i);
}
;
/**
* Item html creation helper.
*/
function mycarousel_getItemHTML(item) {
var displayItem = '';
<?php
if ($this->show_image == 1) {
?>
displayItem = displayItem + item.ahref + '<img src="' + item.url + '" width="<?php
echo $this->ImageWidth;
?>
" height="<?php
echo $this->ImageHeight;
?>
" alt="' + item.title + '" /></a><br/>';
<?php
}
if ($this->show_link_on_product_name == 1) {
?>
displayItem = displayItem + item.ahref;
<?php
}
if ($this->show_product_name == 1) {
?>
displayItem = displayItem + '<div align="center">' + item.title + '</div>';
<?php
}
if ($this->show_link_on_product_name == 1) {
?>
displayItem = displayItem + '</a>';
//.........这里部分代码省略.........
示例3: redhelper
require_once JPATH_COMPONENT . '/helpers/product.php';
require_once JPATH_COMPONENT . '/helpers/currency.php';
// Helper object
$helper = new redhelper();
// Include redCRM if required
$helper->isredCRM();
$print = JRequest::getCmd('print');
// Adding Redshop CSS
$doc = JFactory::getDocument();
// Use diffrent CSS for print layout
if (!$print) {
JHTML::Stylesheet('redshop.css', 'components/com_redshop/assets/css/');
} else {
JHTML::Stylesheet('print.css', 'components/com_redshop/assets/css/');
}
JHTML::Stylesheet('style.css', 'components/com_redshop/assets/css/');
$Itemid = $helper->getCheckoutItemid();
$Itemid = JRequest::getInt('Itemid', $Itemid);
$Itemid = $helper->getCartItemid();
// Include redshop js file.
require_once JPATH_COMPONENT . '/helpers/redshop.js.php';
$controller = JRequest::getCmd('view', 'category');
$task = JRequest::getCmd('task');
$format = JRequest::getWord('format', '');
$layout = JRequest::getWord('layout', '');
$params = $app->getParams('com_redshop');
// Add product in cart from db
$helper->dbtocart();
$categoryid = JRequest::getInt('cid', $params->get('categoryid'));
$productid = JRequest::getInt('pid', 0);
$sgportal = $helper->getShopperGroupPortal();
示例4: redCategoryMenu
$jscook_tree = "ctThemeXP1";
}
if ($jscookTree_style == "ThemeNavy") {
$jscook_tree = "ctThemeNavy";
}
JHTML::Script('JSCookTree.js', $js_src . '/', false);
JHTML::Script('theme.js', $js_src . '/' . $jscookTree_style . '/', false);
JHTML::Stylesheet('theme.css', $js_src . '/' . $jscookTree_style . '/');
$_jscook = new redCategoryMenu();
} else {
//JHTML::Script('JSCookMenu.js', $urlpath.'includes/js/',false);
//JHTML::Script('theme.js', $urlpath.'includes/js/'.$jscookMenu_style.'/',false);
//JHTML::Stylesheet('theme.css', $urlpath.'includes/js/'.$jscookMenu_style.'/');
JHTML::Script('JSCookMenu.js', $js_src . '/JSCook/', false);
JHTML::Script('theme.js', $js_src . '/JSCook/', false);
JHTML::Stylesheet('theme.css', $js_src . '/JSCook/');
$_jscook = new redCategoryMenu();
}
// create a unique tree identifier, in case multiple trees are used
// (max one per module)
$varname = "JSCook_" . uniqid($jscook_type . "_");
$menu_htmlcode = '<div align="left" class="mainlevel" id="div_' . $varname . '"></div>
<script type="text/javascript">
//<!--
function ' . $varname . '_addEvent( obj, type, fn )
{
if (obj.addEventListener) {
obj.addEventListener( type, fn, false );
} else if (obj.attachEvent) {
obj["e"+type+fn] = fn;
obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
示例5: producthelper
JHTML::_('behavior.modal');
$uri = JURI::getInstance();
$url = $uri->root();
$Itemid = JRequest::getInt('Itemid');
$user = JFactory::getUser();
$option = 'com_redshop';
$document = JFactory::getDocument();
$document->addStyleSheet('modules/mod_redshop_products/css/products.css');
// Include redshop js file.
require_once JPATH_SITE . '/components/com_redshop/helpers/redshop.js.php';
JLoader::import('images', JPATH_ADMINISTRATOR . '/components/com_redshop/helpers');
// Lightbox Javascript
JHTML::Script('attribute.js', 'components/com_redshop/assets/js/', false);
JHTML::Script('common.js', 'components/com_redshop/assets/js/', false);
JHTML::Script('redBOX.js', 'components/com_redshop/assets/js/', false);
JHTML::Stylesheet('fetchscript.css', 'components/com_redshop/assets/css/');
$producthelper = new producthelper();
$redhelper = new redhelper();
$redTemplate = new Redtemplate();
$extraField = new extraField();
$stockroomhelper = new rsstockroomhelper();
$config = new Redconfiguration();
$module_id = "mod_" . $module->id;
echo "<div id='" . $module_id . "' class='mod_redshop_products_wrapper'>";
for ($i = 0; $i < count($rows); $i++) {
$row = $rows[$i];
if ($show_stockroom_status == 1) {
$isStockExists = $stockroomhelper->isStockExists($row->product_id);
if (!$isStockExists) {
$isPreorderStockExists = $stockroomhelper->isPreorderStockExists($row->product_id);
}