Skip to content

Commit 80a4435

Browse files
committed
Update theme.blade.php
1 parent 04039cb commit 80a4435

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

resources/views/studio/theme.blade.php

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,24 @@
181181
@csrf
182182
<select id="theme-select" style="display:none;" name="theme" data-base-url="{{ url('') }}/@<?= Auth::user()->littlelink_name ?>"><option value="default" selected></option></select>
183183
<div class="row">
184+
<div class="col-lg-3">
185+
<div class="card shadow-lg @if($page->theme == "" or $page->theme == "default") bg-primary @else bg-soft-primary @endif">
186+
<div class="card-body pb-0">
187+
<a style="cursor:pointer;" onclick="setTheme('default')">
188+
<div class="d-flex justify-content-between">
189+
<div>
190+
<img draggable="false" class="bd-placeholder-img bd-placeholder-img-lg img-fluid" src="{{url('assets/linkstack/images/themes/default.png')}}">
191+
</div>
192+
</div>
193+
<div class="text-center">
194+
<h2 class="m-3 @if($page->theme == "" or $page->theme == "default") text-white @else text-gray @endif"">Default Theme</h2>
195+
<div>
196+
</div>
197+
</div>
198+
</a>
199+
</div>
200+
</div>
201+
</div>
184202
<?php
185203
if ($handle = opendir('themes')) {
186204
while (false !== ($entry = readdir($handle))) {
@@ -193,20 +211,20 @@
193211
$themeName = substr($matches[0][0],12);
194212
}
195213
}
196-
if($page->theme != $entry and isset($themeName)){
214+
if(isset($themeName)){
197215
?>
198216
199217
<div class="col-lg-3">
200-
<div class="card">
201-
<div class="card-body">
218+
<div class="card shadow-lg @if($page->theme == $entry) bg-primary @else bg-soft-primary @endif">
219+
<div class="card-body pb-0">
202220
<a style="cursor:pointer;" onclick="setTheme('{{$entry}}')">
203221
<div class="d-flex justify-content-between">
204222
<div>
205-
<center><img class="bd-placeholder-img bd-placeholder-img-lg img-fluid" src="{{url('themes/'.$entry.'/preview.png')}}"></center>
223+
<img draggable="false" class="bd-placeholder-img bd-placeholder-img-lg img-fluid" src="{{url('themes/'.$entry.'/preview.png')}}">
206224
</div>
207225
</div>
208226
<div class="text-center">
209-
<h2 class="counter">{{$themeName}}</h2>
227+
<h2 class="m-3 @if($page->theme == $entry) text-white @else text-gray @endif">{{$themeName}}</h2>
210228
<div>
211229
</div>
212230
</div>

0 commit comments

Comments
 (0)