mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 04:56:23 +05:30
Add the theme shortcut
This commit is contained in:
parent
c442f92dde
commit
857d1eaaec
2 changed files with 13 additions and 2 deletions
|
|
@ -167,6 +167,13 @@ if (isset($author[0])) {
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a href="<?php echo site_url();?>admin/themes" class="nav-link">
|
||||||
|
<p>
|
||||||
|
<?php echo i18n('blog_theme'); ?>
|
||||||
|
</p>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="<?php echo site_url();?>admin/users" class="nav-link">
|
<a href="<?php echo site_url();?>admin/users" class="nav-link">
|
||||||
<p>
|
<p>
|
||||||
|
|
|
||||||
|
|
@ -134,8 +134,12 @@ function save_config($data = array(), $new = array())
|
||||||
// Set the theme settings
|
// Set the theme settings
|
||||||
function theme_settings()
|
function theme_settings()
|
||||||
{
|
{
|
||||||
$exp = explode('/', config('views.root'));
|
$views_root = config('views.root');
|
||||||
$settings = 'config/themes/' . $exp[1] . '.ini';
|
$settings = '';
|
||||||
|
if (!empty($views_root)) {
|
||||||
|
$exp = explode('/', $views_root);
|
||||||
|
$settings = 'config/themes/' . $exp[1] . '.ini';
|
||||||
|
}
|
||||||
|
|
||||||
if (file_exists($settings)) {
|
if (file_exists($settings)) {
|
||||||
theme_config('source', $settings);
|
theme_config('source', $settings);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue