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:
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}
|
||||
Reference in New Issue
Block a user