Add view classes for articles, banners, languages, menu, newsletter, containers, shop categories, clients, payment methods, products, and search

- Created `Articles` class for rendering article views including full articles, miniature lists, and news sections.
- Added `Banners` class for handling banner displays.
- Introduced `Languages` class for rendering language options.
- Implemented `Menu` class for rendering page and menu structures.
- Developed `Newsletter` class for newsletter rendering.
- Created `Scontainers` class for rendering specific containers.
- Added `ShopCategory` class for managing shop category views and pagination.
- Implemented `ShopClient` class for client-related views including address management and login forms.
- Created `ShopPaymentMethod` class for displaying payment methods in the basket.
- Added `ShopProduct` class for generating product URLs.
- Introduced `ShopSearch` class for rendering a simple search form.
- Added `.htaccess` file in the plugins directory to enhance security by restricting access to sensitive files and directories.
This commit is contained in:
2026-02-21 23:00:54 +01:00
parent a605e0f4ad
commit fc45bbf20e
322 changed files with 35722 additions and 21849 deletions

View File

@@ -1,7 +1,7 @@
<div class="user-register box">
<div class="content">
<div class="box-title">
<?= \S::lang('zaloz-konto-klienta');?>
<?= \Shared\Helpers\Helpers::lang('zaloz-konto-klienta');?>
</div>
<form method="POST" action="/" id="f-user-register">
<input type="hidden" id="type" name="type" value="0">
@@ -9,29 +9,29 @@
<input type="hidden" id="firm_id" name="firm_id" value="<?= $this -> firm_id;?>">
<? endif;?>
<div class="form-group">
<input type="email" required id="email" class="form-control" placeholder="<?= ucfirst( \S::lang('email') );?>">
<input type="email" required id="email" class="form-control" placeholder="<?= ucfirst( \Shared\Helpers\Helpers::lang('email') );?>">
</div>
<div class="form-group">
<input type="password" required id="password" pattern="^\S{6,}$" class="form-control" placeholder="<?= ucfirst( \S::lang('haslo') );?> (<?= \S::lang('min');?> 6 <?= \S::lang('znakow');?>)">
<input type="password" required id="password" pattern="^\S{6,}$" class="form-control" placeholder="<?= ucfirst( \Shared\Helpers\Helpers::lang('haslo') );?> (<?= \Shared\Helpers\Helpers::lang('min');?> 6 <?= \Shared\Helpers\Helpers::lang('znakow');?>)">
</div>
<div class="form-group">
<input type="password" required id="password-repeat" pattern="^\S{6,}$" class="form-control" oninput="check_match(this)" placeholder="<?= ucfirst( \S::lang('powtorz-haslo') );?>">
<input type="password" required id="password-repeat" pattern="^\S{6,}$" class="form-control" oninput="check_match(this)" placeholder="<?= ucfirst( \Shared\Helpers\Helpers::lang('powtorz-haslo') );?>">
</div>
<div class="form-group agreement">
<input type="checkbox" required class="checkbox" name="agreement" id="agreement">
<label for="agreement">
<?
$text = str_replace( '[LINK-REGULAMIN]', '<a href="/regulamin">' . \S::lang('regulamin') . '</a>', \S::lang('rejestracja-akceptacja-regulaminu') );
echo $text = str_replace( '[LINK-POLITYKA-PRYWATNOSCI]', '<a href="/polityka-prywatnosci">' . \S::lang('polityke-prywatnosci') . '</a>', $text );
$text = str_replace( '[LINK-REGULAMIN]', '<a href="/regulamin">' . \Shared\Helpers\Helpers::lang('regulamin') . '</a>', \Shared\Helpers\Helpers::lang('rejestracja-akceptacja-regulaminu') );
echo $text = str_replace( '[LINK-POLITYKA-PRYWATNOSCI]', '<a href="/polityka-prywatnosci">' . \Shared\Helpers\Helpers::lang('polityke-prywatnosci') . '</a>', $text );
?>
</label>
</div>
<div class="form-group agreement-marketing">
<input type="checkbox" name="agreement-marketing" class="checkbox" id="agreement-marketing"> <label for="agreement-marketing"><?= \S::lang('rejestracja-zgoda-na-marketing');?></label>
<input type="checkbox" name="agreement-marketing" class="checkbox" id="agreement-marketing"> <label for="agreement-marketing"><?= \Shared\Helpers\Helpers::lang('rejestracja-zgoda-na-marketing');?></label>
</div>
<div class="form-group buttons">
<button type="submit" class="btn btn-success"><?= ucfirst( \S::lang('zarejestruj-sie') );?></button>
<span id="login"><?= ucfirst( \S::lang('masz-juz-konto') );?>? <a href="/logowanie"><?= ucfirst( \S::lang('zaloguj-sie') );?></a></span>
<button type="submit" class="btn btn-success"><?= ucfirst( \Shared\Helpers\Helpers::lang('zarejestruj-sie') );?></button>
<span id="login"><?= ucfirst( \Shared\Helpers\Helpers::lang('masz-juz-konto') );?>? <a href="/logowanie"><?= ucfirst( \Shared\Helpers\Helpers::lang('zaloguj-sie') );?></a></span>
</div>
</form>
</div>
@@ -63,8 +63,8 @@
{
alert1 = $.alert(
{
title: '<?= ucfirst( \S::lang('informacja') );?>',
content: '<?= \S::lang('prosze-czekac');?>',
title: '<?= ucfirst( \Shared\Helpers\Helpers::lang('informacja') );?>',
content: '<?= \Shared\Helpers\Helpers::lang('prosze-czekac');?>',
type: 'orange',
closeIcon: true,
closeIconClass: 'fas fa-close',
@@ -77,7 +77,7 @@
{
confirm:
{
text: '<?= \S::lang('zamknij');?>',
text: '<?= \Shared\Helpers\Helpers::lang('zamknij');?>',
btnClass: 'btn-orange',
keys: ['enter'],
action: function() {}
@@ -92,7 +92,7 @@
$.alert(
{
title: '<?= ucfirst( \S::lang('informacja') );?>',
title: '<?= ucfirst( \Shared\Helpers\Helpers::lang('informacja') );?>',
content: response.msg,
type: 'orange',
closeIcon: true,
@@ -107,7 +107,7 @@
{
confirm:
{
text: '<?= \S::lang('zamknij');?>',
text: '<?= \Shared\Helpers\Helpers::lang('zamknij');?>',
btnClass: 'btn-orange',
keys: ['enter'],
action: function() {}
@@ -129,7 +129,7 @@
function check_match(input)
{
if ( input.value !== document.getElementById( 'password' ).value )
input.setCustomValidity( '<?= \S::lang('podane-hasla-sa-rozne');?>');
input.setCustomValidity( '<?= \Shared\Helpers\Helpers::lang('podane-hasla-sa-rozne');?>');
else
input.setCustomValidity('');
}