ver. 0.283: Legacy class cleanup — S, Html, Email, Image, Log, Mobile_Detect → Shared namespace
- Migrate class.S → Shared\Helpers\Helpers (140+ files), remove 12 unused methods - Migrate class.Html → Shared\Html\Html - Migrate class.Email → Shared\Email\Email - Migrate class.Image → Shared\Image\ImageManipulator - Delete class.Log (unused), class.Mobile_Detect (outdated UA detection) - Remove grid library loading from admin (index.php, ajax.php) - Replace gridEdit usage in 10 admin templates with grid-edit-replacement.php - Fix grid-edit-replacement.php AJAX to send values as JSON (grid.js compat) - Remove mobile layout conditionals (m_html/m_css/m_js) from Site + LayoutsRepository - Remove \Log::save_log() calls from OrderAdminService, ShopOrder, Order Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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('');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user