Explorar o código

Update Moderate page

Visman %!s(int64=3) %!d(string=hai) anos
pai
achega
8932cdb525
Modificáronse 2 ficheiros con 42 adicións e 18 borrados
  1. 41 17
      app/Models/Pages/Moderate.php
  2. 1 1
      app/templates/moderate.forkbb.php

+ 41 - 17
app/Models/Pages/Moderate.php

@@ -286,9 +286,13 @@ class Moderate extends Page
     {
     {
         switch ($v->step) {
         switch ($v->step) {
             case 1:
             case 1:
-                $this->formTitle   = __(['Open topic title', $this->numObj]);
+                $this->formTitle   = ['Open topic title', $this->numObj];
                 $this->buttonValue = ['Open topic btn', $this->numObj];
                 $this->buttonValue = ['Open topic btn', $this->numObj];
-                $this->crumbs      = $this->crumbs($this->formTitle, __('Moderate'), $v->topic ? $this->curTopic : $this->curForum);
+                $this->crumbs      = $this->crumbs(
+                    __($this->formTitle),
+                    __('Moderate'),
+                    $v->topic ? $this->curTopic : $this->curForum
+                );
                 $this->form        = $this->formConfirm($topics, $v);
                 $this->form        = $this->formConfirm($topics, $v);
 
 
                 return $this;
                 return $this;
@@ -309,9 +313,13 @@ class Moderate extends Page
     {
     {
         switch ($v->step) {
         switch ($v->step) {
             case 1:
             case 1:
-                $this->formTitle   = __(['Close topic title', $this->numObj]);
+                $this->formTitle   = ['Close topic title', $this->numObj];
                 $this->buttonValue = ['Close topic btn', $this->numObj];
                 $this->buttonValue = ['Close topic btn', $this->numObj];
-                $this->crumbs      = $this->crumbs($this->formTitle, __('Moderate'), $v->topic ? $this->curTopic : $this->curForum);
+                $this->crumbs      = $this->crumbs(
+                    __($this->formTitle),
+                    __('Moderate'),
+                    $v->topic ? $this->curTopic : $this->curForum
+                );
                 $this->form        = $this->formConfirm($topics, $v);
                 $this->form        = $this->formConfirm($topics, $v);
 
 
                 return $this;
                 return $this;
@@ -349,19 +357,23 @@ class Moderate extends Page
 
 
         switch ($v->step) {
         switch ($v->step) {
             case 1:
             case 1:
-                $this->formTitle   = __([
+                $this->formTitle   = [
                     true === $this->processAsPosts
                     true === $this->processAsPosts
                         ? 'Delete post title'
                         ? 'Delete post title'
                         : 'Delete topic title',
                         : 'Delete topic title',
                     $this->numObj,
                     $this->numObj,
-                ]);
+                ];
                 $this->buttonValue = [
                 $this->buttonValue = [
                     true === $this->processAsPosts
                     true === $this->processAsPosts
                         ? 'Delete post btn'
                         ? 'Delete post btn'
                         : 'Delete topic btn',
                         : 'Delete topic btn',
                     $this->numObj,
                     $this->numObj,
                 ];
                 ];
-                $this->crumbs      = $this->crumbs($this->formTitle, __('Moderate'), $v->topic ? $this->curTopic : $this->curForum);
+                $this->crumbs      = $this->crumbs(
+                    __($this->formTitle),
+                    __('Moderate'),
+                    $v->topic ? $this->curTopic : $this->curForum
+                );
                 $this->form        = $this->formConfirm($objects, $v);
                 $this->form        = $this->formConfirm($objects, $v);
 
 
                 return $this;
                 return $this;
@@ -388,9 +400,13 @@ class Moderate extends Page
     {
     {
         switch ($v->step) {
         switch ($v->step) {
             case 1:
             case 1:
-                $this->formTitle   = __(['Move topic title', $this->numObj]);
+                $this->formTitle   = ['Move topic title', $this->numObj];
                 $this->buttonValue = ['Move topic btn', $this->numObj];
                 $this->buttonValue = ['Move topic btn', $this->numObj];
-                $this->crumbs      = $this->crumbs($this->formTitle, __('Moderate'), $v->topic ? $this->curTopic : $this->curForum);
+                $this->crumbs      = $this->crumbs(
+                    __($this->formTitle),
+                    __('Moderate'),
+                    $v->topic ? $this->curTopic : $this->curForum
+                );
                 $this->chkRedirect = true;
                 $this->chkRedirect = true;
                 $this->form        = $this->formConfirm($topics, $v);
                 $this->form        = $this->formConfirm($topics, $v);
 
 
@@ -425,9 +441,9 @@ class Moderate extends Page
 
 
         switch ($v->step) {
         switch ($v->step) {
             case 1:
             case 1:
-                $this->formTitle   = __('Merge topics title');
+                $this->formTitle   = 'Merge topics title';
                 $this->buttonValue = 'Merge btn';
                 $this->buttonValue = 'Merge btn';
-                $this->crumbs      = $this->crumbs($this->formTitle, __('Moderate'), $this->curForum);
+                $this->crumbs      = $this->crumbs(__($this->formTitle), __('Moderate'), $this->curForum);
                 $this->chkRedirect = true;
                 $this->chkRedirect = true;
                 $this->form        = $this->formConfirm($topics, $v);
                 $this->form        = $this->formConfirm($topics, $v);
 
 
@@ -449,9 +465,13 @@ class Moderate extends Page
     {
     {
         switch ($v->step) {
         switch ($v->step) {
             case 1:
             case 1:
-                $this->formTitle   = __(['Unstick topic title', $this->numObj]);
+                $this->formTitle   = ['Unstick topic title', $this->numObj];
                 $this->buttonValue = ['Unstick btn', $this->numObj];
                 $this->buttonValue = ['Unstick btn', $this->numObj];
-                $this->crumbs      = $this->crumbs($this->formTitle, __('Moderate'), $v->topic ? $this->curTopic : $this->curForum);
+                $this->crumbs      = $this->crumbs(
+                    __($this->formTitle),
+                    __('Moderate'),
+                    $v->topic ? $this->curTopic : $this->curForum
+                );
                 $this->form        = $this->formConfirm($topics, $v);
                 $this->form        = $this->formConfirm($topics, $v);
 
 
                 return $this;
                 return $this;
@@ -475,9 +495,13 @@ class Moderate extends Page
     {
     {
         switch ($v->step) {
         switch ($v->step) {
             case 1:
             case 1:
-                $this->formTitle   = __(['Stick topic title', $this->numObj]);
+                $this->formTitle   = ['Stick topic title', $this->numObj];
                 $this->buttonValue = ['Stick btn', $this->numObj];
                 $this->buttonValue = ['Stick btn', $this->numObj];
-                $this->crumbs      = $this->crumbs($this->formTitle, __('Moderate'), $v->topic ? $this->curTopic : $this->curForum);
+                $this->crumbs      = $this->crumbs(
+                    __($this->formTitle),
+                    __('Moderate'),
+                    $v->topic ? $this->curTopic : $this->curForum
+                );
                 $this->form        = $this->formConfirm($topics, $v);
                 $this->form        = $this->formConfirm($topics, $v);
 
 
                 return $this;
                 return $this;
@@ -501,10 +525,10 @@ class Moderate extends Page
     {
     {
         switch ($v->step) {
         switch ($v->step) {
             case 1:
             case 1:
-                $this->formTitle   = __('Split posts title');
+                $this->formTitle   = 'Split posts title';
                 $this->buttonValue = 'Split btn';
                 $this->buttonValue = 'Split btn';
                 $this->needSubject = true;
                 $this->needSubject = true;
-                $this->crumbs      = $this->crumbs($this->formTitle, __('Moderate'), $this->curTopic);
+                $this->crumbs      = $this->crumbs(__($this->formTitle), __('Moderate'), $this->curTopic);
                 $this->form        = $this->formConfirm($posts, $v);
                 $this->form        = $this->formConfirm($posts, $v);
 
 
                 return $this;
                 return $this;

+ 1 - 1
app/templates/moderate.forkbb.php

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