mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Disable customize button on inactive themes (#5492)
This commit is contained in:
parent
becb688123
commit
c02346b3d5
@ -37,7 +37,7 @@
|
|||||||
<?php if ($theme->hasCustomData()): ?>
|
<?php if ($theme->hasCustomData()): ?>
|
||||||
<a
|
<a
|
||||||
href="<?= Backend::url('cms/themeoptions/update/'.$theme->getDirName()) ?>"
|
href="<?= Backend::url('cms/themeoptions/update/'.$theme->getDirName()) ?>"
|
||||||
class="btn btn-secondary">
|
class="btn btn-secondary<?= $theme->isActiveTheme() === false ? ' disabled' : '' ?>">
|
||||||
<i class="icon-paint-brush"></i>
|
<i class="icon-paint-brush"></i>
|
||||||
<?= e(trans('cms::lang.theme.customize_button')) ?>
|
<?= e(trans('cms::lang.theme.customize_button')) ?>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user