first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1 @@
blockgrouptop

View File

@@ -0,0 +1,424 @@
<?php
/**
* 2007-2015 Leotheme
*
* NOTICE OF LICENSE
*
* Leo Prestashop Blockleoblogs for Prestashop 1.6.x
*
* DISCLAIMER
*
* @author leotheme <leotheme@gmail.com>
* @copyright 2007-2015 Leotheme
* @license http://leotheme.com - prestashop template provider
*/
if (!defined('_PS_VERSION_')) {
# module validation
exit;
}
use PrestaShop\PrestaShop\Adapter\ObjectPresenter;
use PrestaShop\PrestaShop\Core\Module\WidgetInterface;
class Blockgrouptop extends Module implements WidgetInterface
{
public function __construct()
{
$this->name = 'blockgrouptop';
$this->tab = 'front_office_features';
$this->version = '1.3.4';
$this->author = 'LeoTheme';
$this->need_instance = 0;
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('Block Group Top');
$this->description = $this->l('Adds a block allowing customers to select a language for your stores content.');
$this->ps_versions_compliancy = array('min' => '1.7', 'max' => _PS_VERSION_);
}
public function install()
{
if (!parent::install() || !$this->registerLeoHook() || !Configuration::updateValue('LEO_BLOCKGROUPTOP_USEINFO', 0)) {
return false;
}
$this->_installDataSample();
Configuration::updateValue('AP_INSTALLED_BLOCKGROUPTOP', '1');
return true;
}
public function uninstall()
{
return Configuration::deleteByName('LEO_BLOCKGROUPTOP_USEINFO') &&
parent::uninstall() && $this->unregisterLeoHook();
}
private function _installDataSample()
{
if (!file_exists(_PS_MODULE_DIR_.'appagebuilder/libs/LeoDataSample.php')) {
return false;
}
require_once(_PS_MODULE_DIR_.'appagebuilder/libs/LeoDataSample.php');
$sample = new Datasample(1);
return $sample->processImport($this->name);
}
public function getWidgetVariables($hookName, array $params)
{
# module validation
// unset($params);
$languages = Language::getLanguages(true, $this->context->shop->id);
foreach ($languages as &$lang) {
$lang['name_simple'] = $this->getNameSimple($lang['name']);
}
if (!count($languages)) {
return false;
}
// $link = new Link();
// $list_variable = array();
// if ((int)Configuration::get('PS_REWRITING_SETTINGS')) {
// $default_rewrite = array();
// if (Dispatcher::getInstance()->getController() == 'product' && ($id_product = (int)Tools::getValue('id_product'))) {
// $rewrite_infos = Product::getUrlRewriteInformations((int)$id_product);
// foreach ($rewrite_infos as $infos) {
// $default_rewrite[$infos['id_lang']] = $link->getProductLink((int)$id_product, $infos['link_rewrite'], $infos['category_rewrite'], $infos['ean13'], (int)$infos['id_lang']);
// }
// }
// if (Dispatcher::getInstance()->getController() == 'category' && ($id_category = (int)Tools::getValue('id_category'))) {
// $rewrite_infos = Category::getUrlRewriteInformations((int)$id_category);
// foreach ($rewrite_infos as $infos) {
// $default_rewrite[$infos['id_lang']] = $link->getCategoryLink((int)$id_category, $infos['link_rewrite'], $infos['id_lang']);
// }
// }
// if (Dispatcher::getInstance()->getController() == 'cms' && (($id_cms = (int)Tools::getValue('id_cms')) || ($id_cms_category = (int)Tools::getValue('id_cms_category')))) {
// $rewrite_infos = (isset($id_cms) && !isset($id_cms_category)) ? CMS::getUrlRewriteInformations($id_cms) : CMSCategory::getUrlRewriteInformations($id_cms_category);
// foreach ($rewrite_infos as $infos) {
// $arr_link = (isset($id_cms) && !isset($id_cms_category)) ?
// $link->getCMSLink($id_cms, $infos['link_rewrite'], null, $infos['id_lang']) :
// $link->getCMSCategoryLink($id_cms_category, $infos['link_rewrite'], $infos['id_lang']);
// $default_rewrite[$infos['id_lang']] = $arr_link;
// }
// }
// $list_variable['lang_rewrite_urls'] = $default_rewrite;
// }
// FIX error http://screencast.com/t/yFeNH4BnBWkL
if (Configuration::get('PS_RESTRICT_DELIVERED_COUNTRIES')) {
$countries = Carrier::getDeliveredCountries($this->context->language->id, true, true);
} else {
$countries = Country::getCountries($this->context->language->id, true);
}
$current_currency = null;
$serializer = new ObjectPresenter;
$currencies = array_map(
function ($currency) use ($serializer, &$current_currency) {
$currencyArray = $serializer->present($currency);
// serializer doesn't see 'sign' because it is not a regular
// ObjectModel field.
$currencyArray['sign'] = $currency->sign;
$url = $this->context->link->getLanguageLink($this->context->language->id);
$extraParams = array(
'SubmitCurrency' => 1,
'id_currency' => $currency->id
);
$partialQueryString = http_build_query($extraParams);
$separator = empty(parse_url($url)['query']) ? '?' : '&';
$url .= $separator . $partialQueryString;
$currencyArray['url'] = $url;
if ($currency->id === $this->context->currency->id) {
$currencyArray['current'] = true;
$current_currency = $currencyArray;
} else {
$currencyArray['current'] = false;
}
return $currencyArray;
},
Currency::getCurrencies(true, true)
);
$list_variable = array();
$list_variable['lang_iso'] = $this->context->language->iso_code;
$list_variable['countries'] = $countries;
$list_variable['img_lang_url'] = _THEME_LANG_DIR_;
$list_variable['currencies'] = $currencies;
$list_variable['current_currency'] = $current_currency;
$list_variable['cookie'] = $this->context->cookie;
$list_variable['languages'] = $languages;
$list_variable['current_language'] = array(
'id_lang' => $this->context->language->id,
'name' => $this->context->language->name,
'name_simple' => $this->getNameSimple($this->context->language->name)
);
$list_variable['blockcurrencies_sign'] = $this->context->currency->sign;
$list_variable['catalog_mode'] = Configuration::get('PS_CATALOG_MODE');
//DONGND:: add parameters for user info
$enable_userinfo = Configuration::get('LEO_BLOCKGROUPTOP_USEINFO');
$list_variable['enable_userinfo'] = $enable_userinfo;
if ($enable_userinfo == 1) {
$logged = $this->context->customer->isLogged();
if ($logged) {
$customerName = $this->context->customer->firstname.' '.$this->context->customer->lastname;
} else {
$customerName = '';
}
$link = $this->context->link;
$list_variable['logged'] = $logged;
$list_variable['customerName'] = $customerName;
$list_variable['logout_url'] = $link->getPageLink('index', true, null, 'mylogout');
$list_variable['my_account_url'] = $link->getPageLink('my-account', true);
}
return $list_variable;
}
private function getNameSimple($name)
{
return preg_replace('/\s\(.*\)$/', '', $name);
}
/**
* Returns module content for header
*
* @param array $params Parameters
* @return string Content
*/
// public function hookDisplayTop($params)
// {
// }
public function renderWidget($hookName, array $params)
{
$this->smarty->assign($this->getWidgetVariables($hookName, $params));
return $this->fetch('module:blockgrouptop/views/templates/hook/blockgrouptop.tpl');
}
// public function hookDisplayNav2($params)
// {
// if (!$this->_prepareHook($params)) {
// return;
// }
// return $this->display(__FILE__, 'views/templates/hook/blockgrouptop.tpl');
// }
public function getContent()
{
$output = '';
if (Tools::isSubmit('submitBlockGroupTop')) {
Configuration::updateValue('LEO_BLOCKGROUPTOP_USEINFO', (int)(Tools::getValue('LEO_BLOCKGROUPTOP_USEINFO')));
$output .= $this->displayConfirmation($this->l('Settings updated.'));
}
return $this->renderForm();
}
public function renderForm()
{
$fields_form = array(
'form' => array(
'legend' => array(
'title' => $this->l('Settings'),
'icon' => 'icon-cogs'
),
'input' => array(
array(
'type' => 'switch',
'label' => $this->l('Block User Info'),
'name' => 'LEO_BLOCKGROUPTOP_USEINFO',
'is_bool' => true,
'desc' => $this->l('Enable/Disable Block User Info.'),
'values' => array(
array(
'id' => 'active_on',
'value' => 1,
'label' => $this->l('Enabled')
),
array(
'id' => 'active_off',
'value' => 0,
'label' => $this->l('Disabled')
)
),
),
),
'submit' => array(
'title' => $this->l('Save')
)
),
);
$helper = new HelperForm();
$helper->show_toolbar = false;
$helper->table = $this->table;
$lang = new Language((int)Configuration::get('PS_LANG_DEFAULT'));
$helper->default_form_language = $lang->id;
$helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
$this->fields_form = array();
$helper->identifier = $this->identifier;
$helper->submit_action = 'submitBlockGroupTop';
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name.'&tab_module='.$this->tab
.'&module_name='.$this->name;
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->tpl_vars = array(
'fields_value' => $this->getConfigFieldsValues(),
'languages' => $this->context->controller->getLanguages(),
'id_language' => $this->context->language->id
);
return $helper->generateForm(array($fields_form));
}
public function getConfigFieldsValues()
{
return array(
'LEO_BLOCKGROUPTOP_USEINFO' => (bool)Tools::getValue('LEO_BLOCKGROUPTOP_USEINFO', Configuration::get('LEO_BLOCKGROUPTOP_USEINFO')),
);
}
public function hookDisplayHeader($params)
{
$this->context->controller->registerStylesheet('modules-blockgrouptop-blockgrouptop', $this->getMediaDir().'css/blockgrouptop.css', array('media' => 'all', 'priority' => 150));
$this->context->controller->registerJavascript('modules-blockgrouptop-blockgrouptop', $this->getMediaDir().'js/blockgrouptop.js', array('position' => 'bottom', 'priority' => 150));
}
/**
* Add the CSS & JavaScript files you want to be loaded in the BO.
*/
public function hookActionAdminControllerSetMedia()
{
$this->autoRestoreSampleData();
}
/**
* Run only one when install/change Theme_of_Leo
*/
public function hookActionAdminBefore($params)
{
if (isset($params) && isset($params['controller']) && isset($params['controller']->theme_manager)) {
// Validate : call hook from theme_manager
} else {
// Other module call this hook -> duplicate data
return;
}
$this->unregisterHook('actionAdminBefore');
# FIX : update Prestashop by 1-Click module -> NOT NEED RESTORE DATABASE
$ap_version = Configuration::get('AP_CURRENT_VERSION');
if ($ap_version != false) {
$ps_version = Configuration::get('PS_VERSION_DB');
$versionCompare = version_compare($ap_version, $ps_version);
if ($versionCompare != 0) {
// Just update Prestashop
Configuration::updateValue('AP_CURRENT_VERSION', $ps_version);
return;
}
}
# WHENE INSTALL THEME, INSERT HOOK FROM DATASAMPLE IN THEME
$hook_from_theme = false;
if (file_exists(_PS_MODULE_DIR_.'appagebuilder/libs/LeoDataSample.php')) {
require_once(_PS_MODULE_DIR_.'appagebuilder/libs/LeoDataSample.php');
$sample = new Datasample();
if ($sample->processHook($this->name)) {
$hook_from_theme = true;
}
}
# INSERT HOOK FROM MODULE_DATASAMPLE
if ($hook_from_theme == false) {
$this->registerLeoHook();
}
# WHEN INSTALL MODULE, NOT NEED RESTORE DATABASE IN THEME
$install_module = (int)Configuration::get('AP_INSTALLED_BLOCKGROUPTOP', 0);
if ($install_module) {
Configuration::updateValue('AP_INSTALLED_BLOCKGROUPTOP', '0'); // next : allow restore sample
return;
}
}
/**
* Common method
* Resgister all hook for module
*/
public function registerLeoHook()
{
$res = true;
$res &= $this->registerHook('displayHeader');
$res &= $this->registerHook('displayNav2');
$res &= $this->registerHook('actionAdminControllerSetMedia');
return $res;
}
/**
* Common method
* Unresgister all hook for module
*/
public function unregisterLeoHook()
{
$res = true;
$res &= $this->unregisterHook('displayHeader');
$res &= $this->unregisterHook('displayNav2');
$res &= $this->unregisterHook('actionAdminControllerSetMedia');
return $res;
}
// public function isCached($template, $cache_id = null, $compile_id = null)
// {
// if (version_compare(_PS_VERSION_, '1.7.4.0', '>=') || version_compare(Configuration::get('PS_VERSION_DB'), '1.7.4.0', '>=')) {
// return false;
// }
// return parent::isCached($template, $cache_id, $compile_id);
// }
/**
* FIX BUG 1.7.3.3 : install theme lose hook displayHome, displayLeoProfileProduct
* because ajax not run hookActionAdminBefore();
*/
public function autoRestoreSampleData()
{
if(Hook::isModuleRegisteredOnHook($this, 'actionAdminBefore', (int)Context::getContext()->shop->id)) {
$theme_manager = new stdclass();
$theme_manager->theme_manager = 'theme_manager';
$this->hookActionAdminBefore(array(
'controller' => $theme_manager,
));
}
}
//DONGND:: update direction css, js, img for 1.7.4.0
public function getMediaDir()
{
$media_dir = '';
if (version_compare(_PS_VERSION_, '1.7.4.0', '>=') || version_compare(Configuration::get('PS_VERSION_DB'), '1.7.4.0', '>=')) {
$media_dir = 'modules/'.$this->name.'/views/';
}else{
$media_dir = 'modules/'.$this->name.'/';
}
return $media_dir;
}
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>blockgrouptop</name>
<displayName><![CDATA[Block Group Top]]></displayName>
<version><![CDATA[1.3.4]]></version>
<description><![CDATA[Adds a block allowing customers to select a language for your stores content.]]></description>
<author><![CDATA[LeoTheme]]></author>
<tab><![CDATA[front_office_features]]></tab>
<is_configurable>0</is_configurable>
<need_instance>0</need_instance>
<limited_countries></limited_countries>
</module>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,23 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_9827d3df66ae8d506d0abc46ebc860b0'] = 'كتلة المجموعة الأعلى';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_dc5ddf41afac839ace02f1d9c44531c9'] = 'ويضيف لبنة مما يسمح للعملاء لاختيار لغة لمحتوى المخازن الخاصة بك.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_f38f5974cdc23279ffe6d203641a8bdf'] = 'تجديد الإعدادات.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_f4f70727dc34561dfde1a3c529b6205c'] = 'إعدادات';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_27e86e8ba547905b1e374817add18330'] = 'معلومات احجب';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_0105bbbc3f8d8fa1c91d26357e89d25b'] = 'تمكين / تعطيل احجب معلومات.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'تمكين';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_b9f5c797ebbf55adccdd8539a65a0241'] = 'معاق';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_c9cc8cce247e49bae79f15173ce97354'] = 'حفظ';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_51ac4bf63a0c6a9cefa7ba69b4154ef1'] = 'ضبط';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_4994a8ffeba4ac3140beb89e8d41f174'] = 'لغة';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_386c339d37e737a436499d423a77df0c'] = 'عملة';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_2cbfb6731610056e1d0aaacde07096c1'] = 'عرض حساب العميل بلدي';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_8b1a9953c4611296a827abf8c47804d7'] = 'مرحبا';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_c87aacf5673fada1108c9f809d354311'] = 'خروج';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_d4151a9a3959bdd43690735737034f27'] = 'تسجيل الدخول إلى حساب العميل';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_b6d4223e60986fa4c9af77ee5f7149c5'] = 'تسجيل الدخول';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_d95cf4ab2cbf1dfb63f066b50558b07d'] = 'حسابي';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_6ff063fbc860a79759a7369ac32cee22'] = 'الدفع';

View File

@@ -0,0 +1,23 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_9827d3df66ae8d506d0abc46ebc860b0'] = 'Blockgruppe oben';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_dc5ddf41afac839ace02f1d9c44531c9'] = 'Fügt einen Block hinzu, mit dem Kunden eine Sprache für Ihren Speicherinhalt auswählen können.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_f38f5974cdc23279ffe6d203641a8bdf'] = 'Einstellungen aktualisiert.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_27e86e8ba547905b1e374817add18330'] = 'Benutzerinformationen sperren';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_0105bbbc3f8d8fa1c91d26357e89d25b'] = 'Aktivieren / Deaktivieren von Benutzerinformationen.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Aktiviert';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_b9f5c797ebbf55adccdd8539a65a0241'] = 'Behindert';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_c9cc8cce247e49bae79f15173ce97354'] = 'Sparen';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_51ac4bf63a0c6a9cefa7ba69b4154ef1'] = 'Rahmen';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_4994a8ffeba4ac3140beb89e8d41f174'] = 'Sprache';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_386c339d37e737a436499d423a77df0c'] = 'Währung';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_2cbfb6731610056e1d0aaacde07096c1'] = 'Mein Kundenkonto anzeigen';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_8b1a9953c4611296a827abf8c47804d7'] = 'Hallo';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_c87aacf5673fada1108c9f809d354311'] = 'Ausloggen';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_d4151a9a3959bdd43690735737034f27'] = 'Melden Sie sich bei Ihrem Kundenkonto an';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_b6d4223e60986fa4c9af77ee5f7149c5'] = 'Anmelden';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_d95cf4ab2cbf1dfb63f066b50558b07d'] = 'Mein Konto';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_6ff063fbc860a79759a7369ac32cee22'] = 'Auschecken';

View File

@@ -0,0 +1,10 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{blocklanguages}prestashop>blocklanguages_d5988791c07fedc0e2fc77683b4e61f6'] = 'Language block';
$_MODULE['<{blocklanguages}prestashop>blocklanguages_5bc2cbadb5e09b5ef9b9d1724072c4f9'] = 'Adds a block allowing customers to select a language for your store\'s content.';
return $_MODULE;

View File

@@ -0,0 +1,23 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_9827d3df66ae8d506d0abc46ebc860b0'] = 'Blockgruppe oben';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_dc5ddf41afac839ace02f1d9c44531c9'] = 'Fügt einen Block hinzu, mit dem Kunden eine Sprache für Ihren Speicherinhalt auswählen können.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_f38f5974cdc23279ffe6d203641a8bdf'] = 'Einstellungen aktualisiert.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_27e86e8ba547905b1e374817add18330'] = 'Benutzerinformationen sperren';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_0105bbbc3f8d8fa1c91d26357e89d25b'] = 'Aktivieren / Deaktivieren von Benutzerinformationen.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Aktiviert';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_b9f5c797ebbf55adccdd8539a65a0241'] = 'Behindert';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_c9cc8cce247e49bae79f15173ce97354'] = 'Sparen';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_51ac4bf63a0c6a9cefa7ba69b4154ef1'] = 'Rahmen';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_4994a8ffeba4ac3140beb89e8d41f174'] = 'Sprache';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_386c339d37e737a436499d423a77df0c'] = 'Währung';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_2cbfb6731610056e1d0aaacde07096c1'] = 'Mein Kundenkonto anzeigen';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_8b1a9953c4611296a827abf8c47804d7'] = 'Hallo';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_c87aacf5673fada1108c9f809d354311'] = 'Ausloggen';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_d4151a9a3959bdd43690735737034f27'] = 'Melden Sie sich bei Ihrem Kundenkonto an';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_b6d4223e60986fa4c9af77ee5f7149c5'] = 'Anmelden';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_d95cf4ab2cbf1dfb63f066b50558b07d'] = 'Mein Konto';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_6ff063fbc860a79759a7369ac32cee22'] = 'Auschecken';

View File

@@ -0,0 +1,23 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_9827d3df66ae8d506d0abc46ebc860b0'] = 'Bloquer Groupe Top';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_dc5ddf41afac839ace02f1d9c44531c9'] = 'Ajoute un bloc permettant aux clients de sélectionner une langue pour le contenu de votre magasin.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_f38f5974cdc23279ffe6d203641a8bdf'] = 'Paramètres mis à jour.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_f4f70727dc34561dfde1a3c529b6205c'] = 'Paramètres';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_27e86e8ba547905b1e374817add18330'] = 'Bloquer l\'utilisateur Infos';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_0105bbbc3f8d8fa1c91d26357e89d25b'] = 'Activer / Désactiver Bloquer l\'utilisateur Infos.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Activée';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_b9f5c797ebbf55adccdd8539a65a0241'] = 'Désactivé';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_c9cc8cce247e49bae79f15173ce97354'] = 'Sauvegarder';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_51ac4bf63a0c6a9cefa7ba69b4154ef1'] = 'Réglage';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_4994a8ffeba4ac3140beb89e8d41f174'] = 'La langue';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_386c339d37e737a436499d423a77df0c'] = 'Devise';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_2cbfb6731610056e1d0aaacde07096c1'] = 'Voir mon compte client';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_8b1a9953c4611296a827abf8c47804d7'] = 'Bonjour';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_c87aacf5673fada1108c9f809d354311'] = 'Se déconnecter';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_d4151a9a3959bdd43690735737034f27'] = 'Connectez-vous à votre compte client';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_b6d4223e60986fa4c9af77ee5f7149c5'] = 'Se connecter';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_d95cf4ab2cbf1dfb63f066b50558b07d'] = 'Mon compte';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_6ff063fbc860a79759a7369ac32cee22'] = 'Check-out';

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,23 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_9827d3df66ae8d506d0abc46ebc860b0'] = 'Block Group Top';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_dc5ddf41afac839ace02f1d9c44531c9'] = 'Aggiunge un blocco che permette ai clienti di selezionare una lingua per il contenuto negozi.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_f38f5974cdc23279ffe6d203641a8bdf'] = 'Impostazioni aggiornate.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_f4f70727dc34561dfde1a3c529b6205c'] = 'Impostazioni';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_27e86e8ba547905b1e374817add18330'] = 'Info Blocca utente';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_0105bbbc3f8d8fa1c91d26357e89d25b'] = 'Attiva / Disattiva Blocca utente Info.';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Abilitato';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_b9f5c797ebbf55adccdd8539a65a0241'] = 'Disabilitato';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_c9cc8cce247e49bae79f15173ce97354'] = 'Salvare';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_51ac4bf63a0c6a9cefa7ba69b4154ef1'] = 'Ambiente';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_4994a8ffeba4ac3140beb89e8d41f174'] = 'Lingua';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_386c339d37e737a436499d423a77df0c'] = 'Moneta';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_2cbfb6731610056e1d0aaacde07096c1'] = 'Visualizza il mio conto cliente';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_8b1a9953c4611296a827abf8c47804d7'] = 'Ciao';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_c87aacf5673fada1108c9f809d354311'] = 'Disconnessione';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_d4151a9a3959bdd43690735737034f27'] = 'Accedi al tuo conto cliente';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_b6d4223e60986fa4c9af77ee5f7149c5'] = 'Registrati';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_d95cf4ab2cbf1dfb63f066b50558b07d'] = 'Il mio account';
$_MODULE['<{blockgrouptop}prestashop>blockgrouptop_6ff063fbc860a79759a7369ac32cee22'] = 'Check-out';

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,24 @@
<?php
/**
* 2007-2015 Leotheme
*
* NOTICE OF LICENSE
*
* Leo Prestashop Blockleoblogs for Prestashop 1.6.x
*
* DISCLAIMER
*
* @author leotheme <leotheme@gmail.com>
* @copyright 2007-2015 Leotheme
* @license http://leotheme.com - prestashop template provider
*/
if (!defined('_PS_VERSION_')) {
# module validation
exit;
}
function upgrade_module_1_2($object)
{
return ($object->registerHook('displayNav'));
}

View File

@@ -0,0 +1,25 @@
<?php
/**
* 2007-2015 Leotheme
*
* NOTICE OF LICENSE
*
* Leo Prestashop Blockleoblogs for Prestashop 1.6.x
*
* DISCLAIMER
*
* @author leotheme <leotheme@gmail.com>
* @copyright 2007-2015 Leotheme
* @license http://leotheme.com - prestashop template provider
*/
if (!defined('_CAN_LOAD_FILES_')) {
exit;
}
class Datasample
{
/**
* Validate module
*/
}

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2012 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2012 PrestaShop SA
* @version Release: $Revision: 13573 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,119 @@
/* block top languages */
#header_right #block_top {
float:right;
margin: 0;
padding:2px 6px 1px 6px;
-moz-border-bottom-right-radius: 3px;
-moz-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
background: none repeat scroll 0 0 #000;
}
#header_right #block_top p {
clear: left;
padding-right:20px;
font: 11px Arial,Verdana,sans-serif;
color: #ccc;
text-align: right;
background: url("img/block_languages_top_p_bg.png") no-repeat scroll right 1px transparent;
}
#block_top ul#first-languages li {
float: left;
margin-right: 3px
}
#block_top ul#first-languages li.selected_language {
float: left;
}
/*languages with jquery*/
#countries {
cursor: pointer;
position: relative;
top: 1px;
}
#countries p {
position: relative;
top: 0;
padding: 0;
}
#countries p img {
padding-left: 5px;
}
#countries .countries_ul{
display:none;
z-index: 10000;
padding:10px;
list-style-type:none;
}
#countries .countries_ul_hover{
display:block;
z-index: 5000;
position:absolute;
right:6px;
padding:5px 10px;
height:auto;
width:20px;
background:#000000;
}
/* block top currencies */
#header_right #block_top {
float:right;
margin: 0 6px 0 0;
padding: 2px 6px;
-moz-border-bottom-right-radius: 3px;
-moz-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
background: none repeat scroll 0 0 #000;
}
#header_right #block_top p {
clear: left;
padding-right:16px;
font: 11px Arial,Verdana,sans-serif;
color: #ccc;
text-align: right;
background: url("img/block_languages_top_p_bg.png") no-repeat scroll right 1px transparent;
}
#block_top ul#first-currencies li {
margin-right: 3px
}
#block_top ul#first-currencies li.selected {
opacity: 1 !important;
}
/*languages with jquery*/
#setCurrency {
cursor: pointer;
position: relative;
top: 1px;
}
#setCurrency p {
position: relative;
top: 0;
margin-left: 5px;
padding: 0;
}
#setCurrency p img {
padding-left: 5px;
}
#setCurrency .currencies_ul{
display:none;
z-index: 10000;
padding:10px;
list-style-type:none;
}
#setCurrency .currencies_ul_hover{
display:block;
z-index: 5000;
position:absolute;
right:3px;
padding:5px 10px;
height:auto;
text-align: center;
width: auto;
background:#000000;
}
#setCurrency .currencies_ul_hover a {color:#fff;}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,59 @@
/**
* @copyright Commercial License By LeoTheme.Com
* @email leotheme.com
* @visit http://www.leotheme.com
*/
$(document).ready(function() {
if (typeof enable_js_lang != 'undefined')
{
$('ul#first-currencies li:not(.selected)').css('opacity', 0.3);
$('ul#first-currencies li:not(.selected)').hover(function(){
$(this).css('opacity', 1);
}, function(){
$(this).css('opacity', 0.3);
});
}
if (typeof enable_js_currency != 'undefined')
{
$("#setCurrency").mouseover(function(){
$(this).addClass("countries_hover");
$(".currencies_ul").addClass("currencies_ul_hover");
});
$("#setCurrency").mouseout(function(){
$(this).removeClass("countries_hover");
$(".currencies_ul").removeClass("currencies_ul_hover");
});
}
if (typeof js_country != 'undefined')
{
$("#countries").mouseover(function(){
$(this).addClass("countries_hover");
$(".countries_ul").addClass("countries_ul_hover");
});
$("#countries").mouseout(function(){
$(this).removeClass("countries_hover");
$(".countries_ul").removeClass("countries_ul_hover");
});
}
})
function setCurrency(id_currency)
{
$.ajax({
type: 'POST',
headers: { "cache-control": "no-cache" },
url: prestashop['urls']['base_url'] + 'index.php' + '?rand=' + new Date().getTime(),
data: 'controller=change-currency&id_currency='+ parseInt(id_currency),
success: function(msg)
{
location.reload(true);
}
});
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,99 @@
{*
* @Module Name: Blockleoblogs
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2018 Leotheme
* @description: Leo Prestashop Theme Framework for Prestashop 1.5.x
*}
<!-- Block languages module -->
<div id="leo_block_top">
<div class="dropdown js-dropdown">
<span class="expand-more hidden-sm-down" data-toggle="dropdown">{l s='Setting' mod='blockgrouptop'}</span>
<a data-target="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="hidden-sm-down">
<i class="material-icons expand-more">&#xE5C5;</i>
</a>
<div class="dropdown-menu">
<div class="language-selector">
<span>{l s='Language' mod='blockgrouptop'}</span>
<ul class="link">
{foreach from=$languages item=language}
<li {if $language.id_lang == $current_language.id_lang} class="current" {/if}>
<a href="{url entity='language' id=$language.id_lang}" class="dropdown-item">{$language.name_simple}</a>
</li>
{/foreach}
</ul>
</div>
<div class="currency-selector">
<span>{l s='Currency' mod='blockgrouptop'}</span>
<ul class="link">
{foreach from=$currencies item=currency}
<li {if $currency.current} class="current" {/if}>
<a title="{$currency.name}" rel="nofollow" href="{$currency.url}" class="dropdown-item">{$currency.iso_code} {$currency.sign}</a>
</li>
{/foreach}
</ul>
</div>
{if $enable_userinfo == 1}
<div class="useinfo-selector">
<ul class="user-info">
{if $logged}
<li>
<a
class="account"
href="{$my_account_url}"
title="{l s='View my customer account' mod='blockgrouptop'}"
rel="nofollow"
>
<span>{l s='Hello' mod='blockgrouptop'} {$customerName}</span>
</a>
</li>
<li>
<a
class="logout"
href="{$logout_url}"
rel="nofollow"
>
{l s='Sign out' mod='blockgrouptop'}
</a>
</li>
{else}
<li>
<a
class="signin"
href="{$my_account_url}"
title="{l s='Log in to your customer account' mod='blockgrouptop'}"
rel="nofollow"
>
<span>{l s='Sign in' mod='blockgrouptop'}</span>
</a>
</li>
{/if}
<li>
<a
class="myacount"
href="{$my_account_url}"
title="{l s='My account' mod='blockgrouptop'}"
rel="nofollow"
>
<span>{l s='My account' mod='blockgrouptop'}</span>
</a>
</li>
<li>
<a
class="checkout"
href="{url entity='cart' params=['action' => show]}"
title="{l s='Checkout' mod='blockgrouptop'}"
rel="nofollow"
>
<span>{l s='Checkout' mod='blockgrouptop'}</span>
</a>
</li>
</ul>
</div>
{/if}
</div>
</div>
</div>
<!-- /Block languages module -->

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;