diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php
index 57622f8..c0c7b11 100755
--- a/app/Http/Controllers/UserController.php
+++ b/app/Http/Controllers/UserController.php
@@ -100,7 +100,7 @@ class UserController extends Controller
$links = DB::table('links')->join('buttons', 'buttons.id', '=', 'links.button_id')->select('links.link', 'links.id', 'links.button_id', 'links.title', 'links.custom_css', 'links.custom_icon', 'buttons.name')->where('user_id', $id)->orderBy('up_link', 'asc')->orderBy('order', 'asc')->get();
- return view('littlelink', ['userinfo' => $userinfo, 'information' => $information, 'links' => $links, 'littlelink_name' => $littlelink_name]);
+ return view('linkstack.linkstack', ['userinfo' => $userinfo, 'information' => $information, 'links' => $links, 'littlelink_name' => $littlelink_name]);
}
//Redirect to user page
@@ -135,7 +135,7 @@ class UserController extends Controller
$links = DB::table('links')->join('buttons', 'buttons.id', '=', 'links.button_id')->select('links.link', 'links.id', 'links.button_id', 'links.title', 'links.custom_css', 'links.custom_icon', 'buttons.name')->where('user_id', $id)->orderBy('up_link', 'asc')->orderBy('order', 'asc')->get();
- return view('littlelink', ['userinfo' => $userinfo, 'information' => $information, 'links' => $links, 'littlelink_name' => $littlelink_name]);
+ return view('linkstack.linkstack', ['userinfo' => $userinfo, 'information' => $information, 'links' => $links, 'littlelink_name' => $littlelink_name]);
}
//Show add/update form
diff --git a/resources/views/linkstack/elements/avatar.blade.php b/resources/views/linkstack/elements/avatar.blade.php
new file mode 100644
index 0000000..aa03daa
--- /dev/null
+++ b/resources/views/linkstack/elements/avatar.blade.php
@@ -0,0 +1,8 @@
+
+ @if(file_exists(base_path(findAvatar($userinfo->id))))
+
+ @elseif(file_exists(base_path("assets/linkstack/images/").findFile('avatar')))
+
+ @else
+
+ @endif
\ No newline at end of file
diff --git a/resources/views/linkstack/elements/bio.blade.php b/resources/views/linkstack/elements/bio.blade.php
new file mode 100644
index 0000000..7448271
--- /dev/null
+++ b/resources/views/linkstack/elements/bio.blade.php
@@ -0,0 +1,3 @@
+
+
+
@if(env('ALLOW_USER_HTML') === true){!! $info->littlelink_description !!}@else{{ $info->littlelink_description }}@endif
\ No newline at end of file
diff --git a/resources/views/linkstack/elements/buttons.blade.php b/resources/views/linkstack/elements/buttons.blade.php
new file mode 100644
index 0000000..1e8e4f1
--- /dev/null
+++ b/resources/views/linkstack/elements/buttons.blade.php
@@ -0,0 +1,51 @@
+
+ @php $initial = 1; @endphp
+
+ @foreach($links as $link)
+ @php $linkName = str_replace('default ','',$link->title) @endphp
+ @switch($link->name)
+ @case('icon')
+ @break
+ @case('phone')
+
+ @break
+ @case('default email')
+ @case('default email_alt')
+
+ @break
+ @case('buy me a coffee')
+
+ @break
+ @case('space')
+ @php $title = $link->title; if (is_numeric($title)) { echo str_repeat("
", $title < 10 ? $title : 10); } else { echo "
"; } @endphp
+ @break
+ @case('heading')
+ {{ $link->title }}
+ @break
+ @case('text')
+ @if(env('ALLOW_USER_HTML') === true){!! $link->title !!}@else{{ $link->title }}@endif
+ @break
+ @case('vcard')
+
+ @break
+ @case('custom')
+ @if($link->custom_css === "" or $link->custom_css === "NULL" or (theme('allow_custom_buttons') == "false"))
+
+ @break
+ @elseif($link->custom_css != "")
+
+ @break
+ @endif
+ @case('custom_website')
+ @if($link->custom_css === "" or $link->custom_css === "NULL" or (theme('allow_custom_buttons') == "false"))
+
+ @break
+ @elseif($link->custom_css != "")
+
+ @break
+ @endif
+ @default
+ $value) { if($newLinkName == $key) { $newLinkName = $value; $isNewName = "true"; }} ?>
+
+ @endswitch
+ @endforeach
\ No newline at end of file
diff --git a/resources/views/linkstack/elements/heading.blade.php b/resources/views/linkstack/elements/heading.blade.php
new file mode 100644
index 0000000..e4b2f22
--- /dev/null
+++ b/resources/views/linkstack/elements/heading.blade.php
@@ -0,0 +1,3 @@
+
+
+ {{ $info->name }}@if(($userinfo->role == 'vip' or $userinfo->role == 'admin') and theme('disable_verification_badge') != "true" and env('HIDE_VERIFICATION_CHECKMARK') != true and UserData::getData($userinfo->id, 'checkmark') != false)@include('components.verify-svg')@endif
\ No newline at end of file
diff --git a/resources/views/linkstack/elements/icons.blade.php b/resources/views/linkstack/elements/icons.blade.php
new file mode 100644
index 0000000..2c9e6ba
--- /dev/null
+++ b/resources/views/linkstack/elements/icons.blade.php
@@ -0,0 +1,9 @@
+
+ @php $icons = DB::table('links')->where('user_id', $userinfo->id)->where('button_id', 94)->get(); @endphp
+ @if(count($icons) > 0)
+
+ @endif
\ No newline at end of file
diff --git a/resources/views/linkstack/linkstack.blade.php b/resources/views/linkstack/linkstack.blade.php
new file mode 100644
index 0000000..84c4e8c
--- /dev/null
+++ b/resources/views/linkstack/linkstack.blade.php
@@ -0,0 +1,30 @@
+
+@include('layouts.lang')
+
+ @include('linkstack.modules.meta')
+ @include('linkstack.modules.theme')
+ @stack('linkstack-head')
+ @include('linkstack.modules.assets')
+ @foreach($information as $info)
+ @stack('linkstack-head-end')
+
+
+ @stack('linkstack-body-start')
+ @include('linkstack.modules.share-button')
+ @include('components.report-icon')
+
+
+
+ @include('linkstack.elements.avatar')
+ @include('linkstack.elements.heading')
+ @include('linkstack.elements.bio')
+ @include('linkstack.elements.icons')
+ @endforeach
+ @include('linkstack.elements.buttons')
+ @include('layouts.footer')
+
+
+
+ @stack('linkstack-body-end')
+
+