- 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.
185 lines
7.0 KiB
Smarty
185 lines
7.0 KiB
Smarty
{*
|
|
* 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} |