Update theme

This commit is contained in:
danpros 2025-11-02 10:42:44 +07:00
commit 6c5a2f8b42
12 changed files with 67 additions and 10 deletions

View file

@ -13,7 +13,7 @@
<!-- Font CSS -->
<link id="lato" rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/lato.css">
<link id="open-sans" rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/source-sans.css">
<link id="open-sans" rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/montserrat.css">
<link id="open-sans" rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/montserrat.css">
<!-- Theme CSS -->
<link id="theme-style" rel="stylesheet" href="<?php echo theme_path();?>css/styles.css?v=1">
</head>
@ -80,18 +80,21 @@
</div><!--//section-inner-->
</aside><!--//section-->
<?php if (theme_config('recent_posts')):?>
<?php if (theme_config('recent_posts') || theme_config('popular_posts')):?>
<aside class="recent-posts aside section">
<div class="section-inner">
<!-- Tab nav -->
<ul class="nav nav-tabs" role="tablist">
<?php if (theme_config('recent_posts')) :?>
<li role="presentation" class="active"><a href="#recent-posts" aria-controls="recent-posts" role="tab" data-toggle="tab"><?php echo i18n("Recent_posts");?></a></li>
<?php if (config('views.counter') === 'true') :?>
<li role="presentation"><a href="#popular-posts" aria-controls="popular-posts" role="tab" data-toggle="tab"><?php echo i18n("Popular_posts");?></a></li>
<?php endif;?>
<?php if (theme_config('popular_posts')) :?>
<li role="presentation" class="<?php echo theme_config('recent_posts') ? '' : 'active';?>"><a href="#popular-posts" aria-controls="popular-posts" role="tab" data-toggle="tab"><?php echo i18n("Popular_posts");?></a></li>
<?php endif;?>
</ul>
<!-- Tab content -->
<div class="tab-content">
<?php if (theme_config('recent_posts')) :?>
<div role="tabpanel" class="tab-pane active" id="recent-posts">
<h2 class="hide"><?php echo i18n("Recent_Posts");?></h2>
<?php $recent = recent_posts(true);?>
@ -106,8 +109,9 @@
</div>
<?php endforeach;?>
</div>
<?php if (config('views.counter') === 'true') :?>
<div role="tabpanel" class="tab-pane" id="popular-posts">
<?php endif;?>
<?php if (theme_config('popular_posts')) :?>
<div role="tabpanel" class="tab-pane active" id="popular-posts">
<h2 class="hide"><?php echo i18n("Popular_posts");?></h2>
<?php $popular = popular_posts(true);?>
<?php foreach ($popular as $pp):?>
@ -150,7 +154,7 @@
</aside><!--//section-->
<?php endif;?>
<?php if (theme_config('category_list')):?>
<?php if (theme_config('category_list')):?>
<aside class="category-list aside section">
<div class="section-inner">
<h2 class="heading"><?php echo i18n('Category');?></h2>

View file

@ -12,6 +12,13 @@
"value": "",
"info": "Enable Recent Posts widget"
},
{
"type": "checkbox",
"name": "popular_posts",
"label": "Popular Posts",
"value": "",
"info": "Enable Popular Posts widget. The views counter need to be enabled first."
},
{
"type": "checkbox",
"name": "archive",

View file

@ -29,6 +29,10 @@
<?php if (theme_config('recent_posts')):?>
<div class="recent"><h3><?php echo i18n('Recent_posts');?></h3><?php echo recent_posts() ?></div>
<?php endif;?>
<?php if (theme_config('popular_posts')):?>
<div class="recent"><h3><?php echo i18n('popular_posts');?></h3><?php echo popular_posts() ?></div>
<?php endif;?>
<?php if (theme_config('archive')):?>
<div class="archive"><h3><?php echo i18n('Archives');?></h3><?php echo archive_list() ?></div>

View file

@ -12,6 +12,13 @@
"value": "",
"info": "Enable Recent Posts widget"
},
{
"type": "checkbox",
"name": "popular_posts",
"label": "Popular Posts",
"value": "",
"info": "Enable Popular Posts widget. The views counter need to be enabled first."
},
{
"type": "checkbox",
"name": "archive",

View file

@ -55,7 +55,7 @@
</div>
<?php endif;?>
<?php if(config('views.counter') === 'true') :?>
<?php if(theme_config('popular_posts')) :?>
<div class="popular">
<h3><?php echo i18n('Popular_posts');?></h3>
<?php echo popular_posts() ?>

View file

@ -12,6 +12,13 @@
"value": "",
"info": "Enable Recent Posts widget"
},
{
"type": "checkbox",
"name": "popular_posts",
"label": "Popular Posts",
"value": "",
"info": "Enable Popular Posts widget. The views counter need to be enabled first."
},
{
"type": "checkbox",
"name": "archive",

View file

@ -115,6 +115,13 @@
<?php echo recent_posts();?>
</div>
<?php endif;?>
<?php if (theme_config('popular_posts')):?>
<div class="prose max-w-none pb-6 pt-6 text-sm text-gray-700 dark:text-gray-300 recent-posts">
<h2 class="text-xs uppercase tracking-wide text-gray-500 dark:text-gray-400"><?php echo i18n('popular_posts');?></h2>
<?php echo popular_posts();?>
</div>
<?php endif;?>
<?php if (theme_config('tagcloud')):?>
<div class="py-4 xl:py-8">

View file

@ -26,6 +26,13 @@
"value": "",
"info": "Show Recent Posts"
},
{
"type": "checkbox",
"name": "popular_posts",
"label": "Popular Posts",
"value": "",
"info": "Enable Popular Posts widget. The views counter need to be enabled first."
},
{
"type": "checkbox",
"name": "tagcloud",

View file

@ -58,7 +58,7 @@
</aside>
<?php endif;?>
<?php if (config('views.counter') === 'true') :?>
<?php if (theme_config('popular_posts')) :?>
<aside class="widget widget_meta">
<h2 class="widget-title"><?php echo i18n("Popular_posts");?></h2>
<?php echo popular_posts() ?>

View file

@ -12,6 +12,13 @@
"value": "",
"info": "Enable Recent Posts widget"
},
{
"type": "checkbox",
"name": "popular_posts",
"label": "Popular Posts",
"value": "",
"info": "Enable Popular Posts widget. The views counter need to be enabled first."
},
{
"type": "checkbox",
"name": "archive",

View file

@ -78,7 +78,7 @@
</section>
<?php endif;?>
<?php if (config('views.counter') === 'true') :?>
<?php if (theme_config('popular_posts')) :?>
<section id="popular-posts" class="widget widget_popular_entries">
<h2 class="widget-title"><?php echo i18n('Popular_posts');?></h2>
<?php echo popular_posts();?>

View file

@ -12,6 +12,13 @@
"value": "",
"info": "Enable Recent Posts widget"
},
{
"type": "checkbox",
"name": "popular_posts",
"label": "Popular Posts",
"value": "",
"info": "Enable Popular Posts widget. The views counter need to be enabled first."
},
{
"type": "checkbox",
"name": "archive",