2
2
3
3
@section (' content' )
4
4
5
- <?php use App\Models\ Button ;
5
+ <?php use App\Models\ Button ;
6
6
7
7
// Check if the LinkCount cookie is set
8
8
if (isset ($_COOKIE [' LinkCount' ])) {
48
48
<?php if (! function_exists (' strp' )){function strp ($urlStrp ){return str_replace (array (' http://' , ' https://' ), ' ' , $urlStrp );}} ? >
49
49
50
50
<div class =" conatiner-fluid content-inner mt-n5 py-0" >
51
- <div class =" row" >
51
+ <div class =" row" >
52
52
53
53
<div class =" col-lg-12" >
54
54
<div class =" card rounded" >
55
55
<div class =" card-body" >
56
56
<div class =" row" >
57
- <div class =" col-sm-12" >
58
-
57
+ <div class =" col-sm-12" >
58
+
59
59
<div class =" row" >
60
60
<section class =' pre-left text-gray-400' >
61
61
<h3 class =" card-header mb-3" ><i class =" bi bi-link-45deg" >{{ __ (' messages.My Links' )} } </i >
62
62
<a class =" btn btn-primary float-end" href =" {{ url (' /studio/add-link' ) } }" > {{ __ (' messages.Add new Link' )} } </a >
63
63
</h3 >
64
-
64
+
65
65
<div >
66
-
66
+
67
67
{{-- <div style="text-align: right;"><a href="{{ url('/studio/links') }}/10">10</a> | <a href="{{ url('/studio/links') }}/20">20</a> | <a href="{{ url('/studio/links') }}/30">30</a> | <a href="{{ url('/studio/links') }}/all">all</a></div> --}}
68
-
68
+
69
69
<div style =" overflow-y : none ;" class =" col col-md-7 ms-3" >
70
-
70
+
71
71
<div id =" links-table-body" data-page =" {{ request (' page' , 1 )} }" data-per-page =" {{ $pagePage ? $pagePage : 0 } }" >
72
72
@if ($links -> total () == 0 )
73
73
<div class =" col-6 text-center" >
80
80
@if ($button -> name !== ' icon' )
81
81
<div class =' row h-100 pb-0 mb-2 border rounded hvr-glow w-100' data-id =" {{ $link -> id } }" >
82
82
<div class =" d-flex " >
83
-
84
-
83
+
84
+
85
85
<div class =' col-auto p-2 my-auto mr-2' title =" {{ $link -> link } }" >
86
86
<svg xmlns =" http://www.w3.org/2000/svg" class =" sortable-handle" viewBox =" 0 0 16 16" >
87
87
<path d =" M1 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4zm5 0a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4zm5 0a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V4zM1 9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V9zm5 0a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9zm5 0a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V9z" />
88
88
</svg >
89
89
</div >
90
-
90
+
91
91
<div class =' col h-100' >
92
-
92
+
93
93
<div class =' row h-100' >
94
94
<div class =' col-12 p-2' style =" max-width :300px ;overflow :hidden ;white-space :nowrap ;text-overflow :ellipsis ;" title =" {{ $link -> title } }" >
95
95
<span class =' h6' >
106
106
@else
107
107
<span class =" bg-soft-secondary" style =" border : 1px solid #d0d4d7 !important ;border-radius :5px ;width :25px !important ;height :25px !important ;" ><img style =" max-width :15px !important ;" alt =" button-icon" height =" 15" class =" m-1 " src =" {{ asset (' \/assets/linkstack/icons\/' ) . $buttonName } } .svg " ></span >
108
108
@endif
109
-
109
+
110
110
{{ strip_tags ($link -> title ,' ' )} } </span >
111
-
111
+
112
112
@if (! empty ($link -> link ) and $button -> name != " vcard" )
113
113
<br >
114
114
<a title =' {{ $link -> link } }' href =" {{ $link -> link } }" target =" _blank" class =" d-none d-md-block ml-4 text-muted small" >{{ Str:: limit ($link -> link , 75 ) } } </a >
115
115
<a title =' {{ $link -> link } }' href =" {{ $link -> link } }" target =" _blank" class =" d-md-none ml-4 text-muted small" >{{ Str:: limit ($link -> link , 25 ) } } </a >
116
116
@elseif (! empty ($link -> link ) and $button -> name == " vcard" )
117
117
<br ><a href =" {{ url (' vcard/' . $link -> id ) } }" target =" _blank" class =" ml-4 small" >{{ __ (' messages.Download' )} } </a >
118
-
118
+
119
119
@endif
120
-
120
+
121
121
</div >
122
-
122
+
123
123
<div class =' col' class =" text-right" >
124
124
{{ Str:: limit ($link -> params [' text' ] ?? null , 150 ) } }
125
-
125
+
126
126
@if ($link -> typename == ' video' )
127
127
@php
128
128
$embed = OEmbed:: get ($link -> link );
129
129
if ($embed && $embed -> hasThumbnail ()) {
130
130
echo " <img style='max-height: 150px;' src='" . $embed -> thumbnailUrl (). " ' />" ;
131
-
131
+
132
132
}
133
133
@endphp
134
-
134
+
135
135
@endif
136
136
</div >
137
-
138
-
137
+
138
+
139
139
<div class =' col-12 py-1 px-3 m-0 mt-2' >
140
-
140
+
141
141
@if (! empty ($link -> link ) )
142
142
<span ><i class =" bi bi-bar-chart-line" ></i > {{ $link -> click_number } } {{ __ (' messages.Clicks' )} } </span >
143
-
143
+
144
144
@endif
145
145
146
146
<a style =" float : right ;" href =" {{ route (' deleteLink' , $link -> id ) } }" onclick =" return confirm('{{ __ (' messages.confirm_delete' , [' title' => addslashes ($link -> title )]) } } ')" class =" btn btn-sm me-1 btn-icon btn-danger" data-bs-toggle =" tooltip" data-bs-placement =" top" aria-label =" Delete" data-bs-placement =" top" data-original-title =" {{ __ (' messages.Delete' )} }" >
169
169
<span class =" btn-inner" >
170
170
<svg class =" icon-20" width =" 20" viewBox =" 0 0 24 24" fill =" none" xmlns =" http://www.w3.org/2000/svg" stroke =" currentColor" >
171
171
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.8064 7.62361L20.184 6.54352C19.6574 5.6296 18.4905 5.31432 17.5753 5.83872V5.83872C17.1397 6.09534 16.6198 6.16815 16.1305 6.04109C15.6411 5.91402 15.2224 5.59752 14.9666 5.16137C14.8021 4.88415 14.7137 4.56839 14.7103 4.24604V4.24604C14.7251 3.72922 14.5302 3.2284 14.1698 2.85767C13.8094 2.48694 13.3143 2.27786 12.7973 2.27808H11.5433C11.0367 2.27807 10.5511 2.47991 10.1938 2.83895C9.83644 3.19798 9.63693 3.68459 9.63937 4.19112V4.19112C9.62435 5.23693 8.77224 6.07681 7.72632 6.0767C7.40397 6.07336 7.08821 5.98494 6.81099 5.82041V5.82041C5.89582 5.29601 4.72887 5.61129 4.20229 6.52522L3.5341 7.62361C3.00817 8.53639 3.31916 9.70261 4.22975 10.2323V10.2323C4.82166 10.574 5.18629 11.2056 5.18629 11.8891C5.18629 12.5725 4.82166 13.2041 4.22975 13.5458V13.5458C3.32031 14.0719 3.00898 15.2353 3.5341 16.1454V16.1454L4.16568 17.2346C4.4124 17.6798 4.82636 18.0083 5.31595 18.1474C5.80554 18.2866 6.3304 18.2249 6.77438 17.976V17.976C7.21084 17.7213 7.73094 17.6516 8.2191 17.7822C8.70725 17.9128 9.12299 18.233 9.37392 18.6717C9.53845 18.9489 9.62686 19.2646 9.63021 19.587V19.587C9.63021 20.6435 10.4867 21.5 11.5433 21.5H12.7973C13.8502 21.5001 14.7053 20.6491 14.7103 19.5962V19.5962C14.7079 19.088 14.9086 18.6 15.2679 18.2407C15.6272 17.8814 16.1152 17.6807 16.6233 17.6831C16.9449 17.6917 17.2594 17.7798 17.5387 17.9394V17.9394C18.4515 18.4653 19.6177 18.1544 20.1474 17.2438V17.2438L20.8064 16.1454C21.0615 15.7075 21.1315 15.186 21.001 14.6964C20.8704 14.2067 20.55 13.7894 20.1108 13.5367V13.5367C19.6715 13.284 19.3511 12.8666 19.2206 12.3769C19.09 11.8873 19.16 11.3658 19.4151 10.928C19.581 10.6383 19.8211 10.3982 20.1108 10.2323V10.2323C21.0159 9.70289 21.3262 8.54349 20.8064 7.63277V7.63277V7.62361Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
172
- <circle cx =" 12.1747" cy =" 11.8891" r =" 2.63616" stroke =" currentColor" stroke-width =" 1.5" stroke-linecap =" round" stroke-linejoin =" round" ></circle >
172
+ <circle cx =" 12.1747" cy =" 11.8891" r =" 2.63616" stroke =" currentColor" stroke-width =" 1.5" stroke-linecap =" round" stroke-linejoin =" round" ></circle >
173
173
</svg >
174
174
</span >
175
175
</a >
176
176
@endif
177
177
@endif
178
178
179
179
@if (file_exists (base_path (" assets/favicon/icons/" ). localIcon ($link -> id )) )<a style =" float : right ;" href =" {{ route (' clearIcon' , $link -> id ) } }" data-bs-toggle =" tooltip" data-bs-placement =" top" aria-label =" Add" data-bs-placement =" top" data-original-title =" Clear icon cache" class =" float-right hvr-grow p-1 text-primary" ><i style =" -webkit-text-stroke :1px ;padding-right :5px ;" class =" bi bi-arrow-repeat" ></i ></a >@endif
180
-
180
+
181
181
</div >
182
182
</div >
183
183
</div >
187
187
@endforeach
188
188
@endif
189
189
</div >
190
-
191
-
190
+
191
+
192
192
<script type =" text/javascript" >
193
193
const linksTableOrders = " {{ implode (' | ' , $links -> pluck (' id' )-> toArray ()) } }"
194
194
</script >
195
195
</div >
196
-
196
+
197
197
<ul class =" pagination justify-content-center" >
198
198
{!! $links ?? ' ' -> links () ! !}
199
199
</ul >
200
-
200
+
201
201
@if (count ($links ) > 3 )<a class =" btn btn-primary" href =" {{ url (' /studio/add-link' ) } }" >{{ __ (' messages.Add new Link' )} } </a >@endif
202
202
</div >
203
203
</section >
204
-
204
+
205
205
<section class =' pre-right text-gray-400 pre-side' >
206
206
<h3 class =" card-header" ><i class =" bi bi-window-fullscreen" style =" font-style :normal !important ;" > {{ __ (' messages.Preview' )} } </i ></h3 >
207
207
<div class =' card-body p-0 p-md-3' >
208
208
<center ><iframe allowtransparency =" true" id =" frPreview1" style =" border-radius :0.25rem !important ; background : #FFFFFF ; min-height :600px ; height :100% ; max-width :500px !important ; " class =' w-100' src =" {{ url (' ' ) } } /@<?= Auth:: user ()-> littlelink_name ? >" >{{ __ (' messages.No compatible browser' )} } </iframe ></center >
209
209
</div >
210
210
</section >
211
211
</div >
212
-
212
+
213
213
<br >
214
214
<section style =" margin-left :-15px ;margin-right :-15px ;" style =" width :100% !important ;" class =' pre-bottom text-gray-400 pre-side' >
215
215
<h3 class =" card-header" ><i class =" bi bi-window-fullscreen" style =" font-style :normal !important ;" >{{ __ (' messages.Preview' )} } </i ></h3 >
216
216
<div class =' card-body p-0 p-md-3' >
217
217
<center ><iframe allowtransparency =" true" id =" frPreview2" style =" border-radius :0.25rem !important ; background : #FFFFFF ; min-height :600px ; height :100% ; width :100% !important ; " class =' w-100' src =" {{ url (' ' ) } } /@<?= Auth:: user ()-> littlelink_name ? >" >{{ __ (' messages.No compatible browser' )} } </iframe ></center >
218
218
</div >
219
219
</section ><br >
220
-
220
+
221
221
<section style =" margin-left :-15px ;margin-right :-15px ;" class =' text-gray-400' >
222
222
<a name =" icons" ></a >
223
223
<h3 class =" mb-4 card-header" ><i class =" fa-solid fa-icons" ></i > {{ __ (' messages.Page Icons' )} } </i ></h3 >
224
224
<div class =" card-body p-0 p-md-3" >
225
-
225
+
226
226
<form action =" {{ route (' editIcons' ) } }" enctype =" multipart/form-data" method =" post" >
227
227
@csrf
228
228
<div class =" form-group col-lg-8" >
229
-
229
+
230
230
@php
231
231
if (! function_exists (' iconLink' )) {
232
232
function iconLink ($icon ) {
@@ -242,7 +242,7 @@ function iconLink($icon) {
242
242
}
243
243
}
244
244
}
245
-
245
+
246
246
if (! function_exists (' searchIcon' )) {
247
247
function searchIcon ($icon ) {
248
248
$iconId = DB:: table (' links' )
@@ -257,7 +257,7 @@ function searchIcon($icon) {
257
257
}
258
258
}
259
259
}
260
-
260
+
261
261
if (! function_exists (' iconclicks' )) {
262
262
function iconclicks ($icon ) {
263
263
$iconClicks = searchIcon ($icon );
@@ -269,7 +269,7 @@ function iconclicks($icon) {
269
269
}
270
270
}
271
271
}
272
-
272
+
273
273
if (! function_exists (' icon' )) {
274
274
function icon ($name , $label ) {
275
275
echo ' <div class="mb-3">
@@ -285,32 +285,32 @@ function icon($name, $label) {
285
285
}
286
286
@endphp
287
287
<style >input {border-top-right-radius : 0.25rem !important ; border-bottom-right-radius : 0.25rem !important ;} </style >
288
-
289
-
288
+
289
+
290
290
{!! icon (' mastodon' , ' Mastodon' )! !}
291
-
291
+
292
292
{!! icon (' instagram' , ' Instagram' )! !}
293
-
293
+
294
294
{!! icon (' twitter' , ' Twitter' )! !}
295
-
295
+
296
296
{!! icon (' facebook' , ' Facebook' )! !}
297
-
297
+
298
298
{!! icon (' github' , ' GitHub' )! !}
299
-
299
+
300
300
{!! icon (' twitch' , ' Twitch' )! !}
301
-
301
+
302
302
{!! icon (' linkedin' , ' LinkedIn' )! !}
303
-
303
+
304
304
{!! icon (' tiktok' , ' TikTok' )! !}
305
-
305
+
306
306
{!! icon (' discord' , ' Discord' )! !}
307
-
307
+
308
308
{!! icon (' youtube' , ' YouTube' )! !}
309
-
309
+
310
310
{!! icon (' snapchat' , ' Snapchat' )! !}
311
-
311
+
312
312
{!! icon (' reddit' , ' Reddit' )! !}
313
-
313
+
314
314
{!! icon (' pinterest' , ' Pinterest' )! !}
315
315
316
316
{!! icon (' telegram' , ' Telegram' )! !}
@@ -320,15 +320,15 @@ function icon($name, $label) {
320
320
{!! icon (' behance' , ' Behance' ) ! !}
321
321
322
322
{!! icon (' dribbble' , ' Dribble' ) ! !}
323
-
324
-
323
+
324
+
325
325
<button type =" submit" class =" mt-3 ml-3 btn btn-primary" >{{ __ (' messages.Save links' )} } </button >
326
326
</form >
327
-
328
-
327
+
328
+
329
329
</div >
330
330
</section >
331
-
331
+
332
332
</div >
333
333
</div >
334
334
</div >
0 commit comments