This commit is contained in:
AlxMedia 2022-09-27 13:38:38 +02:00
parent 261274051e
commit 72876fb49f
6 changed files with 11 additions and 8 deletions

View file

@ -6,7 +6,7 @@
<?php if ( have_posts() ) : ?>
<?php if ( get_theme_mod('blog-layout','blog-standard') == 'blog-grid' ) : ?>
<?php if ( get_theme_mod('blog-layout','blog-grid') == 'blog-grid' ) : ?>
<div class="article-grid">
<?php while ( have_posts() ): the_post(); ?>
@ -14,7 +14,7 @@
<?php endwhile; ?>
</div>
<?php elseif ( get_theme_mod('blog-layout','blog-standard') == 'blog-list' ) : ?>
<?php elseif ( get_theme_mod('blog-layout','blog-grid') == 'blog-list' ) : ?>
<div class="article-list">
<?php while ( have_posts() ): the_post(); ?>

View file

@ -132,7 +132,7 @@ Kirki::add_field( 'airl_theme', array(
'settings' => 'blog-layout',
'label' => esc_html__( 'Blog Layout', 'airl' ),
'section' => 'blog',
'default' => 'blog-standard',
'default' => 'blog-grid',
'choices' => array(
'blog-standard' => esc_html__( 'Standard', 'airl' ),
'blog-grid' => esc_html__( 'Grid', 'airl' ),

View file

@ -10,7 +10,7 @@
<?php if ( have_posts() ) : ?>
<?php if ( get_theme_mod('blog-layout','blog-standard') == 'blog-grid' ) : ?>
<?php if ( get_theme_mod('blog-layout','blog-grid') == 'blog-grid' ) : ?>
<div class="article-grid">
<?php while ( have_posts() ): the_post(); ?>
@ -18,7 +18,7 @@
<?php endwhile; ?>
</div>
<?php elseif ( get_theme_mod('blog-layout','blog-standard') == 'blog-list' ) : ?>
<?php elseif ( get_theme_mod('blog-layout','blog-grid') == 'blog-list' ) : ?>
<div class="article-list">
<?php while ( have_posts() ): the_post(); ?>

View file

@ -76,6 +76,9 @@ Header images
== Changelog ==
= 1.1.1 - 2022-09-27 =
* Set grid as default layout
= 1.1.0 - 2022-09-22 =
* Changed theme from premium to free

View file

@ -6,7 +6,7 @@
<?php if ( have_posts() ) : ?>
<?php if ( get_theme_mod('blog-layout','blog-standard') == 'blog-grid' ) : ?>
<?php if ( get_theme_mod('blog-layout','blog-grid') == 'blog-grid' ) : ?>
<div class="article-grid">
<?php while ( have_posts() ): the_post(); ?>
@ -14,7 +14,7 @@
<?php endwhile; ?>
</div>
<?php elseif ( get_theme_mod('blog-layout','blog-standard') == 'blog-list' ) : ?>
<?php elseif ( get_theme_mod('blog-layout','blog-grid') == 'blog-list' ) : ?>
<div class="article-list">
<?php while ( have_posts() ): the_post(); ?>

View file

@ -1,7 +1,7 @@
/*
Theme Name: Airl
Theme URI: http://alx.media/themes/airl/
Version: 1.1.0
Version: 1.1.1
Requires at least: 5.0
Requires PHP: 5.6
Tested up to: 6.0