1
1
<div class =" row row-cards justify-content-center" >
2
- @if ($page -> count () )
3
- @foreach ($page as $data )
4
- <article class =" col-md-12" >
5
- <div class =" border-0 card card-body" >
6
- <div class =" row" >
7
- <div class =" col-md-12" >
8
- <div class =" row" >
9
- <div class =" col-auto" >
10
- <a href =" /users/{{ $data -> user -> username } } .html" class =" avatar"
11
- style =" background-image : url ({{super_avatar($data->user )}})" >
2
+ <div class =" card" >
12
3
13
- </a >
14
- </div >
15
- <div class =" col" >
16
- <a href =" /users/{{ $data -> user -> username } } .html"
17
- style =" margin-bottom :0 ;text-decoration :none ;"
18
- class =" card-title text-reset" >{{ $data -> user -> username } } </a >
19
- <div style =" margin-top :1px " >{{ __ (" app.Published on" )} } :{{ $data -> created_at } } </div >
20
- </div >
21
- <div class =" col-auto" >
22
- @if ($data -> essence > 0 )
23
- <div class =" ribbon bg-green text-h3" >
24
- {{ __ (" app.essence" )} }
25
- </div >
26
- @endif
27
- </div >
28
- </div >
29
- </div >
30
- <div class =" col-md-12" >
31
- <div class =" row" >
32
- <div class =" col-md-12 markdown home-article" >
33
- <a href =" /{{ $data -> id } } .html" class =" text-reset" >
34
- <h2 >
35
- @if ($data -> topping > 0 )
36
- <span class =" text-red" >
37
- {{ __ (' app.top' )} }
38
- </span >
39
- @endif
40
- {{ $data -> title } } </h2 >
41
- </a >
42
- <span class =" home-summary" >{!! content_brief ($data -> post -> content ,get_options (" topic_brief_len" ,250 )) ! !} </span >
43
- </div >
44
- </div >
45
- </div >
46
- <div class =" col-md-12" style =" margin-top : 5px " >
47
- <div class =" d-flex align-items-center" >
48
- <div class =" col-auto bottomLine" >
49
- <a href =" /tags/{{ $data -> tag -> id } } .html" style =" text-decoration :none " >
50
- <div class =" card-circle" >
51
- <img src =" {{ $data -> tag -> icon } }" alt =" " >
52
- <span >{{ $data -> tag -> name } } </span >
53
- </div >
54
- </a >
55
- </div >
56
- <div class =" ms-auto" >
57
- <span class =" text-muted" data-bs-toggle =" tooltip" data-bs-placement =" bottom"
58
- title =" {{ __ (" app.pageviews" )} }" >
59
- <svg xmlns =" http://www.w3.org/2000/svg" class =" icon" width =" 24" height =" 24"
60
- viewBox =" 0 0 24 24" stroke-width =" 2" stroke =" currentColor" fill =" none"
61
- stroke-linecap =" round" stroke-linejoin =" round" ><path stroke =" none"
62
- d =" M0 0h24v24H0z"
63
- fill =" none" /><circle
64
- cx =" 12" cy =" 12" r =" 2" /><path
65
- 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 >
66
- {{ $data -> view } }
67
- </span >
68
- <a style =" text-decoration :none ;" core-click =" like-topic" topic-id =" {{ $data -> id } }"
69
- class =" ms-3 text-muted cursor-pointer" data-bs-toggle =" tooltip"
70
- data-bs-placement =" bottom" title =" {{ __ (" topic.likes" )} }" >
71
- <svg xmlns =" http://www.w3.org/2000/svg" class =" icon" width =" 24" height =" 24"
72
- viewBox =" 0 0 24 24" stroke-width =" 2" stroke =" currentColor" fill =" none"
73
- stroke-linecap =" round" stroke-linejoin =" round" >
74
- <path stroke =" none" d =" M0 0h24v24H0z" fill =" none" />
75
- <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" />
76
- </svg >
77
- <span core-show =" topic-likes" >{{ $data -> like } } </span >
78
- </a >
79
- </div >
80
- </div >
4
+ <div class =" card-header" >
5
+ <ul class =" nav nav-pills card-header-pills" >
6
+ @if (! count (request ()-> all ()) )
7
+ <li class =" nav-item" >
8
+ <a class =" nav-link active fw-bold" href =" /tags/{{ $data -> id } } .html" >
9
+ <svg xmlns =" http://www.w3.org/2000/svg" class =" icon me-1 d-none d-sm-block" width =" 24"
10
+ height =" 24" viewBox =" 0 0 24 24" stroke-width =" 2" stroke =" currentColor" fill =" none"
11
+ stroke-linecap =" round" stroke-linejoin =" round" >
12
+ <path d =" M0 0h24v24H0z" stroke =" none" />
13
+ <circle cx =" 12" cy =" 12" r =" 9" />
14
+ <path d =" M12 7v5l3 3" />
15
+ </svg >
16
+ {{ __ (' app.latest' )} } </a >
17
+ </li >
18
+ @else
19
+ <li class =" nav-item" >
20
+ <a class =" nav-link" href =" /tags/{{ $data -> id } } .html" >
21
+ <svg xmlns =" http://www.w3.org/2000/svg" class =" icon me-1 d-none d-sm-block" width =" 24"
22
+ height =" 24" viewBox =" 0 0 24 24" stroke-width =" 2" stroke =" currentColor" fill =" none"
23
+ stroke-linecap =" round" stroke-linejoin =" round" >
24
+ <path d =" M0 0h24v24H0z" stroke =" none" />
25
+ <circle cx =" 12" cy =" 12" r =" 9" />
26
+ <path d =" M12 7v5l3 3" />
27
+ </svg >
28
+ {{ __ (' app.latest' )} } </a >
29
+ </li >
30
+ @endif
31
+ @foreach ($topic_menu as $data )
32
+ @if (\Hyperf \Utils \Str:: contains (core_http_url (),$data [' parameter' ]) )
33
+ <li class =" nav-item" >
34
+ <a class =" nav-link active fw-bold" href =" {{ $data [' url' ]} }" >
35
+ {!! $data [' icon' ]! !}{{ $data [' name' ]} } </a >
36
+ </li >
37
+ @else
38
+ <li class =" nav-item" >
39
+ <a class =" nav-link" href =" {{ $data [' url' ]} }" >
40
+ {!! $data [' icon' ]! !}{{ $data [' name' ]} } </a >
41
+ </li >
42
+ @endif
43
+ @endforeach
44
+ <li class =" nav-item ms-auto" >
45
+ <div class =" dropdown" >
46
+ <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 -->
47
+ <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 >
48
+ </a >
49
+ <div class =" dropdown-menu dropdown-menu-end" >
50
+ @foreach (Itf ()-> get (' ui-home-tabs-dropdown' ) as $k => $v )
51
+ @if (call_user_func ($v [' enable' ])=== true )
52
+ @include ($v [' view' ] )
53
+ @endif
54
+ @endforeach
81
55
</div >
82
56
</div >
57
+ </li >
58
+ </ul >
59
+ </div >
60
+
61
+ @if ($page -> count () )
62
+ @foreach ($page as $data )
63
+ @include (' App::index.style2' )
64
+ @endforeach
65
+ @else
66
+ <div class =" col-md-12" >
67
+ <div class =" border-0 card card-body" >
68
+ <div class =" text-center card-title" >{{ __ (" app.No more results" )} } </div >
83
69
</div >
84
- </article >
85
- @endforeach
86
- @else
87
- <div class =" col-md-12" >
88
- <div class =" border-0 card card-body" >
89
- <div class =" text-center card-title" >{{ __ (" app.No more results" )} } </div >
90
70
</div >
71
+ @endif
72
+ <div class =" mt-2" >
73
+ {!! make_page ($page ) ! !}
91
74
</div >
92
- @endif
93
- {!! make_page ($page ) ! !}
75
+ </div >
94
76
</div >
0 commit comments