[+] Project : default theme added
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
/* Block specials */
|
||||
#special_block_right p {
|
||||
padding-bottom:0;
|
||||
font-weight:bold;
|
||||
text-align:right
|
||||
}
|
||||
#special_block_right .products li {
|
||||
padding:15px 0;
|
||||
width: 130px;
|
||||
border:none;
|
||||
}
|
||||
#special_block_right li h5 {
|
||||
padding:0 0 3px 0;
|
||||
font-size:12px
|
||||
}
|
||||
#special_block_right .products li a {
|
||||
padding:0;
|
||||
background:none
|
||||
}
|
||||
#special_block_right li.product_image {
|
||||
padding-right:10px;
|
||||
width:62px;
|
||||
}
|
||||
|
||||
#special_block_right .products span.price-discount {
|
||||
font-size:14px;
|
||||
text-decoration:line-through
|
||||
}
|
||||
#special_block_right .products span.reduction {
|
||||
display:block;
|
||||
float:right;
|
||||
padding:0 0 0 10px;
|
||||
font-weight:bold;
|
||||
font-size:12px;
|
||||
color:#fff;
|
||||
background:url(img/bg_reduction.png) no-repeat 0 0
|
||||
}
|
||||
#special_block_right .products span.reduction span {
|
||||
display:block;
|
||||
padding:1px 5px 1px 0;
|
||||
background:url(img/bg_reduction.png) no-repeat 100% 0
|
||||
}
|
||||
#special_block_right .products span.price {
|
||||
display:block;
|
||||
padding:3px 0 0 0;
|
||||
font-weight:bold;
|
||||
font-size:14px;
|
||||
color:#900
|
||||
}
|
||||
@@ -37,7 +37,7 @@ class BlockSpecials extends Module
|
||||
{
|
||||
$this->name = 'blockspecials';
|
||||
$this->tab = 'pricing_promotion';
|
||||
$this->version = '0.8';
|
||||
$this->version = 0.8;
|
||||
$this->author = 'PrestaShop';
|
||||
$this->need_instance = 0;
|
||||
|
||||
@@ -90,8 +90,8 @@ class BlockSpecials extends Module
|
||||
if (!$special = Product::getRandomSpecial((int)$params['cookie']->id_lang) AND !Configuration::get('PS_BLOCK_SPECIALS_DISPLAY'))
|
||||
return;
|
||||
|
||||
$this->templateAssign(array(
|
||||
'special' => $special,
|
||||
$this->context->smarty->assign(array(
|
||||
'blockspecials_special' => $special,
|
||||
'priceWithoutReduction_tax_excl' => Tools::ps_round($special['price_without_reduction'], 2),
|
||||
'mediumSize' => Image::getSize('medium'),
|
||||
));
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7077 $
|
||||
* @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
|
||||
*}
|
||||
@@ -30,30 +30,29 @@
|
||||
<div class="block_content">
|
||||
|
||||
{if $blockspecials_special}
|
||||
<ul class="products">
|
||||
<ul class="products clearfix">
|
||||
<li class="product_image">
|
||||
<a href="{$blockspecials_special.link}"><img src="{$link->getImageLink($blockspecials_special.link_rewrite, $blockspecials_special.id_image, 'medium')}" alt="{$blockspecials_special.legend|escape:html:'UTF-8'}" height="{$blockspecials_mediumSize.height}" width="{$blockspecials_mediumSize.width}" title="{$blockspecials_special.name|escape:html:'UTF-8'}" /></a>
|
||||
<a href="{$blockspecials_special.link}"><img src="{$link->getImageLink($blockspecials_special.link_rewrite, $blockspecials_special.id_image, 'medium')}" alt="{$blockspecials_special.legend|escape:html:'UTF-8'}" height="{$mediumSize.height}" width="{$mediumSize.width}" title="{$blockspecials_special.name|escape:html:'UTF-8'}" /></a>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
<h5><a href="{$blockspecials_special.link}" title="{$blockspecials_special.name|escape:html:'UTF-8'}">{$blockspecials_special.name|escape:html:'UTF-8'}</a></h5>
|
||||
<span class="price-discount">{if !$priceDisplay}{displayWtPrice p=$blockspecials_special.price_without_reduction}{else}{displayWtPrice p=$blockspecials_priceWithoutReduction_tax_excl}{/if}</span>
|
||||
|
||||
{if $blockspecials_special.specific_prices}
|
||||
{assign var='specific_prices' value=$blockspecials_special.specific_prices}
|
||||
{if $specific_prices.reduction_type == 'percentage' && ($specific_prices.from == $specific_prices.to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $specific_prices.to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $specific_prices.from))}
|
||||
<span class="reduction">(-{$specific_prices.reduction*100|floatval}%)</span>
|
||||
{/if}
|
||||
{/if}
|
||||
<span class="reduction"><span>-{$specific_prices.reduction*100|floatval}%</span></span>
|
||||
{/if}
|
||||
{/if}
|
||||
<h5><a href="{$blockspecials_special.link}" title="{$blockspecials_special.name|escape:html:'UTF-8'}">{$blockspecials_special.name|escape:html:'UTF-8'}</a></h5>
|
||||
<span class="price-discount">{if !$priceDisplay}{displayWtPrice p=$blockspecials_special.price_without_reduction}{else}{displayWtPrice p=$priceWithoutReduction_tax_excl}{/if}</span>
|
||||
<span class="price">{if !$priceDisplay}{displayWtPrice p=$blockspecials_special.price}{else}{displayWtPrice p=$blockspecials_special.price_tax_exc}{/if}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<a href="{$link->getPageLink('prices-drop')}" title="{l s='All specials' mod='blockspecials'}" class="button_large">{l s='All specials' mod='blockspecials'}</a>
|
||||
<a href="{$link->getPageLink('prices-drop')}" title="{l s='All specials' mod='blockspecials'}">» {l s='All specials' mod='blockspecials'}</a>
|
||||
</p>
|
||||
{else}
|
||||
<p>{l s='No specials at this time' mod='blockspecials'}</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<!-- /MODULE Block specials -->
|
||||
|
||||
<!-- /MODULE Block specials -->
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 212 B |
Reference in New Issue
Block a user