mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-13 01:42:08 +02:00
Applied analytics to social icons
This commit is contained in:
parent
f189d83bf1
commit
313b2de881
@ -268,7 +268,7 @@ function get_operating_system() {
|
||||
@php $icons = DB::table('links')->where('user_id', $userinfo->id)->where('button_id', 94)->get(); @endphp
|
||||
<div class="row fadein social-icon-div">
|
||||
@foreach($icons as $icon)
|
||||
<a class="social-hover social-link" href="{{$icon->link}}"><i class="social-icon fa-brands fa-{{$icon->title}}"></i></a>
|
||||
<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>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
|
@ -187,9 +187,14 @@
|
||||
->where('button_id', 94)
|
||||
->value('id');
|
||||
if(is_null($iconId)){return false;}else{return $iconId;}}
|
||||
function iconclicks($icon){
|
||||
$iconClicks = searchIcon($icon);
|
||||
$iconClicks = DB::table('links')->where('id', $iconClicks)->value('click_number');
|
||||
if (is_null($iconClicks)){return 0;}
|
||||
else {return $iconClicks;}}
|
||||
|
||||
function icon($name, $label){ echo '
|
||||
<label>'.$label.'</label>
|
||||
<label>'.$label.'</label><span style="font-size:90%;font-style:italic;">  Clicks: '.iconclicks($name).'</span>
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text"><i class="fa-brands fa-'.$name.'"></i></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user