Add PrivateShop module templates and initial setup files
- Created restricted.tpl for displaying restricted access messages with customizable background options. - Added index.php files in hook and main template directories to prevent direct access and ensure proper redirection. - Implemented info.tpl to provide module information and support links, enhancing user experience with promotional content. - Included necessary CSS styles for the new templates to ensure proper layout and responsiveness.
This commit is contained in:
@@ -0,0 +1,308 @@
|
||||
{*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FMM Modules
|
||||
* @copyright FME Modules 2021
|
||||
* @license Single domain
|
||||
*}
|
||||
|
||||
{extends file="helpers/form/form.tpl"}
|
||||
|
||||
{block name="input"}
|
||||
{if $input.type == 'cms_pages'}
|
||||
<div id="type_cms" class="panel col-lg-7">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<input type="checkbox"
|
||||
name="checkme"
|
||||
id="checkme-cms"
|
||||
class="noborder"
|
||||
onclick="checkDelBoxes(this.form, '{$input.name|escape:'htmlall':'UTF-8'}', this.checked)" />
|
||||
</th>
|
||||
<th>{l s='ID' mod='privateshoplite'}</th>
|
||||
<th>{l s='Name' mod='privateshoplite'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $input.values as $key => $page}
|
||||
<tr {if $key%2}class="alt_row"{/if}>
|
||||
<td>
|
||||
<input type="checkbox"
|
||||
class="cmsBox"
|
||||
name="cms[]"
|
||||
id="{$page.id_cms|escape:'htmlall':'UTF-8'}"
|
||||
value="{$page.id_cms|escape:'htmlall':'UTF-8'}"
|
||||
{if isset($fields_value.cms) AND in_array($page.id_cms, $fields_value.cms)}checked="checked"{/if} />
|
||||
</td>
|
||||
<td class="fixed-width-xs">
|
||||
{$page.id_cms|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
<label class="control-label" for="{$page.id_cms|escape:'htmlall':'UTF-8'}">
|
||||
{$page.meta_title|escape:'htmlall':'UTF-8'}
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
{elseif $input.type == 'meta_pages'}
|
||||
<div id="type_meta_pages" class="panel col-lg-7">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<input type="checkbox"
|
||||
name="checkme_meta_pages"
|
||||
id="checkme-meta-pages"
|
||||
class="noborder"
|
||||
onclick="checkDelBoxes(this.form, '{$input.name|escape:'htmlall':'UTF-8'}', this.checked)" />
|
||||
</th>
|
||||
<th>{l s='ID' mod='privateshoplite'}</th>
|
||||
<th>{l s='Page' mod='privateshoplite'}</th>
|
||||
<th>{l s='Title' mod='privateshoplite'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $input.values as $key => $page}
|
||||
<tr {if $key%2}class="alt_row"{/if}>
|
||||
<td>
|
||||
<input type="checkbox"
|
||||
class="cmsPageBox"
|
||||
name="meta_pages[]"
|
||||
id="meta_page_{$page.id_meta|escape:'htmlall':'UTF-8'}"
|
||||
value="{$page.id_meta|escape:'htmlall':'UTF-8'}"
|
||||
{if isset($fields_value.meta_pages) AND in_array($page.id_meta, $fields_value.meta_pages)}checked="checked"{/if} />
|
||||
</td>
|
||||
<td>
|
||||
{$page.id_meta|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$page.page|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
<label class="control-label" for="meta_page_{$page.id_meta|escape:'htmlall':'UTF-8'}">
|
||||
{$page.title|escape:'htmlall':'UTF-8'}
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
{elseif $input.type == "product"}
|
||||
<div id="type_product" class="col-lg-9">
|
||||
<input type="hidden" name="inputPrivateProducts" id="inputPrivateProducts" value="{if isset($products) AND $products}{foreach from=$products item=product}{$product.id_product|escape:'htmlall':'UTF-8'}-{/foreach}{/if}" />
|
||||
<input type="hidden" name="namePrivateProducts" id="namePrivateProducts" value="{if isset($products) AND $products}{foreach from=$products item=product}{$product.name|escape:'html':'UTF-8'}¤{/foreach}{/if}" />
|
||||
<div id="ajax_choose_product">
|
||||
<div class="input-group">
|
||||
<input type="text" id="private_product_input" name="private_product_input" />
|
||||
<span class="input-group-addon"><i class="icon-search"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="help-block">{l s='Search and add product(s) to restriction list.' mod='privateshoplite'}</p>
|
||||
<br>
|
||||
|
||||
<div id="divPrivateProducts">
|
||||
{if isset($products) AND $products}
|
||||
{foreach from=$products item=product}
|
||||
<div class="form-control-static panel">
|
||||
<button type="button" class="btn btn-danger removePrivateProducts" name="{$product.id_product|escape:'htmlall':'UTF-8'}">
|
||||
<i class="icon-trash text-danger"></i>
|
||||
</button>
|
||||
<input type="hidden" name="product[]" value="{$product.id_product|escape:'htmlall':'UTF-8'}">
|
||||
{$product.name|escape:'html':'UTF-8'}{if !empty($product.reference)} {l s='(ref: %s)' sprintf=$product.reference mod='privateshoplite'}{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
{elseif $input.type == 'pwd'}
|
||||
<div class="col-lg-12">
|
||||
<div class="col-lg-8">
|
||||
<input class="form-control" id="code" type="text" name="passwd" value="{if isset($fields_value.passwd) AND $fields_value.passwd}{$fields_value.passwd|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<a class="btn btn-info" href="javascript:genPwd(16);">
|
||||
<i class="icon-random"></i>
|
||||
{l s='Generate password' mod='privateshoplite'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name="script"}
|
||||
|
||||
var pages = "{if isset($fields_value) AND isset($fields_value.type)}{$fields_value.type|escape:'htmlall':'UTF-8'}{/if}";
|
||||
if (typeof pages === 'undefined' || pages === '') {
|
||||
pages = $('#type option:selected').val();
|
||||
}
|
||||
|
||||
filterPages(pages);
|
||||
|
||||
$(document).on('change', '#type', function(){
|
||||
filterPages($(this).val());
|
||||
});
|
||||
|
||||
$('#divPrivateProducts').delegate('.removePrivateProducts', 'click', function(){
|
||||
self.removePrivateProducts($(this).attr('name'));
|
||||
});
|
||||
|
||||
var options = {
|
||||
minChars: 1,
|
||||
autoFill: true,
|
||||
max:20,
|
||||
matchContains: true,
|
||||
mustMatch:false,
|
||||
scroll:false,
|
||||
cacheLength:0,
|
||||
formatItem: function(item) {
|
||||
var itemStringToReturn = item[item.length - 1];
|
||||
for(var istr = 0; istr < item.length - 1;istr++) {
|
||||
itemStringToReturn += " " + item[istr];
|
||||
}
|
||||
return itemStringToReturn;
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
$('#private_product_input')
|
||||
.autocomplete("{$context_link->getAdminLink('AdminPrivatePages') nofilter}&exclude_packs=0&excludeVirtuals=0",options)
|
||||
.result(addProduct);
|
||||
$('#private_product_input').setOptions({
|
||||
extraParams: {
|
||||
ajax: true,
|
||||
action: 'fetchProducts',
|
||||
excludeIds: getPrivateProduct()
|
||||
}
|
||||
});
|
||||
|
||||
function addProduct(event, data, formatted)
|
||||
{
|
||||
if (data !== null) {
|
||||
var productId = data[1];
|
||||
var productName = data[0];
|
||||
|
||||
var $divPrivateProducts = $('#divPrivateProducts');
|
||||
var $inputPrivateProducts = $('#inputPrivateProducts');
|
||||
var $namePrivateProducts = $('#namePrivateProducts');
|
||||
|
||||
/* delete product from select + add product line to the div, input_name, input_ids elements */
|
||||
$divPrivateProducts.html($divPrivateProducts.html() + '<div class="form-control-static panel"><button type="button" class="removePrivateProducts btn btn-danger" name="' + productId + '"><i class="icon-trash text-danger"></i></button> '+ productName +'</div><input type="hidden" name="product[]" value="' + productId + '">');
|
||||
$namePrivateProducts.val($namePrivateProducts.val() + productName + '¤');
|
||||
($inputPrivateProducts.val() !== 'undefined')?$inputPrivateProducts.val($inputPrivateProducts.val() + productId + '-'):$inputPrivateProducts.val(productId + '-');
|
||||
$('#private_product_input').val('');
|
||||
$('#private_product_input').setOptions({
|
||||
extraParams: {
|
||||
ajax: true,
|
||||
action: 'fetchProducts',
|
||||
excludeIds : getPrivateProduct()
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function getPrivateProduct() {
|
||||
if ($('#inputPrivateProducts').val() !== undefined) {
|
||||
return $('#inputPrivateProducts').val().replace(/\-/g,',');
|
||||
}
|
||||
}
|
||||
|
||||
function removePrivateProducts(id)
|
||||
{
|
||||
var div = getE('divPrivateProducts');
|
||||
var input = getE('inputPrivateProducts');
|
||||
var name = getE('namePrivateProducts');
|
||||
|
||||
// Cut hidden fields in array
|
||||
var inputCut = input.value.split('-');
|
||||
var nameCut = name.value.split('¤');
|
||||
|
||||
if (inputCut.length != nameCut.length) {
|
||||
return jAlert('Bad size');
|
||||
}
|
||||
|
||||
// Reset all hidden fields
|
||||
input.value = '';
|
||||
name.value = '';
|
||||
div.innerHTML = '';
|
||||
for (i in inputCut)
|
||||
{
|
||||
// If empty, error, next
|
||||
if (!inputCut[i] || !nameCut[i]) {
|
||||
continue ;
|
||||
}
|
||||
|
||||
// Add to hidden fields no selected products OR add to select field selected product
|
||||
if (inputCut[i] != id) {
|
||||
input.value += inputCut[i] + '-';
|
||||
name.value += nameCut[i] + '¤';
|
||||
div.innerHTML += '<div class="form-control-static panel"><button type="button" class="removePrivateProducts btn btn-danger" name="' + inputCut[i] +'"><i class="icon-trash text-danger"></i></button> ' + nameCut[i] + '</div><input type="hidden" name="product[]" value="' + inputCut[i] +'">';
|
||||
} else {
|
||||
$('#selectRestrictedProducts').append('<option selected="selected" value="' + inputCut[i] + '-' + nameCut[i] + '">' + inputCut[i] + ' - ' + nameCut[i] + '</option>');
|
||||
}
|
||||
}
|
||||
|
||||
$('#private_product_input').setOptions({
|
||||
extraParams: {
|
||||
ajax: true,
|
||||
action: 'fetchProducts',
|
||||
excludeIds : getPrivateProduct()
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function filterPages(pages) {
|
||||
var filtered_types = filter_types(pages);
|
||||
if (filtered_types.length) {
|
||||
$('#type_' + pages).closest('.form-group').show();
|
||||
for (var i = 0; i < filtered_types.length; i++) {
|
||||
$('#type_' + filtered_types[i]).closest('.form-group').hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function filter_types(type) {
|
||||
var pre_types = ["product", "category", "cms", "meta_pages"];
|
||||
if (typeof type !== 'undefined') {
|
||||
var index = pre_types.indexOf(type);
|
||||
if (index > -1) {
|
||||
pre_types.splice(index, 1);
|
||||
}
|
||||
}
|
||||
return pre_types;
|
||||
}
|
||||
|
||||
/* Code generator for Affiliation and vouchers */
|
||||
function genPwd(size) {
|
||||
getE('code').value = '';
|
||||
/* There are no O/0 in the codes in order to avoid confusion */
|
||||
var chars = "0123456789ABCDEFGHIJKLMNPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()_=+-";
|
||||
for (var i = 1; i <= size; ++i)
|
||||
getE('code').value += chars.charAt(Math.floor(Math.random() * chars.length));
|
||||
}
|
||||
|
||||
function getE(name) {
|
||||
if (document.getElementById)
|
||||
var elem = document.getElementById(name);
|
||||
else if (document.all)
|
||||
var elem = document.all[name];
|
||||
else if (document.layers)
|
||||
var elem = document.layers[name];
|
||||
return elem;
|
||||
}
|
||||
{/block}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2018 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-2018 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;
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2018 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-2018 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;
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2018 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-2018 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;
|
||||
412
modules/privateshoplite/views/templates/admin/access_control.tpl
Normal file
412
modules/privateshoplite/views/templates/admin/access_control.tpl
Normal file
@@ -0,0 +1,412 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
|
||||
<script type="text/javascript" src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/js/jquery.autocomplete.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var img = '';
|
||||
{if $version < 1.6}
|
||||
img = '<img src="../img/admin/delete.gif" />';
|
||||
{/if}
|
||||
|
||||
{literal}
|
||||
var version = "{/literal}{$version|escape:'htmlall':'UTF-8'}{literal}";
|
||||
var search_link = htmlEncode("{/literal}{$search_link|escape:'htmlall':'UTF-8'}{literal}");
|
||||
$(document).ready(function()
|
||||
{
|
||||
var p_sh = document.getElementsByName('PL_PRIVATIZE_SHOP');
|
||||
for(var i=0; i < p_sh.length; i++)
|
||||
{
|
||||
if (p_sh[i].value == 'whole-shop' && p_sh[i].checked) {
|
||||
hide_all();
|
||||
}
|
||||
else if (p_sh[i].value == 'selected-parts' && p_sh[i].checked) {
|
||||
|
||||
show_all();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var link = "{/literal}{$link->getPageLink('search')|escape:'htmlall':'UTF-8'}{literal}";
|
||||
var lang = jQuery('#lang_spy').val();
|
||||
$("#product_autocomplete_input")
|
||||
.autocomplete(search_link, {
|
||||
minChars: 3,
|
||||
max: 10,
|
||||
width: 500,
|
||||
selectFirst: false,
|
||||
scroll: false,
|
||||
dataType: "json",
|
||||
formatItem: function(data, i, max, value, term) {
|
||||
return value;
|
||||
},
|
||||
parse: function(data)
|
||||
{
|
||||
var mytab = new Array();
|
||||
for (var i = 0; i < data.length; i++)
|
||||
mytab[mytab.length] = { data: data[i], value: data[i].id_product + ' - ' + data[i].pname };
|
||||
return mytab;
|
||||
},
|
||||
extraParams: {
|
||||
ajaxSearch: 1,
|
||||
id_lang: lang
|
||||
}
|
||||
}
|
||||
)
|
||||
.result(function(event, data, formatted)
|
||||
{
|
||||
var $divAccessories = $('#addProducts');
|
||||
|
||||
if (data && data.id_product && data.pname)
|
||||
{
|
||||
var exclude = [];
|
||||
var selected = $('.private_products');
|
||||
for(var i=0; i < selected.length; i++)
|
||||
exclude.push(selected[i].value);
|
||||
var ps_div = '';
|
||||
|
||||
if($.inArray(data.id_product, exclude) == -1)
|
||||
{
|
||||
ps_div = '<div id="selected_product_' + data.id_product + '" class="form-control-static margin-form"><input type="hidden" name="private_products[]" value="' + data.id_product + '" class="private_products"/><button type="button" class="btn btn-default remove-product" name="' + data.id_product + '" onclick="deleteProduct('+ data.id_product +')">'+ img +'<i class="icon-remove text-danger"></i></button> '+ data.pname +'</div>';
|
||||
|
||||
|
||||
$divAccessories.show().html($divAccessories.html() + ps_div);
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
function addRemoteAddr()
|
||||
{
|
||||
var length = $('input[name=ACCESS_GRANTED_IP]').attr('value').length;
|
||||
if (length > 0)
|
||||
$('input[name=ACCESS_GRANTED_IP]').attr('value',$('input[name=ACCESS_GRANTED_IP]').attr('value') +",{/literal}{$cur_ip|escape:'htmlall':'UTF-8'}{literal}");
|
||||
else
|
||||
$('input[name=ACCESS_GRANTED_IP]').attr("value","{/literal}{$cur_ip|escape:'htmlall':'UTF-8'}{literal}");
|
||||
}
|
||||
|
||||
function deleteProduct(id)
|
||||
{
|
||||
$("#selected_product_"+id).remove();
|
||||
}
|
||||
|
||||
function hide_all()
|
||||
{
|
||||
$('#private_shop_selected_section').hide();
|
||||
$('#product_autocomplete_input').attr('disabled','disabled');
|
||||
$('#check-all-associated-categories-tree').attr('disabled','disabled');
|
||||
$('#uncheck-all-associated-categories-tree').attr('disabled','disabled');
|
||||
$('#checkme').attr('disabled','disabled');
|
||||
$('#search_cat').attr('disabled','disabled');
|
||||
$('#associated-categories-tree-categories-search').attr('disabled','disabled');
|
||||
$('.remove-product').attr('disabled','disabled')
|
||||
$('.cms_pages').attr('disabled','disabled');
|
||||
var cat = document.getElementsByName('categoryBox[]');
|
||||
for(var i=0; i < cat.length; i++)
|
||||
{
|
||||
cat[i].disabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
function show_all()
|
||||
{
|
||||
$('#private_shop_selected_section').show();
|
||||
$('#product_autocomplete_input').removeAttr('disabled');
|
||||
$('#check-all-associated-categories-tree').removeAttr('disabled');
|
||||
$('#uncheck-all-associated-categories-tree').removeAttr('disabled');
|
||||
$('#checkme').removeAttr('disabled');
|
||||
$('#search_cat').removeAttr('disabled');
|
||||
$('#associated-categories-tree-categories-search').removeAttr('disabled');
|
||||
$('.remove-product').removeAttr('disabled');
|
||||
$('.cms_pages').removeAttr('disabled');
|
||||
var cat = document.getElementsByName('categoryBox[]');
|
||||
for(var i=0; i < cat.length; i++)
|
||||
{
|
||||
cat[i].disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function htmlEncode(input)
|
||||
{
|
||||
return String(input)
|
||||
.replace(/&/g, '&');
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<!-- Privatize selection -->
|
||||
<div class="col-lg-12 form-group margin-form">
|
||||
<label class="control-label col-lg-3">
|
||||
<span data-html="true" data-original-title="{l s='Restrict the access of whole shop or restrict specific parts of the shop(categories,products,pages etc).' mod='privateshoplite'}" class="label-tooltip" data-toggle="tooltip" title="">{l s='Privatize' mod='privateshoplite'}</span>
|
||||
</label>
|
||||
<div class="col-lg-2 margin-form frame_styled{if isset($field_values) AND isset($field_values.PL_PRIVATIZE_SHOP) AND $field_values.PL_PRIVATIZE_SHOP == 'whole-shop'} active_frame{/if}">
|
||||
<input type="radio" name="PL_PRIVATIZE_SHOP" id="P_PRIVATIZE_SHOP_shop" value="whole-shop" onclick="hide_all()" {if isset($field_values) AND isset($field_values.PL_PRIVATIZE_SHOP) AND $field_values.PL_PRIVATIZE_SHOP == 'whole-shop'}checked="checked"{/if}/>
|
||||
<label class="t" for="PL_PRIVATIZE_SHOP_shop">{l s='Whole Shop' mod='privateshoplite'}</label>
|
||||
<i class="pvt_icon ws_ico"></i>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2 margin-form frame_styled{if isset($field_values) AND isset($field_values.PL_PRIVATIZE_SHOP) AND $field_values.PL_PRIVATIZE_SHOP == 'selected-parts'} active_frame{/if}">
|
||||
<input type="radio" name="PL_PRIVATIZE_SHOP" id="PL_PRIVATIZE_SHOP_selected" value="selected-parts" onclick="show_all()" {if isset($field_values) AND isset($field_values.PL_PRIVATIZE_SHOP) AND $field_values.PL_PRIVATIZE_SHOP == 'selected-parts'}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATIZE_SHOP_selected">{l s='Only Selected' mod='privateshoplite'}</label>
|
||||
<i class="pvt_icon os_ico"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id='private_shop_selected_section'>
|
||||
<div class="col-lg-12 form-group margin-form selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Enable Product Selection?' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRODUCT_SELECTION_ENABLED_DISABLED" id="PRODUCT_SELECTION_ENABLED_DISABLED_on" value="1" {if isset($field_values) AND isset($field_values.product_selection_enabled_disabled) AND $field_values.product_selection_enabled_disabled == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRODUCT_SELECTION_ENABLED_DISABLED_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRODUCT_SELECTION_ENABLED_DISABLED" id="PRODUCT_SELECTION_ENABLED_DISABLED_off" value="0" {if isset($field_values) AND isset($field_values.product_selection_enabled_disabled) AND $field_values.product_selection_enabled_disabled == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRODUCT_SELECTION_ENABLED_DISABLED_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Do you want want to enable product selection?' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- restrict products -->
|
||||
<div class="form-group margin-form" id="product_selection">
|
||||
<label class="control-label col-lg-3" for="product_autocomplete_input">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select products to make them private.' mod='privateshoplite'}">{l s='Private Products' mod='privateshoplite'}</span>
|
||||
</label>
|
||||
<div class="col-lg-7">
|
||||
<div id="ajax_choose_product">
|
||||
<div class="input-group">
|
||||
<input id="product_autocomplete_input" name="" type="text" class="text ac_input" value=""/>
|
||||
<input id="lang_spy" type="hidden" value="1" />
|
||||
<span class="input-group-addon"><i class="icon-search"></i></span>
|
||||
</div>
|
||||
<p class="preference_description help-block margin-form">({l s='Start by typing the first letters of the product\'s name, then select the product from the drop-down list.' mod='privateshoplite'})</p>
|
||||
</div>
|
||||
<!-- <table id="addProducts" style="display:block;">
|
||||
</table> -->
|
||||
<div id="addProducts" style="{if isset($products)}display:block;{else}display:none;{/if}">
|
||||
{if isset($products) AND $products}
|
||||
{foreach $products as $pid}
|
||||
<div id="selected_product_{$pid|escape:'htmlall':'UTF-8'}" class="form-control-static margin-form">
|
||||
<input type="hidden" name="private_products[]" value="{$pid|escape:'htmlall':'UTF-8'}" class="private_products"/>
|
||||
<button type="button" class="btn btn-default remove-product" name="{$pid|escape:'htmlall':'UTF-8'}" onclick="deleteProduct({$pid|escape:'htmlall':'UTF-8'})">
|
||||
<i class="icon-remove text-danger"></i>
|
||||
{if $version < 1.6}
|
||||
<img src="../img/admin/delete.gif" />
|
||||
{/if}
|
||||
</button> {Product::getProductName({$pid|escape:'htmlall':'UTF-8'})|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div><br/>
|
||||
<div class="col-lg-12 form-group margin-form selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Allow Category Selection?' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="CATEGORY_SELECTION_ENABLED_DISABLED" id="CATEGORY_SELECTION_ENABLED_DISABLED_on" value="1" {if isset($field_values) AND isset($field_values.category_selection_enabled_disabled) AND $field_values.category_selection_enabled_disabled == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="CATEGORY_SELECTION_ENABLED_DISABLED_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="CATEGORY_SELECTION_ENABLED_DISABLED" id="CATEGORY_SELECTION_ENABLED_DISABLED_off" value="0" {if isset($field_values) AND isset($field_values.category_selection_enabled_disabled) AND $field_values.category_selection_enabled_disabled == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="CATEGORY_SELECTION_ENABLED_DISABLED_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Do you want to enable category selection?' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- restrict categories -->
|
||||
<div class="col-lg-12 form-group margin-form" id= "categories_selection">
|
||||
<label class="form-group control-label col-lg-3">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select categories to make them private.' mod='privateshoplite'}">{l s='Private Category' mod='privateshoplite'}</span>
|
||||
</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
{$categories}{*html code, cannot be escaped*}
|
||||
</div>
|
||||
</div>
|
||||
</div><br><br/>
|
||||
<div class="clearfix"></div><br/>
|
||||
{* supplier *}
|
||||
<div class="col-lg-12 form-group margin-form selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Enable Supplier Selection?' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="SUPPLIER_SELECTION_ENABLED_DISABLED" id="SUPPLIER_SELECTION_ENABLED_DISABLED_on" value="1" {if isset($field_values) AND isset($field_values.supplier_selection_enabled_disabled) AND $field_values.supplier_selection_enabled_disabled == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="SUPPLIER_SELECTION_ENABLED_DISABLED_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="SUPPLIER_SELECTION_ENABLED_DISABLED" id="SUPPLIER_SELECTION_ENABLED_DISABLED_off" value="0" {if isset($field_values) AND isset($field_values.supplier_selection_enabled_disabled) AND $field_values.supplier_selection_enabled_disabled == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="SUPPLIER_SELECTION_ENABLED_DISABLED_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Do you want to enable supplier selection?' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 form-group margin-form selected_part" id="supplier_selection">
|
||||
<label class="control-label col-lg-3">
|
||||
<span data-html="true" data-original-title="{l s='Select Suppliers to be privateshop.' mod='privateshoplite'}" class="label-tooltip" data-toggle="tooltip" title="">{l s='Select Suppliers' mod='privateshoplite'}</span>
|
||||
</label>
|
||||
<div class="col-lg-9" id="supplier_selection">
|
||||
<table cellspacing="0" cellpadding="0" class="table std table-bordered" style="overflow-y: auto; width: 400px; height:auto;{if $version < 1.6}width:300px;{/if}">
|
||||
<tr>
|
||||
<th> <input type="checkbox" name="checkme" id="checkme" class="noborder" onclick="checkDelBoxes(this.form, 'suppliers[]', this.checked)"/>
|
||||
</th>
|
||||
<th>{l s='ID' mod='privateshoplite'}</th>
|
||||
<th>{l s='Supplier' mod='privateshoplite'}</th>
|
||||
</tr>
|
||||
<tr><td colspan="3" style="border-bottom:1px solid #e1e1e1;"></td></tr>
|
||||
{foreach from=$suppliers item=supplier}
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="suppliers[]" value="{$supplier.id_supplier|escape:'htmlall':'UTF-8'}" {if isset($selected_suppliers) && in_array($supplier.id_supplier, $selected_suppliers)}checked="checked"{/if}/>
|
||||
</td>
|
||||
<td>
|
||||
{$supplier.id_supplier|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
<span for="{$supplier.id_supplier|escape:'htmlall':'UTF-8'}" class="checkbox">
|
||||
{$supplier.name|escape:'htmlall':'UTF-8'}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{* herehrgeh *}
|
||||
|
||||
{* manufacturer *}
|
||||
<div class="col-lg-12 form-group margin-form selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Enable Manufacturer Selection?' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="MANUFACTURER_SELECTION_ENABLED_DISABLED" id="MANUFACTURER_SELECTION_ENABLED_DISABLED_on" value="1" {if isset($field_values) AND isset($field_values.manufacturer_selection_enabled_disabled) AND $field_values.manufacturer_selection_enabled_disabled == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="MANUFACTURER_SELECTION_ENABLED_DISABLED_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="MANUFACTURER_SELECTION_ENABLED_DISABLED" id="MANUFACTURER_SELECTION_ENABLED_DISABLED_off" value="0" {if isset($field_values) AND isset($field_values.manufacturer_selection_enabled_disabled) AND $field_values.manufacturer_selection_enabled_disabled == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="MANUFACTURER_SELECTION_ENABLED_DISABLED_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Do you want want to enable manufacturer selection?' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 form-group margin-form selected_part" id="manufacturer_selection">
|
||||
<label class="control-label col-lg-3">
|
||||
<span data-html="true" data-original-title="{l s='Select Manufacturers to be privateshop.' mod='privateshoplite'}" class="label-tooltip" data-toggle="tooltip" title="">{l s='Select Manufacturers' mod='privateshoplite'}</span>
|
||||
</label>
|
||||
<div class="col-lg-9" id="manufacturer_selection">
|
||||
<table cellspacing="0" cellpadding="0" class="table std table-bordered" style="overflow-y: auto; width: 400px; height:auto;{if $version < 1.6}width:300px;{/if}">
|
||||
<tr>
|
||||
<th> <input type="checkbox" name="checkme" id="checkme" class="noborder" onclick="checkDelBoxes(this.form, 'manufacturers[]', this.checked)"/>
|
||||
</th>
|
||||
<th>{l s='ID' mod='privateshoplite'}</th>
|
||||
<th>{l s='Supplier' mod='privateshoplite'}</th>
|
||||
</tr>
|
||||
<tr><td colspan="3" style="border-bottom:1px solid #e1e1e1;"></td></tr>
|
||||
{foreach from=$manufacturers item=manufacturer}
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="manufacturers[]" value="{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}" {if isset($selected_manufacturers) && in_array($manufacturer.id_manufacturer, $selected_manufacturers)}checked="checked"{/if}/>
|
||||
</td>
|
||||
<td>
|
||||
{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
<span for="{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}" class="checkbox">
|
||||
{$manufacturer.name|escape:'htmlall':'UTF-8'}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{* manufacturer end *}
|
||||
<!-- Private CMS Pages -->
|
||||
<div class="col-lg-12 form-group margin-form selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Enable CMS Selection?' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="CMS_SELECTION_ENABLED_DISABLED" id="CMS_SELECTION_ENABLED_DISABLED_on" value="1" {if isset($field_values) AND isset($field_values.cms_selection_enabled_disabled) AND $field_values.cms_selection_enabled_disabled == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="CMS_SELECTION_ENABLED_DISABLED_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="CMS_SELECTION_ENABLED_DISABLED" id="CMS_SELECTION_ENABLED_DISABLED_off" value="0" {if isset($field_values) AND isset($field_values.cms_selection_enabled_disabled) AND $field_values.cms_selection_enabled_disabled == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="CMS_SELECTION_ENABLED_DISABLED_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Do you want to enable cms selection?' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group margin-form selected_part" id="cms_selection" >
|
||||
<label class="control-label col-lg-3" for="product_autocomplete_input">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select page(s) to make them private.' mod='privateshoplite'}">{l s='Private CMS Pages' mod='privateshoplite'}</span>
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<div id="productArrayTable">
|
||||
<table cellspacing="0" cellpadding="0" class="table std table-bordered" style="overflow-y: auto;{if $version < 1.6}width:500px;{/if}">
|
||||
<tr>
|
||||
<th> <input type="checkbox" name="checkme" id="checkme" class="noborder" onclick="checkDelBoxes(this.form, 'cms_pages[]', this.checked)"/>
|
||||
</th>
|
||||
<th>{l s='ID' mod='privateshoplite'}</th>
|
||||
<th>{l s='Page Name' mod='privateshoplite'}</th>
|
||||
</tr>
|
||||
<tr><td colspan="3" style="border-bottom:1px solid #e1e1e1;"></td></tr>
|
||||
{foreach from=$cms_pages item=page}
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" class="cms_pages" name="cms_pages[]" id="{$page.id_cms|escape:'htmlall':'UTF-8'}" value="{$page.id_cms|escape:'htmlall':'UTF-8'}" {if isset($pages) AND $pages AND in_array($page.id_cms, $pages)}checked="checked"{/if}/>
|
||||
</td>
|
||||
<td>
|
||||
{$page.id_cms|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
<span for="{$page.id_cms|escape:'htmlall':'UTF-8'}" class="t">
|
||||
{$page.meta_title|escape:'htmlall':'UTF-8'}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<!-- restricted signup -->
|
||||
<div class="col-lg-12 form-group margin-form">
|
||||
<label class="form-group control-label col-lg-3">{l s='Allow Google to crawl?' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_RESTRICT_GOOGLE" id="PRIVATE_RESTRICT_GOOGLE_on" value="1" {if isset($field_values) AND isset($field_values.active_google) AND $field_values.active_google == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_RESTRICT_GOOGLE_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_RESTRICT_GOOGLE" id="PRIVATE_RESTRICT_GOOGLE_off" value="0" {if isset($field_values) AND isset($field_values.active_google) AND $field_values.active_google == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_RESTRICT_GOOGLE_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Do you want Google searchbot to access the webstore for SEO?' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
178
modules/privateshoplite/views/templates/admin/customers.tpl
Normal file
178
modules/privateshoplite/views/templates/admin/customers.tpl
Normal file
@@ -0,0 +1,178 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
|
||||
<div class="bootstrap">
|
||||
<div class="alert alert-warning">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<ul class="list-unstyled">
|
||||
<li>{l s='Please note that the email notification will be only sent to user if you activate the customer account from below Activate button.' mod='privateshoplite'}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel col-lg-12">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-search"></i> {l s='Filter' mod='privateshoplite'}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12 form-group">
|
||||
<div class="col-lg-2">
|
||||
<label class="col-lg-5 control-label">{l s='Show:' mod='privateshoplite'}</label>
|
||||
<select class="filter col-lg-7" name="n">
|
||||
<option value="10"{if $search_result.n == 0 || $search_result.n <= 10} selected="selected"{/if}>10</option>
|
||||
<option value="25"{if $search_result.n == 25} selected="selected"{/if}>25</option>
|
||||
<option value="50"{if $search_result.n == 50} selected="selected"{/if}>50</option>
|
||||
<option value="100"{if $search_result.n == 100} selected="selected"{/if}>100</option>
|
||||
<option value="300"{if $search_result.n == 300} selected="selected"{/if}>300</option>
|
||||
<option value="500"{if $search_result.n == 500} selected="selected"{/if}>500</option>
|
||||
<option value="1000"{if $search_result.n == 1000} selected="selected"{/if}>1000</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label class="col-lg-4 control-label">{l s='Position:' mod='privateshoplite'}</label>
|
||||
<select class="filter col-lg-8" name="filter_select_pos">
|
||||
<option value="0"{if $search_result.pos == 0} selected="selected"{/if}>{l s='By ID Asc' mod='privateshoplite'}</option>
|
||||
<option value="1"{if $search_result.pos > 0} selected="selected"{/if}>{l s='By ID Desc' mod='privateshoplite'}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label class="col-lg-4 control-label">{l s='Active:' mod='privateshoplite'}</label>
|
||||
<select class="filter col-lg-8" name="filter_select_state">
|
||||
<option value="0"{if $search_result.state == 0} selected="selected"{/if}>{l s='--' mod='privateshoplite'}</option>
|
||||
<option value="1"{if $search_result.state == 1} selected="selected"{/if}>{l s='Yes' mod='privateshoplite'}</option>
|
||||
<option value="2"{if $search_result.state == 2} selected="selected"{/if}>{l s='No' mod='privateshoplite'}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-2 pull-right">
|
||||
<button type="submit" name="search" class="btn btn-default pull-right"><i class="icon-search"></i> {l s='Search' mod='privateshoplite'}</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 form-group" style=" margin-bottom: 5px;">
|
||||
<div class="col-lg-10">
|
||||
<label class="col-lg-4 control-label">{l s='By Name:' mod='privateshoplite'}</label>
|
||||
<div class="col-lg-8">
|
||||
<input type="text" name="search_by_name" value="{if isset($search_result.name) && !empty($search_result.name)}{$search_result.name|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2 pull-right">
|
||||
<button type="submit" name="searchReset" class="btn btn-warning pull-right"><i class="icon-eraser"></i> {l s='Reset' mod='privateshoplite'}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-filter-templates" style="width:100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="center"><span class="title_box"><strong>{l s='ID' mod='privateshoplite'}</strong></span></th>
|
||||
<th class="center"><span class="title_box"><strong>{l s='Title' mod='privateshoplite'}</strong></span></th>
|
||||
<th><span class="title_box"><strong>{l s='Name' mod='privateshoplite'}</strong></span></th>
|
||||
<th><span class="title_box"><strong>{l s='Email' mod='privateshoplite'}</strong></span></th>
|
||||
<th class="center"><span class="title_box"><strong>{l s='Status' mod='privateshoplite'}</strong></span></th>
|
||||
<th class="center"><span class="title_box"><strong>{l s='Newsletter' mod='privateshoplite'}</strong></span></th>
|
||||
<th class="center"><span class="title_box"><strong>{l s='Signup Date' mod='privateshoplite'}</strong></span></th>
|
||||
<th class="center"><span class="title_box"><strong>{l s='Last Visit' mod='privateshoplite'}</strong></span></th>
|
||||
<th class="center"><span class="title_box text-right"><strong>{l s='Action' mod='privateshoplite'}</strong></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($customers) AND $customers}
|
||||
{foreach from=$customers item=customer}
|
||||
<tr>
|
||||
<td class="center" style="padding:10px;width:50px;">{$customer.id_customer|escape:'htmlall':'UTF-8'}</td>
|
||||
<td class="center" style="padding:10px;width:50px;">{$customer.title|escape:'htmlall':'UTF-8'}</td>
|
||||
<td {if $version >= 1.6}style="width:100%"{/if}>{$customer.customer|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$customer.email|escape:'htmlall':'UTF-8'}</td>
|
||||
<td class="center">
|
||||
{if $customer.active == 1}
|
||||
<label class="t list-action-enable action-enabled" for="active_on">
|
||||
<i class="icon-check"></i>
|
||||
{if $version < 1.6}
|
||||
<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />
|
||||
{/if}
|
||||
</label>
|
||||
{else}
|
||||
<label class="t list-action-enable action-disabled" for="active_off">
|
||||
<i class="icon-remove"></i>
|
||||
{if $version < 1.6}
|
||||
<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />
|
||||
{/if}
|
||||
</label>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $customer.newsletter == 1}
|
||||
<label class="t list-action-enable action-enabled" for="active_on">
|
||||
<i class="icon-check"></i>
|
||||
{if $version < 1.6}
|
||||
<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />
|
||||
{/if}
|
||||
</label>
|
||||
{else}
|
||||
<label class="t list-action-enable action-disabled" for="active_off">
|
||||
<i class="icon-remove"></i>
|
||||
{if $version < 1.6}
|
||||
<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />
|
||||
{/if}
|
||||
</label>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">{$customer.date_add|escape:'htmlall':'UTF-8'}</td>
|
||||
<td class="center">{$customer.connect|escape:'htmlall':'UTF-8'}</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group-action">
|
||||
<div class="btn-group pull-right">
|
||||
{if $customer.active <= 0}
|
||||
<a onclick="document.location='{$activate_index|escape:'htmlall':'UTF-8'}&id_customer={$customer.id_customer|escape:'htmlall':'UTF-8'}'" class="btn btn-default" title="{l s='Activate' mod='privateshoplite'}" href="javascript:void(0);">
|
||||
{if $version >= 1.6}
|
||||
<i class="icon-search-plus"></i> {l s='Activate' mod='privateshoplite'}
|
||||
{else}
|
||||
<img src="../img/admin/details.gif"/>
|
||||
{/if}
|
||||
</a>
|
||||
{else}
|
||||
<a href="{$link->getAdminLink('AdminCustomers', true,[], ['id_customer' => $customer.id_customer|escape:'htmlall':'UTF-8', 'viewcustomer' => 1])}"
|
||||
class="edit btn btn-default"
|
||||
title="{l s='View' mod='privateshoplite'}">
|
||||
{if $version >= 1.6}
|
||||
<i class="icon-search-plus"></i> {l s='View' mod='privateshoplite'}
|
||||
{else}
|
||||
<img src="../img/admin/details.gif"/>
|
||||
{/if}
|
||||
</a>
|
||||
{/if}
|
||||
{if $version >= 1.6}
|
||||
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle">
|
||||
<i class="icon-caret-down"></i>
|
||||
</button>
|
||||
{/if}
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a onclick="document.location='{$cIndex|escape:'htmlall':'UTF-8'}&id_customer={$customer.id_customer|escape:'htmlall':'UTF-8'}&deletecustomer&token={$ctoken|escape:'htmlall':'UTF-8'}'" class="delete" title="{l s='Delete' mod='privateshoplite'}" href="javascript:void(0);">
|
||||
{if $version >= 1.6}
|
||||
<i class="icon-trash"></i> {l s='Delete' mod='privateshoplite'}
|
||||
{else}
|
||||
<img src="../img/admin/delete.gif"/>
|
||||
{/if}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
185
modules/privateshoplite/views/templates/admin/form.tpl
Normal file
185
modules/privateshoplite/views/templates/admin/form.tpl
Normal file
@@ -0,0 +1,185 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
<script type="text/javascript" src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}js/jquery/plugins/jquery.colorpicker.js"></script>
|
||||
<script type="text/javascript">
|
||||
$.fn.mColorPicker.defaults.imageFolder = "{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/";
|
||||
var currentFormTab = "{if isset($smarty.get.currentFormTab)}{$smarty.get.currentFormTab|escape:'htmlall':'UTF-8'}{elseif isset($currentFormTab) AND $currentFormTab}{$currentFormTab|escape:'htmlall':'UTF-8'}{else}general{/if}";
|
||||
$(document).ready(function() {
|
||||
displayPrivateTab(currentFormTab);
|
||||
})
|
||||
function displayPrivateTab(tab)
|
||||
{
|
||||
$('.private_tab').hide();
|
||||
$('.private_tab_page').removeClass('selected');
|
||||
$('#privateshop_' + tab).show();
|
||||
$('#privateshop_link_' + tab).addClass('selected');
|
||||
$('#currentFormTab').val(tab);
|
||||
if (tab == 'passwordpage' || tab == 'extrafields') {
|
||||
$('#config-footer').hide();
|
||||
$('#privateshop_form_wrapper').removeClass('panel');
|
||||
} else {
|
||||
$('#config-footer').show();
|
||||
$('#privateshop_form_wrapper').addClass('panel');
|
||||
}
|
||||
var currentUrl = new URL(window.location.href);
|
||||
currentUrl.searchParams.set('menu', tab); // Add or update the 'tab' parameter
|
||||
var newUrl = currentUrl.toString();
|
||||
history.pushState({ path: newUrl }, '', newUrl);
|
||||
}
|
||||
</script>
|
||||
<div class="private_shop_container">
|
||||
<div class="col-lg-2 " id="private-shop">
|
||||
<div class="productTabs">
|
||||
<ul class="tab">
|
||||
<li class="tab-row">
|
||||
<a class="private_tab_page selected" id="privateshop_link_general"
|
||||
href="javascript:displayPrivateTab('general');">{l s='General Settings' mod='privateshoplite'}</a>
|
||||
</li>
|
||||
<li class="tab-row">
|
||||
<a class="private_tab_page" id="privateshop_link_control"
|
||||
href="javascript:displayPrivateTab('control');">{l s='Access Control' mod='privateshoplite'}</a>
|
||||
</li>
|
||||
<li class="tab-row">
|
||||
<a class="private_tab_page" id="privateshop_link_customers"
|
||||
href="javascript:displayPrivateTab('customers');">{l s='Private Customers'
|
||||
mod='privateshoplite'}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Tab Content -->
|
||||
<div id="privateshop_form_wrapper" class="col-lg-10 panel">
|
||||
<form action="{$URL|escape:'htmlall':'UTF-8'}" name="privateshop_form" id="privateshop_form" method="post"
|
||||
enctype="multipart/form-data" class="form-horizontal" {if $version <
|
||||
1.6}style="margin-left: 145px;" {/if}>
|
||||
<input type="hidden" id="currentFormTab" name="currentFormTab" value="{if isset($smarty.get.currentFormTab)}{$smarty.get.currentFormTab|escape:'htmlall':'UTF-8'}{elseif isset($currentFormTab) AND $currentFormTab}{$currentFormTab|escape:'htmlall':'UTF-8'}{else}general{/if}" />
|
||||
<div id="privateshop_general" class="private_tab tab-pane" style="display:none;">
|
||||
<h3 class="tab"><img
|
||||
src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/config.png" />
|
||||
{l s='General Settings' mod='privateshoplite'}</h3>
|
||||
<div class="separation"></div>
|
||||
{include file="../admin/general_settings.tpl"}
|
||||
</div>
|
||||
<div id="privateshop_control" class="private_tab tab-pane" style="display:none;">
|
||||
<h3 class="tab"><img
|
||||
src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/access.png" />
|
||||
{l s='Access Control' mod='privateshoplite'}</h3>
|
||||
<div class="separation"></div>
|
||||
{include file="../admin/access_control.tpl"}
|
||||
</div>
|
||||
<div id="privateshop_customers" class="private_tab tab-pane" style="display:none;">
|
||||
<h3 class="tab"><img
|
||||
src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/usr.png" />
|
||||
{l s='Private Customers' mod='privateshoplite'}</h3>
|
||||
<div class="separation"></div>
|
||||
{include file="../admin/customers.tpl"}
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
{if $version >= 1.6}
|
||||
<div id="config-footer" class="panel-footer">
|
||||
<button class="btn btn-default pull-right" name="saveConfiguration" type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='privateshoplite'}
|
||||
</button>
|
||||
</div>
|
||||
{else}
|
||||
<div id="config-footer" style="text-align:center">
|
||||
<input type="submit" value="{l s='Save' mod='privateshoplite'}" class="button" name="saveConfiguration" />
|
||||
</div>
|
||||
{/if}
|
||||
</form><div class="clearfix"></div>
|
||||
<div class="separation"></div>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
<br></br>
|
||||
<div class="clearfix"></div>
|
||||
{literal}
|
||||
<style type="text/css">
|
||||
/*== PS 1.6 ==*/
|
||||
#private-shop ul.tab {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0
|
||||
}
|
||||
|
||||
#private-shop ul.tab li a {
|
||||
background-color: white;
|
||||
border: 1px solid #DDDDDD;
|
||||
display: block;
|
||||
margin-bottom: -1px;
|
||||
padding: 10px 15px;
|
||||
}
|
||||
|
||||
#private-shop ul.tab li a {
|
||||
display: block;
|
||||
color: #555555;
|
||||
text-decoration: none
|
||||
}
|
||||
|
||||
#private-shop ul.tab li a.selected {
|
||||
color: #fff;
|
||||
background: #00AFF0
|
||||
}
|
||||
|
||||
#privateshop_toolbar {
|
||||
clear: both;
|
||||
padding-top: 20px;
|
||||
overflow: hidden
|
||||
}
|
||||
|
||||
#privateshop_toolbar .pageTitle {
|
||||
min-height: 90px
|
||||
}
|
||||
|
||||
#privateshop_toolbar ul {
|
||||
list-style: none;
|
||||
float: right
|
||||
}
|
||||
|
||||
#privateshop_toolbar ul li {
|
||||
display: inline-block;
|
||||
margin-right: 10px
|
||||
}
|
||||
|
||||
#privateshop_toolbar ul li .toolbar_btn {
|
||||
background-color: white;
|
||||
border: 1px solid #CCCCCC;
|
||||
color: #555555;
|
||||
-moz-user-select: none;
|
||||
background-image: none;
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
line-height: 1.42857;
|
||||
margin-bottom: 0;
|
||||
padding: 8px 8px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#privateshop_toolbar ul li .toolbar_btn:hover {
|
||||
background-color: #00AFF0 !important;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#privateshop_form .language_flags {
|
||||
display: none
|
||||
}
|
||||
</style>
|
||||
{/literal}
|
||||
@@ -0,0 +1,440 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
{literal}
|
||||
<style type="text/css">
|
||||
.frame_styled { display: inline-block; padding: 1.5% !important; border: 1px solid #C7D6DB; background: #F5F8F9; text-align: center;
|
||||
margin-right: 2%; border-radius: 4px; position: relative; cursor: pointer; max-height: 90px; overflow: hidden}
|
||||
.active_frame { background: #c5f7ca; border-color: #72C279}
|
||||
.frame_styled input[type="radio"] { height: 90px; left: 0; position: absolute; top: -10px; width: 100%; opacity: 0; z-index: 99;}
|
||||
.pvt_icon { text-align: center; display: block; clear: both;}
|
||||
.pvt_icon::before { display: inline-block;
|
||||
font-family: FontAwesome; color: #2EACCE;
|
||||
font-size: 32px;
|
||||
font-size-adjust: none;
|
||||
font-stretch: normal;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
text-rendering: auto;}
|
||||
.ac_ico::before {content: "\f1fb";}
|
||||
.ai_ico::before {content: "\f03e";}
|
||||
.ayv_ico::before {content: "\f16a";}
|
||||
.ws_ico::before {content: "\f023";}
|
||||
.os_ico::before {content: "\f13e";}
|
||||
.mod_theme_ico::before {content: "\f0d0";}
|
||||
.def_theme_ico::before {content: "\f0c5";}
|
||||
.red_flag { color: red;}
|
||||
</style>{/literal}
|
||||
<script type="text/javascript">
|
||||
var _activate_customer = {$activate_customer|escape:'htmlall':'UTF-8'};
|
||||
var _tab_module = "{$tab_select|escape:'htmlall':'UTF-8'}";
|
||||
$(document).ready(function(){
|
||||
var chk_box = document.getElementsByName('BACKGROUND_TYPE');
|
||||
for(var i=0; i<chk_box.length;i++)
|
||||
{
|
||||
if (chk_box[i].checked)
|
||||
{
|
||||
var sel_opt = chk_box[i].value;
|
||||
show_bg_option(sel_opt);
|
||||
}
|
||||
}
|
||||
if (_activate_customer > 0 || _tab_module === 'customers') {
|
||||
javascript:displayPrivateTab('customers');
|
||||
}
|
||||
$('.frame_styled').on('click', function(e) {
|
||||
$(this).parent().find('.frame_styled').removeClass('active_frame');
|
||||
$(this).addClass('active_frame');
|
||||
});
|
||||
});
|
||||
|
||||
function show_bg_option(opt)
|
||||
{
|
||||
$('.bg_options').hide();
|
||||
$('#'+opt).show();
|
||||
if(opt.toString() == 'background-image')
|
||||
$('#background-gallery').show();
|
||||
}
|
||||
</script>
|
||||
<!-- login title -->
|
||||
<div class="col-lg-12 form-group margin-form ">
|
||||
<label class="form-group control-label col-lg-3">{l s='Enable Private Shop?' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_ENABLED_DISABLED" id="PRIVATE_ENABLED_DISABLED_on" value="1" {if isset($field_values) AND isset($field_values.PRIVATE_ENABLED_DISABLED) AND $field_values.PRIVATE_ENABLED_DISABLED == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_ENABLED_DISABLED_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_ENABLED_DISABLED" id="PRIVATE_ENABLED_DISABLED_off" value="0" {if isset($field_values) AND isset($field_values.PRIVATE_ENABLED_DISABLED) AND $field_values.PRIVATE_ENABLED_DISABLED == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_ENABLED_DISABLED_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Do you want to enable privateshop?' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part" >
|
||||
<label class="form-group control-label col-lg-3">{l s='Login Title' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form">
|
||||
<div class="col-lg-6">
|
||||
{foreach from=$languages item=lang}
|
||||
<div class="lang_{$lang.id_lang|escape:'htmlall':'UTF-8'}"id="cpara_{$lang.id_lang|escape:'htmlall':'UTF-8'}"{if $lang.id_lang != $active_lang} style="display:none;"{/if}>
|
||||
<input type="text" class="form-control" name="LOGIN_TITLE_{$lang.id_lang|escape:'htmlall':'UTF-8'}" value="{if isset($field_values) AND isset($field_values.login_title[$lang.id_lang])}{$field_values.login_title[$lang.id_lang]|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="col-lg-3">{$module->displayFlags($languages, Context::getContext()->language->id, 'cpara¤dd', 'cpara', true) nofilter}{*HTML Content*}</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- login title -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part" >
|
||||
<label class="form-group control-label col-lg-3">{l s='Signup Title' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-6">
|
||||
{foreach from=$languages item=lang}
|
||||
<div class="lang_{$lang.id_lang|escape:'htmlall':'UTF-8'}"id="cpara2_{$lang.id_lang|escape:'htmlall':'UTF-8'}"{if $lang.id_lang != $active_lang} style="display:none;"{/if}>
|
||||
<input type="text" class="form-control" name="SIGNUP_TITLE_{$lang.id_lang|escape:'htmlall':'UTF-8'}" value="{if isset($field_values) AND isset($field_values.signup_title[$lang.id_lang])}{$field_values.signup_title[$lang.id_lang]|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="col-lg-3">{$module->displayFlags($languages, Context::getContext()->language->id, 'cpara2¤dd', 'cpara2', true) nofilter}{*HTML Content*}</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- form position -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part" >
|
||||
<label class="control-label col-lg-3">{l s='Form Position' mod='privateshoplite'}</label>
|
||||
<div class="col-lg-2 frame_styled{if isset($field_values) AND isset($field_values.position) AND $field_values.position == 'left'} active_frame{/if}">
|
||||
<span>
|
||||
<input type="radio" name="FORM_POSITION" id="FORM_POSITION_1" value="left" {if isset($field_values) AND isset($field_values.position) AND $field_values.position == 'left'}checked="checked"{/if}/>
|
||||
</span>
|
||||
<div>
|
||||
<label class="t" for="FORM_POSITION_1">
|
||||
<div><center>{l s='Left' mod='privateshoplite'}</center></div>
|
||||
<div><img src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/l.png"/></div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2 frame_styled{if isset($field_values) AND isset($field_values.position) AND $field_values.position == 'center'} active_frame{/if}">
|
||||
<span>
|
||||
<input type="radio" name="FORM_POSITION" id="FORM_POSITION_2" value="center" {if isset($field_values) AND isset($field_values.position) AND $field_values.position == 'center'}checked="checked"{/if}/>
|
||||
</span>
|
||||
<div>
|
||||
<label class="t" for="FORM_POSITION_2">
|
||||
<div><center>{l s='Center' mod='privateshoplite'}</center></div>
|
||||
<div><img src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/c.png"/></div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2 frame_styled{if isset($field_values) AND isset($field_values.position) AND $field_values.position == 'right'} active_frame{/if}">
|
||||
<span>
|
||||
<input type="radio" name="FORM_POSITION" id="FORM_POSITION_3" value="right" {if isset($field_values) AND isset($field_values.position) AND $field_values.position == 'right'}checked="checked"{/if}/>
|
||||
</span>
|
||||
<div>
|
||||
<label class="t" for="FORM_POSITION_3">
|
||||
<div><center>{l s='Right' mod='privateshoplite'}</center></div>
|
||||
<div><img src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/r.png"/></div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<!-- Form Theme selection -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="control-label col-lg-3">{l s='Form Theme' mod='privateshoplite'}</label>
|
||||
<div class="col-lg-9">
|
||||
<div class="col-lg-3 margin-form frame_styled{if isset($field_values) AND isset($field_values.priv_form_theme) AND $field_values.priv_form_theme == 'mod'} active_frame{/if}">
|
||||
<input type="radio" name="PRIVATE_FORM_THEME" id="PRIVATE_FORM_THEME_mod" value="mod" {if isset($field_values) AND isset($field_values.priv_form_theme) AND $field_values.priv_form_theme == 'mod'}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_FORM_THEME_mod">{l s='Modern Theme' mod='privateshoplite'}</label>
|
||||
<i class="pvt_icon mod_theme_ico"></i>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3 margin-form frame_styled{if isset($field_values) AND isset($field_values.priv_form_theme) AND $field_values.priv_form_theme == 'def'} active_frame{/if}">
|
||||
<input type="radio" name="PRIVATE_FORM_THEME" id="PRIVATE_FORM_THEME_def" value="def" {if isset($field_values) AND isset($field_values.priv_form_theme) AND $field_values.priv_form_theme == 'def'}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_FORM_THEME_def">{l s='Default Theme' mod='privateshoplite'}</label>
|
||||
<i class="pvt_icon def_theme_ico"></i>
|
||||
</div>
|
||||
<div style="display: block; clear: both" class="help-block">{l s='Default theme will use your store theme stylesheet.' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- opacity option -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Form Background Opacity' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-6">
|
||||
<input type="text" name="BG_OPACITY" value="{if isset($field_values) AND isset($field_values.bg_opacity)}{$field_values.bg_opacity|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
<div class="help-block">{l s='Use values between 0 and 1 for example 0.6 or 0.85' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- signup -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Enable Signup' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_SIGNUP" id="PRIVATE_SIGNUP_on" value="1" {if isset($field_values) AND isset($field_values.active_signup) AND $field_values.active_signup == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_SIGNUP_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_SIGNUP" id="PRIVATE_SIGNUP_off" value="0" {if isset($field_values) AND isset($field_values.active_signup) AND $field_values.active_signup == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_SIGNUP_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- birthday menu -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Disable Birthday in Signup' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_BDAY" id="PRIVATE_BDAY_on" value="1" {if isset($field_values) AND isset($field_values.bday) AND $field_values.bday == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_BDAY_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_BDAY" id="PRIVATE_BDAY_off" value="0" {if isset($field_values) AND isset($field_values.bday) AND $field_values.bday == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_BDAY_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Only for PrestaShop 1.7.x versions.' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- gender options -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Disable Gender in Signup' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_GENDER_OPT" id="PRIVATE_GENDER_OPT_on" value="1" {if isset($field_values) AND isset($field_values.gender_opt) AND $field_values.gender_opt == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_GENDER_OPT_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_GENDER_OPT" id="PRIVATE_GENDER_OPT_off" value="0" {if isset($field_values) AND isset($field_values.gender_opt) AND $field_values.gender_opt == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_GENDER_OPT_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Only for PrestaShop 1.7.x versions.' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- newsletter box -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Disable Newsletter Signup' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_NLETTER_OPT" id="PRIVATE_NLETTER_OPT_on" value="1" {if isset($field_values) AND isset($field_values.nletter_opt) AND $field_values.nletter_opt == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_NLETTER_OPT_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_NLETTER_OPT" id="PRIVATE_NLETTER_OPT_off" value="0" {if isset($field_values) AND isset($field_values.nletter_opt) AND $field_values.nletter_opt == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_NLETTER_OPT_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Only for PrestaShop 1.7.x versions.' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Offers box -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Disable Offers Signup' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_OFFERS_OPT" id="PRIVATE_OFFERS_OPT_on" value="1" {if isset($field_values) AND isset($field_values.offers_opt) AND $field_values.offers_opt == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_OFFERS_OPT_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_OFFERS_OPT" id="PRIVATE_OFFERS_OPT_off" value="0" {if isset($field_values) AND isset($field_values.offers_opt) AND $field_values.offers_opt == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_OFFERS_OPT_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Only for PrestaShop 1.7.x versions.' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- restricted signup -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Restrict New Accounts?' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_SIGNUP_RESTRICT" id="PRIVATE_SIGNUP_RESTRICT_on" value="1" {if isset($field_values) AND isset($field_values.active_signup_restrict) AND $field_values.active_signup_restrict == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_SIGNUP_RESTRICT_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_SIGNUP_RESTRICT" id="PRIVATE_SIGNUP_RESTRICT_off" value="0" {if isset($field_values) AND isset($field_values.active_signup_restrict) AND $field_values.active_signup_restrict == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_SIGNUP_RESTRICT_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Do you want to validate new accounts OR all new accounts have access to webstore.' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- show store title heading -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part" >
|
||||
<label class="form-group control-label col-lg-3">{l s='Show store title?' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_SHOW_STORE_TITLE" id="PRIVATE_SHOW_STORE_TITLE_on" value="1" {if isset($field_values) AND isset($field_values.show_store_title) AND $field_values.show_store_title == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_SHOW_STORE_TITLE_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_SHOW_STORE_TITLE" id="PRIVATE_SHOW_STORE_TITLE_off" value="0" {if isset($field_values) AND isset($field_values.show_store_title) AND $field_values.show_store_title == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_SHOW_STORE_TITLE_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Do you want to show store title right after logo on form?' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- show store title heading -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Enable Header and Footer' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_SHOW_HEADER_FOOTER" id="PRIVATE_SHOW_HEADER_FOOTER_on" value="1" {if isset($field_values) AND isset($field_values.show_header_footer) AND $field_values.show_header_footer == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_SHOW_HEADER_FOOTER_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_SHOW_HEADER_FOOTER" id="PRIVATE_SHOW_HEADER_FOOTER_off" value="0" {if isset($field_values) AND isset($field_values.show_header_footer) AND $field_values.show_header_footer == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_SHOW_HEADER_FOOTER_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block">{l s='Enable header and footer on private login page.' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Offers box -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Use Custom Logo' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_CUSTOM_LOGO" id="PRIVATE_CUSTOM_LOGO_on" value="1" {if isset($field_values) AND isset($field_values.custom_logo) AND $field_values.custom_logo == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_CUSTOM_LOGO_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_CUSTOM_LOGO" id="PRIVATE_CUSTOM_LOGO_off" value="0" {if isset($field_values) AND isset($field_values.custom_logo) AND $field_values.custom_logo == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_CUSTOM_LOGO_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Offers box -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='Custom Logo' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form">
|
||||
<div class="col-lg-9">
|
||||
{if isset($field_values) AND isset($field_values.custom_logo_img) AND !empty($field_values.custom_logo_img)}
|
||||
<img src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/private/tmp/{$field_values.custom_logo_img|escape:'htmlall':'UTF-8'}" width="100" style="padding: 1px; border: 1px solid #ccc; margin-bottom: 8px" />
|
||||
<div><button type="button" class="btn btn-danger" id="privateshop-settings-delete-logo" data-filename="{$field_values.custom_logo_img|escape:'htmlall':'UTF-8'}">{l s='Delete' mod='privateshoplite'}</button></div>
|
||||
<div id="logo-message" style="display: none;"></div>
|
||||
{/if}
|
||||
<input class="btn btn-default" type="file" name="custom_logo_img"/>
|
||||
<div class="help-block">{l s='It will be used as logo if custom logo option is turned ON.' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- restricted signup message MCE -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="form-group control-label col-lg-3">{l s='New Accounts Message' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
{include file='./textarea_lang.tpl'
|
||||
languages=$languages
|
||||
input_name='restrict_message'
|
||||
class="autoload_rte"
|
||||
input_value=$field_values.restrict_message}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- background selection -->
|
||||
<div class="col-lg-12 form-group margin-form general_selected_part">
|
||||
<label class="control-label col-lg-3">{l s='Background' mod='privateshoplite'}</label>
|
||||
<div class="col-lg-2 margin-form frame_styled{if isset($field_values) AND isset($field_values.bg_type) AND $field_values.bg_type == 'background-color'} active_frame{/if}">
|
||||
<input type="radio" name="BACKGROUND_TYPE" id="BACKGROUND_TYPE_color" value="background-color" onclick="show_bg_option($(this).val());" {if isset($field_values) AND isset($field_values.bg_type) AND $field_values.bg_type == 'background-color'}checked="checked"{/if}/>
|
||||
<label class="t" for="BACKGROUND_TYPE_color">{l s='Apply Color' mod='privateshoplite'}</label>
|
||||
<i class="pvt_icon ac_ico"></i>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2 margin-form frame_styled{if isset($field_values) AND isset($field_values.bg_type) AND $field_values.bg_type == 'background-image'} active_frame{/if}">
|
||||
<input type="radio" name="BACKGROUND_TYPE" id="BACKGROUND_TYPE_image" value="background-image" onclick="show_bg_option($(this).val());" {if isset($field_values) AND isset($field_values.bg_type) AND $field_values.bg_type == 'background-image'}checked="checked"{/if}/>
|
||||
<label class="t" for="BACKGROUND_TYPE_image">{l s='Apply Image' mod='privateshoplite'}</label>
|
||||
<i class="pvt_icon ai_ico"></i>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 margin-form frame_styled{if isset($field_values) AND isset($field_values.bg_type) AND $field_values.bg_type == 'background-video'} active_frame{/if}">
|
||||
<input type="radio" name="BACKGROUND_TYPE" id="BACKGROUND_TYPE_video" value="background-video" onclick="show_bg_option($(this).val());" {if isset($field_values) AND isset($field_values.bg_type) AND $field_values.bg_type == 'background-video'}checked="checked"{/if}/>
|
||||
<label class="t" for="BACKGROUND_TYPE_video">{l s='Apply YouTube Video' mod='privateshoplite'}</label>
|
||||
<i class="pvt_icon ayv_ico"></i>
|
||||
</div>
|
||||
</div>
|
||||
<!-- background color -->
|
||||
<div class='general_selected_part'>
|
||||
<div id="background-color" class="bg_options col-lg-12 form-group margin-form" style="display:none;">
|
||||
<label class="control-label col-lg-3">{l s='Background Color' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-8">
|
||||
<div class="input-group col-lg-6">
|
||||
<input type="text" class="mColorPicker" id="color_0" value="{if isset($field_values) AND isset($field_values.bg_color)}{$field_values.bg_color|escape:'htmlall':'UTF-8'}{/if}" name="BACKGROUND_COLOR" data-hex="true" />
|
||||
<span id="icp_color_0" class="input-group-addon mColorPickerTrigger" data-mcolorpicker="true"><img src="../img/admin/color.png" /></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- background Video -->
|
||||
<div id="background-video" class="bg_options col-lg-12 form-group margin-form" style="display:none;">
|
||||
<label class="control-label col-lg-3">{l s='Background Youtube Video' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-8">
|
||||
<div class="input-group col-lg-6">
|
||||
<input type="text" class="form-control" value="{if isset($field_values) AND isset($field_values.bg_video)}{$field_values.bg_video|escape:'htmlall':'UTF-8'}{/if}" name="BACKGROUND_VIDEO" />
|
||||
<div class="help-block">{l s='Please use embed link from YouTube like https://www.youtube.com/embed/RdGVz104b3E' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="control-label col-lg-3">{l s='Temporary Background Image' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-8">
|
||||
{if isset($field_values) AND isset($field_values.bg_video_img) AND !empty($field_values.bg_video_img)}
|
||||
<img src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/private/tmp/{$field_values.bg_video_img|escape:'htmlall':'UTF-8'}" width="100" id='privateshop-temp-image' style="padding: 1px; border: 1px solid #ccc; margin-bottom: 8px" />
|
||||
<div><button type="button" class="btn btn-danger" id="privateshop-settings-delete-temp-img" data-filename="{$field_values.bg_video_img|escape:'htmlall':'UTF-8'}">{l s='Delete' mod='privateshoplite'}</button></div>
|
||||
<div id="temp-img-message" style="display: none;"></div>
|
||||
{/if}
|
||||
<input class="btn btn-default" type="file" name="bg_video_img"/>
|
||||
<div class="help-block">{l s='It will be used as background image till the video loads.' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- background image -->
|
||||
<div id="background-image" class="bg_options col-lg-12 form-group margin-form" style="display:none;" >
|
||||
<label class="control-label col-lg-3">{l s='Background Image' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-8">
|
||||
<input class="btn btn-default" type="file" name="bg_image"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="background-gallery" class="bg_options form-group margin-form" {if isset($field_values) AND isset($field_values.bg_type) AND $field_values.bg_type == 'background-image'}style="display:block;"{/if}>
|
||||
<label class="control-label col-lg-3">{l s='Select from gallery' mod='privateshoplite'}</label>
|
||||
<div class="col-lg-6">
|
||||
<select name="bg_image_selected">
|
||||
{foreach from=$images item=image}
|
||||
<option value="{$image|escape:'htmlall':'UTF-8'}" {if isset($field_values) AND isset($field_values.bg_type) AND $field_values.bg_type == 'background-image' AND $field_values.bg_img == $image}selected="selected"{/if}>
|
||||
{$image|escape:'htmlall':'UTF-8'}<img src="../admin/delete.png">
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
70
modules/privateshoplite/views/templates/admin/groups.tpl
Normal file
70
modules/privateshoplite/views/templates/admin/groups.tpl
Normal file
@@ -0,0 +1,70 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
<p class="alert alert-info info">{l s='Checked customer groups below will be granted access to your shop.' mod='privateshoplite'}</p>
|
||||
<div class="panel">
|
||||
<!-- customer group management -->
|
||||
<div class="col-lg-12 form-group margin-form">
|
||||
<label class="form-group control-label col-lg-3">{l s='Enable Group Management?' mod='privateshoplite'}</label>
|
||||
<div class="form-group margin-form ">
|
||||
<div class="col-lg-9">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" name="PRIVATE_CUSTOMER_GROUP_STATE" id="PRIVATE_CUSTOMER_GROUP_STATE_on" value="1" {if isset($field_values) AND isset($field_values.cgroup_active) AND $field_values.cgroup_active == 1}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_CUSTOMER_GROUP_STATE_on">{if $version < 1.6}<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />{else}{l s='Yes' mod='privateshoplite'}{/if}</label>
|
||||
<input type="radio" name="PRIVATE_CUSTOMER_GROUP_STATE" id="PRIVATE_CUSTOMER_GROUP_STATE_off" value="0" {if isset($field_values) AND isset($field_values.cgroup_active) AND $field_values.cgroup_active == 0}checked="checked"{/if}/>
|
||||
<label class="t" for="PRIVATE_CUSTOMER_GROUP_STATE_off">{if $version < 1.6}<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />{else}{l s='No' mod='privateshoplite'}{/if}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
<div class="help-block"><strong class="red_flag">*</strong>{l s='Note: Enabling this option will check for logged-in users group access permissions selected below.' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group margin-form">
|
||||
<label class="control-label col-lg-3">{l s='Select Groups' mod='privateshoplite'}</label>
|
||||
<div class="col-lg-9">
|
||||
<table class="table std table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{l s='ID' mod='privateshoplite'}</th>
|
||||
<th>{l s='Group Name' mod='privateshoplite'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$groups item=group key=k}
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" id="g{$group.id_group|escape:'htmlall':'UTF-8'}" name="groups[]" value="{$group.id_group|escape:'htmlall':'UTF-8'}" {if isset($selected_groups) AND in_array($group.id_group, $selected_groups)}checked="checked"{/if}>
|
||||
</td>
|
||||
<td>{$group.id_group|escape:'htmlall':'UTF-8'}</td>
|
||||
<td><label for="g{$group.id_group|escape:'htmlall':'UTF-8'}">{$group.name|escape:'htmlall':'UTF-8'}</label></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group margin-form">
|
||||
<label class="control-label col-lg-3">{l s='Restriction Message:' mod='privateshoplite'}</label>
|
||||
<div class="col-lg-6">
|
||||
{foreach from=$languages item=lang}
|
||||
<div class="lang_{$lang.id_lang|escape:'htmlall':'UTF-8'}" id="cpara44_{$lang.id_lang|escape:'htmlall':'UTF-8'}"{if $lang.id_lang != $active_lang} style="display:none;"{/if}>
|
||||
<textarea class="form-control" name="PRIVATE_CUSTOMER_GROUP_MSG_{$lang.id_lang|escape:'htmlall':'UTF-8'}">{if isset($field_values) AND isset($field_values.cg_mesg[$lang.id_lang])}{$field_values.cg_mesg[$lang.id_lang]|escape:'htmlall':'UTF-8'}{/if}</textarea>
|
||||
</div>
|
||||
{/foreach}
|
||||
<div class="help-block"><strong class="red_flag">*</strong>{l s='Message for non-permitted users.' mod='privateshoplite'}</div>
|
||||
</div>
|
||||
<div class="col-lg-3">{$module->displayFlags($languages, Context::getContext()->language->id, 'cpara44¤dd', 'cpara44', true) nofilter}{*HTML Content*}</div>
|
||||
</div>
|
||||
</div>
|
||||
32
modules/privateshoplite/views/templates/admin/index.php
Normal file
32
modules/privateshoplite/views/templates/admin/index.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2013 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-2013 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;
|
||||
54
modules/privateshoplite/views/templates/admin/pages.tpl
Normal file
54
modules/privateshoplite/views/templates/admin/pages.tpl
Normal file
@@ -0,0 +1,54 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
<script type="application/javascript">
|
||||
$(function () {
|
||||
$(document).on("click", ".accordion-header", function() {
|
||||
$(this).toggleClass("active").next().slideToggle();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<p class="alert alert-info info">{l s='Selected module pages/controllers will be granted access to your shop.' mod='privateshoplite'}</p>
|
||||
{if isset($module_pages) && $module_pages}
|
||||
{foreach item=pages from=$module_pages key=name}
|
||||
<div class="panel">
|
||||
<h3 class="accordion-header">{$name|escape:'htmlall':'UTF-8'}</h3>
|
||||
<div class="accordion-content">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{l s='Page ID' mod='privateshoplite'}</th>
|
||||
<th>{l s='Page Name' mod='privateshoplite'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach item=page from=$pages key=k}
|
||||
<tr>
|
||||
<td width="10%">
|
||||
<label for="{$k|escape:'htmlall':'UTF-8'}">
|
||||
<input type="checkbox" name="MODULE_PAGES[]" value="{$k|escape:'htmlall':'UTF-8'}" {if isset($module_controllers) AND $module_controllers AND in_array($k, $module_controllers)}checked="checked"{/if}>
|
||||
</label>
|
||||
</td>
|
||||
<td width="60%">{$k|escape:'htmlall':'UTF-8'}</td>
|
||||
<td width="30%"><strong id="{$k|escape:'htmlall':'UTF-8'}">{$page|escape:'htmlall':'UTF-8'}</strong></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<p>{l s='There are no module pages' mod='privateshoplite'}</p>
|
||||
{/if}
|
||||
130
modules/privateshoplite/views/templates/admin/textarea_lang.tpl
Normal file
130
modules/privateshoplite/views/templates/admin/textarea_lang.tpl
Normal file
@@ -0,0 +1,130 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
|
||||
*
|
||||
* @author FMM Modules
|
||||
* @copyright 2021 FMM Modules
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{if $version < 1.6}
|
||||
|
||||
<div class="translatable">
|
||||
{foreach from=$languages item=language}
|
||||
<div id="welcome_{$language.id_lang|escape:'htmlall':'UTF-8'}" class="lang_{$language.id_lang|escape:'htmlall':'UTF-8'}" style="display: {if $language.id_lang == $id_lang} block {else} none{/if};float: left;">
|
||||
<textarea cols="100" rows="10" type="text" id="{$input_name|escape:'htmlall':'UTF-8'}_{$language.id_lang|escape:'htmlall':'UTF-8'}"
|
||||
name="{$input_name|escape:'htmlall':'UTF-8'}_{$language.id_lang|escape:'htmlall':'UTF-8'}"
|
||||
class="autoload_rte" >{if isset($input_value[$language.id_lang])}{$input_value[$language.id_lang]|htmlentitiesUTF8}{*html content*}{/if}</textarea>
|
||||
<span class="hint" name="help_box">{$hint|default:''|escape:'htmlall':'UTF-8'}<span class="hint-pointer"> </span></span>
|
||||
</div>
|
||||
{/foreach}
|
||||
{$module->displayFlags($languages, $active_lang, welcome, welcome, false) nofilter}
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var iso = '{$iso_tiny_mce|escape:'htmlall':'UTF-8'}';
|
||||
var pathCSS = '{$smarty.const._THEME_CSS_DIR_|escape:'htmlall':'UTF-8'}';
|
||||
var ad = '{$ad|escape:'htmlall':'UTF-8'}';
|
||||
var file_not_found = '';
|
||||
</script>
|
||||
{else}
|
||||
|
||||
{foreach from=$languages item=language}
|
||||
{if $languages|count > 1}
|
||||
<div class="translatable-field row lang-{$language.id_lang|escape:'htmlall':'UTF-8'}">
|
||||
<div class="col-lg-9">
|
||||
{/if}
|
||||
<textarea id="{$input_name|escape:'htmlall':'UTF-8'}_{$language.id_lang|escape:'htmlall':'UTF-8'}" name="{$input_name|escape:'htmlall':'UTF-8'}_{$language.id_lang|escape:'htmlall':'UTF-8'}" class="{if isset($class)}{$class|escape:'htmlall':'UTF-8'}{else}textarea-autosize{/if}"{if isset($maxlength) && $maxlength} maxlength="{$maxlength|intval|escape:'htmlall':'UTF-8'}"{/if}>{if isset($input_value[$language.id_lang])}{$input_value[$language.id_lang]|htmlentitiesUTF8}{*html content*}{/if}</textarea>
|
||||
|
||||
{if $languages|count > 1}
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
{$language.iso_code|escape:'htmlall':'UTF-8'}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
{foreach from=$languages item=language}
|
||||
<li><a href="javascript:hideOtherLanguage({$language.id_lang|escape:'htmlall':'UTF-8'});">{$language.name|escape:'htmlall':'UTF-8'}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<div class="help-block">{l s='This message will be displayed after registration of restricted customers. You can use HTML tags, images, links etc...' mod='privateshoplite'}</div>
|
||||
<script type="text/javascript">
|
||||
$(".textarea-autosize").autosize();
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
var file_not_found = '';
|
||||
$(document).ready(function ()
|
||||
{
|
||||
$('.displayed_flag .pointer').addClass('btn btn-default');
|
||||
$('.language_flags').addClass('well').css('display','inline-block').hide();
|
||||
hideOtherLanguage({/literal}{$active_lang|escape:'htmlall':'UTF-8'}{literal});
|
||||
setTimeout(function() {
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "modern",
|
||||
plugins : "pagebreak,layer,table,image,link,media,searchreplace,contextmenu,paste,directionality,fullscreen",
|
||||
theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
|
||||
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor",
|
||||
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen",
|
||||
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,pagebreak",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
// theme_advanced_statusbar_location : "bottom",
|
||||
theme_advanced_resizing : false,
|
||||
skin: 'prestashop',
|
||||
toolbar1:
|
||||
'code,colorpicker,bold,italic,underline,strikethrough,blockquote,link,align,bullist,numlist,table,image,media,formatselect',
|
||||
document_base_url : "{/literal}{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}{literal}",
|
||||
height: "auto",
|
||||
font_size_style_values : "8pt, 10pt, 12pt, 14pt, 18pt, 24pt, 36pt",
|
||||
template_external_list_url : "lists/template_list.js",
|
||||
external_link_list_url : "lists/link_list.js",
|
||||
external_image_list_url : "lists/image_list.js",
|
||||
media_external_list_url : "lists/media_list.js",
|
||||
elements : "nourlconvert",
|
||||
entity_encoding: "raw",
|
||||
convert_urls : false,
|
||||
language : "{/literal}{$iso_tiny_mce|escape:'htmlall':'UTF-8'}{literal}"
|
||||
});
|
||||
}, 3000);
|
||||
id_language = Number("{/literal}{$active_lang|escape:'htmlall':'UTF-8'}{literal}");
|
||||
});
|
||||
function hideOtherLanguage(id)
|
||||
{
|
||||
$('.translatable-field').hide();
|
||||
$('.lang-' + id).show();
|
||||
|
||||
var id_old_language = id_language;
|
||||
id_language = id;
|
||||
|
||||
if (id_old_language != id)
|
||||
changeEmployeeLanguage();
|
||||
|
||||
updateCurrentText();
|
||||
}
|
||||
|
||||
function changeEmployeeLanguage()
|
||||
{
|
||||
if (typeof allowEmployeeFormLang !== 'undefined' && allowEmployeeFormLang)
|
||||
$.post("index.php", {
|
||||
action: 'formLanguage',
|
||||
tab: 'AdminEmployees',
|
||||
ajax: 1,
|
||||
token: employee_token,
|
||||
form_language_id: id_language
|
||||
});
|
||||
}
|
||||
</script>{/literal}
|
||||
125
modules/privateshoplite/views/templates/front/deadend.tpl
Normal file
125
modules/privateshoplite/views/templates/front/deadend.tpl
Normal file
@@ -0,0 +1,125 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
<!DOCTYPE HTML>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if gt IE 8]> <html class="no-js ie9" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<html lang="{$language_code|escape:'htmlall':'UTF-8'}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
|
||||
{if isset($meta_description)}
|
||||
<meta name="description" content="{$meta_description|escape:'htmlall':'UTF-8'}" />
|
||||
{/if}
|
||||
{if isset($meta_keywords)}
|
||||
<meta name="keywords" content="{$meta_keywords|escape:'htmlall':'UTF-8'}" />
|
||||
{/if}
|
||||
<meta name="generator" content="PrestaShop" />
|
||||
<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}?{$img_update_time|escape:'htmlall':'UTF-8'}" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}?{$img_update_time|escape:'htmlall':'UTF-8'}" />
|
||||
{if isset($field_values) AND $field_values.bg_type}
|
||||
{if $field_values.bg_type == "background-video" AND isset($field_values.bg_video)}
|
||||
<script type="text/javascript" src="{$base_uri|escape:'htmlall':'UTF-8'}js/jquery/jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/js/jquery.tubular.1.0.js"></script>
|
||||
{/if}
|
||||
{/if}
|
||||
<link rel="shortcut icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}" />
|
||||
<link rel="stylesheet" href="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/css/private.css" type="text/css" charset="utf-8" />
|
||||
{if $version > 0}
|
||||
<link rel="stylesheet" href="{$css_dir|escape:'htmlall':'UTF-8'}custom.css" type="text/css" media="all" charset="utf-8" />
|
||||
<link rel="stylesheet" href="{$css_dir|escape:'htmlall':'UTF-8'}theme.css" type="text/css" media="all" charset="utf-8" />
|
||||
{/if}
|
||||
{literal}
|
||||
<!-- inline css -->
|
||||
<style type="text/css">
|
||||
html { padding: 0px;}
|
||||
body
|
||||
{
|
||||
height: 100% !important;
|
||||
margin: 0;
|
||||
background: rgba(77,117,219,1);
|
||||
background: -moz-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -webkit-gradient(left top, right top, color-stop(0%, rgba(77,117,219,1)), color-stop(55%, rgba(120,155,227,1)), color-stop(100%, rgba(120,155,227,1)));
|
||||
background: -webkit-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -o-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -ms-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: linear-gradient(to right, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d75db', endColorstr='#789be3', GradientType=1 );
|
||||
}
|
||||
#bg-private-image{
|
||||
background:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/{$field_values.bg_img|escape:'htmlall':'UTF-8'}{literal}") no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#bg-private-image_video{
|
||||
background:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/tmp/{$field_values.bg_video_img|escape:'htmlall':'UTF-8'}{literal}") no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body#bg-private-color{
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
background: {/literal}{$field_values.bg_color|escape:'htmlall':'UTF-8'}{literal};
|
||||
}
|
||||
.bg_opacity {
|
||||
background:rgb(241,241,241,{/literal}{$field_values.bg_opacity|escape:'htmlall':'UTF-8'}{literal}) !important;
|
||||
}
|
||||
.bg_opacity_white {
|
||||
background:rgb(255,255,255,{/literal}{$field_values.bg_opacity/2|escape:'htmlall':'UTF-8'}{literal}) !important;
|
||||
}
|
||||
</style><!--/inline css-->
|
||||
{/literal}
|
||||
{if isset($field_values) AND $field_values.bg_type}
|
||||
{if $field_values.bg_type == "background-video" AND isset($field_values.bg_video)}
|
||||
<script type="text/javascript">{literal}
|
||||
var psNew = parseInt("{if $version ge '1.7'}1{else}0{/if}");
|
||||
$(document).ready(function() {
|
||||
var wrapper = (psNew)? '#wrapper' : '#page';
|
||||
$(wrapper).tubular({videoId: {/literal}'{$field_values.bg_video}'{literal}}); {*html content*}
|
||||
});{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
||||
</head>
|
||||
<body {if isset($field_values) AND $field_values.bg_type}{if $field_values.bg_type == "background-image" AND isset($field_values.bg_img)}id="bg-private-image"{elseif $field_values.bg_type == "background-video" AND isset($field_values.bg_video_img)}id="bg-private-image_video"{else if isset($field_values.bg_color) AND $field_values.bg_type == 'background-color'}id="bg-private-color"{/if}{/if}>
|
||||
<div id="wrapper"{if isset($field_values.position) AND $field_values.position AND $field_values.position == 'left'} class="bg_opacity"{elseif $field_values.position == 'right'} class="bg_opacity"{/if} style="{if isset($field_values.position) AND $field_values.position AND $field_values.position == 'left'}float: left; margin-left:3%;{elseif $field_values.position == 'right'}float: right; margin-right:3%;{elseif $field_values.position == 'center'}margin:0 auto;{/if}" {if isset($field_values) AND $field_values.position == 'center'}class="center_align bg_opacity"{/if}>
|
||||
<div id="privatebox">
|
||||
<div class="container bg_opacity_white" id="fmm_ps17">
|
||||
<p style="text-align:center;"><img src="{if isset($field_values.custom_logo) && $field_values.custom_logo > 0}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/tmp/{$field_values.custom_logo_img|escape:'htmlall':'UTF-8'}{else}{$logo_url|escape:'htmlall':'UTF-8'}{/if}" alt="logo" /></p>
|
||||
{if isset($field_values.restrict_message) AND empty($field_values.restrict_message)}
|
||||
<div id="restricted">
|
||||
<h1>{l s='You do not have permission to view this page.' mod='privateshoplite'}</h1>
|
||||
</div>
|
||||
{else}
|
||||
{$field_values.restrict_message nofilter}{*HTML Content*}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
23
modules/privateshoplite/views/templates/front/errors.tpl
Normal file
23
modules/privateshoplite/views/templates/front/errors.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
|
||||
{if isset($errors) && $errors}
|
||||
<div class="alert alert-danger" id="ps17_errors">
|
||||
<ol>
|
||||
{foreach from=$errors key=k item=error}
|
||||
<li>{$error}</li>{*html content*}
|
||||
{/foreach}
|
||||
</ol>
|
||||
</div>
|
||||
{/if}
|
||||
32
modules/privateshoplite/views/templates/front/index.php
Normal file
32
modules/privateshoplite/views/templates/front/index.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2013 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-2013 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;
|
||||
45
modules/privateshoplite/views/templates/front/password.tpl
Normal file
45
modules/privateshoplite/views/templates/front/password.tpl
Normal file
@@ -0,0 +1,45 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
<div class="box">
|
||||
<h1 class="page-subheading">{l s='Forgot your password?' mod='privateshoplite'}</h1>
|
||||
|
||||
{*include file="$tpl_dir./errors.tpl"*}
|
||||
|
||||
{if isset($confirmation) && $confirmation == 1}
|
||||
<p class="alert alert-success">{l s='Your password has been successfully reset and a confirmation has been sent to your email address:' mod='privateshoplite'} {if isset($customer_email)}{$customer_email|escape:'htmlall':'UTF-8'|stripslashes}{/if}</p>
|
||||
{elseif isset($confirmation) && $confirmation == 2}
|
||||
<p class="alert alert-success">{l s='A confirmation email has been sent to your address:' mod='privateshoplite'} {if isset($customer_email)}{$customer_email|escape:'htmlall':'UTF-8'|stripslashes}{/if}</p>
|
||||
{else}
|
||||
<p>{l s='Please enter the email address you used to register. We will then send you a new password. ' mod='privateshoplite'}</p>
|
||||
<form action="{$request_uri|escape:'htmlall':'UTF-8'}" method="post" class="std" id="form_forgotpassword">
|
||||
<input type="hidden" name="private_pass_recovery" value="1">
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
<label for="email">{l s='Email address' mod='privateshoplite'}</label>
|
||||
<input class="form-control" type="text" placeholder="{l s='Email address' mod='privateshoplite'}" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
|
||||
</div>
|
||||
<p class="submit">
|
||||
{if $version < 1.6}
|
||||
<input type="submit" class="button" name="forgotpassword" value="{l s='Retrieve Password' mod='privateshoplite'}" />
|
||||
{else}
|
||||
<button type="submit" class="btn btn-default button button-medium" name="forgotpassword"><span>{l s='Retrieve Password' mod='privateshoplite'}<i class="icon-chevron-right right"></i></span></button>
|
||||
{/if}
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
<ul class="clearfix footer_links">
|
||||
<li><a class="btn btn-default button button-small" href="javascript:void(0);" title="{l s='Back to Login' mod='privateshoplite'}" rel="nofollow" onclick="BackToLogin();"><span><i class="icon-chevron-left"></i>{l s='Back to Login' mod='privateshoplite'}</span></a></li>
|
||||
</ul>
|
||||
@@ -0,0 +1,43 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
<div class="box">
|
||||
<h1 class="page-subheading">{l s='Forgot your password?' mod='privateshoplite'}</h1>
|
||||
{if isset($confirmation) && $confirmation == 1}
|
||||
<p class="alert alert-success">{l s='Your password has been successfully reset and a confirmation has been sent to your email address:' mod='privateshoplite'} {if isset($customer_email)}{$customer_email|escape:'htmlall':'UTF-8'|stripslashes}{/if}</p>
|
||||
{elseif isset($confirmation) && $confirmation == 2}
|
||||
<p class="alert alert-success">{l s='A confirmation email has been sent to your address:' mod='privateshoplite'} {if isset($customer_email)}{$customer_email|escape:'htmlall':'UTF-8'|stripslashes}{/if}</p>
|
||||
{else}
|
||||
<p>{l s='Please enter the email address you used to register. We will then send you a new password. ' mod='privateshoplite'}</p>
|
||||
<form action="{$request_uri|escape:'htmlall':'UTF-8'}" method="post" class="std" id="form_forgotpassword">
|
||||
<input type="hidden" name="private_pass_recovery" value="1">
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
<label for="email">{l s='Email address' mod='privateshoplite'}</label>
|
||||
<input class="form-control" type="text" placeholder="{l s='Email address' mod='privateshoplite'}" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
|
||||
</div>
|
||||
<p class="submit">
|
||||
{if $version < 1.6}
|
||||
<input type="submit" class="button" name="forgotpassword" value="{l s='Retrieve Password' mod='privateshoplite' mod='privateshoplite'}" />
|
||||
{else}
|
||||
<button type="submit" class="btn btn-default button button-medium" name="forgotpassword"><span>{l s='Retrieve Password' mod='privateshoplite'}<i class="icon-chevron-right right"></i></span></button>
|
||||
{/if}
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
<ul class="clearfix footer_links">
|
||||
<li><a class="btn btn-default button button-small" title="{l s='Back to Login' mod='privateshoplite'}" rel="nofollow" href="javascript:void(0);"
|
||||
onclick="BackToLogin();"><span><i class="icon-chevron-left"></i>{l s='Back to Login' mod='privateshoplite'}</span></a></li>
|
||||
</ul>
|
||||
410
modules/privateshoplite/views/templates/front/private-block.tpl
Normal file
410
modules/privateshoplite/views/templates/front/private-block.tpl
Normal file
@@ -0,0 +1,410 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
|
||||
<!-- inline css -->
|
||||
<style type="text/css">
|
||||
{if isset($field_values) AND $field_values.bg_type}
|
||||
{if $field_values.bg_type == "background-image" AND isset($field_values.bg_img)}
|
||||
|
||||
{* #bg-private-image *}
|
||||
{literal}
|
||||
#module-privateshoplite-private #wrapper, #module-privateshoplite-private div.columns-container {
|
||||
background:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/{$field_values.bg_img|escape:'htmlall':'UTF-8'}{literal}") no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
{/literal}
|
||||
{elseif $field_values.bg_type == "background-video" AND isset($field_values.bg_video_img)}
|
||||
{* #bg-private-image_video *}
|
||||
{literal}
|
||||
#module-privateshoplite-private #wrapper, #module-privateshoplite-private div.columns-container {
|
||||
background-color: azure;
|
||||
background:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/tmp/{$field_values.bg_video_img|escape:'htmlall':'UTF-8'}{literal}") no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
}
|
||||
{/literal}
|
||||
{if $version >= '1.7'}
|
||||
{literal}
|
||||
#module-privateshoplite-private #header, #module-privateshoplite-private #footer {
|
||||
position: relative;
|
||||
z-index: 99;
|
||||
background: #333; /*changed here*/
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{else if isset($field_values.bg_color) AND $field_values.bg_type == 'background-color'}
|
||||
{* div#bg-private-color *}
|
||||
{literal}
|
||||
#module-privateshoplite-private #wrapper, #module-privateshoplite-private div.columns-container {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
background: {/literal}{$field_values.bg_color|escape:'htmlall':'UTF-8'}!important;{literal};
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/if}
|
||||
{literal}
|
||||
.bg_opacity {
|
||||
background:rgb(241,241,241,{/literal}{$field_values.bg_opacity|escape:'htmlall':'UTF-8'}{literal}) !important;
|
||||
}
|
||||
.bg_opacity_white {
|
||||
background:rgb(255,255,255,{/literal}{$field_values.bg_opacity/2|escape:'htmlall':'UTF-8'}{literal}) !important;
|
||||
}
|
||||
#gif_loader {
|
||||
background-color: rgba(255,255,255,0.5);
|
||||
position: absolute; left: 0; top: 0; width: 100%; height: 101%; z-index: 9;
|
||||
background-image:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/load.gif"{literal});
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
#new-private-account { position: relative}
|
||||
.date-select > label { margin-left: 15px!important;}
|
||||
.show_comment { display: inline-block!important; }
|
||||
</style><!--/inline css-->
|
||||
{/literal}
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var baseUri = "{$base_uri|escape:'htmlall':'UTF-8'}";
|
||||
var token = "{$token|escape:'htmlall':'UTF-8'}";
|
||||
var ajax_url = "{$ajax_link|escape:'htmlall':'UTF-8'}";
|
||||
var psNew = parseInt("{if $version ge '1.7'}1{else}0{/if}");
|
||||
//]]>
|
||||
</script>
|
||||
{if isset($field_values) AND $field_values.bg_type}
|
||||
{if $field_values.bg_type == "background-video" AND isset($field_values.bg_video)}
|
||||
<script type="text/javascript">
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
setBGvideo('{$field_values.bg_video}'); //html content
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
||||
{if $persist == 1 AND isset($persist)}
|
||||
<script type="text/javascript">
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
forgot_password();
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
<div {if $field_values.priv_form_theme == 'mod'}class="{if $version >= 1.7}ps17{else}ps16{/if} private_modern_theme"{/if}>
|
||||
<div id="private-wrapper"
|
||||
{if isset($field_values.position) AND $field_values.position AND $field_values.position == 'left'}class="bg_opacity"{elseif $field_values.position == 'right'} class="bg_opacity"{/if}
|
||||
style="{if isset($field_values.position) AND $field_values.position AND $field_values.position == 'left'}float: left; margin-left:3%;{elseif $field_values.position == 'right'}float: right; margin-right:3%;{elseif $field_values.position == 'center'}margin:0 auto;{/if}"
|
||||
{if isset($field_values) AND $field_values.position == 'center'}class="center_align bg_opacity"{/if}>
|
||||
<div id="privatebox">
|
||||
<div id="fmm_{if $version >= 1.7}ps17{else}ps16{/if}" class="container bg_opacity_white">
|
||||
<p id="logo_basic">
|
||||
<img src="{if isset($field_values.custom_logo) && $field_values.custom_logo > 0}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/tmp/{$field_values.custom_logo_img|escape:'htmlall':'UTF-8'}{else}{$logo_url|escape:'htmlall':'UTF-8'}{/if}" alt="logo" />
|
||||
</p>
|
||||
{if $deadend}
|
||||
{if isset($field_values.restrict_message) AND empty($field_values.restrict_message)}
|
||||
<div id="restricted">
|
||||
<h1>{l s='You do not have permission to view this page.' mod='privateshoplite'}</h1>
|
||||
</div>
|
||||
{else}
|
||||
{$field_values.restrict_message nofilter}{*HTML Content*}
|
||||
{/if}
|
||||
{else}
|
||||
{if $field_values.show_store_title > 0}<h1 class="pshop_title_shop">{$shop_name|escape:'htmlall':'UTF-8'}</h1>{/if}
|
||||
<div id="center_column" class="private_login">
|
||||
{if $version >= 1.7}
|
||||
{include file="module:privateshoplite/views/templates/front/errors.tpl"}
|
||||
{else}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/if}
|
||||
<div id="error_holder"></div>
|
||||
{if isset($field_values) AND isset($field_values.active_signup) AND $field_values.active_signup == 1}
|
||||
<!-- create form -->
|
||||
<div id="new-private-account" style="display:none;">
|
||||
<form method="post" class="js-customer-form" id="customer-form" enctype="multipart/form-data">
|
||||
<section>
|
||||
<input type="hidden" value="" name="id_customer">
|
||||
{if isset($field_values.gender_opt) && $field_values.gender_opt <= 0}
|
||||
<div class="form-group row social_title">
|
||||
<label class="col-md-3 form-control-label">
|
||||
{l s='Social title' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-6 form-control-valign">
|
||||
<label class="radio-inline">
|
||||
<span class="custom-radio">
|
||||
<input type="radio" value="1" name="id_gender">
|
||||
<span></span>
|
||||
</span>
|
||||
{l s='Mr.' mod='privateshoplite'}
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<span class="custom-radio">
|
||||
<input type="radio" value="2" name="id_gender">
|
||||
<span></span>
|
||||
</span>
|
||||
{l s='Mrs.' mod='privateshoplite'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label required">
|
||||
{l s='First name' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" placeholder="{l s='First name' mod='privateshoplite'}" required="" value="" name="firstname" class="form-control">
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label required">
|
||||
{l s='Last name' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" required="" placeholder="{l s='Last name' mod='privateshoplite'}" value="" name="lastname" class="form-control">
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label required">
|
||||
{l s='Email' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<input type="email" required="" placeholder="{l s='Email' mod='privateshoplite'}" value="" name="email_account" class="form-control">
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label required">
|
||||
{l s='Password' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group js-parent-focus">
|
||||
<input type="password" required="" value="" placeholder="{l s='Password' mod='privateshoplite'}" name="password" class="form-control js-child-focus js-visible-password">
|
||||
<span class="input-group-btn pshop_show_hide">
|
||||
<button data-text-hide="{l s='Hide' mod='privateshoplite'}" onclick="toggleVis(this);" data-text-show="{l s='Show' mod='privateshoplite'}" data-action="show-password" type="button" class="btn">
|
||||
{l s='Show' mod='privateshoplite'}
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
{if isset($field_values.bday) && $field_values.bday <= 0}
|
||||
<div class="form-group row ">
|
||||
<div class="birth-date-select">
|
||||
<label class="col-lg-3">{l s='Birthday' mod='privateshoplite'}</label>
|
||||
<div class="col-lg-6">
|
||||
<div>
|
||||
<select id="days" name="days" class="form-control no-uniform">
|
||||
<option value="">-</option>
|
||||
{foreach from=$days item=day}
|
||||
<option value="{$day|escape:'htmlall':'UTF-8'}" {if ($sl_day == $day)} selected="selected"{/if}>{$day|escape:'htmlall':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div><br>
|
||||
<div>
|
||||
<select id="months" name="months" class="form-control no-uniform">
|
||||
<option value="">-</option>
|
||||
{foreach from=$months key=k item=month}
|
||||
<option value="{$k|escape:'htmlall':'UTF-8'}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month|escape:'htmlall':'UTF-8' mod='privateshoplite' } </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div><br>
|
||||
<div>
|
||||
<select id="years" name="years" class="form-control no-uniform">
|
||||
<option value="">-</option>
|
||||
{foreach from=$years item=year}
|
||||
<option value="{$year|escape:'htmlall':'UTF-8'}" {if ($sl_year == $year)} selected="selected"{/if}>{$year|escape:'htmlall':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div><br>
|
||||
<div class="col-md-3 form-control-comment show_comment">
|
||||
{l s='Optional' mod='privateshoplite'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($field_values.offers_opt) && $field_values.offers_opt <= 0}
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label"></label>
|
||||
<div class="col-md-6">
|
||||
<span class="custom-checkbox">
|
||||
<input id="optin" class="no-uniform" type="checkbox" value="1" name="optin">
|
||||
{if $version >= 1.7}<span><i class="material-icons checkbox-checked"></i></span>{/if}
|
||||
<label for="optin">{l s='Receive offers from our partners' mod='privateshoplite'}</label>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($field_values.nletter_opt) && $field_values.nletter_opt <= 0}
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label"></label>
|
||||
<div class="col-md-6">
|
||||
<span class="custom-checkbox">
|
||||
<input id="newsletter" class="no-uniform" type="checkbox" value="1" name="newsletter">
|
||||
{if $version >= 1.7}<span><i class="material-icons checkbox-checked"></i></span>{/if}
|
||||
<label for="newsletter">{l s='Sign up for our newsletter' mod='privateshoplite'}<br><em></em></label>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{$hook_create_account_form nofilter}
|
||||
</section>
|
||||
<footer class="form-footer clearfix">
|
||||
<input type="hidden" value="1" name="submitCreate">
|
||||
<button type="button" data-link-action="save-customer" onclick="registerNewUser(this);" class="btn btn-primary form-control-submit pull-xs-right">
|
||||
{l s='Save' mod='privateshoplite'}
|
||||
</button>
|
||||
<a href="javascript:void(0);" onclick="Login();">
|
||||
<span>{l s='Log in instead!' mod='privateshoplite'}</span>
|
||||
</a>
|
||||
</footer>
|
||||
</form>
|
||||
<div class="clearfix"></div>
|
||||
<div id="gif_loader" style="display: none"></div>
|
||||
</div> <!-- /create form ends-->
|
||||
{/if}
|
||||
<!-- login form -->
|
||||
<div id="private-login">
|
||||
<form action="{$link->getPageLink('authentication', true)|escape:'htmlall':'UTF-8'}" method="post" id="login_form" class="box">
|
||||
<h2 class="private-subheading">{if isset($field_values) AND isset($field_values.login_title) AND $field_values.login_title}{$field_values.login_title|escape:'htmlall':'UTF-8'}{else}{l s='Private Login' mod='privateshoplite'}{/if}</h2>
|
||||
<div class="form_content clearfix">
|
||||
<table class="private_login_table">
|
||||
<tr class="pshop_fields_row">
|
||||
<div class="form-group">
|
||||
<td><label for="email">{l s='Email address' mod='privateshoplite'}</label></td>
|
||||
<td colspan="3"><input placeholder="{l s='Email address' mod='privateshoplite'}" class="is_required validate account_input form-control" data-validate="isEmail" type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes|escape:'htmlall':'UTF-8'}{/if}" /></td>
|
||||
</div>
|
||||
</tr>
|
||||
<tr class="exttra_row"><td> </td><td> </td><td> </td></tr>
|
||||
<tr class="pshop_fields_row">
|
||||
<div class="form-group">
|
||||
<td><label for="passwd">{l s='Password' mod='privateshoplite'}</label></td>
|
||||
<td colspan="3"><input placeholder="{l s='Password' mod='privateshoplite'}" class="is_required validate account_input form-control" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes|escape:'htmlall':'UTF-8'}{/if}" /></td>
|
||||
</div>
|
||||
</tr>
|
||||
<tr class="exttra_row"><td> </td><td> </td></tr>
|
||||
</table>
|
||||
<ul id="pshop_bottom_footer">
|
||||
<li><p class="lost_password form-group"><a id="lost-password" href="javascript:;" title="{l s='Recover your forgotten password' mod='privateshoplite'}" rel="nofollow" onclick="forgot_password()">{l s='Forgot your password?' mod='privateshoplite'}</a></p></li>
|
||||
<li class="submit">
|
||||
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if}
|
||||
<div class="private-login-footer-button">
|
||||
{if $version >= 1.6}
|
||||
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium">
|
||||
<span>
|
||||
<i class="icon-lock left"></i>
|
||||
{l s='Sign in' mod='privateshoplite'}
|
||||
</span>
|
||||
</button>
|
||||
{else}
|
||||
<input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="{l s='Log in' mod='privateshoplite'}"/>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="private-login-footer-button">
|
||||
{if isset($field_values) AND isset($field_values.active_signup) AND $field_values.active_signup == 1}
|
||||
<a class="button btn btn-default button-medium exclusive" type="submit" id="register" name="register" onclick="SignUp();">
|
||||
<span>
|
||||
{l s='Sign Up' mod='privateshoplite'}
|
||||
</span>
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div> <!-- /login form ends -->
|
||||
<div id="private-lost-password" style="display:none;">
|
||||
{if $version >= 1.7}
|
||||
{include file="module:privateshoplite/views/templates/front/password_17.tpl"}
|
||||
{else}
|
||||
{include file="./password.tpl"}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div id="private-contact-form" style="display:none;">
|
||||
<form method="post" id="privateshoplite_customer_contact_form" class="box">
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 form-control-label required">
|
||||
{l s='Email address' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-9">
|
||||
<input class="form-control" name="email" required="required" type="email" placeholder="{l s='Email address' mod='privateshoplite'}" id="customer_message_email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 form-control-label required">
|
||||
{l s='Subject' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-9">
|
||||
<input class="form-control" name="subject" required="required" type="text" placeholder="{l s='Subject' mod='privateshoplite'}" id="customer_message_subject" value="{if isset($smarty.post.subject)}{$smarty.post.subject|stripslashes|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 form-control-label required">
|
||||
{l s='Message' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-9">
|
||||
<textarea class="form-control" name="message" required="required" id="customer_message_message" placeholder="{l s='Message' mod='privateshoplite'}">{if isset($smarty.post.message)}{$smarty.post.message|stripslashes|escape:'htmlall':'UTF-8'}{/if}</textarea>
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
<footer class="form-footer text-sm-center clearfix">
|
||||
<button type="button" name='SubmitContactForm' id='SubmitContactForm' class="btn btn-primary" onclick="sendMessage(this);">
|
||||
{l s='Send' mod='privateshoplite'}
|
||||
</button>
|
||||
<button type="button" id="submit-contact" class="btn btn-primary" onclick="backToPrevious();">
|
||||
{l s='Back' mod='privateshoplite'}
|
||||
</button>
|
||||
</footer>
|
||||
</form>
|
||||
</div> <!-- /contact form ends -->
|
||||
<div id="private-back" class="col-lg-12 col-sm-12 mt-1 p-0" style="display:none;">
|
||||
<p class="alert alert-info info" id='privateshoplite_pending_message'>{l s='Your account is under review. Your will receive confirmation email soon.' mod='privateshoplite'}</p>
|
||||
<button id="default_back" onclick="window.location.reload();" class="btn btn-default col-lg-12">{l s='Back' mod='privateshoplite'}</button>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div><div class="clearfix"></div>
|
||||
</div>
|
||||
<style>
|
||||
.private-login-footer-button {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,15 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
|
||||
{$PRIVATE_BLOCK} {* html content *}
|
||||
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
|
||||
{extends file='page.tpl'}
|
||||
|
||||
{block name='page_content_container'}
|
||||
{$PRIVATE_BLOCK nofilter} {* html content *}
|
||||
{/block}
|
||||
511
modules/privateshoplite/views/templates/front/private_login.tpl
Normal file
511
modules/privateshoplite/views/templates/front/private_login.tpl
Normal file
@@ -0,0 +1,511 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
<!DOCTYPE HTML>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if gt IE 8]> <html class="no-js ie9" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<html lang="{$language_code|escape:'htmlall':'UTF-8'}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
|
||||
{if isset($meta_description)}
|
||||
<meta name="description" content="{$meta_description|escape:'htmlall':'UTF-8'}" />
|
||||
{/if}
|
||||
{if isset($meta_keywords)}
|
||||
<meta name="keywords" content="{$meta_keywords|escape:'htmlall':'UTF-8'}" />
|
||||
{/if}
|
||||
<meta name="generator" content="PrestaShop" />
|
||||
<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}?{$img_update_time|escape:'htmlall':'UTF-8'}" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}?{$img_update_time|escape:'htmlall':'UTF-8'}" />
|
||||
|
||||
{if $version < 1.7}
|
||||
<script type="text/javascript" src="{$jQuery_path|escape:'htmlall':'UTF-8'}"></script>
|
||||
{/if}
|
||||
<!-- Js defination vars -->
|
||||
{if isset($js_defer) && !$js_defer && isset($js_files) && isset($js_def)}
|
||||
{if isset($js_def) AND is_array($js_def)}
|
||||
<script type="text/javascript">
|
||||
{foreach from=$js_def key=js_var item=js_value}
|
||||
var {$js_var} = '{$js_value}'; {*html content*}
|
||||
{/foreach}
|
||||
</script>
|
||||
{else}
|
||||
{$js_def} {*html content*}
|
||||
{/if}
|
||||
{foreach from=$js_files item=js_uri}
|
||||
<script type="text/javascript" src="{$js_uri|escape:'html':'UTF-8'}"></script>
|
||||
{/foreach}
|
||||
{/if}
|
||||
<script type="text/javascript" src="{$js_dir|escape:'htmlall':'UTF-8'}/global.js"></script>
|
||||
<script type="text/javascript" src="{if $force_ssl}{$base_dir_ssl|escape:'htmlall':'UTF-8'}{else}{$base_dir|escape:'htmlall':'UTF-8'}{/if}js/tools.js"></script>
|
||||
<script type="text/javascript" src="{$js_dir|escape:'htmlall':'UTF-8'}autoload/15-jquery.total-storage.min.js"></script>
|
||||
<script type="text/javascript" src="{$js_dir|escape:'htmlall':'UTF-8'}autoload/15-jquery.uniform-modified.js"></script>
|
||||
<script type="text/javascript" src="{$js_dir|escape:'htmlall':'UTF-8'}tools/statesManagement.js"></script>
|
||||
<script type="text/javascript" src="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/js/validate.js"></script>
|
||||
{if $version >= 1.6}
|
||||
<script type="text/javascript" src="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/js/authentication16.js"></script>
|
||||
<link rel="stylesheet" href="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/css/authentication16.css" type="text/css" media="all" charset="utf-8" />
|
||||
{else}
|
||||
<script type="text/javascript" src="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/js/authentication15.js"></script>
|
||||
<link rel="stylesheet" href="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/css/authentication15.css" type="text/css" media="all" charset="utf-8" />
|
||||
{/if}
|
||||
{if isset($field_values) AND $field_values.bg_type}
|
||||
{if $field_values.bg_type == "background-video" AND isset($field_values.bg_video)}
|
||||
<script type="text/javascript" src="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/js/jquery.tubular.1.0.js"></script>
|
||||
{/if}
|
||||
{/if}
|
||||
<link rel="shortcut icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}" />
|
||||
<link rel="stylesheet" href="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/css/private.css" type="text/css" charset="utf-8" />
|
||||
<link rel="stylesheet" href="{$css_dir|escape:'htmlall':'UTF-8'}global.css" type="text/css" media="all" charset="utf-8" />
|
||||
|
||||
{literal}
|
||||
<!-- inline css -->
|
||||
<style type="text/css">
|
||||
body
|
||||
{
|
||||
height: 100% !important;
|
||||
margin: 0;
|
||||
background: rgba(77,117,219,1);
|
||||
background: -moz-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -webkit-gradient(left top, right top, color-stop(0%, rgba(77,117,219,1)), color-stop(55%, rgba(120,155,227,1)), color-stop(100%, rgba(120,155,227,1)));
|
||||
background: -webkit-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -o-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -ms-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: linear-gradient(to right, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d75db', endColorstr='#789be3', GradientType=1 );
|
||||
}
|
||||
#bg-private-image{
|
||||
background:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/{$field_values.bg_img|escape:'htmlall':'UTF-8'}{literal}") no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#bg-private-image_video{
|
||||
background:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/tmp/{$field_values.bg_video_img|escape:'htmlall':'UTF-8'}{literal}") no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body#bg-private-color{
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
background: {/literal}{$field_values.bg_color|escape:'htmlall':'UTF-8'}{literal};
|
||||
}
|
||||
.bg_opacity
|
||||
{
|
||||
background:rgb(241,241,241,{/literal}{$field_values.bg_opacity|escape:'htmlall':'UTF-8'}{literal}) !important;
|
||||
}
|
||||
.bg_opacity_white
|
||||
{
|
||||
background:rgb(255,255,255,{/literal}{$field_values.bg_opacity/2|escape:'htmlall':'UTF-8'}{literal}) !important;
|
||||
}
|
||||
</style><!--/inline css-->
|
||||
{/literal}
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var baseUri = "{$base_uri|escape:'htmlall':'UTF-8'}";
|
||||
var token = "{$token|escape:'htmlall':'UTF-8'}";
|
||||
var ajax_url = "{$ajax_link|escape:'htmlall':'UTF-8'}";
|
||||
var signup_ajax_url = "{$signup_ajax_link|escape:'htmlall':'UTF-8'}";
|
||||
var psNew = parseInt("{if $version ge '1.7'}1{else}0{/if}");
|
||||
|
||||
// load() event and resize() event are combined
|
||||
$(window).ready(responsiveFn).resize(responsiveFn);
|
||||
function SignUp()
|
||||
{
|
||||
$('#error_holder').html('');
|
||||
$('#private-login').hide();
|
||||
$('#new-private-account').show();
|
||||
$('.alert').addClass('private_error_resp');
|
||||
}
|
||||
|
||||
function Login()
|
||||
{
|
||||
$('.alert-danger, .error').hide();
|
||||
$('#private-login').show();
|
||||
$('#new-private-account').hide();
|
||||
$('.alert').addClass('private_error_resp');
|
||||
}
|
||||
|
||||
function forgot_password()
|
||||
{
|
||||
$('#error_holder').html('');
|
||||
$('#private-login').hide();
|
||||
$('#private-lost-password').show();
|
||||
$('.alert').addClass('private_error_resp');
|
||||
}
|
||||
|
||||
function BackToLogin()
|
||||
{
|
||||
if (getUrlParameter('reset_token') !== '') {
|
||||
window.location.replace(baseUri);
|
||||
} else {
|
||||
$('.private_error_resp').html('').hide();
|
||||
$('#private-lost-password').hide();
|
||||
$('#private-login').fadeIn('slow');
|
||||
}
|
||||
}
|
||||
|
||||
function getUrlParameter(name)
|
||||
{
|
||||
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
|
||||
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
|
||||
var results = regex.exec(location.search);
|
||||
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
|
||||
}
|
||||
|
||||
function responsiveFn()
|
||||
{
|
||||
width = $( window ).width();
|
||||
height = $( window ).height();
|
||||
|
||||
if(width <= 320) {
|
||||
$('#login_form').removeClass('box');
|
||||
}
|
||||
else {
|
||||
$('#login_form').addClass('box');
|
||||
}
|
||||
}
|
||||
|
||||
$(document).on('click', '#SubmitLogin', function(e){
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
|
||||
//var gif_loader = $('#gif_loader');
|
||||
//gif_loader.show();
|
||||
var jsonData = {
|
||||
type : "POST",
|
||||
cache : false,
|
||||
url : ajax_url,
|
||||
dataType : "json",
|
||||
data : {
|
||||
action : 'privateLogin',
|
||||
ajax : true,
|
||||
email : $.trim($('input[name=email]').val()),
|
||||
passwd : $.trim($('input[name=passwd]').val())
|
||||
},
|
||||
success: function(response) {
|
||||
if (response.errors > 0) {
|
||||
var __html = '<div class="alert alert-danger" id="ps17_errors"><ol><li>'+response.html+'</li></ol></div>';
|
||||
$('#error_holder').html(__html);
|
||||
//gif_loader.hide();
|
||||
} else if (response.success) {
|
||||
$('#error_holder').html('');
|
||||
//gif_loader.hide();
|
||||
window.location.reload();
|
||||
}
|
||||
},
|
||||
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
console.log(textStatus + '<br>' + errorThrown);
|
||||
//gif_loader.hide();
|
||||
}
|
||||
};
|
||||
$.ajax(jsonData);
|
||||
});
|
||||
|
||||
//function registerNewUser(el) {
|
||||
$(document).on('submit', '#create-account_form', function(e) {
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
|
||||
submitFunction();
|
||||
});
|
||||
|
||||
function submitFunction()
|
||||
{
|
||||
$('#error_holder').html('').hide();
|
||||
var jsonRequest = {
|
||||
type: 'POST',
|
||||
url: signup_ajax_url + '?rand=' + new Date().getTime(),
|
||||
async: true,
|
||||
cache: false,
|
||||
dataType : "json",
|
||||
headers: { "cache-control": "no-cache" },
|
||||
data:
|
||||
{
|
||||
SubmitCreate: 1,
|
||||
ajax: true,
|
||||
action: 'submitCreate',
|
||||
email: $('#email_create').val(),
|
||||
token: token
|
||||
},
|
||||
success: function(jsonData)
|
||||
{
|
||||
if (jsonData.hasError)
|
||||
{
|
||||
var errors = '';
|
||||
for(error in jsonData.errors)
|
||||
{
|
||||
//IE6 bug fix
|
||||
if (error != 'indexOf')
|
||||
{
|
||||
errors += '<li>' + jsonData.errors[error] + '</li>';
|
||||
}
|
||||
}
|
||||
$('#error_holder').html('<ol>' + errors + '</ol>').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
// adding a div to display a transition
|
||||
$('#center_column').html('<div id="noSlide">' + $('#center_column').html() + '</div>');
|
||||
$('#noSlide').fadeOut('slow', function()
|
||||
{
|
||||
$('#noSlide').html(jsonData.page);
|
||||
$(this).fadeIn('slow', function()
|
||||
{
|
||||
if (typeof bindUniform !=='undefined')
|
||||
bindUniform();
|
||||
if (typeof bindStateInputAndUpdate !=='undefined')
|
||||
bindStateInputAndUpdate();
|
||||
document.location = '#account-creation';
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
error = "TECHNICAL ERROR: unable to load form.\n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus;
|
||||
if (!!$.prototype.fancybox)
|
||||
{
|
||||
$.fancybox.open([
|
||||
{
|
||||
type: 'inline',
|
||||
autoScale: true,
|
||||
minHeight: 30,
|
||||
content: "<p class='fancybox-error'>" + error + '</p>'
|
||||
}],
|
||||
{
|
||||
padding: 0
|
||||
});
|
||||
}
|
||||
else
|
||||
alert(error);
|
||||
}
|
||||
};
|
||||
$.ajax(jsonRequest);
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
{if isset($field_values) AND $field_values.bg_type}
|
||||
{if $field_values.bg_type == "background-video" AND isset($field_values.bg_video)}
|
||||
<script type="text/javascript">{literal}
|
||||
$(document).ready(function() {
|
||||
$('#wrapper').tubular({videoId: {/literal}'{$field_values.bg_video}'{literal}}); {*html content*}
|
||||
});{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
||||
{if $persist == 1 AND isset($persist)}
|
||||
<script type="text/javascript">{literal}
|
||||
$(document).ready(function() {
|
||||
forgot_password();
|
||||
});{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
{if $persist == 2 AND isset($persist)}
|
||||
<script type="text/javascript">{literal}
|
||||
$(document).ready(function() {
|
||||
SignUp();
|
||||
});{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
|
||||
</head>
|
||||
<body{if $field_values.priv_form_theme == 'mod'} class="private_modern_theme"{/if} {if isset($field_values) AND $field_values.bg_type}{if $field_values.bg_type == "background-image" AND isset($field_values.bg_img)}id="bg-private-image"{elseif $field_values.bg_type == "background-video" AND isset($field_values.bg_video_img)}id="bg-private-image_video"{else if isset($field_values.bg_color) AND $field_values.bg_type == 'background-color'}id="bg-private-color"{/if}{/if}>
|
||||
<div id="wrapper"{if isset($field_values.position) AND $field_values.position AND $field_values.position == 'left'} class="bg_opacity"{elseif $field_values.position == 'right'} class="bg_opacity"{/if} style="{if isset($field_values.position) AND $field_values.position AND $field_values.position == 'left'}float: left; margin-left:3%;{elseif $field_values.position == 'right'}float: right; margin-right:3%;{elseif $field_values.position == 'center'}margin:0 auto;{/if}" {if isset($field_values) AND $field_values.position == 'center'}class="center_align bg_opacity"{/if}>
|
||||
<div id="privatebox" class="privateshop_ps_lower">
|
||||
<div class="container bg_opacity_white">
|
||||
<p id="logo_basic"><img src="{$logo_url|escape:'htmlall':'UTF-8'}" alt="logo" /></p>{if $field_values.show_store_title > 0}<h1>{$shop_name|escape:'htmlall':'UTF-8'}</h1>{/if}
|
||||
<!-- <h2>{l s='Private Login' mod='privateshoplite'}</h2> -->
|
||||
<div id="center_column" class="private_login">
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
<div id="error_holder"></div>
|
||||
{if isset($field_values) AND isset($field_values.active_signup) AND $field_values.active_signup == 1}
|
||||
<!-- create form -->
|
||||
<div id="new-private-account" style="display:none;">
|
||||
<form method="post" id="create-account_form" class="box" style="width:100%" enctype="multipart/form-data">
|
||||
<h2 class="private-subheading">{if isset($field_values) AND isset($field_values.signup_title) AND $field_values.signup_title}{$field_values.signup_title|escape:'htmlall':'UTF-8'}{else}{l s='Create a private account' mod='privateshoplite'}{/if}</h2>
|
||||
<div class="form_content clearfix">
|
||||
<div class="private_signup_table">
|
||||
<p>{l s='Please enter your email address to create an account.' mod='privateshoplite'}</p>
|
||||
{if isset($persist_restricted) && $persist_restricted > 0}
|
||||
{if empty($restrict_message)}
|
||||
<div class="alert alert-success">{l s='Your Account is created but pending validation for Email address:' mod='privateshoplite'} {if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
{else}
|
||||
<div class="alert alert-success">
|
||||
{l s='Email address:' mod='privateshoplite'} {if isset($smarty.post.email)}{$smarty.post.email}{/if}<br />{$restrict_message} {*html content*}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
<div class="alert alert-danger error private_error_resp" id="create_account_error" style="display:none"></div>
|
||||
<div class="form-group">
|
||||
<label for="email_create" class="pshop_fields_row_hide">{l s='Email address' mod='privateshoplite'}</label>
|
||||
<input type="text" placeholder="{l s='Email address' mod='privateshoplite'}" class="is_required validate account_input form-control form-group" data-validate="isEmail" id="email_create" name="email_create" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall':'UTF-8'}{/if}" /></td>
|
||||
</div>
|
||||
<div class="submit">
|
||||
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if}
|
||||
{if $version >= 1.6}
|
||||
<button class="btn btn-default button button-medium exclusive" type="submit" id="SubmitCreate" name="SubmitCreate">
|
||||
<span>
|
||||
{l s='Create account' mod='privateshoplite'}
|
||||
</span>
|
||||
</button>
|
||||
{else}
|
||||
<input type="button" id="SubmitCreate" name="SubmitCreate" class="button_large" value="{l s='Create your account' mod='privateshoplite'}" />
|
||||
{/if}
|
||||
<input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create an account' mod='privateshoplite'}"/>
|
||||
<button class="btn btn-default button button-medium pull-right" type="button" rel="nofollow" title="{l s='Already registered?' mod='privateshoplite'}" href="javascript:;" onclick="Login();" style="{if $version >= 1.6}color:#fff;{else}color:#555;{/if}">
|
||||
<span>{l s='Already registered?' mod='privateshoplite'}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="clearfix"></div>
|
||||
</div> <!-- /create form ends-->
|
||||
{/if}
|
||||
<!-- login form -->
|
||||
<div id="private-login">
|
||||
<form action="{$link->getPageLink('authentication', true)|escape:'htmlall':'UTF-8'}" method="post" id="login_form" class="box">
|
||||
<h2 class="private-subheading">{if isset($field_values) AND isset($field_values.login_title) AND $field_values.login_title}{$field_values.login_title|escape:'htmlall':'UTF-8'}{else}{l s='Private Login' mod='privateshoplite'}{/if}</h2>
|
||||
<div class="form_content clearfix">
|
||||
<table class="private_login_table">
|
||||
<tr>
|
||||
<div class="form-group">
|
||||
<td class="pshop_fields_row_hide"><label for="email">{l s='Email address' mod='privateshoplite'}</label></td>
|
||||
<td colspan="3"><input placeholder="{l s='Email address' mod='privateshoplite'}" class="is_required validate account_input form-control form-group" data-validate="isEmail" type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes|escape:'htmlall':'UTF-8'}{/if}" /></td>
|
||||
</div>
|
||||
</tr>
|
||||
<tr class="exttra_row"><td> </td><td> </td><td> </td></tr>
|
||||
<tr>
|
||||
<div class="form-group">
|
||||
<td class="pshop_fields_row_hide"><label for="passwd">{l s='Password' mod='privateshoplite'}</label></td>
|
||||
<td colspan="3"><input placeholder="{l s='Password' mod='privateshoplite'}" class="is_required validate account_input form-control form-group" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes|escape:'htmlall':'UTF-8'}{/if}" /></td>
|
||||
</div>
|
||||
</tr>
|
||||
<tr class="exttra_row"><td> </td><td> </td></tr>
|
||||
</table>
|
||||
<ul id="pshop_bottom_footer">
|
||||
<li><p class="lost_password form-group"><a id="lost-password" href="javascript:;" title="{l s='Recover your forgotten password' mod='privateshoplite'}" rel="nofollow" onclick="forgot_password()">{l s='Forgot your password?' mod='privateshoplite'}</a></p></li>
|
||||
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if}
|
||||
<li class="submit">
|
||||
{if $version >= 1.6}
|
||||
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium">
|
||||
<span>
|
||||
{l s='Sign in' mod='privateshoplite'}
|
||||
</span>
|
||||
</button>
|
||||
{else}
|
||||
<input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="{l s='Log in' mod='privateshoplite'}" />
|
||||
{/if}
|
||||
{if isset($field_values) AND isset($field_values.active_signup) AND $field_values.active_signup == 1}
|
||||
<a class="btn btn-default button button-medium exclusive" type="submit" id="register" name="register" onclick="SignUp();">
|
||||
<span>
|
||||
{l s='Sign Up' mod='privateshoplite'}
|
||||
</span>
|
||||
</a>
|
||||
{/if}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div> <!-- /login form ends -->
|
||||
<div id="private-lost-password" style="display:none;">{include file="./password.tpl"}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{strip}
|
||||
{if isset($smarty.post.id_state) && $smarty.post.id_state}
|
||||
{addJsDef idSelectedState=$smarty.post.id_state|intval}
|
||||
{elseif isset($address->id_state) && $address->id_state}
|
||||
{addJsDef idSelectedState=$address->id_state|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedState=false}
|
||||
{/if}
|
||||
{if isset($smarty.post.id_state_invoice) && isset($smarty.post.id_state_invoice) && $smarty.post.id_state_invoice}
|
||||
{addJsDef idSelectedStateInvoice=$smarty.post.id_state_invoice|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedStateInvoice=false}
|
||||
{/if}
|
||||
{if isset($smarty.post.id_country) && $smarty.post.id_country}
|
||||
{addJsDef idSelectedCountry=$smarty.post.id_country|intval}
|
||||
{elseif isset($address->id_country) && $address->id_country}
|
||||
{addJsDef idSelectedCountry=$address->id_country|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountry=false}
|
||||
{/if}
|
||||
{if isset($smarty.post.id_country_invoice) && isset($smarty.post.id_country_invoice) && $smarty.post.id_country_invoice}
|
||||
{addJsDef idSelectedCountryInvoice=$smarty.post.id_country_invoice|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountryInvoice=false}
|
||||
{/if}
|
||||
{if isset($countries)}
|
||||
{addJsDef countries=$countries}
|
||||
{/if}
|
||||
{if isset($vatnumber_ajax_call) && $vatnumber_ajax_call}
|
||||
{addJsDef vatnumber_ajax_call=$vatnumber_ajax_call}
|
||||
{/if}
|
||||
{if isset($email_create) && $email_create}
|
||||
{addJsDef email_create=$email_create|boolval}
|
||||
{else}
|
||||
{addJsDef email_create=false}
|
||||
{/if}
|
||||
{/strip}
|
||||
{strip}
|
||||
{addJsDef isMobile=$mobile_device}
|
||||
{addJsDef baseDir=$content_dir}
|
||||
{addJsDef baseUri=$base_uri}
|
||||
{addJsDef static_token=$static_token}
|
||||
{addJsDef token=$token|htmlentities:$smarty.const.ENT_QUOTES}
|
||||
{addJsDef priceDisplayPrecision=$priceDisplayPrecision*$currency->decimals}
|
||||
{addJsDef priceDisplayMethod=$priceDisplay}
|
||||
{addJsDef roundMode=$roundMode}
|
||||
{addJsDef currency=$currency}
|
||||
{addJsDef currencyRate=$currencyRate|floatval}
|
||||
{addJsDef currencySign=$currency->sign|html_entity_decode:2:"UTF-8"}
|
||||
{addJsDef currencyFormat=$currency->format|intval}
|
||||
{addJsDef currencyBlank=$currency->blank|intval}
|
||||
{addJsDef isLogged=$is_logged|intval}
|
||||
{addJsDef isGuest=$is_guest|intval}
|
||||
{addJsDef page_name=$page_name|escape:'html':'UTF-8'}
|
||||
{addJsDef contentOnly=$content_only|boolval}
|
||||
{if isset($cookie->id_lang)}
|
||||
{addJsDef id_lang=$cookie->id_lang|intval}
|
||||
{/if}
|
||||
{addJsDefL name=FancyboxI18nClose}{l s='Close' mod='privateshoplite'}{/addJsDefL}
|
||||
{addJsDefL name=FancyboxI18nNext}{l s='Next' mod='privateshoplite'}{/addJsDefL}
|
||||
{addJsDefL name=FancyboxI18nPrev}{l s='Previous' mod='privateshoplite'}{/addJsDefL}
|
||||
{addJsDef usingSecureMode=Tools::usingSecureMode()|boolval}
|
||||
{addJsDef ajaxsearch=Configuration::get('PS_SEARCH_AJAX')|boolval}
|
||||
{addJsDef instantsearch=Configuration::get('PS_INSTANT_SEARCH')|boolval}
|
||||
{addJsDef quickView=$quick_view|boolval}
|
||||
{addJsDef displayList=Configuration::get('PS_GRID_PRODUCT')|boolval}
|
||||
{addJsDef highDPI=Configuration::get('PS_HIGHT_DPI')|boolval}
|
||||
{/strip}
|
||||
@@ -0,0 +1,670 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
*}
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if gt IE 8]> <html class="no-js ie9" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<html lang="{$language_code|escape:'htmlall':'UTF-8'}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
|
||||
{if isset($meta_description)}
|
||||
<meta name="description" content="{$meta_description|escape:'htmlall':'UTF-8'}" />
|
||||
{/if}
|
||||
{if isset($meta_keywords)}
|
||||
<meta name="keywords" content="{$meta_keywords|escape:'htmlall':'UTF-8'}" />
|
||||
{/if}
|
||||
<meta name="generator" content="PrestaShop" />
|
||||
<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}?{$img_update_time|escape:'htmlall':'UTF-8'}" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}?{$img_update_time|escape:'htmlall':'UTF-8'}" />
|
||||
{if isset($js_files) && $js_files}
|
||||
{foreach from=$js_files item=js_uri}
|
||||
<script type="text/javascript" src="{$js_uri|escape:'htmlall':'UTF-8'}"></script>
|
||||
{/foreach}
|
||||
{/if}
|
||||
<script type="text/javascript" src="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/js/validate.js"></script>
|
||||
{if $version >= 1.6}
|
||||
<script type="text/javascript" src="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/js/authentication16.js"></script>
|
||||
<link rel="stylesheet" href="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/css/authentication16.css" type="text/css" media="all" charset="utf-8" />
|
||||
{else}
|
||||
<script type="text/javascript" src="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/js/authentication15.js"></script>
|
||||
<link rel="stylesheet" href="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/css/authentication15.css" type="text/css" media="all" charset="utf-8" />
|
||||
{/if}
|
||||
{if isset($field_values) AND $field_values.bg_type}
|
||||
{if $field_values.bg_type == "background-video" AND isset($field_values.bg_video)}
|
||||
<script type="text/javascript" src="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/js/jquery.tubular.1.0.js"></script>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<link rel="shortcut icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}" />
|
||||
<link rel="stylesheet" href="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/css/private.css" type="text/css" charset="utf-8" />
|
||||
<link rel="stylesheet" href="{$css_dir|escape:'htmlall':'UTF-8'}theme.css" type="text/css" media="all" charset="utf-8" />
|
||||
|
||||
{literal}
|
||||
<!-- inline css -->
|
||||
<style type="text/css">
|
||||
body
|
||||
{
|
||||
height: 100% !important;
|
||||
margin: 0;
|
||||
background: rgba(77,117,219,1);
|
||||
background: -moz-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -webkit-gradient(left top, right top, color-stop(0%, rgba(77,117,219,1)), color-stop(55%, rgba(120,155,227,1)), color-stop(100%, rgba(120,155,227,1)));
|
||||
background: -webkit-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -o-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -ms-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: linear-gradient(to right, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d75db', endColorstr='#789be3', GradientType=1 );
|
||||
}
|
||||
#bg-private-image{
|
||||
background:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/{$field_values.bg_img|escape:'htmlall':'UTF-8'}{literal}") no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#bg-private-image_video{
|
||||
background:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/tmp/{$field_values.bg_video_img|escape:'htmlall':'UTF-8'}{literal}") no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body#bg-private-color{
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
background: {/literal}{$field_values.bg_color|escape:'htmlall':'UTF-8'}{literal};
|
||||
}
|
||||
.bg_opacity {
|
||||
background:rgb(241,241,241,{/literal}{$field_values.bg_opacity|escape:'htmlall':'UTF-8'}{literal}) !important;
|
||||
}
|
||||
.bg_opacity_white {
|
||||
background:rgb(255,255,255,{/literal}{$field_values.bg_opacity/2|escape:'htmlall':'UTF-8'}{literal}) !important;
|
||||
}
|
||||
#gif_loader { background-color: rgba(255,255,255,0.5);
|
||||
position: absolute; left: 0; top: 0; width: 100%; height: 101%; z-index: 9;
|
||||
background-image:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/load.gif"{literal});
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
#new-private-account { position: relative}
|
||||
.date-select > label { margin-left: 15px!important;}
|
||||
.show_comment { display: inline-block!important; }
|
||||
</style><!--/inline css-->
|
||||
{/literal}
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var baseUri = "{$base_uri|escape:'htmlall':'UTF-8'}";
|
||||
var token = "{$token|escape:'htmlall':'UTF-8'}";
|
||||
var ajax_url = "{$ajax_link|escape:'htmlall':'UTF-8'}";
|
||||
var psNew = parseInt("{if $version ge '1.7'}1{else}0{/if}");
|
||||
{literal}
|
||||
// load() event and resize() event are combined
|
||||
$(window).ready(responsiveFn).resize(responsiveFn);
|
||||
function SignUp()
|
||||
{
|
||||
$('.alert-danger, .error').hide();
|
||||
$('#private-login').hide();
|
||||
$('#new-private-account').show();
|
||||
$('#private-contact-form').hide();
|
||||
$('.alert').addClass('private_error_resp');
|
||||
}
|
||||
function ContactForm()
|
||||
{
|
||||
$('.alert-danger, .error').hide();
|
||||
$('#private-login').hide();
|
||||
$('#private-contact-form').show();
|
||||
$('.alert').addClass('private_error_resp');
|
||||
}
|
||||
|
||||
function Login()
|
||||
{
|
||||
$('.alert-danger, .error').hide();
|
||||
$('#private-login').show();
|
||||
$('#private-contact-form').hide();
|
||||
$('#new-private-account').hide();
|
||||
$('.alert').addClass('private_error_resp');
|
||||
}
|
||||
|
||||
function forgot_password()
|
||||
{
|
||||
//$('#ps17_errors').html('').hide();
|
||||
$('#private-login').hide();
|
||||
$('#private-lost-password').show();
|
||||
$('#private-contact-form').hide();
|
||||
$('.alert').addClass('private_error_resp');
|
||||
}
|
||||
|
||||
function BackToLogin()
|
||||
{
|
||||
if (typeof baseUri === 'undefined') {
|
||||
baseUri = prestashop.urls.base_url;
|
||||
}
|
||||
|
||||
if (getUrlParameter('reset_token') !== '') {
|
||||
window.location.replace(baseUri);
|
||||
} else {
|
||||
$('.private_error_resp').html('').hide();
|
||||
$('#private-lost-password').hide();
|
||||
$('#private-contact-form').hide();
|
||||
$('#private-login').fadeIn('slow');
|
||||
}
|
||||
}
|
||||
|
||||
function getUrlParameter(name)
|
||||
{
|
||||
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
|
||||
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
|
||||
var results = regex.exec(location.search);
|
||||
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
|
||||
}
|
||||
|
||||
function responsiveFn()
|
||||
{
|
||||
width = $( window ).width();
|
||||
height = $( window ).height();
|
||||
|
||||
if(width <= 320) {
|
||||
$('#login_form').removeClass('box');
|
||||
}
|
||||
else {
|
||||
$('#login_form').addClass('box');
|
||||
}
|
||||
}
|
||||
function toggleVis(e) {
|
||||
var elm = $(e).closest('.input-group').find('input.js-visible-password');
|
||||
|
||||
if (elm.attr('type') === 'password') {
|
||||
elm.attr('type', 'text');
|
||||
$(e).text($(e).data('text-hide'));
|
||||
} else {
|
||||
elm.attr('type', 'password');
|
||||
$(e).text($(e).data('text-show'));
|
||||
}
|
||||
}
|
||||
|
||||
function sendMessage(el) {
|
||||
var gif_loader = $('#gif_loader');
|
||||
gif_loader.show();
|
||||
var form_data = $('#private-contact_form form').serialize();
|
||||
var formData = new FormData($(el).closest('form').get(0));
|
||||
formData.append('action', 'sendMessage');
|
||||
var requestData = {
|
||||
type : 'POST',
|
||||
url : ajax_url,
|
||||
dataType : 'json',
|
||||
data : formData,
|
||||
contentType : false,
|
||||
cache : false,
|
||||
processData : false,
|
||||
success: function(jsonData) {
|
||||
if (jsonData.errors > 0) {
|
||||
var __html = '<div class="alert alert-danger" id="ps17_errors"><ol><li>' + jsonData.html + '</li></ol></div>';
|
||||
$('#error_holder').html(__html);
|
||||
gif_loader.hide();
|
||||
} else {
|
||||
$('#error_holder').html('');
|
||||
if (jsonData.redirect === true) {
|
||||
window.location = jsonData.redirect_url;
|
||||
} else {
|
||||
$('#new-private-account').html(jsonData.message);
|
||||
}
|
||||
|
||||
$('#privateshoplite_pending_message').html('You message request has been sent');
|
||||
$('#customer_message_email').val('');
|
||||
$('#customer_message_subject').val('');
|
||||
$('#customer_message_message').val('');
|
||||
$('#default_back').hide();
|
||||
$('#private-back').show();
|
||||
|
||||
gif_loader.hide();
|
||||
}
|
||||
},
|
||||
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
gif_loader.hide();
|
||||
}
|
||||
};
|
||||
$.ajax(requestData);
|
||||
}
|
||||
function registerNewUser(el) {
|
||||
var gif_loader = $('#gif_loader');
|
||||
gif_loader.show();
|
||||
var form_data = $('#new-private-account form').serialize();
|
||||
var formData = new FormData($(el).closest('form').get(0));
|
||||
var requestData = {
|
||||
type : 'POST',
|
||||
url : ajax_url,
|
||||
dataType : 'json',
|
||||
data : formData,
|
||||
contentType : false,
|
||||
cache : false,
|
||||
processData : false,
|
||||
success: function(jsonData) {
|
||||
if (jsonData.errors > 0) {
|
||||
var __html = '<div class="alert alert-danger" id="ps17_errors"><ol><li>' + jsonData.html + '</li></ol></div>';
|
||||
$('#error_holder').html(__html);
|
||||
gif_loader.hide();
|
||||
} else {
|
||||
$('#error_holder').html('');
|
||||
if (jsonData.redirect === true) {
|
||||
window.location = jsonData.redirect_url;
|
||||
} else {
|
||||
$('#new-private-account').html(jsonData.message);
|
||||
}
|
||||
|
||||
$('#private-back').show();
|
||||
gif_loader.hide();
|
||||
}
|
||||
},
|
||||
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
gif_loader.hide();
|
||||
}
|
||||
};
|
||||
$.ajax(requestData);
|
||||
}
|
||||
|
||||
$(document).on('click', '#SubmitLogin', function(e){
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
//var gif_loader = $('#gif_loader');
|
||||
//gif_loader.show();
|
||||
var jsonData = {
|
||||
type : "POST",
|
||||
cache : false,
|
||||
url : ajax_url,
|
||||
dataType : "json",
|
||||
data : {
|
||||
action : 'privateLogin',
|
||||
ajax : true,
|
||||
email : $.trim($('input[name=email]').val()),
|
||||
passwd : $.trim($('input[name=passwd]').val())
|
||||
},
|
||||
success: function(response) {
|
||||
if (response.errors > 0) {
|
||||
var __html = '<div class="alert alert-danger" id="ps17_errors"><ol><li>'+response.html+'</li></ol></div>';
|
||||
$('#error_holder').html(__html);
|
||||
//gif_loader.hide();
|
||||
} else if (response.success) {
|
||||
$('#error_holder').html('');
|
||||
//gif_loader.hide();
|
||||
window.location.reload();
|
||||
}
|
||||
},
|
||||
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
console.log(textStatus + '<br>' + errorThrown);
|
||||
//gif_loader.hide();
|
||||
}
|
||||
};
|
||||
$.ajax(jsonData);
|
||||
});
|
||||
{/literal}
|
||||
//]]>
|
||||
</script>
|
||||
{if isset($field_values) AND $field_values.bg_type}
|
||||
|
||||
{if $field_values.bg_type == "background-video" AND isset($field_values.bg_video)}
|
||||
<script type="text/javascript">
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
setBGvideo('{$field_values.bg_video}'); //html content
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
||||
{if $persist == 1 AND isset($persist)}
|
||||
<script type="text/javascript">{literal}
|
||||
$(document).ready(function() {
|
||||
forgot_password();
|
||||
});{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
</head>
|
||||
<body {if $field_values.priv_form_theme == 'mod'}class="private_modern_theme"{/if} {if isset($field_values) AND $field_values.bg_type}{if $field_values.bg_type == "background-image" AND isset($field_values.bg_img)}id="bg-private-image"{elseif $field_values.bg_type == "background-video" AND isset($field_values.bg_video_img)}id="bg-private-image_video"{else if isset($field_values.bg_color) AND $field_values.bg_type == 'background-color'}id="bg-private-color"{/if}{/if}>
|
||||
<div id="wrapper"{if isset($field_values.position) AND $field_values.position AND $field_values.position == 'left'} class="bg_opacity"{elseif $field_values.position == 'right'} class="bg_opacity"{/if} style="{if isset($field_values.position) AND $field_values.position AND $field_values.position == 'left'}float: left; margin-left:3%;{elseif $field_values.position == 'right'}float: right; margin-right:3%;{elseif $field_values.position == 'center'}margin:0 auto;{/if}" {if isset($field_values) AND $field_values.position == 'center'}class="center_align bg_opacity"{/if}>
|
||||
<div id="privatebox">
|
||||
<div class="container bg_opacity_white" id="fmm_ps17">
|
||||
<p id="logo_basic"><img src="{if isset($field_values.custom_logo) && $field_values.custom_logo > 0}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/tmp/{$field_values.custom_logo_img|escape:'htmlall':'UTF-8'}{else}{$logo_url|escape:'htmlall':'UTF-8'}{/if}" alt="logo" /></p>{if $field_values.show_store_title > 0}<h1 class="pshop_title_shop">{$shop_name|escape:'htmlall':'UTF-8'}</h1>{/if}
|
||||
<!-- <h2>{l s='Private Login' mod='privateshoplite'}</h2> -->
|
||||
<div id="center_column" class="private_login">
|
||||
{include file="module:privateshoplite/views/templates/front/errors.tpl"}
|
||||
<div id="error_holder"></div>
|
||||
{if isset($field_values) AND isset($field_values.active_signup) AND $field_values.active_signup == 1}
|
||||
<!-- create form -->
|
||||
<div id="new-private-account" style="display:none;">
|
||||
<form method="post" class="js-customer-form" id="customer-form" enctype="multipart/form-data">
|
||||
<section>
|
||||
<input type="hidden" value="" name="id_customer">
|
||||
{if isset($field_values.gender_opt) && $field_values.gender_opt <= 0}
|
||||
<div class="form-group row social_title">
|
||||
<label class="col-md-3 form-control-label">
|
||||
{l s='Social title' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-6 form-control-valign">
|
||||
<label class="radio-inline">
|
||||
<span class="custom-radio">
|
||||
<input type="radio" value="1" name="id_gender">
|
||||
<span></span>
|
||||
</span>
|
||||
{l s='Mr.' mod='privateshoplite'}
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<span class="custom-radio">
|
||||
<input type="radio" value="2" name="id_gender">
|
||||
<span></span>
|
||||
</span>
|
||||
{l s='Mrs.' mod='privateshoplite'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label required">
|
||||
{l s='First name' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" placeholder="{l s='First name' mod='privateshoplite'}" required="" value="" name="firstname" class="form-control">
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label required">
|
||||
{l s='Last name' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" required="" placeholder="{l s='Last name' mod='privateshoplite'}" value="" name="lastname" class="form-control">
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label required">
|
||||
{l s='Email' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<input type="email" required="" placeholder="{l s='Email' mod='privateshoplite'}" value="" name="email_account" class="form-control">
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label required">
|
||||
{l s='Password' mod='privateshoplite'}
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group js-parent-focus">
|
||||
<input type="password" required="" value="" placeholder="{l s='Password' mod='privateshoplite'}" name="password" class="form-control js-child-focus js-visible-password">
|
||||
<span class="input-group-btn pshop_show_hide">
|
||||
<button data-text-hide="{l s='Hide' mod='privateshoplite'}" onclick="toggleVis(this);" data-text-show="{l s='Show' mod='privateshoplite'}" data-action="show-password" type="button" class="btn">
|
||||
{l s='Show' mod='privateshoplite'}
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
{if isset($field_values.bday) && $field_values.bday <= 0}
|
||||
<div class="form-group row ">
|
||||
<div class="birth-date-select">
|
||||
<label class="col-lg-3" style='padding:1%;'>{l s='Birthday' mod='privateshoplite'}</label>
|
||||
<div class="col-lg-6" style="display: flex;gap: 2px;">
|
||||
<div style="width: 35%;">
|
||||
<select id="days" name="days" class="form-control">
|
||||
<option value="">{l s='dd' mod='privateshoplite'}</option>
|
||||
{foreach from=$days item=day}
|
||||
<option value="{$day|escape:'htmlall':'UTF-8'}" {if ($sl_day == $day)} selected="selected"{/if}>{$day|escape:'htmlall':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div><br>
|
||||
<div style="width: 35%;">
|
||||
<select id="months" name="months" class="form-control">
|
||||
<option value="">{l s='mm' mod='privateshoplite'}</option>
|
||||
{foreach from=$months key=k item=month}
|
||||
<option value="{$k|escape:'htmlall':'UTF-8'}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month|escape:'htmlall':'UTF-8' mod='privateshoplite' } </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div><br>
|
||||
<div style="width: 35%;">
|
||||
<select id="years" name="years" class="form-control">
|
||||
<option value="">{l s='yyyy' mod='privateshoplite'}</option>
|
||||
{foreach from=$years item=year}
|
||||
<option value="{$year|escape:'htmlall':'UTF-8'}" {if ($sl_year == $year)} selected="selected"{/if}>{$year|escape:'htmlall':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div><br>
|
||||
<div class="col-md-3 form-control-comment show_comment">
|
||||
{l s='Optional' mod='privateshoplite'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($field_values.offers_opt) && $field_values.offers_opt <= 0}
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label">
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<span class="custom-checkbox">
|
||||
<input type="checkbox" value="1" name="optin">
|
||||
<span><i class="material-icons checkbox-checked"></i></span>
|
||||
<label>{l s='Receive offers from our partners' mod='privateshoplite'}</label>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($field_values.nletter_opt) && $field_values.nletter_opt <= 0}
|
||||
<div class="form-group row ">
|
||||
<label class="col-md-3 form-control-label">
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<span class="custom-checkbox">
|
||||
<input type="checkbox" value="1" name="newsletter">
|
||||
<span><i class="material-icons checkbox-checked"></i></span>
|
||||
<label>{l s='Sign up for our newsletter' mod='privateshoplite'}<br><em></em></label>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-md-3 form-control-comment">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{$hook_create_account_form nofilter}
|
||||
</section>
|
||||
<footer class="form-footer clearfix">
|
||||
<input type="hidden" value="1" name="submitCreate">
|
||||
<button type="button" data-link-action="save-customer" onclick="registerNewUser(this);" class="btn btn-primary form-control-submit pull-xs-right">
|
||||
{l s='Save' mod='privateshoplite'}
|
||||
</button>
|
||||
<a href="javascript:void(0);" onclick="Login();">
|
||||
<span>{l s='Log in instead!' mod='privateshoplite'}</span>
|
||||
</a>
|
||||
</footer>
|
||||
</form>
|
||||
<div class="clearfix"></div>
|
||||
<div id="gif_loader" style="display: none"></div>
|
||||
</div> <!-- /create form ends-->
|
||||
{/if}
|
||||
<!-- login form -->
|
||||
<div id="private-login">
|
||||
<form action="{$link->getPageLink('authentication', true)|escape:'htmlall':'UTF-8'}" method="post" id="login_form" class="box">
|
||||
<h2 class="private-subheading">Logowanie do panelu B2B<br>Login to B2B panel</h2>
|
||||
<div class="form_content clearfix">
|
||||
<table class="private_login_table">
|
||||
<tr class="pshop_fields_row">
|
||||
<div class="form-group">
|
||||
<td><label for="email">{l s='Email address' mod='privateshoplite'}</label></td>
|
||||
<td colspan="3"><input placeholder="Adres email (Email address)" class="is_required validate account_input form-control" data-validate="isEmail" type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes|escape:'htmlall':'UTF-8'}{/if}" /></td>
|
||||
</div>
|
||||
</tr>
|
||||
<tr class="exttra_row"><td> </td><td> </td><td> </td></tr>
|
||||
<tr class="pshop_fields_row">
|
||||
<div class="form-group">
|
||||
<td><label for="passwd">{l s='Password' mod='privateshoplite'}</label></td>
|
||||
<td colspan="3"><input placeholder="Hasło (Password)" class="is_required validate account_input form-control" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes|escape:'htmlall':'UTF-8'}{/if}" /></td>
|
||||
</div>
|
||||
</tr>
|
||||
<tr class="exttra_row"><td> </td><td> </td></tr>
|
||||
</table>
|
||||
<ul id="pshop_bottom_footer">
|
||||
<li class="submit">
|
||||
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if}
|
||||
|
||||
<div class='private-login-footer-button'>
|
||||
{if $version >= 1.6}
|
||||
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium">
|
||||
<span>
|
||||
<i class="icon-lock left"></i>
|
||||
Zaloguj się (Sign in)
|
||||
</span>
|
||||
</button>
|
||||
{else}
|
||||
<input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="{l s='Log in' mod='privateshoplite'}"/>
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
<div class='private-login-footer-button'>
|
||||
{if isset($field_values) AND isset($field_values.active_signup) AND $field_values.active_signup == 1}
|
||||
<a class="btn btn-default button button-medium exclusive" type="submit" id="register" name="register" onclick="SignUp();">
|
||||
<span>
|
||||
Zarejestruj się (Sign Up)
|
||||
</span>
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<li><p class="lost_password form-group"><a id="lost-password" href="javascript:;" title="{l s='Recover your forgotten password' mod='privateshoplite'}" rel="nofollow" onclick="forgot_password()">Zapomniałeś hasła? (Forgot your password?)</a></p></li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div> <!-- /Contact form ends -->
|
||||
<div id="private-contact-form" style="display:none;">
|
||||
<form action="{$link->getPageLink('authentication', true)|escape:'htmlall':'UTF-8'}" method="post" id="privateshoplite_customer_contact_form" class="box">
|
||||
<h2 class="private-subheading">{l s='Contact Us' mod='privateshoplite'}</h2>
|
||||
<div class="form_content clearfix">
|
||||
<table class="private_login_table">
|
||||
<tr class="pshop_fields_row">
|
||||
<div class="form-group">
|
||||
<td><label for="email">{l s='Email address' mod='privateshoplite'}</label></td>
|
||||
<td colspan="3"><input placeholder="{l s='Email address' mod='privateshoplite'}" id='customer_message_email' class="is_required validate account_input form-control" data-validate="isEmail" type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes|escape:'htmlall':'UTF-8'}{/if}" /></td>
|
||||
</div>
|
||||
</tr>
|
||||
<tr class="exttra_row"><td> </td><td> </td><td> </td></tr>
|
||||
<tr class="pshop_fields_row">
|
||||
<div class="form-group">
|
||||
<td><label for="subject">{l s='Subject' mod='privateshoplite'}</label></td>
|
||||
<td colspan="3"><input placeholder="{l s='Subject' mod='privateshoplite'}" id='customer_message_subject'class="account_input form-control" type="text" id="subject" name="subject" value="{if isset($smarty.post.subject)}{$smarty.post.subject|escape:'htmlall':'UTF-8'}{/if}" /></td>
|
||||
</div>
|
||||
</tr>
|
||||
<tr class="exttra_row"><td> </td><td> </td></tr>
|
||||
<tr class="pshop_fields_row">
|
||||
<div class="form-group">
|
||||
<td><label for="subject">{l s='Subject' mod='privateshoplite'}</label></td>
|
||||
<td colspan="3"><input placeholder="{l s='Message' mod='privateshoplite'}" id='customer_message_message' class="account_input form-control" type="textarea" id="message" name="message" value="{if isset($smarty.post.message)}{$smarty.post.message|escape:'htmlall':'UTF-8'}{/if}" /></td>
|
||||
</div>
|
||||
</tr>
|
||||
<tr class="exttra_row"><td> </td><td> </td></tr>
|
||||
</table>
|
||||
<ul id="pshop_bottom_footer">
|
||||
<li class="submit">
|
||||
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if}
|
||||
|
||||
<div>
|
||||
{if $version >= 1.6}
|
||||
<button type="button" class="button btn btn-default button-medium" onclick="Login();">
|
||||
<span>
|
||||
<i class="icon-lock left"></i>
|
||||
{l s='Sign in' mod='privateshoplite'}
|
||||
</span>
|
||||
</button>
|
||||
{else}
|
||||
{* <input type="button" class="button" value="{l s='Log in' mod='privateshoplite'}" onclick="Login();"/> *}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
<div>
|
||||
{if isset($field_values) AND isset($field_values.active_signup) AND $field_values.active_signup == 1}
|
||||
<a class="btn btn-default button button-medium exclusive" type="submit" id="register" name="register" onclick="SignUp();">
|
||||
<span>
|
||||
{l s='Sign Up' mod='privateshoplite'}
|
||||
</span>
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
<div>
|
||||
<a name='SubmitContactForm' id='SubmitContactForm' class="btn btn-primary" onclick="sendMessage(this);">
|
||||
<span>
|
||||
{l s='Send' mod='privateshoplite'}
|
||||
</span>
|
||||
<a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div> <!-- /login form ends -->
|
||||
<div id="private-lost-password" style="display:none;">{include file="module:privateshoplite/views/templates/front/password_17.tpl"}</div>
|
||||
</div>
|
||||
<div id="private-back" class="col-lg-12" style="display:none;">
|
||||
<p class="alert alert-info info" id='privateshoplite_pending_message'>{l s='Your account is under review. Your will receive confirmation email soon.' mod='privateshoplite'}</p>
|
||||
<button id="default_back" onclick="window.location.reload();" class="btn btn-default col-lg-12">{l s='Back' mod='privateshoplite'}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div><div class="clearfix"></div>
|
||||
{if isset($field_values) AND $field_values.bg_type}
|
||||
{if $field_values.bg_type == "background-video" AND isset($field_values.bg_video)}
|
||||
<script type="text/javascript" src="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/js/jquery.tubular.1.0.js"></script>
|
||||
{/if}
|
||||
{/if}
|
||||
</body>
|
||||
</html>
|
||||
<style>
|
||||
.private-login-footer-button {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
function setBGvideo(value) {
|
||||
var wrapper = (psNew) ? '#wrapper' : '#center_column';
|
||||
if (wrapper === '#wrapper') {
|
||||
// $(wrapper).addClass('center_align bg_opacity');
|
||||
$(wrapper).css({
|
||||
'background': 'transparent'
|
||||
});
|
||||
}
|
||||
|
||||
$(wrapper).tubular({
|
||||
videoId: value,
|
||||
onError: function() {
|
||||
console.error('Error setting background video');
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
125
modules/privateshoplite/views/templates/front/restricted.tpl
Normal file
125
modules/privateshoplite/views/templates/front/restricted.tpl
Normal file
@@ -0,0 +1,125 @@
|
||||
{*
|
||||
* PrivateShop
|
||||
*
|
||||
* Do not edit or add to this file.
|
||||
* You are not authorized to modify, copy or redistribute this file.
|
||||
* Permissions are reserved by FME Modules.
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 FME Modules All right reserved
|
||||
* @license FME Modules
|
||||
* @category FMM Modules
|
||||
* @package PrivateShop
|
||||
*}
|
||||
<!DOCTYPE HTML>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<!--[if gt IE 8]> <html class="no-js ie9" lang="{$language_code|escape:'htmlall':'UTF-8'}"><![endif]-->
|
||||
<html lang="{$language_code|escape:'htmlall':'UTF-8'}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
|
||||
{if isset($meta_description)}
|
||||
<meta name="description" content="{$meta_description|escape:'htmlall':'UTF-8'}" />
|
||||
{/if}
|
||||
{if isset($meta_keywords)}
|
||||
<meta name="keywords" content="{$meta_keywords|escape:'htmlall':'UTF-8'}" />
|
||||
{/if}
|
||||
<meta name="generator" content="PrestaShop" />
|
||||
<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}?{$img_update_time|escape:'htmlall':'UTF-8'}" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}?{$img_update_time|escape:'htmlall':'UTF-8'}" />
|
||||
{if isset($field_values) AND $field_values.bg_type}
|
||||
{if $field_values.bg_type == "background-video" AND isset($field_values.bg_video)}
|
||||
<script type="text/javascript" src="{$base_uri|escape:'htmlall':'UTF-8'}js/jquery/jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/js/jquery.tubular.1.0.js"></script>
|
||||
{/if}
|
||||
{/if}
|
||||
<link rel="shortcut icon" href="{$favicon_url|escape:'htmlall':'UTF-8'}" />
|
||||
<link rel="stylesheet" href="{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/css/private.css" type="text/css" charset="utf-8" />
|
||||
{if $version > 0}
|
||||
<link rel="stylesheet" href="{$css_dir|escape:'htmlall':'UTF-8'}custom.css" type="text/css" media="all" charset="utf-8" />
|
||||
<link rel="stylesheet" href="{$css_dir|escape:'htmlall':'UTF-8'}theme.css" type="text/css" media="all" charset="utf-8" />
|
||||
{/if}
|
||||
{literal}
|
||||
<!-- inline css -->
|
||||
<style type="text/css">
|
||||
html { padding: 0px;}
|
||||
body
|
||||
{
|
||||
height: 100% !important;
|
||||
margin: 0;
|
||||
background: rgba(77,117,219,1);
|
||||
background: -moz-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -webkit-gradient(left top, right top, color-stop(0%, rgba(77,117,219,1)), color-stop(55%, rgba(120,155,227,1)), color-stop(100%, rgba(120,155,227,1)));
|
||||
background: -webkit-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -o-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: -ms-linear-gradient(left, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
background: linear-gradient(to right, rgba(77,117,219,1) 0%, rgba(120,155,227,1) 55%, rgba(120,155,227,1) 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d75db', endColorstr='#789be3', GradientType=1 );
|
||||
}
|
||||
#bg-private-image{
|
||||
background:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/{$field_values.bg_img|escape:'htmlall':'UTF-8'}{literal}") no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#bg-private-image_video{
|
||||
background:url("{/literal}{$modules_dir|escape:'htmlall':'UTF-8'}privateshoplite/views/img/private/tmp/{$field_values.bg_video_img|escape:'htmlall':'UTF-8'}{literal}") no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body#bg-private-color{
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
background: {/literal}{$field_values.bg_color|escape:'htmlall':'UTF-8'}{literal};
|
||||
}
|
||||
.bg_opacity {
|
||||
background:rgb(241,241,241,{/literal}{$field_values.bg_opacity|escape:'htmlall':'UTF-8'}{literal}) !important;
|
||||
}
|
||||
.bg_opacity_white {
|
||||
background:rgb(255,255,255,{/literal}{$field_values.bg_opacity/2|escape:'htmlall':'UTF-8'}{literal}) !important;
|
||||
}
|
||||
</style><!--/inline css-->
|
||||
{/literal}
|
||||
{if isset($field_values) AND $field_values.bg_type}
|
||||
{if $field_values.bg_type == "background-video" AND isset($field_values.bg_video)}
|
||||
<script type="text/javascript">{literal}
|
||||
var psNew = parseInt("{if $version ge '1.7'}1{else}0{/if}");
|
||||
$(document).ready(function() {
|
||||
var wrapper = (psNew)? '#wrapper' : '#page';
|
||||
$(wrapper).tubular({videoId: {/literal}'{$field_values.bg_video}'{literal}}); {*html content*}
|
||||
});{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
||||
</head>
|
||||
<body {if isset($field_values) AND $field_values.bg_type}{if $field_values.bg_type == "background-image" AND isset($field_values.bg_img)}id="bg-private-image"{elseif $field_values.bg_type == "background-video" AND isset($field_values.bg_video_img)}id="bg-private-image_video"{else if isset($field_values.bg_color) AND $field_values.bg_type == 'background-color'}id="bg-private-color"{/if}{/if}>
|
||||
<div id="wrapper"{if isset($field_values.position) AND $field_values.position AND $field_values.position == 'left'} class="bg_opacity"{elseif $field_values.position == 'right'} class="bg_opacity"{/if} style="{if isset($field_values.position) AND $field_values.position AND $field_values.position == 'left'}float: left; margin-left:3%;{elseif $field_values.position == 'right'}float: right; margin-right:3%;{elseif $field_values.position == 'center'}margin:0 auto;{/if}" {if isset($field_values) AND $field_values.position == 'center'}class="center_align bg_opacity"{/if}>
|
||||
<div id="privatebox">
|
||||
<div class="container bg_opacity_white" id="fmm_ps17">
|
||||
<p style="text-align:center;"><img src="{$logo_url|escape:'htmlall':'UTF-8'}" alt="logo" /></p>
|
||||
{if isset($field_values.restrict_message) AND empty($field_values.restrict_message)}
|
||||
<div id="restricted">
|
||||
<h1>{l s='Your Account is created but pedning validation.' mod='privateshoplite'}</h1>
|
||||
</div>
|
||||
{else}
|
||||
{$field_values.restrict_message nofilter}{*HTML Content*}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
32
modules/privateshoplite/views/templates/hook/index.php
Normal file
32
modules/privateshoplite/views/templates/hook/index.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2013 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-2013 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;
|
||||
78
modules/privateshoplite/views/templates/hook/info.tpl
Normal file
78
modules/privateshoplite/views/templates/hook/info.tpl
Normal file
@@ -0,0 +1,78 @@
|
||||
{*
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
|
||||
*
|
||||
* @author FME Modules
|
||||
* @copyright 2021 fmemodules All right reserved
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
{*Tools::version_compare(_PS_VERSION_, '1.7', '>=')*}
|
||||
<div class="panel" id="fmm_promo_panel">
|
||||
<div class="col-lg-3">
|
||||
<ul>
|
||||
<li><a href="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/readme_en.pdf" target="_blank" title="Need Help">{if Tools::version_compare(_PS_VERSION_, '1.7', '>=') > 0}<i class="material-icons"></i>{else}<i class="icon-question-circle"></i>{/if}Help?</a></li>
|
||||
<li class="color_red"><a href="https://addons.prestashop.com/contact-form.php?id_product=20141" target="_blank" title="Need Support">{if Tools::version_compare(_PS_VERSION_, '1.7', '>=') > 0}<i class="material-icons"></i>{else}<i class="icon-comments"></i>{/if}Support</a></li>
|
||||
<li class="color_blue"><a href="https://addons.prestashop.com/en/private-sales-flash-sales/20141-private-shop-login-to-see-products-store.html" target="_blank" title="Need Details">{if Tools::version_compare(_PS_VERSION_, '1.7', '>=') > 0}<i class="material-icons"></i>{else}<i class="icon-eye"></i>{/if}Details</a></li>
|
||||
<li class="color_orange"><a href="http://addons.prestashop.com/en/ratings.php" target="_blank" title="Rate us 5 stars">{if Tools::version_compare(_PS_VERSION_, '1.7', '>=') > 0}<i class="material-icons"></i>{else}<i class="icon-gratipay"></i>{/if}Rate Us</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-lg-7 fmm_promo_modules">
|
||||
<ol>
|
||||
<li class="fmm_promo_maylike">Modules you may like...</li>
|
||||
<li><a href="https://addons.prestashop.com/en/url-redirects/16633-pretty-urls-remove-ids-numbers-for-seo-friendly-url.html" target="_blank" title="Pretty URLs"><img src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/modules/prettyurl.png" alt="" /><i>Pretty URLs Module</i></a></li>
|
||||
<li><a href="https://addons.prestashop.com/en/registration-ordering-process/19294-registration-fields-add-custom-fields-attributes.html" target="_blank" title="Registration Fields"><img src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/modules/registrationfields.png" alt="" /><i>Registration Fields Module</i></a></li>
|
||||
<li><a href="https://addons.prestashop.com/en/registration-ordering-process/19008-custom-fields-add-extra-field-to-checkout-order-page.html" target="_blank" title="Custom Fields"><img src="{$smarty.const.__PS_BASE_URI__|escape:'htmlall':'UTF-8'}modules/privateshoplite/views/img/modules/customfields.png" alt="" /><i>Custom Fields Module</i></a></li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-lg-2 fmm_promo_basecamp">
|
||||
<a href="https://addons.prestashop.com/en/139_fme-modules" title="FME Modules" target="_blank">
|
||||
<i>See all modules</i>
|
||||
<img src="https://www.fmemodules.com/img/prestashop-modules-and-addons-logo-1456381524.jpg" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{literal}
|
||||
<style type="text/css">
|
||||
.panel:after { content: "."; clear: both; width: 100%; visibility: hidden; height: 0px; display: block;}
|
||||
#fmm_promo_panel ul { padding: 0; margin: 0; list-style: none; font-size: 12px; color: #6ab233;}
|
||||
#fmm_promo_panel ul a { text-decoration: none; color: #6ab233;}
|
||||
#fmm_promo_panel ul a:hover,
|
||||
#fmm_promo_panel ul a:focus,
|
||||
#fmm_promo_panel ul a:active { text-decoration: none; color: #515151 !important;}
|
||||
#fmm_promo_panel ul li { list-style: none; display: inline-block; width: 23%; margin-right: 1%; text-align: center;}
|
||||
#fmm_promo_panel ul li i { display: block; clear: both; font-size: 42px;}
|
||||
#fmm_promo_panel ul li.color_red,
|
||||
#fmm_promo_panel ul li.color_red a { color: red;}
|
||||
#fmm_promo_panel ul li.color_blue,
|
||||
#fmm_promo_panel ul li.color_blue a { color: #4169E1;}
|
||||
#fmm_promo_panel ul li.color_orange,
|
||||
#fmm_promo_panel ul li.color_orange a { color: #fbbb22;}
|
||||
.fmm_promo_modules ol { padding: 0; margin: 0; list-style: none; font-size: 11px; color: #6ab233; display: inline-block;}
|
||||
.fmm_promo_modules ol li { list-style: none; display: inline-block; width: 22%; margin-right: 1%; text-align: center; vertical-align: middle}
|
||||
.fmm_promo_modules ol li.fmm_promo_maylike { width: 20%;font-size: 12px; color: #6ab233; text-transform: uppercase;padding: 0; margin: 0 3% 0 0;
|
||||
font-weight: bold;}
|
||||
.fmm_promo_modules ol li a {display: block; line-height: 18px;text-decoration: none; color: #6ab233;}
|
||||
.fmm_promo_modules ol li a img { display: inline-block; padding-right: 1%; max-width: 49%; vertical-align: middle; width: 49%;}
|
||||
.fmm_promo_modules ol li i { font-style: normal; display: inline-block; vertical-align: middle; width: 50%;}
|
||||
.fmm_promo_basecamp { text-align: center;}
|
||||
.fmm_promo_basecamp a { text-decoration: none;color:#6ab233;}
|
||||
.fmm_promo_basecamp a:hover,
|
||||
.fmm_promo_basecamp a:active,
|
||||
.fmm_promo_basecamp a:focus { text-decoration: none; color:#515151 !important; }
|
||||
.fmm_promo_basecamp i { font-style: normal; text-transform: uppercase; font-weight: 700; padding: 4px;
|
||||
border: 1px solid #6ab233; border-radius: 4px; display: block; clear: both; margin-bottom: 5px; }
|
||||
.fmm_promo_basecamp a:hover i {color:#515151 !important; border-color:#515151 !important; }
|
||||
.fmm_promo_basecamp img { max-width: 100%; width: 150px;}
|
||||
@media (min-width: 200px) and (max-width: 1190px) {
|
||||
.fmm_promo_modules,
|
||||
.fmm_promo_basecamp { padding-top: 15px;}
|
||||
}
|
||||
@media (min-width: 200px) and (max-width:430px) {
|
||||
.fmm_promo_modules { display: none}
|
||||
}
|
||||
</style>{/literal}
|
||||
32
modules/privateshoplite/views/templates/index.php
Normal file
32
modules/privateshoplite/views/templates/index.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2013 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-2013 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