mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-01-20 22:00:52 +01:00
Update theme.blade.php
This commit is contained in:
parent
b8259b2d88
commit
1287fae1f4
@ -30,14 +30,14 @@
|
||||
}
|
||||
if($page->theme != $entry){echo '<option value="'; print_r($entry); echo '">'; echo $themeName; echo '</option>'; }}}} ?>
|
||||
<?php
|
||||
if($page->theme != "default"){
|
||||
if($page->theme != "default" and $page->theme != ""){
|
||||
if(file_exists(base_path('themes') . '/' . $page->theme . '/readme.md')){
|
||||
$text = file_get_contents(base_path('themes') . '/' . $page->theme . '/readme.md');
|
||||
$pattern = '/Theme Name:.*/';
|
||||
preg_match($pattern, $text, $matches, PREG_OFFSET_CAPTURE);
|
||||
$themeName = substr($matches[0][0],12);}
|
||||
echo '<option value="'.$page->theme.'" selected>'.$themeName.'</option>';} ?>
|
||||
<?php echo '<option value="default"'; if($page->theme == "default"){echo 'selected';} echo '>Default</option>'; ?>
|
||||
<?php echo '<option value="default"'; if($page->theme == "default" or $page->theme == ""){echo 'selected';} echo '>Default</option>'; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col">
|
||||
|
Loading…
Reference in New Issue
Block a user