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
5952526
commit 00b8df3
Showing
4 changed files
with
134 additions
and
91 deletions.
There are no files selected for viewing
154 changes: 68 additions & 86 deletions
154
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,94 +1,76 @@ | ||
<div class="row row-cards justify-content-center"> | ||
@if($page->count()) | ||
@foreach($page as $data) | ||
<article class="col-md-12"> | ||
<div class="border-0 card card-body"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="row"> | ||
<div class="col-auto"> | ||
<a href="/users/{{$data->user->username}}.html" class="avatar" | ||
style="background-image: url({{super_avatar($data->user)}})"> | ||
<div class="card"> | ||
|
||
</a> | ||
</div> | ||
<div class="col"> | ||
<a href="/users/{{$data->user->username}}.html" | ||
style="margin-bottom:0;text-decoration:none;" | ||
class="card-title text-reset">{{$data->user->username}}</a> | ||
<div style="margin-top:1px">{{__("app.Published on")}}:{{$data->created_at}}</div> | ||
</div> | ||
<div class="col-auto"> | ||
@if($data->essence>0) | ||
<div class="ribbon bg-green text-h3"> | ||
{{__("app.essence")}} | ||
</div> | ||
@endif | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-12"> | ||
<div class="row"> | ||
<div class="col-md-12 markdown home-article"> | ||
<a href="/{{$data->id}}.html" class="text-reset"> | ||
<h2> | ||
@if($data->topping>0) | ||
<span class="text-red"> | ||
{{__('app.top')}} | ||
</span> | ||
@endif | ||
{{$data->title}}</h2> | ||
</a> | ||
<span class="home-summary">{!! content_brief($data->post->content,get_options("topic_brief_len",250)) !!}</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-12" style="margin-top: 5px"> | ||
<div class="d-flex align-items-center"> | ||
<div class="col-auto bottomLine"> | ||
<a href="/tags/{{$data->tag->id}}.html" style="text-decoration:none"> | ||
<div class="card-circle"> | ||
<img src="{{$data->tag->icon}}" alt=""> | ||
<span>{{$data->tag->name}}</span> | ||
</div> | ||
</a> | ||
</div> | ||
<div class="ms-auto"> | ||
<span class="text-muted" data-bs-toggle="tooltip" data-bs-placement="bottom" | ||
title="{{__("app.pageviews")}}"> | ||
<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="2"/><path | ||
d="M22 12c-2.667 4.667 -6 7 -10 7s-7.333 -2.333 -10 -7c2.667 -4.667 6 -7 10 -7s7.333 2.333 10 7"/></svg> | ||
{{$data->view}} | ||
</span> | ||
<a style="text-decoration:none;" core-click="like-topic" topic-id="{{$data->id}}" | ||
class="ms-3 text-muted cursor-pointer" data-bs-toggle="tooltip" | ||
data-bs-placement="bottom" title="{{__("topic.likes")}}"> | ||
<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"/> | ||
<path d="M19.5 13.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"/> | ||
</svg> | ||
<span core-show="topic-likes">{{$data->like}}</span> | ||
</a> | ||
</div> | ||
</div> | ||
<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'])) | ||
<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> | ||
</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> | ||
</div> | ||
</article> | ||
@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> | ||
@endif | ||
<div class="mt-2"> | ||
{!! make_page($page) !!} | ||
</div> | ||
@endif | ||
{!! make_page($page) !!} | ||
</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