Explorar o código

Change templates

Input type=submit to button and add html structure for icons.
Visman %!s(int64=4) %!d(string=hai) anos
pai
achega
f35d1ce6b3

+ 3 - 3
app/templates/forum.forkbb.php

@@ -60,7 +60,7 @@
     @yield ('pagination')
     @yield ('pagination')
     @if ($p->model->canCreateTopic)
     @if ($p->model->canCreateTopic)
         <div class="f-actions-links">
         <div class="f-actions-links">
-          <a class="f-btn f-btn-create-topic" href="{!! $p->model->linkCreateTopic !!}">{!! __('Post topic') !!}</a>
+          <a class="f-btn f-btn-create-topic" title="{!! __('Post topic') !!}" href="{!! $p->model->linkCreateTopic !!}"><span>{!! __('Post topic') !!}</span></a>
         </div>
         </div>
     @endif
     @endif
       </div>
       </div>
@@ -167,10 +167,10 @@
         @if ($p->model->canCreateTopic || $p->model->canMarkRead)
         @if ($p->model->canCreateTopic || $p->model->canMarkRead)
         <div class="f-actions-links">
         <div class="f-actions-links">
             @if ($p->model->canMarkRead)
             @if ($p->model->canMarkRead)
-          <a class="f-btn f-btn-markread f-opacity" title="{!! __('Mark forum read') !!}" href="{!! $p->model->linkMarkRead !!}">{!! __('All is read') !!}</a>
+          <a class="f-btn f-btn-markread f-opacity" title="{!! __('Mark forum read') !!}" href="{!! $p->model->linkMarkRead !!}"><span>{!! __('All is read') !!}</span></a>
             @endif
             @endif
             @if ($p->model->canCreateTopic)
             @if ($p->model->canCreateTopic)
-          <a class="f-btn f-btn-create-topic" href="{!! $p->model->linkCreateTopic !!}">{!! __('Post topic') !!}</a>
+          <a class="f-btn f-btn-create-topic" title="{!! __('Post topic') !!}" href="{!! $p->model->linkCreateTopic !!}"><span>{!! __('Post topic') !!}</span></a>
             @endif
             @endif
         </div>
         </div>
         @endif
         @endif

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

@@ -21,7 +21,7 @@
     <div class="f-nav-links">
     <div class="f-nav-links">
       <div class="f-nlinks">
       <div class="f-nlinks">
         <div class="f-actions-links">
         <div class="f-actions-links">
-          <a class="f-btn f-btn-markread f-opacity" title="{!! __('Mark all as read') !!}" href="{!! $p->linkMarkRead !!}">{!! __('All is read') !!}</a>
+          <a class="f-btn f-btn-markread f-opacity" title="{!! __('Mark all as read') !!}" href="{!! $p->linkMarkRead !!}"><span>{!! __('All is read') !!}</span></a>
         </div>
         </div>
       </div>
       </div>
     </div>
     </div>

+ 2 - 2
app/templates/layouts/form.forkbb.php

@@ -121,9 +121,9 @@
           <p class="f-btns">
           <p class="f-btns">
     @foreach ($form['btns'] as $key => $cur)
     @foreach ($form['btns'] as $key => $cur)
         @if ('submit' === $cur['type'])
         @if ('submit' === $cur['type'])
-            <input class="f-btn @if($cur['class']) {{ $cur['class'] }} @endif" type="{{ $cur['type'] }}" name="{{ $key }}" value="{{ $cur['value'] }}" @if (isset($cur['accesskey'])) accesskey="{{ $cur['accesskey'] }}" @endif>
+            <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>
         @elseif ('btn'=== $cur['type'])
         @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>{{ $cur['value'] }}</a>
+            <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>
         @endif
         @endif
     @endforeach
     @endforeach
           </p>
           </p>

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

@@ -20,7 +20,7 @@
       <div class="f-nlinks-b">
       <div class="f-nlinks-b">
         <div class="f-actions-links">
         <div class="f-actions-links">
     @foreach ($p->actionBtns as $key => $cur)
     @foreach ($p->actionBtns as $key => $cur)
-          <a class="f-btn f-btn-{{ $key }}" href="{!! $cur[0] !!}" title="{{ $cur[1] }}">{{ $cur[1] }}</a>
+          <a class="f-btn f-btn-{{ $key }}" href="{!! $cur[0] !!}" title="{{ $cur[1] }}"><span>{{ $cur[1] }}</span></a>
     @endforeach
     @endforeach
         </div>
         </div>
       </div>
       </div>

+ 6 - 6
app/templates/topic.forkbb.php

@@ -15,10 +15,10 @@
     @if ($p->model->canReply || $p->model->closed)
     @if ($p->model->canReply || $p->model->closed)
         <div class="f-actions-links">
         <div class="f-actions-links">
         @if ($p->model->closed)
         @if ($p->model->closed)
-          <span class="f-btn f-btn-topic-closed">{!! __('Topic closed') !!}</span>
+          <a class="f-btn f-btn-topic-closed" title="{!! __('Topic closed') !!}"><span>{!! __('Topic closed') !!}</span></a>
         @endif
         @endif
         @if ($p->model->canReply)
         @if ($p->model->canReply)
-          <a class="f-btn f-btn-post-reply" href="{!! $p->model->linkReply !!}">{!! __('Post reply') !!}</a>
+          <a class="f-btn f-btn-post-reply" title="{!! __('Post reply') !!}" href="{!! $p->model->linkReply !!}"><span>{!! __('Post reply') !!}</span></a>
         @endif
         @endif
         </div>
         </div>
     @endif
     @endif
@@ -136,16 +136,16 @@
           <div class="f-post-btns">
           <div class="f-post-btns">
             <ul>
             <ul>
             @if ($post->canReport)
             @if ($post->canReport)
-              <li class="f-postreport"><a class="f-btn f-minor" href="{!! $post->linkReport !!}">{!! __('Report') !!}</a></li>
+              <li class="f-postreport"><a class="f-btn f-minor" title="{!! __('Report') !!}" href="{!! $post->linkReport !!}"><span>{!! __('Report') !!}</span></a></li>
             @endif
             @endif
             @if ($post->canDelete)
             @if ($post->canDelete)
-              <li class="f-postdelete"><a class="f-btn" href="{!! $post->linkDelete !!}">{!! __('Delete') !!}</a></li>
+              <li class="f-postdelete"><a class="f-btn" title="{!! __('Delete') !!}" href="{!! $post->linkDelete !!}"><span>{!! __('Delete') !!}</span></a></li>
             @endif
             @endif
             @if ($post->canEdit)
             @if ($post->canEdit)
-              <li class="f-postedit"><a class="f-btn" href="{!! $post->linkEdit !!}">{!! __('Edit') !!}</a></li>
+              <li class="f-postedit"><a class="f-btn" title="{!! __('Edit') !!}" href="{!! $post->linkEdit !!}"><span>{!! __('Edit') !!}</span></a></li>
             @endif
             @endif
             @if ($post->canQuote)
             @if ($post->canQuote)
-              <li class="f-postquote"><a class="f-btn" href="{!! $post->linkQuote !!}">{!! __('Quote') !!}</a></li>
+              <li class="f-postquote"><a class="f-btn" title="{!! __('Quote') !!}" href="{!! $post->linkQuote !!}"><span>{!! __('Quote') !!}</span></a></li>
             @endif
             @endif
             </ul>
             </ul>
           </div>
           </div>