[+] Project : default theme added
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
/* block top currencies */
|
||||
#header_right #currencies_block_top {
|
||||
float:right;
|
||||
margin: 0 6px 0 0;
|
||||
padding: 2px 6px;
|
||||
-moz-border-radius-bottomright: 3px;
|
||||
-moz-border-radius-bottomleft: 3px;
|
||||
-webkit-border-radius-bottomright: 3px;
|
||||
-webkit-border-radius-bottomleft: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
border-bottom-left-radius: 3px;
|
||||
background: none repeat scroll 0 0 #000;
|
||||
}
|
||||
#header_right #currencies_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;
|
||||
}
|
||||
#currencies_block_top ul#first-currencies li {
|
||||
margin-right: 3px
|
||||
}
|
||||
#currencies_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;
|
||||
width:10px;
|
||||
background:#000000;
|
||||
}
|
||||
#setCurrency .currencies_ul_hover a {color:#fff;}
|
||||
@@ -62,7 +62,7 @@ class BlockCurrencies extends Module
|
||||
|
||||
if (!count(Currency::getCurrencies()))
|
||||
return '';
|
||||
|
||||
$this->context->smarty->assign('blockcurrencies_sign', $this->context->currency->sign);
|
||||
return $this->display(__FILE__, 'blockcurrencies.tpl');
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{*
|
||||
* 2007-2011 PrestaShop
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@@ -19,26 +19,46 @@
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @version Release: $Revision: 6594 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<!-- Block currencies module -->
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$("#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");
|
||||
});
|
||||
|
||||
$('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);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div id="currencies_block_top">
|
||||
<form id="setCurrency" action="{$request_uri}" method="post">
|
||||
<ul>
|
||||
<p>
|
||||
<input type="hidden" name="id_currency" id="id_currency" value=""/>
|
||||
<input type="hidden" name="SubmitCurrency" value="" />
|
||||
{l s='Currency' mod='blockcurrencies'} : {$blockcurrencies_sign}
|
||||
</p>
|
||||
<ul id="first-currencies" class="currencies_ul">
|
||||
{foreach from=$currencies key=k item=f_currency}
|
||||
<li {if $cookie->id_currency == $f_currency.id_currency}class="selected"{/if}>
|
||||
<a href="javascript:setCurrency({$f_currency.id_currency});" title="{$f_currency.name}">{$f_currency.sign}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<p>
|
||||
<input type="hidden" name="id_currency" id="id_currency" value=""/>
|
||||
<input type="hidden" name="SubmitCurrency" value="" />
|
||||
{l s='Currency' mod='blockcurrencies'}
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<!-- /Block currencies module -->
|
||||
<!-- /Block currencies module -->
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 190 B |
Reference in New Issue
Block a user