{**
* 2007-2021 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-2021 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
<style type="text/css">
    {* both positions can be in the hook displayProductPriceBlock, so we have to hide duplicates via css *}
    {if $wdpc_module->product_position != 'displayProductPriceBlock' && ($wdpc_module->product_list_position == 'over_img' || $wdpc_module->product_list_position == 'displayProductPriceBlock')}
    #product .wdpc-wrp.wdpc_displayProductPriceBlock {ldelim}
        display: none !important;
    {rdelim}
    #product .ajax_block_product .wdpc-wrp.wdpc_displayProductPriceBlock,
    #product .product_list .wdpc-wrp.wdpc_displayProductPriceBlock,
    #product #product_list .wdpc-wrp.wdpc_displayProductPriceBlock,
    #product .product-miniature .wdpc-wrp.wdpc_displayProductPriceBlock {ldelim}
        display: block !important;
    {rdelim}
    {elseif $wdpc_module->product_position == 'displayProductPriceBlock' && $wdpc_module->product_list_position != 'over_img' && $wdpc_module->product_list_position != 'displayProductPriceBlock'}
    #product .wdpc-wrp.wdpc_displayProductPriceBlock {ldelim}
        display: block !important;
    {rdelim}
    .ajax_block_product .wdpc-wrp.wdpc_displayProductPriceBlock,
    .product_list .wdpc-wrp.wdpc_displayProductPriceBlock,
    #product_list .wdpc-wrp.wdpc_displayProductPriceBlock,
    .product-miniature .wdpc-wrp.wdpc_displayProductPriceBlock {ldelim}
        display: none !important;
    {rdelim}
    {/if}

    {if $wdpc_custom_css}
        {$wdpc_custom_css|escape:'quotes':'UTF-8'}
    {/if}
</style>

<script type="text/javascript">
    var wdpc_labels = ['days', 'hours', 'minutes', 'seconds'];
    var wdpc_labels_lang = {
        'days': '{l s='days' mod='wdproductcountdown'}',
        'hours': '{l s='hours' mod='wdproductcountdown'}',
        'minutes': '{l s='min.' mod='wdproductcountdown'}',
        'seconds': '{l s='sec.' mod='wdproductcountdown'}'
    };
    var wdpc_labels_lang_1 = {
        'days': '{l s='day' mod='wdproductcountdown'}',
        'hours': '{l s='hour' mod='wdproductcountdown'}',
        'minutes': '{l s='min.' mod='wdproductcountdown'}',
        'seconds': '{l s='sec.' mod='wdproductcountdown'}'
    };
    var wdpc_offer_txt = "{l s='Offer ends in:' mod='wdproductcountdown'}";
    var wdpc_theme = "{$wdpc_theme|escape:'html':'UTF-8'}";
    var wdpc_psv = {$psv|floatval};
    var wdpc_hide_after_end = {$wdpc_hide_after_end|intval};
    var wdpc_hide_expired = {$wdpc_hide_expired|intval};
    var wdpc_highlight = "{$wdpc_highlight|escape:'html':'UTF-8'}";
    var wdpc_position_product = "{$wdpc_position_product|escape:'html':'UTF-8'}";
    var wdpc_position_list = "{$wdpc_position_list|escape:'html':'UTF-8'}";
    var wdpc_adjust_positions = {$wdpc_adjust_positions|intval};
    var wdpc_token = "{Tools::getToken(false)|escape:'html':'UTF-8'}";
</script>