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() {
268268 @php $icons = DB:: table (' links' )-> where (' user_id' , $userinfo -> id )-> where (' button_id' , 94 )-> get (); @endphp
269269 <div class =" row fadein social-icon-div" >
270270 @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 >
272272 @endforeach
273273 </div >
274274
Original file line number Diff line number Diff line change @@ -187,9 +187,14 @@ function searchIcon($icon)
187187 -> where (' button_id' , 94 )
188188 -> value (' id' );
189189 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 ;}}
190195
191196 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>
193198 <div class="input-group">
194199 <div class="input-group-prepend">
195200 <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