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:
2025-07-04 01:27:12 +02:00
parent 6cc26c0ed2
commit 4d2561ce4e
250 changed files with 55472 additions and 3 deletions

View File

@@ -0,0 +1,33 @@
/**
*
* 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 FME Modules All right reserved
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* @category FMM Modules
*/
$(function(){
addPrivateFields(custom_fields, sf)
})
function addPrivateFields(fieldsHtml, symfony) {
var chDiv = $('<div id="container-customer"></div>');
chDiv.append(fieldsHtml);
if (symfony) {
$('#main-div').find('.content-div').prepend('<div class="row"><div class="col"><div class="card">'+fieldsHtml+'</div></div></div>');
$('#fmm_regfields_wrap').find('.panel-heading').addClass('card-header');
$('#fmm_regfields_wrap').find('.panel-heading img').remove();
$('#fmm_regfields_wrap').find('.panel-heading').prepend('<i class="material-icons">person</i>');
$('#fmm_regfields_wrap').find('.form-horizontal').addClass('card-body');
} else {
$('.info-customer-left').before(chDiv);
$('#container-customer').before(chDiv);
}
}