Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8ea0ed
commit 59947e2
Showing
9 changed files
with
166 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131 changes: 70 additions & 61 deletions
131
app/Plugins/Topic/resources/views/Tags/data/index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,85 @@ | ||
<div class="row row-cards justify-content-center"> | ||
<div class="card"> | ||
<div class="col-12"> | ||
<ol class="breadcrumb breadcrumb-arrows" aria-label="breadcrumbs"> | ||
<li class="breadcrumb-item"><a href="/">首页</a></li> | ||
<li class="breadcrumb-item"><a href="/tags">标签列表</a></li> | ||
<li class="breadcrumb-item active" aria-current="page"><a href="">{!! $data->icon !!} {{$data->name}}</a></li> | ||
</ol> | ||
</div> | ||
<div class="col-12"> | ||
<div class="card"> | ||
|
||
<div class="card-header"> | ||
<ul class="nav nav-pills card-header-pills"> | ||
@if(!count(request()->all())) | ||
<li class="nav-item"> | ||
<a class="nav-link active fw-bold" href="/tags/{{$data->id}}.html"> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1 d-none d-sm-block" width="24" | ||
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" | ||
stroke-linecap="round" stroke-linejoin="round"> | ||
<path d="M0 0h24v24H0z" stroke="none"/> | ||
<circle cx="12" cy="12" r="9"/> | ||
<path d="M12 7v5l3 3"/> | ||
</svg> | ||
{{__('app.latest')}}</a> | ||
</li> | ||
@else | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/tags/{{$data->id}}.html"> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1 d-none d-sm-block" width="24" | ||
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" | ||
stroke-linecap="round" stroke-linejoin="round"> | ||
<path d="M0 0h24v24H0z" stroke="none"/> | ||
<circle cx="12" cy="12" r="9"/> | ||
<path d="M12 7v5l3 3"/> | ||
</svg> | ||
{{__('app.latest')}}</a> | ||
</li> | ||
@endif | ||
@foreach($topic_menu as $data) | ||
@if(\Hyperf\Utils\Str::contains(core_http_url(),$data['parameter'])) | ||
<div class="card-header"> | ||
<ul class="nav nav-pills card-header-pills"> | ||
@if(!count(request()->all())) | ||
<li class="nav-item"> | ||
<a class="nav-link active fw-bold" href="{{$data['url']}}"> | ||
{!!$data['icon']!!}{{$data['name']}}</a> | ||
<a class="nav-link active fw-bold" href="/tags/{{$data->id}}.html"> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1 d-none d-sm-block" width="24" | ||
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" | ||
stroke-linecap="round" stroke-linejoin="round"> | ||
<path d="M0 0h24v24H0z" stroke="none"/> | ||
<circle cx="12" cy="12" r="9"/> | ||
<path d="M12 7v5l3 3"/> | ||
</svg> | ||
{{__('app.latest')}}</a> | ||
</li> | ||
@else | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{{$data['url']}}"> | ||
{!!$data['icon']!!}{{$data['name']}}</a> | ||
<a class="nav-link" href="/tags/{{$data->id}}.html"> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1 d-none d-sm-block" width="24" | ||
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" | ||
stroke-linecap="round" stroke-linejoin="round"> | ||
<path d="M0 0h24v24H0z" stroke="none"/> | ||
<circle cx="12" cy="12" r="9"/> | ||
<path d="M12 7v5l3 3"/> | ||
</svg> | ||
{{__('app.latest')}}</a> | ||
</li> | ||
@endif | ||
@endforeach | ||
<li class="nav-item ms-auto"> | ||
<div class="dropdown"> | ||
<a href="#" class="btn-action dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><!-- Download SVG icon from http://tabler-icons.io/i/dots-vertical --> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="12" r="1" /><circle cx="12" cy="19" r="1" /><circle cx="12" cy="5" r="1" /></svg> | ||
</a> | ||
<div class="dropdown-menu dropdown-menu-end"> | ||
@foreach(Itf()->get('ui-home-tabs-dropdown') as $k=>$v) | ||
@if(call_user_func($v['enable'])===true) | ||
@include($v['view']) | ||
@endif | ||
@endforeach | ||
@foreach($topic_menu as $data) | ||
@if(\Hyperf\Utils\Str::contains(core_http_url(),$data['parameter'])) | ||
<li class="nav-item"> | ||
<a class="nav-link active fw-bold" href="{{$data['url']}}"> | ||
{!!$data['icon']!!}{{$data['name']}}</a> | ||
</li> | ||
@else | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{{$data['url']}}"> | ||
{!!$data['icon']!!}{{$data['name']}}</a> | ||
</li> | ||
@endif | ||
@endforeach | ||
<li class="nav-item ms-auto"> | ||
<div class="dropdown"> | ||
<a href="#" class="btn-action dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><!-- Download SVG icon from http://tabler-icons.io/i/dots-vertical --> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="12" r="1" /><circle cx="12" cy="19" r="1" /><circle cx="12" cy="5" r="1" /></svg> | ||
</a> | ||
<div class="dropdown-menu dropdown-menu-end"> | ||
@foreach(Itf()->get('ui-home-tabs-dropdown') as $k=>$v) | ||
@if(call_user_func($v['enable'])===true) | ||
@include($v['view']) | ||
@endif | ||
@endforeach | ||
</div> | ||
</div> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
@if($page->count()) | ||
@foreach($page as $data) | ||
@include('App::index.style2') | ||
@endforeach | ||
@else | ||
<div class="col-md-12"> | ||
<div class="border-0 card card-body"> | ||
<div class="text-center card-title">{{__("app.No more results")}}</div> | ||
@if($page->count()) | ||
@foreach($page as $data) | ||
@include('App::index.style2') | ||
@endforeach | ||
@else | ||
<div class="col-md-12"> | ||
<div class="border-0 card card-body"> | ||
<div class="text-center card-title">{{__("app.No more results")}}</div> | ||
</div> | ||
</div> | ||
@endif | ||
<div class="mt-2"> | ||
{!! make_page($page) !!} | ||
</div> | ||
@endif | ||
<div class="mt-2"> | ||
{!! make_page($page) !!} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.