Spade
Mini Shell
index.html000064400000000054151166570760006556 0ustar00<html><body
bgcolor="#FFFFFF"></body></html>mod_phocacart_product_scroller.php000064400000013653151166570760013553
0ustar00<?php
/* @package Joomla
* @copyright Copyright (C) Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* @extension Phoca Extension
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die;// no direct access
if (!JComponentHelper::isEnabled('com_phocacart', true)) {
$app = JFactory::getApplication();
$app->enqueueMessage(JText::_('Phoca Cart Error'),
JText::_('Phoca Cart is not installed on your system'),
'error');
return;
}
JLoader::registerPrefix('Phocacart', JPATH_ADMINISTRATOR .
'/components/com_phocacart/libraries/phocacart');
$lang = JFactory::getLanguage();
//$lang->load('com_phocacart.sys');
$lang->load('com_phocacart');
$document = JFactory::getDocument();
$media = PhocacartRenderMedia::getInstance('main');
$media->loadBase();
$media->loadBootstrap();
$media->loadSpec();
$s = PhocacartRenderStyle::getStyles();
$p['item_ordering'] = $params->get(
'item_ordering', 1 );
$p['item_limit'] = $params->get( 'item_limit', 1
);
$p['hide_price'] = $params->get( 'hide_price', 0
);
$p['display_view_product_button'] = $params->get(
'display_view_product_button', 1 );
$p['catid_multiple'] = $params->get(
'catid_multiple', array() );
$p['featured_only'] = $params->get(
'featured_only', 0 );
//$p['stock_checking'] = $params->get(
'stock_checking', 0 );// in module display all products
$p['display_product_description'] = $params->get(
'display_product_description', 0 );
//$p['module_description'] = $params->get(
'module_description', '' );
$p['load_swiper_library'] = $params->get(
'load_swiper_library', 1 );
$p['transition_speed'] = $params->get(
'transition_speed', 1500 );
$p['slides_per_view'] = $params->get(
'slides_per_view', 5 );
$p['display_pagination'] = $params->get(
'display_pagination', 1 );
$p['display_navigation'] = $params->get(
'display_navigation', 1 );
$p['autoplay_delay'] = $params->get(
'autoplay_delay', 0 );
$p['navigation_top'] = $params->get(
'navigation_top', 0 );
$p['slides_per_view_576'] = $params->get(
'slides_per_view_576', 1 );
$p['slides_per_view_768'] = $params->get(
'slides_per_view_768', 2 );
$p['slides_per_view_992'] = $params->get(
'slides_per_view_992', 4 );
$pCom = JComponentHelper::getParams( 'com_phocacart' );
$pc['display_star_rating'] = $pCom->get(
'display_star_rating', 0 );
$rights = new PhocacartAccessRights();
$p['can_display_price'] = $rights->canDisplayPrice();
if ($p['hide_price'] == 1) {
$p['can_display_price'] = false;// override the component
rights
}
$moduleclass_sfx =
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8');
if ($p['load_swiper_library'] == 1) {
$media->loadSwiper();
}
$i = 'ph-mod-product-scroller';
$k = str_replace('-', '', $i);
$c = '.'.$i.'-swiper-container';
$bn = '.'.$i.'-swiper-button-next';
$bp = '.'.$i.'-swiper-button-prev';
$pg = '.'.$i.'-swiper-pagination';
$mt = 22 + ($p['display_pagination'] == 1 ? 15 : 0) +
(int)$p['navigation_top'];// Minus Margin Top for arrows (22 is
half of height of the arrow)
$sa = array();
//$sa[] = 'jQuery(document).ready(function(){';
$sa[] = ' ';
//$sa[] = 'jQuery(window).load(function(){';
$sa[] = 'jQuery(window).on(\'load\', function(){';
$sa[] = ' jQuery("'.$c.'").each(function( i )
{';
$sa[] = ' var swiper = new
Swiper(jQuery("'.$c.'")[i], {';
$sa[] = ' slidesPerView:
'.(int)$p['slides_per_view'].',';
if ($p['autoplay_delay'] > 0) {
$sa[] = ' autoplay: {';
$sa[] = ' delay:
'.(int)$p['autoplay_delay'].',';
$sa[] = ' },';
}
$sa[] = ' speed:
'.(int)$p['transition_speed'].',';
$sa[] = ' spaceBetween: 30,';
$sa[] = ' autoHeight: false,';
$sa[] = ' freeMode: true,';
if ((int)$p['display_navigation'] > 0) {
$sa[] = ' navigation: {';
$sa[] = ' nextEl:
jQuery(".swiper-button-next'.$bn.'")[i],';
$sa[] = ' prevEl:
jQuery(".swiper-button-prev'.$bp.'")[i],';
$sa[] = ' },';
}
if ($p['display_pagination'] == 1) {
$sa[] = ' pagination: {';
$sa[] = ' el: "'.$pg.'",';
$sa[] = ' clickable: true,';
$sa[] = ' },';
}
if ((int)$p['slides_per_view_576'] > 0 ||
(int)$p['slides_per_view_768'] > 0 ||
(int)$p['slides_per_view_992'] > 0) {
$comma = 0;
$sa[] = ' breakpoints: {';
if ((int)$p['slides_per_view_576'] > 0) {
$sa[] = ' 576: {';
$sa[] = ' slidesPerView:
'.(int)$p['slides_per_view_576'].',';
$sa[] = ' spaceBetween: 10';
$sa[] = ' }';
$comma = 1;
}
if ((int)$p['slides_per_view_768'] > 0) {
if ($comma) { $sa[] = ' ,';}
$sa[] = ' 768: {';
$sa[] = ' slidesPerView:
'.(int)$p['slides_per_view_768'].',';
$sa[] = ' spaceBetween: 15';
$sa[] = ' }';
$comma = 1;
}
if ((int)$p['slides_per_view_992'] > 0) {
if ($comma) { $sa[] = ' ,';}
$sa[] = ' 992: {';
$sa[] = ' slidesPerView:
'.(int)$p['slides_per_view_992'].',';
$sa[] = ' spaceBetween: 20';
$sa[] = ' }';
//$comma = 1;
}
$sa[] = ' }';
}
$sa[] = ' });';
$sa[] = ' });';// each
if ((int)$p['display_navigation'] > 0) {
$sa[] = ' var height'.$k.' =
jQuery("'.$c.'").height();';
$sa[] = ' var height'.$k.'h = (height'.$k.' /
2) + '.$mt.';';
$sa[] = '
jQuery("'.$bn.'").css("margin-top",
"-"+height'.$k.'h+"px");';
$sa[] = '
jQuery("'.$bp.'").css("margin-top",
"-"+height'.$k.'h+"px");';
}
$sa[] = '})';
$sa[] = ' ';
$document->addScriptDeclaration(implode("\n", $sa));
// TO DO - the following function can check publish, stock, price - this
can be added to the parameters
$products = PhocacartProduct::getProducts(0, $p['item_limit'],
$p['item_ordering'], 0, true, false, false, 0,
$p['catid_multiple'], $p['featured_only'], array(0,1),
'', '', true);
$t['pathitem'] =
PhocacartPath::getPath('productimage');
require(JModuleHelper::getLayoutPath('mod_phocacart_product_scroller',
$params->get('layout', 'default')));
?>
mod_phocacart_product_scroller.xml000064400000023105151166570760013555
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension type="module" client="site"
method="upgrade" version="3.9">
<name>mod_phocacart_product_scroller</name>
<author>Jan Pavelka (www.phoca.cz)</author>
<creationDate>04/12/2021</creationDate>
<authorEmail></authorEmail>
<authorUrl>https://www.phoca.cz</authorUrl>
<copyright>Jan Pavelka</copyright>
<license>GNU/GPL</license>
<version>3.5.8</version>
<description>MOD_PHOCACART_PRODUCT_SCROLLER_DESCRIPTION</description>
<projectName>PhocaCartProductScrollerModule</projectName>
<files>
<folder>tmpl</folder>
<filename
module="mod_phocacart_product_scroller">index.html</filename>
<filename
module="mod_phocacart_product_scroller">mod_phocacart_product_scroller.php</filename>
</files>
<languages>
<language
tag="en-GB">language/en-GB/en-GB.mod_phocacart_product_scroller.ini</language>
<language
tag="en-GB">language/en-GB/en-GB.mod_phocacart_product_scroller.sys.ini</language>
</languages>
<config>
<fields name="params">
<fieldset name="basic"
addfieldpath="/administrator/components/com_phocacart/models/fields">
<field name="catid_multiple"
type="phocacartcategory"
label="COM_PHOCACART_FIELD_CATEGORY_LABEL"
description="COM_PHOCACART_FIELD_CATEGORY_DESC"
class="inputbox" multiple="true"/>
<field name="item_ordering"
type="list" default="1"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_PRODUCT_ORDERING_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_PRODUCT_ORDERING_DESC">
<option
value="1">MOD_PHOCACART_PRODUCT_SCROLLER_ORDERING_ASC</option>
<option
value="2">MOD_PHOCACART_PRODUCT_SCROLLER_ORDERING_DESC</option>
<option
value="3">MOD_PHOCACART_PRODUCT_SCROLLER_TITLE_ASC</option>
<option
value="4">MOD_PHOCACART_PRODUCT_SCROLLER_TITLE_DESC</option>
<option
value="5">MOD_PHOCACART_PRODUCT_SCROLLER_PRICE_ASC</option>
<option
value="6">MOD_PHOCACART_PRODUCT_SCROLLER_PRICE_DESC</option>
<option
value="7">MOD_PHOCACART_PRODUCT_SCROLLER_DATE_ASC</option>
<option
value="8">MOD_PHOCACART_PRODUCT_SCROLLER_DATE_DESC</option>
<option
value="9">MOD_PHOCACART_PRODUCT_SCROLLER_RATING_ASC</option>
<option
value="10">MOD_PHOCACART_PRODUCT_SCROLLER_RATING_DESC</option>
<option
value="13">MOD_PHOCACART_PRODUCT_SCROLLER_BEST_SELLING_PRODUCTS_ASC</option>
<option
value="14">MOD_PHOCACART_PRODUCT_SCROLLER_BEST_SELLING_PRODUCTS_DESC</option>
<option
value="15">MOD_PHOCACART_PRODUCT_SCROLLER_MOST_VIEWED_PRODUCTS_ASC</option>
<option
value="16">MOD_PHOCACART_PRODUCT_SCROLLER_MOST_VIEWED_PRODUCTS_DESC</option>
<option
value="17">MOD_PHOCACART_PRODUCT_SCROLLER_ADDITIONAL_HITS_ASC</option>
<option
value="18">MOD_PHOCACART_PRODUCT_SCROLLER_ADDITIONAL_HITS_DESC</option>
<option
value="99">MOD_PHOCACART_PRODUCT_SCROLLER_RANDOM</option>
</field>
<field name="featured_only"
default="0" type="radio" class="btn-group
btn-group-yesno"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_FEATURED_ONLY_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_FEATURED_ONLY_DESC">
<option
value="0">MOD_PHOCACART_PRODUCT_SCROLLER_NO</option>
<option
value="1">MOD_PHOCACART_PRODUCT_SCROLLER_YES</option>
</field>
<field name="item_limit" default="1"
size="10" type="text"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_PRODUCT_LIMIT_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_PRODUCT_LIMIT_DESC"/>
<field name="hide_price" default="0"
type="radio" class="btn-group btn-group-yesno"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_HIDE_PRICES_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_HIDE_PRICES_DESC">
<option
value="0">MOD_PHOCACART_PRODUCT_SCROLLER_NO</option>
<option
value="1">MOD_PHOCACART_PRODUCT_SCROLLER_YES</option>
</field>
<field name="display_view_product_button"
type="radio" class="btn-group btn-group-yesno"
default="1"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_DISPLAY_VIEW_PRODUCT_BUTTON_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_DISPLAY_VIEW_PRODUCT_BUTTON_DESC">
<option
value="1">MOD_PHOCACART_PRODUCT_SCROLLER_YES</option>
<option
value="0">MOD_PHOCACART_PRODUCT_SCROLLER_NO</option>
<option
value="2">MOD_PHOCACART_PRODUCT_SCROLLER_YES_ICON_ONLY</option>
</field>
<field name="display_product_description"
default="0" type="radio" class="btn-group
btn-group-yesno"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_DISPLAY_PRODUCT_DESCRIPTION_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_DISPLAY_PRODUCT_DESCRIPTION_DESC">
<option
value="0">MOD_PHOCACART_PRODUCT_SCROLLER_NO</option>
<option
value="1">MOD_PHOCACART_PRODUCT_SCROLLER_YES</option>
</field>
<!--
<field name="module_description"
type="editor" buttons="true"
hide="pagebreak,readmore" class="inputbox"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_MODULE_DESCRIPTION_LABEL"
filter="safehtml"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_MODULE_DESCRIPTION_DESC"
/>-->
<field name="slides_per_view"
default="5" size="10" type="text"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_SLIDES_PER_VIEW_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_SLIDES_PER_VIEW_DESC"/>
<field name="slides_per_view_576"
default="1" size="10" type="text"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_SLIDES_PER_VIEW_576_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_SLIDES_PER_VIEW_576_DESC"/>
<field name="slides_per_view_768"
default="2" size="10" type="text"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_SLIDES_PER_VIEW_768_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_SLIDES_PER_VIEW_768_DESC"/>
<field name="slides_per_view_992"
default="4" size="10" type="text"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_SLIDES_PER_VIEW_992_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_SLIDES_PER_VIEW_992_DESC"/>
<field name="display_navigation"
type="list" default="1"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_DISPLAY_NAVIGATION_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_DISPLAY_NAVIGATION_DESC">
<option
value="1">MOD_PHOCACART_PRODUCT_SCROLLER_YES</option>
<option
value="0">MOD_PHOCACART_PRODUCT_SCROLLER_NO</option>
<option
value="2">MOD_PHOCACART_PRODUCT_SCROLLER_YES_BLACK_COLOR</option>
<option
value="3">MOD_PHOCACART_PRODUCT_SCROLLER_YES_WHITE_COLOR</option>
</field>
<field name="navigation_top"
default="0" size="10" type="text"
label="MOD_PHOCACART_PRODUCT_SCROLLER_NAVIGATION_INCREASE_TOP_POSITION_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_NAVIGATION_INCREASE_TOP_POSITION_DESC"/>
<field name="display_pagination"
type="list" default="1"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_DISPLAY_PAGINATION_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_DISPLAY_NAVIGATION_LABEL">
<option
value="1">MOD_PHOCACART_PRODUCT_SCROLLER_YES</option>
<option
value="0">MOD_PHOCACART_PRODUCT_SCROLLER_NO</option>
</field>
<field name="autoplay_delay"
default="0" size="10" type="text"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_AUTOPLAY_DELAY_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_AUTOPLAY_DELAY_DESC"/>
<field name="transition_speed"
default="1500" size="10" type="text"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_SLIDESHOW_TRANSITION_SPEED_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_SLIDESHOW_TRANSITION_SPEED_DESC"/>
<field name="load_swiper_library"
type="radio" class="btn-group btn-group-yesno"
default="1"
label="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_LOAD_SWIPER_LIBRARY_LABEL"
description="MOD_PHOCACART_PRODUCT_SCROLLER_FIELD_LOAD_SWIPER_LIBRARY_DESC">
<option
value="1">MOD_PHOCACART_PRODUCT_SCROLLER_YES</option>
<option
value="0">MOD_PHOCACART_PRODUCT_SCROLLER_NO</option>
</field>
</fieldset>
<fieldset name="advanced">
<field name="layout" type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"/>
<field name="moduleclass_sfx" type="textarea"
label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC"
rows="3"/>
<field name="cache" type="list"
label="COM_MODULES_FIELD_CACHING_LABEL"
description="COM_MODULES_FIELD_CACHING_DESC"
default="1" filter="integer">
<option value="1">JGLOBAL_USE_GLOBAL</option>
<option
value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
</field>
<field name="cache_time" type="number"
label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
description="COM_MODULES_FIELD_CACHE_TIME_DESC"
default="900" filter="integer"/>
<field name="cachemode" type="hidden"
default="static">
<option value="static"/>
</field>
</fieldset>
</fields>
</config>
<updateservers>
<server type="extension"
name="MOD_PHOCACART_PRODUCT_SCROLLER"
priority="1"><![CDATA[https://raw.githubusercontent.com/PhocaCz/PhocaCartProductScrollerModule/master/manifest.xml]]></server>
</updateservers>
</extension>
tmpl/default.php000064400000012557151166570760007705 0ustar00<?php
/* @package Joomla
* @copyright Copyright (C) Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* @extension Phoca Extension
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die;
$layoutV = new JLayoutFile('button_product_view', null,
array('component' => 'com_phocacart'));
$layoutP = new JLayoutFile('product_price', null,
array('component' => 'com_phocacart'));
$layoutR = new JLayoutFile('product_rating', null,
array('component' => 'com_phocacart'));
echo '<div
class="ph-product-scroller-module-box'.$moduleclass_sfx
.'">';
echo '<div class="swiper-container
ph-mod-product-scroller-swiper-container">
<div class="swiper-wrapper
ph-mod-product-scroller-swiper-wrapper">';
if (!empty($products)) {
foreach ($products as $k => $v) {
echo '<div class="swiper-slide
ph-mod-product-scroller-swiper-slide">';
/*if ($v->image != '') {
echo '<div class="ph-brand-name"><img
src="'.JURI::base(true).'/' . $v->image.'"
alt="'.htmlspecialchars($v->title).'"
/></div>';
} else {
echo '<div
class="ph-brand-name">'.$v->title.'</div>';
}*/
// START PRODUCT
echo '<div class="ph-item-box">';
echo '<div
class="'.$s['c']['thumbnail'].'
ph-thumbnail ph-thumbnail-c ph-item grid">';
echo '<div class="ph-item-content grid">';
$image = PhocacartImage::getThumbnailName($t['pathitem'],
$v->image, 'medium');
$link = JRoute::_(PhocacartRoute::getItemRoute($v->id, $v->catid,
$v->alias, $v->catalias));
echo '<a href="'.$link.'">';
if (isset($image->rel) && $image->rel != '') {
echo '<img
src="'.JURI::base(true).'/'.$image->rel.'"
alt="'.$v->title.'"
class="'.$s['c']['img-responsive'].'
ph-image"';
echo ' />';
}
echo '</a>';
// CAPTION, DESCRIPTION
//echo '<div
class="'.$s['c']['caption'].'">';
echo '<h3>'.$v->title.'</h3>';
// REVIEW - STAR RATING
if ((int)$pc['display_star_rating'] > 0) {
$d = array();
$d['s'] = $s;
$d['rating'] = isset($v->rating) &&
(int)$v->rating > 0 ? (int)$v->rating : 0;
$d['size'] = 16;
$d['display_star_rating'] =
(int)$pc['display_star_rating'];
echo $layoutR->render($d);
}
// Description box will be displayed even no description is set - to set
height and have all columns same height
echo '<div class="ph-item-desc">';
if ($v->description != '' &&
(int)$p['display_product_description'] > 0) {
echo $v->description;
}
echo '</div>';// end desc
// :L: PRICE
if ($p['can_display_price']) {
$price = new PhocacartPrice;
$d = array();
$d['s'] = $s;
$d['priceitems'] = $price->getPriceItems($v->price,
$v->taxid, $v->taxrate, $v->taxcalculationtype, $v->taxtitle,
$v->unit_amount, $v->unit_unit, 1, 1, $v->group_price);
$d['priceitemsorig']= array();
if ($v->price_original != '' && $v->price_original
> 0) {
$d['priceitemsorig'] =
$price->getPriceItems($v->price_original, $v->taxid,
$v->taxrate, $v->taxcalculationtype);
}
$d['class'] = 'ph-category-price-box';// we need the
same class as category or items view
$d['product_id'] = (int)$v->id;
$d['typeview'] = 'Module';
// Display discount price
// Move standard prices to new variable (product price -> product
discount)
$d['priceitemsdiscount'] = $d['priceitems'];
$d['discount'] =
PhocacartDiscountProduct::getProductDiscountPrice($v->id,
$d['priceitemsdiscount']);
// Display cart discount (global discount) in product views - under
specific conditions only
// Move product discount prices to new variable (product price ->
product discount -> product discount cart)
$d['priceitemsdiscountcart'] =
$d['priceitemsdiscount'];
$d['discountcart'] =
PhocacartDiscountCart::getCartDiscountPriceForProduct($v->id,
$v->catid, $d['priceitemsdiscountcart']);
$d['zero_price'] = 1;// Apply zero price if possible
echo $layoutP->render($d);
}
// VIEW PRODUCT BUTTON
echo '<div class="ph-category-add-to-cart-box">';
// :L: LINK TO PRODUCT VIEW
if ((int)$p['display_view_product_button'] > 0) {
$d = array();
$d['s'] = $s;
$d['link'] = $link;
$d['display_view_product_button'] =
$p['display_view_product_button'];
echo $layoutV->render($d);
}
echo '</div>';// end add to cart box
//echo '<div class="ph-cb"></div>';
//echo '</div>';// end caption
echo '</div>';// end content
echo '</div>';// end thumbnail
echo '</div>';// end ph-item-box
// END PRODUCT
echo '</div>';
}
//echo '<div class="ph-cb"></div>';
}
echo '</div>';// end wrapper
// ARROWS
//echo '<div class="swiper-button-next
ph-mod-product-scroller-swiper-button-next"></div>';
//echo '<div class="swiper-button-prev
ph-mod-product-scroller-swiper-button-prev"></div>';
// PAGINATION
if ($p['display_pagination'] == 1) {
echo '<div class="swiper-pagination
ph-mod-product-scroller-swiper-pagination"></div>';
}
echo '</div>';// end container
// ARROWS MOVED OUTSIDE CONTAINER
if ((int)$p['display_navigation'] > 0) {
$buttonClass = '';
if ($p['display_navigation'] == 2) {
$buttonClass = ' swiper-button-black';
} else if ($p['display_navigation'] == 3) {
$buttonClass = ' swiper-button-white';
}
echo '<div
class="swiper-button-next'.$buttonClass.'
ph-mod-product-scroller-swiper-button-next"></div>';
echo '<div
class="swiper-button-prev'.$buttonClass.'
ph-mod-product-scroller-swiper-button-prev"></div>';
echo '<div class="clear-fix"></div>';
}
echo '</div>';// end module box
?>
tmpl/index.html000064400000000054151166570770007533
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>