Update style and temlates

Add new classes and identifiers.
This commit is contained in:
Visman 2021-02-02 19:40:57 +07:00
parent dff6d7a845
commit 34b465ab17
21 changed files with 291 additions and 289 deletions

View file

@ -109,6 +109,7 @@ class Reports extends Admin
];
}
$cur['fields']['reason' . $report->id] = [
'class' => 'reason',
'type' => 'str',
'value' => $report->message,
'caption' => __('Reason'),

View file

@ -95,22 +95,27 @@ class Forum extends Page
'sets' => [],
'btns' => [
'open' => [
'class' => 'origin',
'type' => 'submit',
'value' => __('Open'),
],
'close' => [
'class' => 'origin',
'type' => 'submit',
'value' => __('Close'),
],
'delete' => [
'class' => 'origin',
'type' => 'submit',
'value' => __('Delete'),
],
'move' => [
'class' => 'origin',
'type' => 'submit',
'value' => __('Move'),
],
'merge' => [
'class' => 'origin',
'type' => 'submit',
'value' => __('Merge'),
],

View file

@ -208,11 +208,13 @@ class Topic extends Page
if ($topic->closed) {
$form['btns']['open'] = [
'class' => 'origin',
'type' => 'submit',
'value' => __('Open topic'),
];
} else {
$form['btns']['close'] = [
'class' => 'origin',
'type' => 'submit',
'value' => __('Close topic'),
];
@ -220,11 +222,13 @@ class Topic extends Page
if ($topic->sticky) {
$form['btns']['unstick'] = [
'class' => 'origin',
'type' => 'submit',
'value' => __('Unstick topic'),
];
} else {
$form['btns']['stick'] = [
'class' => 'origin',
'type' => 'submit',
'value' => __('Stick topic'),
];
@ -232,14 +236,17 @@ class Topic extends Page
$form['btns'] += [
'move' => [
'class' => 'origin',
'type' => 'submit',
'value' => __('Move topic'),
],
'delete' => [
'class' => 'origin',
'type' => 'submit',
'value' => __('Delete'),
],
'split' => [
'class' => 'origin',
'type' => 'submit',
'value' => __('Split'),
],

View file

@ -1,6 +1,6 @@
@extends ('layouts/admin')
@if ($form = $p->formSearch)
<section class="f-admin f-search-bans">
<section id="fork-bnsrch" class="f-admin">
<h2>{!! __('Ban search head') !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')
@ -8,7 +8,7 @@
</section>
@endif
@if ($form = $p->formBan)
<section class="f-admin f-bans">
<section id="fork-bn" class="f-admin">
<h2>{!! $p->formBanHead !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')

View file

@ -27,7 +27,7 @@
</div>
</div>
@endif
<section class="f-admin f-bans-result-form">
<section id="fork-bnrslt" class="f-admin">
<h2>{!! __('Results head') !!}</h2>
<div class="f-fdiv">
@if ($form = $p->formResult)

View file

@ -1,5 +1,5 @@
@extends ('layouts/admin')
<section class="f-admin f-grlist">
<section id="fork-grlist" class="f-admin">
<h2>{!! __('User groups') !!}</h2>
<div>
<fieldset>
@ -17,7 +17,7 @@
</fieldset>
</div>
</section>
<section class="f-admin">
<section id="fork-grdef" class="f-admin">
<h2>{!! __('Default group subhead') !!}</h2>
<div class="f-fdiv">
@if ($form = $p->formDefault)
@ -25,7 +25,7 @@
@endif
</div>
</section>
<section class="f-admin">
<section id="fork-gradd" class="f-admin">
<h2>{!! __('Add group subhead') !!}</h2>
<div class="f-fdiv">
@if ($form = $p->formNew)

View file

@ -1,5 +1,5 @@
@extends ('layouts/admin')
<section class="f-admin f-welcome">
<section id="fork-welcome" class="f-admin">
<h2>{!! __('Forum admin head') !!}</h2>
<div>
<fieldset>
@ -18,7 +18,7 @@
</fieldset>
</div>
</section>
<section class="f-admin">
<section id="fork-about" class="f-admin">
<h2>{!! __('About head') !!}</h2>
<div class="f-fdiv">
<fieldset>

View file

@ -1,5 +1,5 @@
@extends ('layouts/admin')
<section class="f-admin f-maintenance-form">
<section id="fork-mnt" class="f-admin">
<h2>{!! __('Maintenance head') !!}</h2>
<div class="f-fdiv">
@if ($form = $p->formMaintenance)
@ -7,7 +7,7 @@
@endif
</div>
</section>
<section class="f-admin f-rebuildindex-form">
<section id="fork-rbld" class="f-admin">
<h2>{!! __('Rebuild index head') !!}</h2>
<div class="f-fdiv">
@if ($form = $p->formRebuild)

View file

@ -1,5 +1,5 @@
@extends ('layouts/admin')
<section class="f-admin f-phpinfo">
<section id="fork-phpinfo" class="f-admin">
<h2>phpinfo()</h2>
<div id="id-phpinfo-div">
{!! $p->phpinfo !!}

View file

@ -1,6 +1,6 @@
@extends ('layouts/admin')
@if ($form = $p->formNew)
<section class="f-admin f-reports f-reports-new">
<section id="fork-rprt-new" class="f-admin f-reports">
<h2>{!! __('New reports ') !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')
@ -8,7 +8,7 @@
</section>
@endif
@if ($form = $p->formOld)
<section class="f-admin f-reports f-reports-old">
<section id="fork-rprt-old" class="f-admin f-reports">
<h2>{!! __('10 last read reports') !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')

View file

@ -1,6 +1,6 @@
@extends ('layouts/admin')
@if ($form = $p->formSmilies)
<section class="f-admin f-smilies-form">
<section id="fork-smls" class="f-admin">
<h2>{!! __('Smilies head') !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')
@ -8,7 +8,7 @@
</section>
@endif
@if ($form = $p->formImages)
<section class="f-admin f-images-list">
<section id="fork-imgsm" class="f-admin">
<h2>{!! __('Available images head') !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')
@ -16,7 +16,7 @@
</section>
@endif
@if ($form = $p->formUploadImage)
<section class="f-admin f-image-upload-form">
<section id="fork-upimgsm" class="f-admin">
<h2>{!! __('Upload image head') !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')

View file

@ -1,5 +1,5 @@
@extends ('layouts/admin')
<section class="f-admin">
<section id="fork-serverst" class="f-admin">
<h2>{!! __('Server statistics head') !!}</h2>
<div class="f-fdiv">
<fieldset>

View file

@ -1,6 +1,6 @@
@extends ('layouts/admin')
@if ($form = $p->formSearch)
<section class="f-admin f-search-user-form">
<section id="fork-ausersrch" class="f-admin">
<h2>{!! __('User search head') !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')
@ -8,7 +8,7 @@
</section>
@endif
@if ($form = $p->formIP)
<section class="f-admin f-search-ip-form">
<section id="fork-ipsrch" class="f-admin">
<h2>{!! __('IP search head') !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')
@ -16,7 +16,7 @@
</section>
@endif
@if ($form = $p->formNew)
<section class="f-admin f-new-user-form">
<section id="fork-newuser" class="f-admin">
<h2>{!! __('New user head') !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')
@ -24,7 +24,7 @@
</section>
@endif
@if ($form = $p->formRecalculate)
<section class="f-admin f-recalculate-form">
<section id="fork-recalc" class="f-admin">
<h2>{!! __('Recalculate head') !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')

View file

@ -27,7 +27,7 @@
</div>
</div>
@endif
<section class="f-admin f-search-result-form">
<section id="fork-ausersrch-rs" class="f-admin">
<h2>{!! __('Results head') !!}</h2>
<div class="f-fdiv">
@if ($form = $p->formResult)

View file

@ -176,7 +176,7 @@
</div>
@endif
@if ($p->enableMod && $form = $p->formMod)
<section class="f-moderate">
<section id="fork-mod" class="f-moderate">
<h2>{!! __('Moderate') !!}</h2>
<div class="f-fdivm">
@include ('layouts/form')

View file

@ -4,9 +4,9 @@
@yield ('crumbs')
</div>
<div class="f-main f-main-admin{!! $p->mainSuffix or '' !!}">
<div class="f-admin-menu">
<div id="fork-a-menu">
@if ($p->aNavigation)
<nav class="f-admin-nav f-menu">
<nav id="fork-a-nav" class="f-menu">
<input id="id-an-checkbox" class="f-menu-checkbox" type="checkbox">
<label id="id-an-label" class="f-menu-toggle" for="id-an-checkbox"></label>
<ul class="f-menu-items">
@ -17,7 +17,7 @@
</nav>
@endif
</div>
<div class="f-admin-wrap">
<div id="forka">
@yield ('content')
</div>
</div>

View file

@ -9,7 +9,7 @@
@elseif (isset($setVal['fields']))
<fieldset id="id-fs-{{ $setKey }}" @if ($setVal['class']) class="f-fs-{!! \implode(' f-fs-', (array) $setVal['class']) !!}" @endif>
@if ($setVal['legend'])
<legend>{!! $setVal['legend'] !!}</legend>
<legend class="f-fleg">{!! $setVal['legend'] !!}</legend>
@endif
@foreach ($setVal['fields'] as $key => $cur)
@if ('info' === $cur['type'])
@ -27,7 +27,7 @@
@elseif ('textarea' === $cur['type'])
<textarea @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}">{{ $cur['value'] or '' }}</textarea>
@if ($cur['bb'])
<ul class="f-child5">
<ul class="f-fbbul">
@foreach ($cur['bb'] as $val)
<li><span><a href="{{ $val[0] }}">{!! $val[1] !!}</a> {!! $val[2] !!}</span></li>
@endforeach
@ -78,15 +78,15 @@
@elseif ('number' === $cur['type'])
<input @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}" type="number" min="{{ $cur['min'] }}" max="{{ $cur['max'] }}" @if (isset($cur['value'])) value="{{ $cur['value'] }}" @endif>
@elseif ('checkbox' === $cur['type'])
<label class="f-child2"><input @if ($cur['autofocus']) autofocus @endif @if ($cur['disabled']) disabled @endif type="checkbox" id="id-{{ $key }}" name="{{ $key }}" value="{{ $cur['value'] or '1' }}" @if ($cur['checked']) checked @endif>{!! $cur['label'] or '' !!}</label>
<label class="f-flblch"><input @if ($cur['autofocus']) autofocus @endif @if ($cur['disabled']) disabled @endif type="checkbox" class="f-ychk" id="id-{{ $key }}" name="{{ $key }}" value="{{ $cur['value'] or '1' }}" @if ($cur['checked']) checked @endif>{!! $cur['label'] or '' !!}</label>
@elseif ('radio' === $cur['type'])
@foreach ($cur['values'] as $v => $n)
<label class="f-label"><input @if ($cur['autofocus']) autofocus @endif @if ($cur['disabled']) disabled @endif type="radio" id="id-{{ $key }}-{{ $v }}" name="{{ $key }}" value="{{ $v }}" @if ($v == $cur['value']) checked @endif>{{ $n }}</label>
<label class="f-flblr"><input @if ($cur['autofocus']) autofocus @endif @if ($cur['disabled']) disabled @endif type="radio" class="f-yradio" id="id-{{ $key }}-{{ $v }}" name="{{ $key }}" value="{{ $v }}" @if ($v == $cur['value']) checked @endif>{{ $n }}</label>
@endforeach
@elseif ('password' === $cur['type'])
<input @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}" type="password" @if ($cur['maxlength']) maxlength="{{ $cur['maxlength'] }}" @endif @if ($cur['pattern']) pattern="{{ $cur['pattern'] }}" @endif @if (isset($cur['value'])) value="{{ $cur['value'] }}" @endif>
@elseif ('btn' === $cur['type'])
<a class="f-btn @if ($cur['disabled']) f-disabled @endif" href="{{ $cur['link'] }}" title="{{ $cur['title'] or '' }}" @if ($cur['disabled']) tabindex="-1" @endif>{{ $cur['value'] }}</a>
<a class="f-btn f-ybtn @if ($cur['disabled']) f-disabled @endif" href="{{ $cur['link'] }}" title="{{ $cur['title'] or '' }}" @if ($cur['disabled']) tabindex="-1" @endif>{{ $cur['value'] }}</a>
@elseif ('str' === $cur['type'])
<p class="f-str" id="id-{{ $key }}"> @if ($cur['html']){!! $cur['value'] !!} @else{{ $cur['value'] }} @endif</p>
@elseif ('link' === $cur['type'])
@ -121,9 +121,9 @@
<p class="f-btns">
@foreach ($form['btns'] as $key => $cur)
@if ('submit' === $cur['type'])
<button class="f-btn @if($cur['class']) {{ $cur['class'] }} @endif" name="{{ $key }}" value="{{ $cur['value'] }}" @if (isset($cur['accesskey'])) accesskey="{{ $cur['accesskey'] }}" @endif title="{{ $cur['value'] }}"><span>{{ $cur['value'] }}</span></button>
<button class="f-btn f-fbtn @if($cur['class']) {{ $cur['class'] }} @endif" name="{{ $key }}" value="{{ $cur['value'] }}" @if (isset($cur['accesskey'])) accesskey="{{ $cur['accesskey'] }}" @endif title="{{ $cur['value'] }}"><span>{{ $cur['value'] }}</span></button>
@elseif ('btn'=== $cur['type'])
<a class="f-btn @if($cur['class']) {{ $cur['class'] }} @endif" data-name="{{ $key }}" href="{{ $cur['link'] }}" @if (isset($cur['accesskey'])) accesskey="{{ $cur['accesskey'] }}" @endif title="{{ $cur['value'] }}"><span>{{ $cur['value'] }}</span></a>
<a class="f-btn f-fbtn @if($cur['class']) {{ $cur['class'] }} @endif" data-name="{{ $key }}" href="{{ $cur['link'] }}" @if (isset($cur['accesskey'])) accesskey="{{ $cur['accesskey'] }}" @endif title="{{ $cur['value'] }}"><span>{{ $cur['value'] }}</span></a>
@endif
@endforeach
</p>

View file

@ -7,8 +7,10 @@
@endif
</div>
@if ($p->regLink)
<div class="f-fdiv f-lrdiv">
<p class="f-child3"><a href="{{ $p->regLink }}" tabindex="6">{!! __('Not registered') !!}</a></p>
<div id="fork-lgrglnk" class="f-fdiv f-lrdiv">
<div class="f-btns">
<a class="f-btn f-fbtn" href="{{ $p->regLink }}" tabindex="6">{!! __('Not registered') !!}</a>
</div>
</div>
@endif
</section>

View file

@ -4,7 +4,7 @@
@yield ('crumbs')
</div>
@if ($form = $p->form)
<section class="f-main f-moderate-form">
<section id="fork-modform" class="f-main">
<h2>{!! $p->formTitle !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')

View file

@ -168,7 +168,7 @@
@yield ('crumbs')
</div>
@if ($p->enableMod && $form = $p->formMod)
<section class="f-moderate">
<section id="fork-mod" class="f-moderate">
<h2>{!! __('Moderate') !!}</h2>
<div class="f-fdivm">
@include ('layouts/form')

File diff suppressed because it is too large Load diff