Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
PK0*�[�#o,,
index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK0*�[���Cccmod_phocacart_brands.phpnu�[���<?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();
$p = array();
$p['brands_ordering'] = $params->get(
'brands_ordering', 1 );
$p['slides_per_view'] = $params->get(
'slides_per_view', 5 );
$p['transition_speed'] = $params->get(
'transition_speed', 1500 );
$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['display_link'] = $params->get( 'display_link',
1 );
$p['load_swiper_library'] = $params->get(
'load_swiper_library', 1 );
$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 );
$moduleclass_sfx =
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8');
$media = PhocacartRenderMedia::getInstance('main');
$media->loadBase();
$media->loadBootstrap();
if ($p['load_swiper_library'] == 1) {
$media->loadSwiper();
}
$media->loadSpec();
$s = PhocacartRenderStyle::getStyles();
$i = 'ph-mod-brands';
$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 ($p['display_navigation'] == 1) {
$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 ($p['display_navigation'] == 1) {
$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));
/*
$display_categories = $params->get('display_categories',
'');
$hide_categories = $params->get('hide_categories',
'');
if (!empty($display_categories)) {
$display_categories = implode(',', $display_categories);
}
if (!empty($hide_categories)) {
$hide_categories = implode(',', $hide_categories);
}
*/
$brands =
PhocacartManufacturer::getAllManufacturers($p['brands_ordering']);
require(JModuleHelper::getLayoutPath('mod_phocacart_brands',
$params->get('layout', 'default')));
?>
PK0*�[֢e���mod_phocacart_brands.xmlnu�[���<?xml
version="1.0" encoding="utf-8"?>
<extension type="module" client="site"
method="upgrade" version="3.9">
<name>mod_phocacart_brands</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_BRANDS_DESCRIPTION</description>
<projectName>PhocaCartBrandsModule</projectName>
<files>
<folder>tmpl</folder>
<filename
module="mod_phocacart_brands">index.html</filename>
<filename
module="mod_phocacart_brands">mod_phocacart_brands.php</filename>
</files>
<languages>
<language
tag="en-GB">language/en-GB/en-GB.mod_phocacart_brands.ini</language>
<language
tag="en-GB">language/en-GB/en-GB.mod_phocacart_brands.sys.ini</language>
</languages>
<config>
<fields name="params">
<fieldset name="basic"
addfieldpath="/administrator/components/com_phocacart/models/fields">
<field name="brands_ordering" type="list"
default="1"
label="MOD_PHOCACART_BRANDS_FIELD_BRANDS_ORDERING_LABEL"
description="MOD_PHOCACART_BRANDS_FIELD_BRANDS_ORDERING_DESC">
<option
value="1">MOD_PHOCACART_BRANDS_ORDERING_ASC</option>
<option
value="2">MOD_PHOCACART_BRANDS_ORDERING_DESC</option>
<option
value="3">MOD_PHOCACART_BRANDS_TITLE_ASC</option>
<option
value="4">MOD_PHOCACART_BRANDS_TITLE_DESC</option>
<option
value="5">MOD_PHOCACART_BRANDS_DATE_ASC</option>
<option
value="6">MOD_PHOCACART_BRANDS_DATE_DESC</option>
</field>
<field name="slides_per_view" default="5"
size="10" type="text"
label="MOD_PHOCACART_BRANDS_FIELD_SLIDES_PER_VIEW_LABEL"
description="MOD_PHOCACART_BRANDS_FIELD_SLIDES_PER_VIEW_DESC"/>
<field name="slides_per_view_576" default="1"
size="10" type="text"
label="MOD_PHOCACART_BRANDS_FIELD_SLIDES_PER_VIEW_576_LABEL"
description="MOD_PHOCACART_BRANDS_FIELD_SLIDES_PER_VIEW_576_DESC"/>
<field name="slides_per_view_768" default="2"
size="10" type="text"
label="MOD_PHOCACART_BRANDS_FIELD_SLIDES_PER_VIEW_768_LABEL"
description="MOD_PHOCACART_BRANDS_FIELD_SLIDES_PER_VIEW_768_DESC"/>
<field name="slides_per_view_992" default="4"
size="10" type="text"
label="MOD_PHOCACART_BRANDS_FIELD_SLIDES_PER_VIEW_992_LABEL"
description="MOD_PHOCACART_BRANDS_FIELD_SLIDES_PER_VIEW_992_DESC"/>
<field name="display_navigation" type="list"
default="1"
label="MOD_PHOCACART_BRANDS_FIELD_DISPLAY_NAVIGATION_LABEL"
description="MOD_PHOCACART_BRANDS_FIELD_DISPLAY_NAVIGATION_DESC">
<option value="1">MOD_PHOCACART_BRANDS_YES</option>
<option value="0">MOD_PHOCACART_BRANDS_NO</option>
</field>
<field name="navigation_top" default="0"
size="10" type="text"
label="MOD_PHOCACART_BRANDS_NAVIGATION_INCREASE_TOP_POSITION_LABEL"
description="MOD_PHOCACART_BRANDS_NAVIGATION_INCREASE_TOP_POSITION_DESC"/>
<field name="display_pagination" type="list"
default="1"
label="MOD_PHOCACART_BRANDS_FIELD_DISPLAY_PAGINATION_LABEL"
description="MOD_PHOCACART_BRANDS_FIELD_DISPLAY_NAVIGATION_LABEL">
<option value="1">MOD_PHOCACART_BRANDS_YES</option>
<option value="0">MOD_PHOCACART_BRANDS_NO</option>
</field>
<field name="display_link" type="list"
default="1"
label="MOD_PHOCACART_BRANDS_FIELD_DISPLAY_LINK_LABEL"
description="MOD_PHOCACART_BRANDS_FIELD_DISPLAY_LINK_DESC">
<option value="1">MOD_PHOCACART_BRANDS_YES</option>
<option value="0">MOD_PHOCACART_BRANDS_NO</option>
</field>
<field name="autoplay_delay" default="0"
size="10" type="text"
label="MOD_PHOCACART_BRANDS_FIELD_AUTOPLAY_DELAY_LABEL"
description="MOD_PHOCACART_BRANDS_FIELD_AUTOPLAY_DELAY_DESC"/>
<field name="transition_speed" default="1500"
size="10" type="text"
label="MOD_PHOCACART_BRANDS_FIELD_SLIDESHOW_TRANSITION_SPEED_LABEL"
description="MOD_PHOCACART_BRANDS_FIELD_SLIDESHOW_TRANSITION_SPEED_DESC"/>
<field name="load_swiper_library" type="radio"
class="btn-group btn-group-yesno" default="1"
label="MOD_PHOCACART_BRANDS_FIELD_LOAD_SWIPER_LIBRARY_LABEL"
description="MOD_PHOCACART_BRANDS_FIELD_LOAD_SWIPER_LIBRARY_DESC">
<option value="1">MOD_PHOCACART_BRANDS_YES</option>
<option value="0">MOD_PHOCACART_BRANDS_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_BRANDS"
priority="1"><![CDATA[https://raw.githubusercontent.com/PhocaCz/PhocaCartBrandsModule/master/manifest.xml]]></server>
</updateservers>
</extension>
PK0*�[���.��tmpl/default.phpnu�[���<?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;
echo '<div class="ph-brands-module-box'.$moduleclass_sfx
.'">';
echo '<div class="swiper-container
ph-mod-brands-swiper-container">
<div class="swiper-wrapper
ph-mod-brands-swiper-wrapper">';
$linkI = PhocacartRoute::getItemsRoute();
$pC = PhocacartUtils::getComponentParameters();
$manufacturer_alias = $pC->get( 'manufacturer_alias',
'manufacturer');
$manufacturer_alias = $manufacturer_alias != '' ?
trim(PhocacartText::filterValue($manufacturer_alias,
'alphanumeric')) : 'manufacturer';
if (!empty($brands)) {
foreach ($brands as $k => $v) {
$link = $linkI .
PhocacartRoute::getItemsRouteSuffix('manufacturer', $v->id,
$v->alias);
echo '<div class="swiper-slide
ph-mod-brands-swiper-slide">';
if ($v->image != '') {
echo '<div class="ph-brand-name">';
echo $p['display_link'] == 1 ? '<a
href="'.$link.'">' : '';
echo '<img src="'.JURI::base(true).'/' .
$v->image.'"
alt="'.htmlspecialchars($v->title).'" />';
echo $p['display_link'] == 1 ? '</a>' :
'';
echo '</div>';
} else {
echo '<div class="ph-brand-name">';
echo $p['display_link'] == 1 ? '<a
href="'.$link.'">' : '';
echo $v->title;
echo $p['display_link'] == 1 ? '</a>' :
'';
echo '</div>';
}
echo '</div>';
}
//echo '<div class="ph-cb"></div>';
}
echo '</div>';// end wrapper
// ARROWS
//echo '<div class="swiper-button-next
ph-mod-brands-swiper-button-next"></div>';
//echo '<div class="swiper-button-prev
ph-mod-brands-swiper-button-prev"></div>';
// PAGINATION
if ($p['display_pagination'] == 1) {
echo '<div class="swiper-pagination
ph-mod-brands-swiper-pagination"></div>';
}
echo '</div>';// end container
// ARROWS MOVED OUTSIDE CONTAINER
if ($p['display_navigation'] == 1) {
echo '<div class="swiper-button-next
ph-mod-brands-swiper-button-next"></div>';
echo '<div class="swiper-button-prev
ph-mod-brands-swiper-button-prev"></div>';
echo '<div class="clear-fix"></div>';
}
echo '</div>';// end module box
?>
PK0*�[�#o,,tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK0*�[�#o,,
index.htmlnu�[���PK0*�[���Cccfmod_phocacart_brands.phpnu�[���PK0*�[֢e���mod_phocacart_brands.xmlnu�[���PK0*�[���.��&*tmpl/default.phpnu�[���PK0*�[�#o,,^3tmpl/index.htmlnu�[���PK��3