Файловый менеджер - Редактировать - /home/lmsyaran/public_html/pusher/mod_phocacart_currency.zip
Назад
PK �E�[�#o, , index.htmlnu �[��� <html><body bgcolor="#FFFFFF"></body></html>PK �E�[���� � mod_phocacart_currency.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'); /* if (! class_exists('PhocacartLoader')) { require_once( JPATH_ADMINISTRATOR.'/components/com_phocacart/libraries/loader.php'); } phocacartimport('phocacart.utils.settings'); phocacartimport('phocacart.utils.utils'); phocacartimport('phocacart.path.path'); phocacartimport('phocacart.path.route'); phocacartimport('phocacart.currency.currency'); phocacartimport('phocacart.price.price');*/ $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8'); //$document = JFactory::getDocument(); // = JComponentHelper::getParams('com_phocacart') ; $lang = JFactory::getLanguage(); //$lang->load('com_phocacart.sys'); $lang->load('com_phocacart'); $media = PhocacartRenderMedia::getInstance('main'); $media->loadBase(); $media->loadBootstrap(); $media->loadChosen(); $media->loadSpec(); $s = PhocacartRenderStyle::getStyles(); $uri = \Joomla\CMS\Uri\Uri::getInstance(); $action = $uri->toString(); $actionBase64 = base64_encode($action); $linkCheckout = JRoute::_(PhocacartRoute::getCheckoutRoute()); //$currency = new PhocacartCurrency(); //$selectBox = $currency->getCurrenciesSelectBox(); $selectBox = PhocacartCurrency::getCurrenciesSelectBox(); $currArray = PhocacartCurrency::getCurrenciesArray(); //$selectBox = PhocacartCurrency::getCurrenciesArray(); //$selectBox = PhocacartCurrency::getCurrenciesListBox(); require(JModuleHelper::getLayoutPath('mod_phocacart_currency', $params->get('layout', 'default'))); ?> PK �E�[�th�M M mod_phocacart_currency.xmlnu �[��� <?xml version="1.0" encoding="utf-8"?> <extension type="module" client="site" method="upgrade" version="3.9"> <name>mod_phocacart_currency</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_CURRENCY_DESCRIPTION</description> <projectName>PhocaCartCurrencyModule</projectName> <files> <folder>tmpl</folder> <filename module="mod_phocacart_currency">index.html</filename> <filename module="mod_phocacart_currency">mod_phocacart_currency.php</filename> </files> <languages> <language tag="en-GB">language/en-GB/en-GB.mod_phocacart_currency.ini</language> <language tag="en-GB">language/en-GB/en-GB.mod_phocacart_currency.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> </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_CURRENCY" priority="1"><![CDATA[https://raw.githubusercontent.com/PhocaCz/PhocaCartCurrencyModule/master/manifest.xml]]></server> </updateservers> </extension> PK �E�[�_��� � 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; // Alternative View in e.g. position 22 /* //$item = '<span class="'.$s['i']['globe'].'"></span>';// globe icon $item = JText::_('COM_PHOCACART_CURRENCY');// currency string $item = ''; $count = count($currArray);// count of currencies $currList = array(); $currList[] = '<ul class="ph-currency-list-box">'; if (!empty($currArray)) { foreach($currArray as $k => $v) { $image = ''; if (isset($v->image) && $v->image != '') { $image = '<img class="ph-currency-image-list" src="'.JURI::base(true). '/' . $v->image.'" alt="'.$v->code.'" />'; } if ($v->active == 1) { //$item .= ' <span class="ph-currency-list-suffix">('.$image .' ' . $v->code.')</span>'; $item .= ' <span class="ph-currency-list-suffix">'.$image .' ' . $v->code.'</span>'; } $currList[] = '<li class="ph-currency-list">'.$image . ' <a href="javascript:void(0);" onclick="jQuery(\'<input>\').attr({type: \'hidden\', id: \'id\', name: \'id\', value: \''.(int)$v->id.'\'}).appendTo(\'#phItemCurrencyBoxForm\');jQuery(\'#phItemCurrencyBoxForm\').submit()">'. $v->text.'</a></li>'; } } $curList[] = '</ul>'; ?> <div class="ph-cart-module-box <?php echo $moduleclass_sfx ;?>"> <div class="dropdown parent"> <div class="dropdown-toggle toplevel ph-cart-dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="500" data-close-others="true"><?php echo $item ?> <sup class="ph-cart-count-sup phItemCurrencyBoxCount" id="phItemCurrencyBoxCount"><?php echo $count ?></sup></div> <div class="dropdown-menu child ph-cart-dropdown"> <div id="phItemCurrencyBox" class="ph-currency-module-box phItemCurrencyBox"><?php echo implode('', $currList); ?></div> </div> </div> <?php echo '<form action="'.$linkCheckout.'" method="post" id="phItemCurrencyBoxForm">'; echo '<input type="hidden" name="task" value="checkout.currency">'; echo '<input type="hidden" name="tmpl" value="component" />'; echo '<input type="hidden" name="option" value="com_phocacart" />'; echo '<input type="hidden" name="return" value="'.$actionBase64.'" />'; echo Joomla\CMS\HTML\HTMLHelper::_('form.token'); echo '</form>'; ?> </div> <?php */ echo '<div class="ph-currency-select-box'.$moduleclass_sfx .'">'; echo '<form action="'.$linkCheckout.'" method="post" id="phItemCurrencyBoxForm">'; echo $selectBox; echo '<input type="hidden" name="task" value="checkout.currency">'; echo '<input type="hidden" name="tmpl" value="component" />'; echo '<input type="hidden" name="option" value="com_phocacart" />'; echo '<input type="hidden" name="return" value="'.$actionBase64.'" />'; echo '<div class="'.$s['c']['pull-right'].' ph-input-select-currencies-button">'; echo '<button class="btn btn-primary btn-sm ph-btn"><span class="'.$s['i']['refresh'].'"></span> '.JText::_('COM_PHOCACART_CHANGE_CURRENCY').'</button>'; echo '</div>'; echo Joomla\CMS\HTML\HTMLHelper::_('form.token'); echo '</form>'; echo '</div>'; echo '<div class="ph-cb"></div>'; ?> PK �E�[�#o, , tmpl/index.htmlnu �[��� <html><body bgcolor="#FFFFFF"></body></html>PK �E�[�#o, , index.htmlnu �[��� PK �E�[���� � f mod_phocacart_currency.phpnu �[��� PK �E�[�th�M M 0 mod_phocacart_currency.xmlnu �[��� PK �E�[�_��� � � tmpl/default.phpnu �[��� PK �E�[�#o, , � tmpl/index.htmlnu �[��� PK � G
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.26 |
proxy
|
phpinfo
|
Настройка