File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ function get_operating_system() {
268
268
@php $icons = DB:: table (' links' )-> where (' user_id' , $userinfo -> id )-> where (' button_id' , 94 )-> get (); @endphp
269
269
<div class =" row fadein social-icon-div" >
270
270
@foreach ($icons as $icon )
271
- <a class =" social-hover social-link" href =" {{ $icon -> link } }" ><i class =" social-icon fa-brands fa-{{ $icon -> title } }" ></i ></a >
271
+ <a class =" social-hover social-link" href =" {{ route ( ' clickNumber ' ) . ' / ' . $icon -> id } }" @if ( theme ( ' open_links_in_same_tab ' ) != " true " ) target = " _blank " @endif ><i class =" social-icon fa-brands fa-{{ $icon -> title } }" ></i ></a >
272
272
@endforeach
273
273
</div >
274
274
Original file line number Diff line number Diff line change @@ -187,9 +187,14 @@ function searchIcon($icon)
187
187
-> where (' button_id' , 94 )
188
188
-> value (' id' );
189
189
if (is_null ($iconId )){return false ;}else {return $iconId ;}}
190
+ function iconclicks ($icon ){
191
+ $iconClicks = searchIcon ($icon );
192
+ $iconClicks = DB:: table (' links' )-> where (' id' , $iconClicks )-> value (' click_number' );
193
+ if (is_null ($iconClicks )){return 0 ;}
194
+ else {return $iconClicks ;}}
190
195
191
196
function icon ($name , $label ){ echo '
192
- <label>' . $label . ' </label>
197
+ <label>' . $label . ' </label><span style="font-size:90%;font-style:italic;">  Clicks: ' . iconclicks ( $name ) . ' </span>
193
198
<div class="input-group">
194
199
<div class="input-group-prepend">
195
200
<div class="input-group-text"><i class="fa-brands fa-' . $name . ' "></i></div>
You can’t perform that action at this time.
0 commit comments