File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change 181
181
@csrf
182
182
<select id =" theme-select" style =" display :none ;" name =" theme" data-base-url =" {{ url (' ' ) } } /@<?= Auth:: user ()-> littlelink_name ? >" ><option value =" default" selected ></option ></select >
183
183
<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>
184
202
<?php
185
203
if ($handle = opendir (' themes' )) {
186
204
while (false !== ($entry = readdir ($handle ))) {
193
211
$themeName = substr ($matches [0 ][0 ],12 );
194
212
}
195
213
}
196
- if ($page -> theme != $entry and isset ($themeName )){
214
+ if (isset ($themeName )){
197
215
? >
198
216
199
217
<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 " >
202
220
<a style=" cursor:pointer; " onclick=" setTheme( ' {{ $entry } }' ) " >
203
221
<div class=" d-flex justify-content-between " >
204
222
<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' )} }" >
206
224
</div>
207
225
</div>
208
226
<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>
210
228
<div>
211
229
</div>
212
230
</div>
You can’t perform that action at this time.
0 commit comments