Files
redline.com.pl/themes/at_movic/modules/ps_contactinfo/ps_contactinfo-rich.tpl
2024-11-11 18:46:54 +01:00

114 lines
3.8 KiB
Smarty

{**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (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:
* https://opensource.org/licenses/AFL-3.0
* 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 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="contact-rich">
<h4>{l s='Store information' d='Shop.Theme.Global'}</h4>
<div class="block">
<div class="icon"><i class="material-icons">&#xE55F;</i></div>
<div class="data">{$contact_infos.address.formatted nofilter}</div>
</div>
<div class="block" style="padding: 10px 0 0 55px;">
<div class="data">NIP: 872 15 61 537<br/>REGON: 850480401<br/>KRS: 0000210964
</div>
</div>
{if $contact_infos.phone}
<hr/>
<div class="block">
<div class="icon"><i class="material-icons">&#xE0CD;</i></div>
<div class="data">
{l s='Call us:' d='Shop.Theme.Global'}<br/>
<a href="#" id="show-phone">{l s='Show phone number' d='Shop.Theme.Global'}</a>
</div>
</div>
{/if}
{if $contact_infos.fax}
<hr/>
<div class="block">
<div class="icon"><i class="material-icons">&#xE0DF;</i></div>
<div class="data">
{l s='Fax:' d='Shop.Theme.Global'}<br/>
{$contact_infos.fax}
</div>
</div>
{/if}
{if $contact_infos.email}
<hr/>
<div class="block">
<div class="icon"><i class="material-icons">&#xE158;</i></div>
<div class="data email">
{l s='Email us:' d='Shop.Theme.Global'}<br/>
<a href="#" id="show-email-address">{l s='Show email address' d='Shop.Theme.Global'}</a>
</div>
</div>
{/if}
<hr/>
<div class="block">
<div class="icon"><i class="material-icons">&#xE425;</i></div>
<div class="data email">
{l s='We work:' d='Shop.Theme.Global'}<br/>
{l s='Mn' d='Shop.Theme.Global'}-{l s='Fr' d='Shop.Theme.Global'} 08:00 - 15:00
</div>
</div>
</div>
{literal}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
$( function() {
var user_agent = navigator.userAgent.toLowerCase();
var click_event = user_agent.match(/(iphone|ipod|ipad)/) ? "touchend" : "click";
$( 'body' ).on( click_event, '#show-email-address', function() {
$.ajax({
type: 'POST',
cache: false,
url: '/ajax.php',
data: {
a: 'get-email'
},
beforeSend: function() { },
success: function( response ) {
$( '#show-email-address' ).attr( 'href', 'mailto:' + response ).html( response );
}
});
return false;
});
$( 'body' ).on( click_event, '#show-phone', function() {
$.ajax({
type: 'POST',
cache: false,
url: '/ajax.php',
data: {
a: 'get-phone'
},
beforeSend: function() { },
success: function( response ) {
$( '#show-phone' ).attr( 'href', 'tel:' + response ).html( response );
}
});
return false;
});
});
</script>
{/literal}