first commit
This commit is contained in:
119
modules/blockgrouptop/views/css/blockgrouptop.css
Normal file
119
modules/blockgrouptop/views/css/blockgrouptop.css
Normal 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;}
|
||||
35
modules/blockgrouptop/views/css/index.php
Normal file
35
modules/blockgrouptop/views/css/index.php
Normal 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;
|
||||
BIN
modules/blockgrouptop/views/img/block_languages_top_p_bg.png
Normal file
BIN
modules/blockgrouptop/views/img/block_languages_top_p_bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 151 B |
35
modules/blockgrouptop/views/img/index.php
Normal file
35
modules/blockgrouptop/views/img/index.php
Normal 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;
|
||||
35
modules/blockgrouptop/views/index.php
Normal file
35
modules/blockgrouptop/views/index.php
Normal 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;
|
||||
59
modules/blockgrouptop/views/js/blockgrouptop.js
Normal file
59
modules/blockgrouptop/views/js/blockgrouptop.js
Normal 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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
35
modules/blockgrouptop/views/js/index.php
Normal file
35
modules/blockgrouptop/views/js/index.php
Normal 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;
|
||||
99
modules/blockgrouptop/views/templates/hook/blockgrouptop.tpl
Normal file
99
modules/blockgrouptop/views/templates/hook/blockgrouptop.tpl
Normal 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"></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 -->
|
||||
35
modules/blockgrouptop/views/templates/hook/index.php
Normal file
35
modules/blockgrouptop/views/templates/hook/index.php
Normal 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;
|
||||
35
modules/blockgrouptop/views/templates/index.php
Normal file
35
modules/blockgrouptop/views/templates/index.php
Normal 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;
|
||||
Reference in New Issue
Block a user