(Update) Adopt PHP Short Array Syntax In View Blades

This commit is contained in:
HDVinnie
2018-06-19 13:04:28 -04:00
parent eadcd8d823
commit 5c40c8a59a
48 changed files with 96 additions and 96 deletions
@@ -12,7 +12,7 @@
</a>
</li>
<li class="active">
<a href="{{ route('staff_category_edit_form', array('slug' => $category->slug, 'id' => $category->id)) }}"
<a href="{{ route('staff_category_edit_form', ['slug' => $category->slug, 'id' => $category->id]) }}"
itemprop="url" class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">Edit Torrent Category</span>
</a>
@@ -22,7 +22,7 @@
@section('content')
<div class="container box">
<h2>Edit A Category</h2>
{{ Form::open(array('route' => array('staff_category_edit', 'slug' => $category->slug, 'id' => $category->id))) }}
{{ Form::open(['route' => ['staff_category_edit', 'slug' => $category->slug, 'id' => $category->id]]) }}
<div class="form-group">
<label for="name">Name</label>
<input type="text" class="form-control" name="name" value="{{ $category->name }}">
@@ -33,14 +33,14 @@
<tr>
<td>{{ $c->position }}</td>
<td>
<a href="{{ route('staff_category_edit_form', array('slug' => $c->slug, 'id' => $c->id)) }}">{{ $c->name }}</a>
<a href="{{ route('staff_category_edit_form', ['slug' => $c->slug, 'id' => $c->id]) }}">{{ $c->name }}</a>
</td>
<td><i class="{{ $c->icon }}" aria-hidden="true"></i></td>
<td>@if($c->meta == 1) YES @else NO @endif</td>
<td>
<a href="{{ route('staff_category_edit_form', array('slug' => $c->slug, 'id' => $c->id)) }}"
<a href="{{ route('staff_category_edit_form', ['slug' => $c->slug, 'id' => $c->id]) }}"
class="btn btn-warning">Edit</a>
<a href="{{ route('staff_category_delete', array('slug' => $c->slug, 'id' => $c->id)) }}"
<a href="{{ route('staff_category_delete', ['slug' => $c->slug, 'id' => $c->id]) }}"
class="btn btn-danger">Delete</a>
</td>
</tr>
+2 -2
View File
@@ -38,7 +38,7 @@
@foreach($categories as $c)
<tr class="success">
<td>
<a href="{{ route('staff_forum_edit', array('slug' => $c->slug, 'id' => $c->id)) }}">{{ $c->name }}</a>
<a href="{{ route('staff_forum_edit', ['slug' => $c->slug, 'id' => $c->id]) }}">{{ $c->name }}</a>
</td>
<td>Category</td>
<td>{{ $c->position }}</td>
@@ -48,7 +48,7 @@
@foreach($c->getForumsInCategory() as $f)
<tr>
<td>
<a href="{{ route('staff_forum_edit', array('slug' => $f->slug, 'id' => $f->id)) }}">---- {{ $f->name }}</a>
<a href="{{ route('staff_forum_edit', ['slug' => $f->slug, 'id' => $f->id]) }}">---- {{ $f->name }}</a>
</td>
<td>Forum</td>
<td>{{ $f->position }}</td>
@@ -37,8 +37,8 @@
<tr>
<td>{{ $t->id }}</a>
</td>
<td><a href="{{ route('edit', array('slug' => $t->slug, 'id' => $t->id)) }}">{{ $t->name }}</a></td>
<td><a href="{{ route('edit', array('slug' => $t->slug, 'id' => $t->id)) }}"
<td><a href="{{ route('edit', ['slug' => $t->slug, 'id' => $t->id]) }}">{{ $t->name }}</a></td>
<td><a href="{{ route('edit', ['slug' => $t->slug, 'id' => $t->id]) }}"
class="btn btn-warning">Edit</a>
<button data-target="#staffdelete-{{ $t->id }}" data-toggle="modal" class="btn btn-danger">
Delete
+2 -2
View File
@@ -12,7 +12,7 @@
</a>
</li>
<li class="active">
<a href="{{ route('staff_type_edit_form', array('slug' => $type->slug, 'id' => $type->id)) }}" itemprop="url"
<a href="{{ route('staff_type_edit_form', ['slug' => $type->slug, 'id' => $type->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">Edit Torrent Type</span>
</a>
@@ -22,7 +22,7 @@
@section('content')
<div class="container box">
<h2>Edit A Torrent Type</h2>
{{ Form::open(array('route' => array('staff_type_edit', 'slug' => $type->slug, 'id' => $type->id))) }}
{{ Form::open(['route' => ['staff_type_edit', 'slug' => $type->slug, 'id' => $type->id]]) }}
<div class="form-group">
<label for="name">Name</label>
<input type="text" class="form-control" name="name" value="{{ $type->name }}">
+3 -3
View File
@@ -31,12 +31,12 @@
<tr>
<td>{{ $t->position }}</td>
<td>
<a href="{{ route('staff_type_edit_form', array('slug' => $t->slug, 'id' => $t->id)) }}">{{ $t->name }}</a>
<a href="{{ route('staff_type_edit_form', ['slug' => $t->slug, 'id' => $t->id]) }}">{{ $t->name }}</a>
</td>
<td>
<a href="{{ route('staff_type_edit_form', array('slug' => $t->slug, 'id' => $t->id)) }}"
<a href="{{ route('staff_type_edit_form', ['slug' => $t->slug, 'id' => $t->id]) }}"
class="btn btn-warning">Edit</a>
<a href="{{ route('staff_type_delete', array('slug' => $t->slug, 'id' => $t->id)) }}"
<a href="{{ route('staff_type_delete', ['slug' => $t->slug, 'id' => $t->id]) }}"
class="btn btn-danger">Delete</a>
</td>
</tr>
@@ -61,7 +61,7 @@
<td>
<a class="view-torrent" data-id="{{ $warning->torrenttitle->id }}"
data-slug="{{ $warning->torrenttitle->name }}"
href="{{ route('torrent', array('slug' =>$warning->torrenttitle->slug, 'id' => $warning->torrenttitle->id)) }}">{{ $warning->torrenttitle->name }}</a>
href="{{ route('torrent', ['slug' =>$warning->torrenttitle->slug, 'id' => $warning->torrenttitle->id]) }}">{{ $warning->torrenttitle->name }}</a>
</td>
<td>
{{ $warning->reason }}
+1 -1
View File
@@ -72,7 +72,7 @@
href="{{ route('profile', ['username' => $comment->user->username, 'id' => $comment->user->id]) }}">({{ $comment->user->username }}
)</a>@endif</strong>
@else
<a href="{{ route('profile', array('username' => $comment->user->username, 'id' => $comment->user->id)) }}"
<a href="{{ route('profile', ['username' => $comment->user->username, 'id' => $comment->user->id]) }}"
class="pull-left">
@if($comment->user->image != null)
<img src="{{ url('files/img/' . $comment->user->image) }}"
@@ -19,7 +19,7 @@
@if ($p->topic->viewable())
<tr class="">
<td>
<a href="{{ route('forum_topic', array('slug' => $p->topic->slug, 'id' => $p->topic->id)) }}?page={{$p->getPageNumber()}}#post-{{$p->id}}">{{ preg_replace('#\[[^\]]+\]#', '', str_limit($p->content), 75) }}
<a href="{{ route('forum_topic', ['slug' => $p->topic->slug, 'id' => $p->topic->id]) }}?page={{$p->getPageNumber()}}#post-{{$p->id}}">{{ preg_replace('#\[[^\]]+\]#', '', str_limit($p->content), 75) }}
...</a></td>
<td>{{ $p->topic->name }}</td>
<td>{{ $p->user->username }}</td>
@@ -18,7 +18,7 @@
@if ($t->viewable())
<tr class="">
<td>
<a href="{{ route('forum_topic', array('slug' => $t->slug, 'id' => $t->id)) }}">{{ $t->name }}</a>
<a href="{{ route('forum_topic', ['slug' => $t->slug, 'id' => $t->id]) }}">{{ $t->name }}</a>
</td>
<td>{{ $t->first_post_user_username }}</td>
<td>{{ $t->created_at->diffForHumans() }}</td>
+2 -2
View File
@@ -12,12 +12,12 @@
@if($u->hidden == 1)
<span class="badge-user text-orange text-bold"
style="margin-bottom: 10px;">{{ strtoupper(trans('common.hidden')) }} @if(auth()->user()->group->is_modo)
<a href="{{ route('profile', array('username' => $u->username, 'id' => $u->id)) }}"> ({{ $u->username }} @if($u->getWarning() > 0)
<a href="{{ route('profile', ['username' => $u->username, 'id' => $u->id]) }}"> ({{ $u->username }} @if($u->getWarning() > 0)
<i class="fa fa-exclamation-circle text-orange" aria-hidden="true"
data-toggle="tooltip" title=""
data-original-title="{{ trans('common.active-warning') }}"></i>@endif)</a>@endif</span>
@else
<a href="{{ route('profile', array('username' => $u->username, 'id' => $u->id)) }}"><span
<a href="{{ route('profile', ['username' => $u->username, 'id' => $u->id]) }}"><span
class="badge-user text-bold"
style="color:{{ $u->group->color }}; background-image:{{ $u->group->effect }}; margin-bottom: 10px;"><i
class="{{ $u->group->icon }}" data-toggle="tooltip" title=""
@@ -43,7 +43,7 @@
<td>
<div class="torrent-file">
<div>
<a href="{{ route('torrent', array('slug' => $t->slug, 'id' => $t->id)) }}"
<a href="{{ route('torrent', ['slug' => $t->slug, 'id' => $t->id]) }}"
class="" title="">
{{ $t->name }}
</a>
@@ -123,7 +123,7 @@
<td>
<div class="torrent-file">
<div>
<a href="{{ route('torrent', array('slug' => $b->slug, 'id' => $b->id)) }}"
<a href="{{ route('torrent', ['slug' => $b->slug, 'id' => $b->id]) }}"
class="" title="">
{{ $b->name }}
</a>
@@ -203,7 +203,7 @@
<td>
<div class="torrent-file">
<div>
<a href="{{ route('torrent', array('slug' => $l->slug, 'id' => $l->id)) }}"
<a href="{{ route('torrent', ['slug' => $l->slug, 'id' => $l->id]) }}"
class="" title="">
{{ $l->name }}
</a>
@@ -283,7 +283,7 @@
<td>
<div class="torrent-file">
<div>
<a href="{{ route('torrent', array('slug' => $d->slug, 'id' => $d->id)) }}"
<a href="{{ route('torrent', ['slug' => $d->slug, 'id' => $d->id]) }}"
class="" title="">
{{ $d->name }}
</a>
@@ -363,7 +363,7 @@
<td>
<div class="torrent-file">
<div>
<a href="{{ route('torrent', array('slug' => $d->slug, 'id' => $d->id)) }}"
<a href="{{ route('torrent', ['slug' => $d->slug, 'id' => $d->id]) }}"
class="" title="">
{{ $d->name }}
</a>
+5 -5
View File
@@ -169,7 +169,7 @@
<td>{{ $uu['description'] }}</td>
<td>{{ $uu['cost'] }}</td>
<td>
<a href="{{ route('bonusexchange', array('id' => $uu['id'])) }}" role="button"
<a href="{{ route('bonusexchange', ['id' => $uu['id']]) }}" role="button"
class="btn btn-sm btn-info btn-exchange">{{ trans('bon.exchange') }}</a>
</td>
</tr>
@@ -180,7 +180,7 @@
<td>{{ $dO['description'] }}</td>
<td>{{ $dO['cost'] }}</td>
<td>
<a href="{{ route('bonusexchange', array('id' => $dO['id'])) }}" role="button" class="btn btn-sm btn-info btn-exchange">{{ trans('bon.exchange') }}</a>
<a href="{{ route('bonusexchange', ['id' => $dO['id']]) }}" role="button" class="btn btn-sm btn-info btn-exchange">{{ trans('bon.exchange') }}</a>
</td>
</tr>
@endforeach--}}
@@ -191,11 +191,11 @@
<td>{{ $pf['cost'] }}</td>
<td>
@if($activefl)
<a href="{{ route('bonusexchange', array('id' => $pf['id'])) }}" role="button"
<a href="{{ route('bonusexchange', ['id' => $pf['id']]) }}" role="button"
class="btn btn-sm btn-success btn-exchange disabled">{{ trans('bon.activated') }}
!</a>
@else
<a href="{{ route('bonusexchange', array('id' => $pf['id'])) }}" role="button"
<a href="{{ route('bonusexchange', ['id' => $pf['id']]) }}" role="button"
class="btn btn-sm btn-info btn-exchange">{{ trans('bon.exchange') }}</a>
@endif
</td>
@@ -207,7 +207,7 @@
<td>{{ $in['description'] }}</td>
<td>{{ $in['cost'] }}</td>
<td>
<a href="{{ route('bonusexchange', array('id' => $in['id'])) }}" role="button"
<a href="{{ route('bonusexchange', ['id' => $in['id']]) }}" role="button"
class="btn btn-sm btn-info btn-exchange">{{ trans('bon.exchange') }}</a>
</td>
</tr>
+2 -2
View File
@@ -46,14 +46,14 @@
<div class="torrent-file">
<div>
<a class="view-torrent" data-id="{{ $t->id }}" data-slug="{{ $t->slug }}"
href="{{ route('torrent', array('slug' => $t->slug, 'id' => $t->id)) }}"
href="{{ route('torrent', ['slug' => $t->slug, 'id' => $t->id]) }}"
data-toggle="tooltip" title=""
data-original-title="{{ $t->name }}">{{ $t->name }}</a>
</div>
</div>
</td>
<td>
<a href="{{ route('download', array('slug' => $t->slug, 'id' => $t->id)) }}">&nbsp;&nbsp;
<a href="{{ route('download', ['slug' => $t->slug, 'id' => $t->id]) }}">&nbsp;&nbsp;
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
title="" data-original-title="{{ strtoupper(trans('common.download')) }}"><i
class="livicon" data-name="download" data-size="18" data-color="white"
+1 -1
View File
@@ -47,7 +47,7 @@
@endif
<div class="col-md-12">
<div class="well">
<h2><a href="{{ route('catalog_torrents', array('imdb' => $r->imdb)) }}">{{ $movie->title }}
<h2><a href="{{ route('catalog_torrents', ['imdb' => $r->imdb]) }}">{{ $movie->title }}
({{ $movie->releaseYear }})</a></h2>
<div class="movie-details">
<p class="movie-plot">{{ $movie->plot }}</p>
+1 -1
View File
@@ -21,7 +21,7 @@
</div>
</div>
@foreach($catalogs as $c)
<a href="{{ route('catalog', array('slug' => $c->slug, 'id' => $c->id)) }}" class="well col-md-2"
<a href="{{ route('catalog', ['slug' => $c->slug, 'id' => $c->id]) }}" class="well col-md-2"
style="margin: 10px;">
<h2>{{ $c->name }}</h2>
<p class="text-success">{{ $c->num_torrent }} {{ trans('torrent.titles') }}</p></a>
+2 -2
View File
@@ -93,10 +93,10 @@
</td>
<td>
<a class="view-torrent" data-id="{{ $t->id }}" data-slug="{{ $t->slug }}"
href="{{ route('torrent', array('slug' => $t->slug, 'id' => $t->id)) }}"
href="{{ route('torrent', ['slug' => $t->slug, 'id' => $t->id]) }}"
data-toggle="tooltip" title=""
data-original-title="{{ $t->name }}">{{ $t->name }}</a>
<a href="{{ route('download', array('slug' => $t->slug, 'id' => $t->id)) }}">&nbsp;&nbsp;
<a href="{{ route('download', ['slug' => $t->slug, 'id' => $t->id]) }}">&nbsp;&nbsp;
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
title="" data-original-title="DOWNLOAD!"><i class="livicon"
data-name="download"
@@ -21,7 +21,7 @@
</div>
<div class="blocks">
@foreach($categories as $c)
<a href="{{ route('category', array('slug' => $c->slug, 'id' => $c->id)) }}">
<a href="{{ route('category', ['slug' => $c->slug, 'id' => $c->id]) }}">
<div class="general media_blocks">
<h2><i class="{{ $c->icon }}"></i> {{ $c->name }}</h2>
<span></span>
+4 -4
View File
@@ -15,7 +15,7 @@
</a>
</li>
<li>
<a href="{{ route('category', array('slug' => $category->slug, 'id' => $category->id)) }}" itemprop="url"
<a href="{{ route('category', ['slug' => $category->slug, 'id' => $category->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $category->name }}</span>
</a>
@@ -50,7 +50,7 @@
<tr>
@endif
<td>
<a href="{{ route('category', array('slug' => $t->category->slug, 'id' => $t->category->id)) }}">&nbsp;
<a href="{{ route('category', ['slug' => $t->category->slug, 'id' => $t->category->id]) }}">&nbsp;
<div class="text-center">
<i class="{{ $t->category->icon }} torrent-icon" data-toggle="tooltip" title=""
data-original-title="{{ $t->category->name }} {{ strtolower(trans('torrent.torrent')) }}"></i>
@@ -58,10 +58,10 @@
</a></td>
<td>
<a class="view-torrent" data-id="{{ $t->id }}" data-slug="{{ $t->slug }}"
href="{{ route('torrent', array('slug' => $t->slug, 'id' => $t->id)) }}"
href="{{ route('torrent', ['slug' => $t->slug, 'id' => $t->id]) }}"
data-toggle="tooltip" title=""
data-original-title="{{ $t->name }}">{{ $t->name }}</a>
<a href="{{ route('download', array('slug' => $t->slug, 'id' => $t->id)) }}">&nbsp;&nbsp;
<a href="{{ route('download', ['slug' => $t->slug, 'id' => $t->id]) }}">&nbsp;&nbsp;
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
title="" data-original-title="DOWNLOAD!"><i class="livicon"
data-name="download"
+3 -3
View File
@@ -26,7 +26,7 @@
<div class="f-category" id="category_{{ $c->id }}">
<div class="f-category-title col-md-12">
<h2>
<a href="{{ route('forum_category', array('slug' => $c->slug, 'id' => $c->id)) }}">{{ $c->name }}</a>
<a href="{{ route('forum_category', ['slug' => $c->slug, 'id' => $c->id]) }}">{{ $c->name }}</a>
</h2>
</div>
@@ -50,7 +50,7 @@
<!-- Forum title -->
<td>
<h4 class="f-category-forums-title">
<a href="{{ route('forum_display', array('slug' => $f->slug, 'id' => $f->id)) }}">{{ $f->name }}</a>
<a href="{{ route('forum_display', ['slug' => $f->slug, 'id' => $f->id]) }}">{{ $f->name }}</a>
</h4>
<br>
<p class="f-category-forums-description">{{ $f->description }}</p>
@@ -66,7 +66,7 @@
<td>
<ul class="f-category-forums-last-post">
<li class="f-category-forums-last-post-item"><a
href="{{ route('forum_topic', array('slug' => $f->last_topic_slug, 'id' => $f->last_topic_id)) }}">{{ $f->last_topic_name }}</a>
href="{{ route('forum_topic', ['slug' => $f->last_topic_slug, 'id' => $f->last_topic_id]) }}">{{ $f->last_topic_name }}</a>
</li>
<li class="f-category-forums-last-post-item">
By
+2 -2
View File
@@ -15,7 +15,7 @@
</a>
</li>
<li>
<a href="{{ route('forum_display', array('slug' => $forum->slug, 'id' => $forum->id)) }}" itemprop="url"
<a href="{{ route('forum_display', ['slug' => $forum->slug, 'id' => $forum->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $forum->name }}</span>
</a>
@@ -55,7 +55,7 @@
class="fa fa-thumb-tack fa-2x"></i></span></td>
@endif
<td class="f-display-topic-title">
<strong><a href="{{ route('forum_topic', array('slug' => $t->slug, 'id' => $t->id)) }}">{{ $t->name }}</a></strong>
<strong><a href="{{ route('forum_topic', ['slug' => $t->slug, 'id' => $t->id]) }}">{{ $t->name }}</a></strong>
@if($t->state == "close") <span
class='label label-sm label-default'>{{ strtoupper(trans('forum.closed')) }}</span> @endif
@if($t->approved == "1") <span
+2 -2
View File
@@ -15,13 +15,13 @@
</a>
</li>
<li>
<a href="{{ route('forum_topic', array('slug' => $topic->slug, 'id' => $topic->id)) }}" itemprop="url"
<a href="{{ route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $topic->name }}</span>
</a>
</li>
<li>
<a href="{{ route('forum_edit_topic', array('slug' => $topic->slug, 'id' => $topic->id)) }}" itemprop="url"
<a href="{{ route('forum_edit_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('forum.edit-topic') }}</span>
</a>
+1 -1
View File
@@ -62,7 +62,7 @@
href="{{ route('profile', ['username' => $categoryChild->last_post_user_username, 'id' => $categoryChild->last_post_user_id]) }}"> {{ $categoryChild->last_post_user_username }}</a></span>
<br>
<span>{{ trans('forum.topic') }} <i class="fa fa-chevron-right"></i><a
href="{{ route('forum_topic', array('slug' => $categoryChild->last_topic_slug, 'id' => $categoryChild->last_topic_id)) }}"> {{ $categoryChild->last_topic_name }}</a></span>
href="{{ route('forum_topic', ['slug' => $categoryChild->last_topic_slug, 'id' => $categoryChild->last_topic_id]) }}"> {{ $categoryChild->last_topic_name }}</a></span>
<br>
<span><i class="fa fa-clock-o"></i> {{ $categoryChild->updated_at->diffForHumans() }}</span>
</td>
+4 -4
View File
@@ -16,25 +16,25 @@
</a>
</li>
<li>
<a href="{{ route('forum_category', array('slug' => $category->slug, 'id' => $category->id)) }}" itemprop="url"
<a href="{{ route('forum_category', ['slug' => $category->slug, 'id' => $category->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $category->name }}</span>
</a>
</li>
<li>
<a href="{{ route('forum_display', array('slug' => $forum->slug, 'id' => $forum->id)) }}" itemprop="url"
<a href="{{ route('forum_display', ['slug' => $forum->slug, 'id' => $forum->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $forum->name }}</span>
</a>
</li>
<li>
<a href="{{ route('forum_topic', array('slug' => $topic->slug, 'id' => $topic->id)) }}" itemprop="url"
<a href="{{ route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $topic->name }}</span>
</a>
</li>
<li>
<a href="{{ route('forum_post_edit_form', array('slug' => $topic->slug, 'id' => $topic->id, 'postId' => $post->id)) }}"
<a href="{{ route('forum_post_edit_form', ['slug' => $topic->slug, 'id' => $topic->id, 'postId' => $post->id]) }}"
itemprop="url" class="l-breadcrumb-item-link">
<span itemprop="title"
class="l-breadcrumb-item-link-title">{{ trans('common.edit') }} {{ trans('forum.post') }}</span>
+1 -1
View File
@@ -45,7 +45,7 @@
<td class="f-display-topic-icon"><span
class="badge-extra text-bold">{{ $r->forum->name }}</span></td>
<td class="f-display-topic-title">
<strong><a href="{{ route('forum_topic', array('slug' => $r->slug, 'id' => $r->id)) }}">{{ $r->name }}</a></strong>
<strong><a href="{{ route('forum_topic', ['slug' => $r->slug, 'id' => $r->id]) }}">{{ $r->name }}</a></strong>
@if($r->state == "close") <span
class='label label-sm label-default'>{{ strtoupper(trans('forum.closed')) }}</span> @endif
@if($r->approved == "1") <span
+3 -3
View File
@@ -15,13 +15,13 @@
</a>
</li>
<li>
<a href="{{ route('forum_display', array('slug' => $forum->slug, 'id' => $forum->id)) }}" itemprop="url"
<a href="{{ route('forum_display', ['slug' => $forum->slug, 'id' => $forum->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $forum->name }}</span>
</a>
</li>
<li>
<a href="{{ route('forum_topic', array('slug' => $topic->slug, 'id' => $topic->id)) }}" itemprop="url"
<a href="{{ route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $topic->name }}</span>
</a>
@@ -56,7 +56,7 @@
<div class="head">
<p>{{ date('M d Y', $p->created_at->getTimestamp()) }}
({{ $p->created_at->diffForHumans() }}) <a class="text-bold permalink"
href="{{ route('forum_topic', array('slug' => $p->topic->slug, 'id' => $p->topic->id)) }}?page={{$p->getPageNumber()}}#post-{{$p->id}}">{{ trans('forum.permalink') }}</a>
href="{{ route('forum_topic', ['slug' => $p->topic->slug, 'id' => $p->topic->id]) }}?page={{$p->getPageNumber()}}#post-{{$p->id}}">{{ trans('forum.permalink') }}</a>
</p>
</div>
<aside class="col-md-2 post-info">
+1 -1
View File
@@ -58,7 +58,7 @@
<div class="torrent-file">
<div>
<a class="view-torrent" data-id="{{ $d->id }}" data-slug="{{ $d->slug }}"
href="{{ route('torrent', array('slug' => $d->slug, 'id' => $d->id)) }}"
href="{{ route('torrent', ['slug' => $d->slug, 'id' => $d->id]) }}"
data-toggle="tooltip" title=""
data-original-title="{{ $d->name }}">{{ $d->name }} </a><span
class="label label-success">{{ $d->type }}</span>
@@ -55,14 +55,14 @@
<span class="notification-ago">{{ $n->created_at->diffForHumans() }}</span>
</td>
<td>
<a href="{{ route('read_notification', array('id' => $n->id)) }}">
<a href="{{ route('read_notification', ['id' => $n->id]) }}">
<button type="button" class="btn btn-xxs btn-success" data-toggle="tooltip" title=""
data-original-title="{{ trans('notification.mark-read') }}"
@if($n->read_at != null) disabled @endif><i class="fa fa-eye"></i></button>
</a>
</td>
<td>
<a href="{{ route('delete_notification', array('id' => $n->id)) }}">
<a href="{{ route('delete_notification', ['id' => $n->id]) }}">
<button type="button" class="btn btn-xxs btn-danger" data-toggle="tooltip" title=""
data-original-title="{{ trans('notification.delete') }}"><i
class="fa fa-times"></i></button>
+1 -1
View File
@@ -14,7 +14,7 @@
<ul>
@if(auth()->check())
<li>
<a href="{{ route('profile', array('username' => auth()->user()->username, 'id' => auth()->user()->id)) }}">{{ trans('user.my-profile') }}</a>
<a href="{{ route('profile', ['username' => auth()->user()->username, 'id' => auth()->user()->id]) }}">{{ trans('user.my-profile') }}</a>
</li>
<li>
<a href="{{ route('logout') }}"
+3 -3
View File
@@ -1,12 +1,12 @@
<div class="col-md-2">
<div class="block">
<a href="{{ route('create', array('username' => auth()->user()->username, 'id' => auth()->user()->id)) }}"
<a href="{{ route('create', ['username' => auth()->user()->username, 'id' => auth()->user()->id]) }}"
class="btn btn-primary btn-block">{{ trans('pm.new') }}</a>
<div class="separator"></div>
<div class="list-group">
<a href="{{ route('inbox', array('username' => auth()->user()->username, 'id' => auth()->user()->id)) }}"
<a href="{{ route('inbox', ['username' => auth()->user()->username, 'id' => auth()->user()->id]) }}"
class="btn btn-primary btn-block">{{ trans('pm.inbox') }}</a>
<a href="{{ route('outbox', array('username' => auth()->user()->username, 'id' => auth()->user()->id)) }}"
<a href="{{ route('outbox', ['username' => auth()->user()->username, 'id' => auth()->user()->id]) }}"
class="btn btn-primary btn-block">{{ trans('pm.outbox') }}</a>
</div>
</div>
+2 -2
View File
@@ -96,7 +96,7 @@
</a>
</li>
<li>
<a href="{{ route('inbox', array('username' => auth()->user()->username, 'id' => auth()->user()->id)) }}">
<a href="{{ route('inbox', ['username' => auth()->user()->username, 'id' => auth()->user()->id]) }}">
<i class="livicon" data-name="mail" data-size="18" data-c="#fff" data-hc="#fff" data-loop="true"></i>
<span class="menu-text">{{ trans('pm.inbox') }}</span>
<span class="selected"></span>
@@ -127,7 +127,7 @@
</a>
</li>
{{--<li>
<a href="{{ route('rss', array('passkey' => auth()->user()->passkey)) }}">
<a href="{{ route('rss', ['passkey' => auth()->user()->passkey]) }}">
<i class="livicon" data-name="rss" data-c="orange" data-hc="orange" data-size="18" data-loop="true"></i>
<span class="menu-text">{{ trans('torrent.rss') }}</span>
<span class="selected"></span>
+4 -4
View File
@@ -2,7 +2,7 @@
<div class="container-fluid">
<ul class="list-inline">
<li><i class="fa fa-user text-black"></i>
<a href="{{ route('profile', array('username' => auth()->user()->username, 'id' => auth()->user()->id)) }}"
<a href="{{ route('profile', ['username' => auth()->user()->username, 'id' => auth()->user()->id]) }}"
class="l-header-user-data-link">
<span class="badge-user"
style="color:{{ auth()->user()->group->color }}"><strong>{{ auth()->user()->username }}</strong>@if(auth()->user()->getWarning() > 0)
@@ -25,12 +25,12 @@
<li><i class="fa fa-exchange text-orange text-bold"></i> {{ trans('common.buffer') }}
: {{ auth()->user()->untilRatio(config('other.ratio')) }}</li>
<li><i class="fa fa-upload text-green text-bold"></i>
<a href="{{ route('myactive', array('username' => auth()->user()->username, 'id' => auth()->user()->id)) }}"
<a href="{{ route('myactive', ['username' => auth()->user()->username, 'id' => auth()->user()->id]) }}"
title="{{ trans('torrent.my-active-torrents') }}"><span class="text-blue"> {{ trans('torrent.seeding') }}
:</span></a> {{ auth()->user()->getSeeding() }}
</li>
<li><i class="fa fa-download text-red text-bold"></i>
<a href="{{ route('myactive', array('username' => auth()->user()->username, 'id' => auth()->user()->id)) }}"
<a href="{{ route('myactive', ['username' => auth()->user()->username, 'id' => auth()->user()->id]) }}"
title="{{ trans('torrent.my-active-torrents') }}"><span class="text-blue"> {{ trans('torrent.leeching') }}
:</span></a> {{ auth()->user()->getLeeching() }}
</li>
@@ -43,7 +43,7 @@
:</span></a> {{ auth()->user()->getSeedbonus() }}
</li>
<li><i class="fa fa-viacoin text-bold"></i>
<a href="{{ route('profile', array('username' => auth()->user()->username, 'id' => auth()->user()->id)) }}"
<a href="{{ route('profile', ['username' => auth()->user()->username, 'id' => auth()->user()->id]) }}"
title="{{ trans('user.my-fl-tokens') }}"><span class="text-blue"> {{ trans('common.fl_tokens') }}
:</span></a> {{ auth()->user()->fl_tokens }}
</li>
+1 -1
View File
@@ -40,7 +40,7 @@
<div class="col-md-12">
<button type="submit" class="btn btn-primary">{{ trans('poll.vote') }}</button>
</form>
<a class="btn btn-success" href="{{ route('poll_results', array('slug' => $poll->slug)) }}" role="button"><i
<a class="btn btn-success" href="{{ route('poll_results', ['slug' => $poll->slug]) }}" role="button"><i
class="fa fa-bar-chart" aria-hidden="true"> {{ trans('poll.results') }}</i></a>
</div>
</div>
+2 -2
View File
@@ -62,7 +62,7 @@
</i> {{ trans('request.reset-request') }}</button>
@endif @if($user->group->is_modo || ($torrentRequest->user->id == $user->id && $torrentRequest->filled_hash == null))
<a class="btn btn-warning btn-xs"
href="{{ route('edit_request', array('id' => $torrentRequest->id)) }}" role="button"><i
href="{{ route('edit_request', ['id' => $torrentRequest->id]) }}" role="button"><i
class="fa fa-pencil-square-o"
aria-hidden="true"> {{ trans('request.edit-request') }}</i></a>
<button class="btn btn-xs btn-danger" data-toggle="modal" data-target="#delete"><i
@@ -404,7 +404,7 @@
)</a>
@endif
@else
<a href="{{ route('profile', array('username' => $comment->user->username, 'id' => $comment->user->id)) }}"
<a href="{{ route('profile', ['username' => $comment->user->username, 'id' => $comment->user->id]) }}"
class="pull-left">
@if($comment->user->image != null)
<img src="{{ url('files/img/' . $comment->user->image) }}"
@@ -45,7 +45,7 @@
</td>
<td>
<a class="view-torrent" data-id="{{ $b->id }}"
href="{{ route('request', array('id' => $b->id)) }}" data-toggle="tooltip"
href="{{ route('request', ['id' => $b->id]) }}" data-toggle="tooltip"
title="" data-original-title="{{ $b->name }}">{{ $b->name }}</a>
</td>
<td><span class="text-green">{{ $b->bounty }}</span></td>
@@ -47,7 +47,7 @@
</td>
<td>
<a class="view-torrent" data-id="{{ $c->id }}" data-slug="{{ $c->slug }}"
href="{{ route('torrent', array('slug' => $c->slug, 'id' => $c->id)) }}"
href="{{ route('torrent', ['slug' => $c->slug, 'id' => $c->id]) }}"
data-toggle="tooltip" title=""
data-original-title="{{ $c->name }}">{{ $c->name }}</a>
</td>
@@ -45,7 +45,7 @@
</td>
<td>
<a class="view-torrent" data-id="{{ $d->id }}" data-slug="{{ $d->slug }}"
href="{{ route('torrent', array('slug' => $d->slug, 'id' => $d->id)) }}"
href="{{ route('torrent', ['slug' => $d->slug, 'id' => $d->id]) }}"
data-toggle="tooltip" title=""
data-original-title="{{ $d->name }}">{{ $d->name }}</a>
</td>
@@ -46,7 +46,7 @@
</td>
<td>
<a class="view-torrent" data-id="{{ $d->id }}" data-slug="{{ $d->slug }}"
href="{{ route('torrent', array('slug' => $d->slug, 'id' => $d->id)) }}"
href="{{ route('torrent', ['slug' => $d->slug, 'id' => $d->id]) }}"
data-toggle="tooltip" title=""
data-original-title="{{ $d->name }}">{{ $d->name }}</a>
</td>
@@ -46,7 +46,7 @@
</td>
<td>
<a class="view-torrent" data-id="{{ $l->id }}" data-slug="{{ $l->slug }}"
href="{{ route('torrent', array('slug' => $l->slug, 'id' => $l->id)) }}"
href="{{ route('torrent', ['slug' => $l->slug, 'id' => $l->id]) }}"
data-toggle="tooltip" title=""
data-original-title="{{ $l->name }}">{{ $l->name }}</a>
</td>
@@ -46,7 +46,7 @@
</td>
<td>
<a class="view-torrent" data-id="{{ $s->id }}" data-slug="{{ $s->slug }}"
href="{{ route('torrent', array('slug' => $s->slug, 'id' => $s->id)) }}"
href="{{ route('torrent', ['slug' => $s->slug, 'id' => $s->id]) }}"
data-toggle="tooltip" title=""
data-original-title="{{ $s->name }}">{{ $s->name }}</a>
</td>
@@ -17,7 +17,7 @@
</a>
</li>
<li>
<a href="{{ route('download_check', array('slug' => $torrent->slug, 'id' => $torrent->id)) }}" itemprop="url"
<a href="{{ route('download_check', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('torrent.download-check') }}</span>
</a>
@@ -91,7 +91,7 @@
@if($user->getRatio() < config('other.ratio') || $user->can_download == 0)
<span class="text-red text-bold">{{ trans('torrent.no-privileges-desc') }}</span>
@else
<a href="{{ route('download', array('slug' => $torrent->slug, 'id' => $torrent->id)) }}"
<a href="{{ route('download', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
role="button" class="btn btn-labeled btn-primary">
<span class='btn-label'><i class='fa fa-download'></i></span>{{ trans('common.download') }}</a>
@endif
@@ -126,10 +126,10 @@
</td>
<td>
<a class="view-torrent" data-id="{{ $t->id }}" data-slug="{{ $t->slug }}"
href="{{ route('torrent', array('slug' => $t->slug, 'id' => $t->id)) }}"
href="{{ route('torrent', ['slug' => $t->slug, 'id' => $t->id]) }}"
data-toggle="tooltip" title=""
data-original-title="{{ $t->name }}">{{ $t->name }}</a>
<a href="{{ route('download', array('slug' => $t->slug, 'id' => $t->id)) }}">&nbsp;&nbsp;
<a href="{{ route('download', ['slug' => $t->slug, 'id' => $t->id]) }}">&nbsp;&nbsp;
<button class="btn btn-primary btn-circle" type="button"
data-toggle="tooltip" title="" data-original-title="DOWNLOAD!"><i
class="livicon" data-name="download" data-size="18"
+5 -5
View File
@@ -248,7 +248,7 @@
@endif
@if(auth()->user()->group->is_modo || auth()->user()->id == $uploader->id)
<a class="btn btn-warning btn-xs"
href="{{ route('edit_form', array('slug' => $torrent->slug, 'id' => $torrent->id)) }}"
href="{{ route('edit_form', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
role="button">{{ trans('common.edit') }}</a>
@endif
@if(auth()->user()->group->is_modo || ( auth()->user()->id == $uploader->id && Carbon\Carbon::now()->lt($torrent->created_at->addDay())))
@@ -514,7 +514,7 @@
<div class="torrent-bottom col-md-12">
<div class="text-center">
<span class="badge-user">
<a href="{{ route('download_check', array('slug' => $torrent->slug, 'id' => $torrent->id)) }}" role="button"
<a href="{{ route('download_check', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" role="button"
class="btn btn-labeled btn-success">
<span class='btn-label'><i class='fa fa-download'></i></span>{{ trans('common.download') }}</a>
@if($torrent->imdb != 0)
@@ -527,7 +527,7 @@
<button class="btn btn-labeled btn-primary" data-toggle="modal" data-target="#modal-10">
<span class='btn-label'><i class='fa fa-file'></i></span>{{ trans('common.view') }} NFO</button>
@endif
<a href="{{ route('comment_thanks', array('id' => $torrent->id)) }}" role="button"
<a href="{{ route('comment_thanks', ['id' => $torrent->id]) }}" role="button"
class="btn btn-labeled btn-primary">
<span class='btn-label'><i class='fa fa-heart'></i></span>{{ trans('torrent.quick-comment') }}</a>
<a data-toggle="modal" href="#myModal" role="button" class="btn btn-labeled btn-primary">
@@ -536,7 +536,7 @@
<bookmark :id="{{ $torrent->id }}" :state="{{ $torrent->bookmarked() ? 1 : 0}}"></bookmark>
@if($torrent->seeders <= 2)
<a href="{{ route('reseed', array('slug' => $torrent->slug, 'id' => $torrent->id)) }}" role="button"
<a href="{{ route('reseed', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" role="button"
class="btn btn-labeled btn-warning">
<span class='btn-label'><i class='fa fa-envelope'></i></span>{{ trans('torrent.request-reseed') }}</a>
@endif
@@ -578,7 +578,7 @@
<a href="{{ route('profile', ['username' => $comment->user->username, 'id' => $comment->user->id]) }}">({{ $comment->user->username }}
)</a>@endif
@else
<a href="{{ route('profile', array('username' => $comment->user->username, 'id' => $comment->user->id)) }}"
<a href="{{ route('profile', ['username' => $comment->user->username, 'id' => $comment->user->id]) }}"
class="pull-left">
@if($comment->user->image != null)
<img src="{{ url('files/img/' . $comment->user->image) }}"
+2 -2
View File
@@ -37,12 +37,12 @@
<td>
<a class="view-torrent" data-id="{{ $p->torrent_id }}"
data-slug="{{ $p->torrent->slug }}"
href="{{ route('torrent', array('slug' => $p->torrent->slug, 'id' => $p->torrent_id)) }}"
href="{{ route('torrent', ['slug' => $p->torrent->slug, 'id' => $p->torrent_id]) }}"
data-toggle="tooltip" title="{{ $p->torrent->name }}"
data-original-title="{{ trans('user.moderated-by', ['mod' => App\User::find($p->torrent->moderated_by)->username]) }} {{ $p->torrent->moderated_at->diffForHumans() }}">{{ $p->torrent->name }}</a>
</td>
<td>
<a href="{{ route('category', array('slug' => $p->torrent->category->slug, 'id' => $p->torrent->category->id)) }}">{{ $p->torrent->category->name }}</a>
<a href="{{ route('category', ['slug' => $p->torrent->category->slug, 'id' => $p->torrent->category->id]) }}">{{ $p->torrent->category->name }}</a>
</td>
<td>
<span class="badge-extra text-blue text-bold"> {{ $p->torrent->getSize() }}</span>
+1 -1
View File
@@ -49,7 +49,7 @@
<td>
<a class="view-torrent" data-id="{{ $his->torrent_id }}"
data-slug="{{ $his->torrent->slug }}"
href="{{ route('torrent', array('slug' => $his->torrent->slug, 'id' => $his->torrent->id)) }}"
href="{{ route('torrent', ['slug' => $his->torrent->slug, 'id' => $his->torrent->id]) }}"
data-toggle="tooltip" title="{{ $his->torrent->name }}"
data-original-title="{{ trans('user.moderated-by', ['mod' => App\User::find($his->torrent->moderated_by)->username]) }} {{ $his->torrent->moderated_at->diffForHumans() }}">{{ $his->torrent->name }}</a>
</td>
+1 -1
View File
@@ -516,7 +516,7 @@
<td>
<a class="view-torrent" data-id="{{ $hr->torrenttitle->id }}"
data-slug="{{ $hr->torrenttitle->slug }}"
href="{{ route('torrent', array('slug' => $hr->torrenttitle->slug, 'id' => $hr->torrenttitle->id)) }}"
href="{{ route('torrent', ['slug' => $hr->torrenttitle->slug, 'id' => $hr->torrenttitle->id]) }}"
data-toggle="tooltip" title=""
data-original-title="{{ $hr->torrenttitle->name }}">{{ $hr->torrenttitle->name }}</a>
</td>
+3 -3
View File
@@ -36,16 +36,16 @@
<tr>
<td>
<a class="view-torrent" data-id="{{ $torrent->id }}" data-slug="{{ $torrent->slug }}"
href="{{ route('torrent', array('slug' => $torrent->slug, 'id' => $torrent->id)) }}">{{ $torrent->name }}</a>
href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">{{ $torrent->name }}</a>
<div class="pull-right">
<a href="{{ route('download', array('slug' => $torrent->slug, 'id' => $torrent->id)) }}">
<a href="{{ route('download', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<button class="btn btn-primary btn-circle" type="button"><i
class="fa fa-download"></i></button>
</a>
</div>
</td>
<td>
<a href="{{ route('category', array('slug' => $torrent->category->slug, 'id' => $torrent->category->id)) }}">{{ $torrent->category->name }}</a>
<a href="{{ route('category', ['slug' => $torrent->category->slug, 'id' => $torrent->category->id]) }}">{{ $torrent->category->name }}</a>
</td>
<td>
<span class="badge-extra text-blue text-bold"> {{ $torrent->getSize() }}</span>
+1 -1
View File
@@ -55,7 +55,7 @@
<td>
<a class="view-torrent" data-id="{{ $warning->torrenttitle->id }}"
data-slug="{{ $warning->torrenttitle->name }}"
href="{{ route('torrent', array('slug' =>$warning->torrenttitle->slug, 'id' => $warning->torrenttitle->id)) }}">{{ $warning->torrenttitle->name }}</a>
href="{{ route('torrent', ['slug' =>$warning->torrenttitle->slug, 'id' => $warning->torrenttitle->id]) }}">{{ $warning->torrenttitle->name }}</a>
</td>
<td>
{{ $warning->reason }}