Add blog layout options

This commit is contained in:
Alexander Agnarson 2021-01-28 16:10:35 +01:00
parent 843c7822de
commit b34776d661
11 changed files with 344 additions and 137 deletions

View file

@ -6,9 +6,29 @@
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<?php while ( have_posts() ): the_post(); ?> <?php if ( get_theme_mod('blog-layout','blog-standard') == 'blog-grid' ) : ?>
<?php get_template_part('content'); ?>
<?php endwhile; ?> <div class="article-grid">
<?php while ( have_posts() ): the_post(); ?>
<?php get_template_part('content-grid'); ?>
<?php endwhile; ?>
</div>
<?php elseif ( get_theme_mod('blog-layout','blog-standard') == 'blog-list' ) : ?>
<div class="article-list">
<?php while ( have_posts() ): the_post(); ?>
<?php get_template_part('content-list'); ?>
<?php endwhile; ?>
</div>
<?php else: ?>
<?php while ( have_posts() ): the_post(); ?>
<?php get_template_part('content'); ?>
<?php endwhile; ?>
<?php endif; ?>
<?php get_template_part('inc/pagination'); ?> <?php get_template_part('inc/pagination'); ?>

40
content-grid.php Normal file
View file

@ -0,0 +1,40 @@
<?php $format = get_post_format(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('entry-list group'); ?>>
<?php if ( has_post_thumbnail() ): ?>
<div class="entry-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('airl-medium'); ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-star"></i></span>'; ?>
</a>
</div>
<?php endif; ?>
<div class="entry-list-inner <?php if ( has_post_thumbnail() ) echo 'entry-thumbnail-enabled'; ?>">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2><!--/.entry-title-->
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) == 'on' ) ): ?>
<a class="post-comments" href="<?php comments_link(); ?>"><span><?php comments_number( '0', '1', '%' ); ?></span></a>
<?php endif; ?>
<ul class="entry-meta group">
<li class="entry-category"><?php the_category(' / '); ?></li>
<li class="entry-date"><i class="far fa-calendar"></i><?php the_time( get_option('date_format') ); ?></li>
</ul>
<?php if (get_theme_mod('excerpt-length','26') != '0'): ?>
<div class="clear"></div>
<div class="entry-excerpt">
<?php the_excerpt(); ?>
</div>
<?php endif; ?>
</div>
</article><!--/.post-->

40
content-list.php Normal file
View file

@ -0,0 +1,40 @@
<?php $format = get_post_format(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('entry-list group'); ?>>
<?php if ( has_post_thumbnail() ): ?>
<div class="entry-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('airl-medium'); ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-star"></i></span>'; ?>
</a>
</div>
<?php endif; ?>
<div class="entry-list-inner <?php if ( has_post_thumbnail() ) echo 'entry-thumbnail-enabled'; ?>">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2><!--/.entry-title-->
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) == 'on' ) ): ?>
<a class="post-comments" href="<?php comments_link(); ?>"><span><?php comments_number( '0', '1', '%' ); ?></span></a>
<?php endif; ?>
<ul class="entry-meta group">
<li class="entry-category"><?php the_category(' / '); ?></li>
<li class="entry-date"><i class="far fa-calendar"></i><?php the_time( get_option('date_format') ); ?></li>
</ul>
<?php if (get_theme_mod('excerpt-length','26') != '0'): ?>
<div class="clear"></div>
<div class="entry-excerpt">
<?php the_excerpt(); ?>
</div>
<?php endif; ?>
</div>
</article><!--/.post-->

View file

@ -126,6 +126,19 @@ Kirki::add_field( 'airl_theme', array(
'section' => 'blog', 'section' => 'blog',
'default' => '', 'default' => '',
) ); ) );
// Blog: Blog Layout
Kirki::add_field( 'airl_theme', array(
'type' => 'radio',
'settings' => 'blog-layout',
'label' => esc_html__( 'Blog Layout', 'airl' ),
'section' => 'blog',
'default' => 'blog-standard',
'choices' => array(
'blog-standard' => esc_html__( 'Standard', 'airl' ),
'blog-grid' => esc_html__( 'Grid', 'airl' ),
'blog-list' => esc_html__( 'List', 'airl' ),
),
) );
// Blog: Excerpt Length // Blog: Excerpt Length
Kirki::add_field( 'airl_theme', array( Kirki::add_field( 'airl_theme', array(
'type' => 'slider', 'type' => 'slider',

View file

@ -18,7 +18,7 @@ $updater = new EDD_Theme_Updater_Admin(
'remote_api_url' => 'https://alx.media', // Site where EDD is hosted 'remote_api_url' => 'https://alx.media', // Site where EDD is hosted
'item_name' => 'Airl', // Name of theme 'item_name' => 'Airl', // Name of theme
'theme_slug' => 'airl', // Theme slug 'theme_slug' => 'airl', // Theme slug
'version' => '1.0.0', // The current version of this theme 'version' => '1.0.1', // The current version of this theme
'author' => 'AlxMedia', // The author of this theme 'author' => 'AlxMedia', // The author of this theme
'download_id' => '', // Optional, used for generating a license renewal link 'download_id' => '', // Optional, used for generating a license renewal link
'renew_url' => '', // Optional, allows for a custom license renewal link 'renew_url' => '', // Optional, allows for a custom license renewal link

View file

@ -10,10 +10,30 @@
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<?php while ( have_posts() ): the_post(); ?> <?php if ( get_theme_mod('blog-layout','blog-standard') == 'blog-grid' ) : ?>
<?php get_template_part('content'); ?>
<?php endwhile; ?> <div class="article-grid">
<?php while ( have_posts() ): the_post(); ?>
<?php get_template_part('content-grid'); ?>
<?php endwhile; ?>
</div>
<?php elseif ( get_theme_mod('blog-layout','blog-standard') == 'blog-list' ) : ?>
<div class="article-list">
<?php while ( have_posts() ): the_post(); ?>
<?php get_template_part('content-list'); ?>
<?php endwhile; ?>
</div>
<?php else: ?>
<?php while ( have_posts() ): the_post(); ?>
<?php get_template_part('content'); ?>
<?php endwhile; ?>
<?php endif; ?>
<?php get_template_part('inc/front-widgets-bottom'); ?> <?php get_template_part('inc/front-widgets-bottom'); ?>
<?php get_template_part('inc/pagination'); ?> <?php get_template_part('inc/pagination'); ?>

View file

@ -2,7 +2,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Airl\n" "Project-Id-Version: Airl\n"
"POT-Creation-Date: 2021-01-27 16:13+0100\n" "POT-Creation-Date: 2021-01-28 16:09+0100\n"
"PO-Revision-Date: 2018-09-21 21:27+0100\n" "PO-Revision-Date: 2018-09-21 21:27+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -72,7 +72,7 @@ msgstr ""
msgid "Normal full width sidebar" msgid "Normal full width sidebar"
msgstr "" msgstr ""
#: functions.php:183 functions/theme-options.php:297 #: functions.php:183 functions/theme-options.php:310
msgid "Footer Ads" msgid "Footer Ads"
msgstr "" msgstr ""
@ -145,10 +145,10 @@ msgid "Primary Sidebar"
msgstr "" msgstr ""
#: functions/meta-boxes.php:31 functions/meta-boxes.php:64 #: functions/meta-boxes.php:31 functions/meta-boxes.php:64
#: functions/theme-options.php:488 functions/theme-options.php:498 #: functions/theme-options.php:501 functions/theme-options.php:511
#: functions/theme-options.php:508 functions/theme-options.php:518 #: functions/theme-options.php:521 functions/theme-options.php:531
#: functions/theme-options.php:528 functions/theme-options.php:538 #: functions/theme-options.php:541 functions/theme-options.php:551
#: functions/theme-options.php:548 #: functions/theme-options.php:561
msgid "Select a sidebar" msgid "Select a sidebar"
msgstr "" msgstr ""
@ -267,484 +267,500 @@ msgid "Your blog subheading"
msgstr "" msgstr ""
#: functions/theme-options.php:133 #: functions/theme-options.php:133
msgid "Blog Layout"
msgstr ""
#: functions/theme-options.php:137
msgid "Standard"
msgstr ""
#: functions/theme-options.php:138
msgid "Grid"
msgstr ""
#: functions/theme-options.php:139
msgid "List"
msgstr ""
#: functions/theme-options.php:146
msgid "Excerpt Length" msgid "Excerpt Length"
msgstr "" msgstr ""
#: functions/theme-options.php:134 #: functions/theme-options.php:147
msgid "Max number of words. Set it to 0 to disable." msgid "Max number of words. Set it to 0 to disable."
msgstr "" msgstr ""
#: functions/theme-options.php:147 #: functions/theme-options.php:160
msgid "Featured Posts" msgid "Featured Posts"
msgstr "" msgstr ""
#: functions/theme-options.php:148 #: functions/theme-options.php:161
msgid "Exclude featured posts from the content below" msgid "Exclude featured posts from the content below"
msgstr "" msgstr ""
#: functions/theme-options.php:156 #: functions/theme-options.php:169
msgid "Featured Category" msgid "Featured Category"
msgstr "" msgstr ""
#: functions/theme-options.php:157 functions/theme-options.php:182 #: functions/theme-options.php:170 functions/theme-options.php:195
msgid "" msgid ""
"By not selecting a category, it will show your latest post(s) from all " "By not selecting a category, it will show your latest post(s) from all "
"categories" "categories"
msgstr "" msgstr ""
#: functions/theme-options.php:161 functions/theme-options.php:186 #: functions/theme-options.php:174 functions/theme-options.php:199
msgid "Select a category" msgid "Select a category"
msgstr "" msgstr ""
#: functions/theme-options.php:167 #: functions/theme-options.php:180
msgid "Featured Post Count" msgid "Featured Post Count"
msgstr "" msgstr ""
#: functions/theme-options.php:168 #: functions/theme-options.php:181
msgid "Max number of featured posts to display. Set it to 0 to disable" msgid "Max number of featured posts to display. Set it to 0 to disable"
msgstr "" msgstr ""
#: functions/theme-options.php:181 #: functions/theme-options.php:194
msgid "Highlight Category" msgid "Highlight Category"
msgstr "" msgstr ""
#: functions/theme-options.php:192 #: functions/theme-options.php:205
msgid "Highlight Post Count" msgid "Highlight Post Count"
msgstr "" msgstr ""
#: functions/theme-options.php:193 #: functions/theme-options.php:206
msgid "Max number of highlight posts to display. Set it to 0 to disable." msgid "Max number of highlight posts to display. Set it to 0 to disable."
msgstr "" msgstr ""
#: functions/theme-options.php:206 #: functions/theme-options.php:219
msgid "Header Recent Comments" msgid "Header Recent Comments"
msgstr "" msgstr ""
#: functions/theme-options.php:207 #: functions/theme-options.php:220
msgid "Shows 3 newest comments in blog home header" msgid "Shows 3 newest comments in blog home header"
msgstr "" msgstr ""
#: functions/theme-options.php:215 #: functions/theme-options.php:228
msgid "Frontpage Widgets Top" msgid "Frontpage Widgets Top"
msgstr "" msgstr ""
#: functions/theme-options.php:216 functions/theme-options.php:225 #: functions/theme-options.php:229 functions/theme-options.php:238
msgid "2 columns of widgets" msgid "2 columns of widgets"
msgstr "" msgstr ""
#: functions/theme-options.php:224 #: functions/theme-options.php:237
msgid "Frontpage Widgets Bottom" msgid "Frontpage Widgets Bottom"
msgstr "" msgstr ""
#: functions/theme-options.php:233 #: functions/theme-options.php:246
msgid "Comment Count" msgid "Comment Count"
msgstr "" msgstr ""
#: functions/theme-options.php:234 #: functions/theme-options.php:247
msgid "Comment count with bubbles" msgid "Comment count with bubbles"
msgstr "" msgstr ""
#: functions/theme-options.php:242 #: functions/theme-options.php:255
msgid "Single - Author Bio" msgid "Single - Author Bio"
msgstr "" msgstr ""
#: functions/theme-options.php:243 #: functions/theme-options.php:256
msgid "Shows post author description, if it exists" msgid "Shows post author description, if it exists"
msgstr "" msgstr ""
#: functions/theme-options.php:251 #: functions/theme-options.php:264
msgid "Single - Related Posts" msgid "Single - Related Posts"
msgstr "" msgstr ""
#: functions/theme-options.php:252 #: functions/theme-options.php:265
msgid "Shows randomized related articles below the post" msgid "Shows randomized related articles below the post"
msgstr "" msgstr ""
#: functions/theme-options.php:256 functions/theme-options.php:270 #: functions/theme-options.php:269 functions/theme-options.php:283
msgid "Disable" msgid "Disable"
msgstr "" msgstr ""
#: functions/theme-options.php:257 #: functions/theme-options.php:270
msgid "Related by categories" msgid "Related by categories"
msgstr "" msgstr ""
#: functions/theme-options.php:258 #: functions/theme-options.php:271
msgid "Related by tags" msgid "Related by tags"
msgstr "" msgstr ""
#: functions/theme-options.php:265 #: functions/theme-options.php:278
msgid "Single - Post Navigation" msgid "Single - Post Navigation"
msgstr "" msgstr ""
#: functions/theme-options.php:266 #: functions/theme-options.php:279
msgid "Shows links to the next and previous article" msgid "Shows links to the next and previous article"
msgstr "" msgstr ""
#: functions/theme-options.php:271 #: functions/theme-options.php:284
msgid "Sidebar" msgid "Sidebar"
msgstr "" msgstr ""
#: functions/theme-options.php:272 #: functions/theme-options.php:285
msgid "Below content" msgid "Below content"
msgstr "" msgstr ""
#: functions/theme-options.php:279 #: functions/theme-options.php:292
msgid "Header Search" msgid "Header Search"
msgstr "" msgstr ""
#: functions/theme-options.php:280 #: functions/theme-options.php:293
msgid "Header search button" msgid "Header search button"
msgstr "" msgstr ""
#: functions/theme-options.php:288 #: functions/theme-options.php:301
msgid "Header Social Links" msgid "Header Social Links"
msgstr "" msgstr ""
#: functions/theme-options.php:289 functions/theme-options.php:323 #: functions/theme-options.php:302 functions/theme-options.php:336
msgid "Social link icon buttons" msgid "Social link icon buttons"
msgstr "" msgstr ""
#: functions/theme-options.php:298 #: functions/theme-options.php:311
msgid "Footer widget ads area" msgid "Footer widget ads area"
msgstr "" msgstr ""
#: functions/theme-options.php:306 #: functions/theme-options.php:319
msgid "Footer Widget Columns" msgid "Footer Widget Columns"
msgstr "" msgstr ""
#: functions/theme-options.php:307 #: functions/theme-options.php:320
msgid "Select columns to enable footer widgets. Recommended number: 3" msgid "Select columns to enable footer widgets. Recommended number: 3"
msgstr "" msgstr ""
#: functions/theme-options.php:322 #: functions/theme-options.php:335
msgid "Footer Social Links" msgid "Footer Social Links"
msgstr "" msgstr ""
#: functions/theme-options.php:331 #: functions/theme-options.php:344
msgid "Footer Logo" msgid "Footer Logo"
msgstr "" msgstr ""
#: functions/theme-options.php:332 #: functions/theme-options.php:345
msgid "Upload your custom logo image" msgid "Upload your custom logo image"
msgstr "" msgstr ""
#: functions/theme-options.php:340 #: functions/theme-options.php:353
msgid "Footer Copyright" msgid "Footer Copyright"
msgstr "" msgstr ""
#: functions/theme-options.php:341 #: functions/theme-options.php:354
msgid "Replace the footer copyright text" msgid "Replace the footer copyright text"
msgstr "" msgstr ""
#: functions/theme-options.php:349 #: functions/theme-options.php:362
msgid "Footer Credit" msgid "Footer Credit"
msgstr "" msgstr ""
#: functions/theme-options.php:350 #: functions/theme-options.php:363
msgid "Footer credit text" msgid "Footer credit text"
msgstr "" msgstr ""
#: functions/theme-options.php:358 #: functions/theme-options.php:371
msgid "Global Layout" msgid "Global Layout"
msgstr "" msgstr ""
#: functions/theme-options.php:359 #: functions/theme-options.php:372
msgid "Other layouts will override this option if they are set" msgid "Other layouts will override this option if they are set"
msgstr "" msgstr ""
#: functions/theme-options.php:371 functions/theme-options.php:483 #: functions/theme-options.php:384 functions/theme-options.php:496
msgid "Home" msgid "Home"
msgstr "" msgstr ""
#: functions/theme-options.php:372 #: functions/theme-options.php:385
msgid "(is_home) Posts homepage layout" msgid "(is_home) Posts homepage layout"
msgstr "" msgstr ""
#: functions/theme-options.php:385 functions/theme-options.php:493 #: functions/theme-options.php:398 functions/theme-options.php:506
msgid "Single" msgid "Single"
msgstr "" msgstr ""
#: functions/theme-options.php:386 #: functions/theme-options.php:399
msgid "" msgid ""
"(is_single) Single post layout - If a post has a set layout, it will " "(is_single) Single post layout - If a post has a set layout, it will "
"override this." "override this."
msgstr "" msgstr ""
#: functions/theme-options.php:399 functions/theme-options.php:503 #: functions/theme-options.php:412 functions/theme-options.php:516
msgid "Archive" msgid "Archive"
msgstr "" msgstr ""
#: functions/theme-options.php:400 #: functions/theme-options.php:413
msgid "(is_archive) Category, date, tag and author archive layout" msgid "(is_archive) Category, date, tag and author archive layout"
msgstr "" msgstr ""
#: functions/theme-options.php:413 functions/theme-options.php:513 #: functions/theme-options.php:426 functions/theme-options.php:526
msgid "Archive - Category" msgid "Archive - Category"
msgstr "" msgstr ""
#: functions/theme-options.php:414 #: functions/theme-options.php:427
msgid "(is_category) Category archive layout" msgid "(is_category) Category archive layout"
msgstr "" msgstr ""
#: functions/theme-options.php:427 functions/theme-options.php:523 #: functions/theme-options.php:440 functions/theme-options.php:536
msgid "Search" msgid "Search"
msgstr "" msgstr ""
#: functions/theme-options.php:428 #: functions/theme-options.php:441
msgid "(is_search) Search page layout" msgid "(is_search) Search page layout"
msgstr "" msgstr ""
#: functions/theme-options.php:441 functions/theme-options.php:533 #: functions/theme-options.php:454 functions/theme-options.php:546
msgid "Error 404" msgid "Error 404"
msgstr "" msgstr ""
#: functions/theme-options.php:442 #: functions/theme-options.php:455
msgid "(is_404) Error 404 page layout" msgid "(is_404) Error 404 page layout"
msgstr "" msgstr ""
#: functions/theme-options.php:455 functions/theme-options.php:543 #: functions/theme-options.php:468 functions/theme-options.php:556
msgid "Default Page" msgid "Default Page"
msgstr "" msgstr ""
#: functions/theme-options.php:456 #: functions/theme-options.php:469
msgid "" msgid ""
"(is_page) Default page layout - If a page has a set layout, it will override " "(is_page) Default page layout - If a page has a set layout, it will override "
"this." "this."
msgstr "" msgstr ""
#: functions/theme-options.php:484 #: functions/theme-options.php:497
msgid "(is_home) Primary" msgid "(is_home) Primary"
msgstr "" msgstr ""
#: functions/theme-options.php:494 #: functions/theme-options.php:507
msgid "" msgid ""
"(is_single) Primary - If a single post has a unique sidebar, it will " "(is_single) Primary - If a single post has a unique sidebar, it will "
"override this." "override this."
msgstr "" msgstr ""
#: functions/theme-options.php:504 #: functions/theme-options.php:517
msgid "(is_archive) Primary" msgid "(is_archive) Primary"
msgstr "" msgstr ""
#: functions/theme-options.php:514 #: functions/theme-options.php:527
msgid "(is_category) Primary" msgid "(is_category) Primary"
msgstr "" msgstr ""
#: functions/theme-options.php:524 #: functions/theme-options.php:537
msgid "(is_search) Primary" msgid "(is_search) Primary"
msgstr "" msgstr ""
#: functions/theme-options.php:534 #: functions/theme-options.php:547
msgid "(is_404) Primary" msgid "(is_404) Primary"
msgstr "" msgstr ""
#: functions/theme-options.php:544 #: functions/theme-options.php:557
msgid "" msgid ""
"(is_page) Primary - If a page has a unique sidebar, it will override this." "(is_page) Primary - If a page has a unique sidebar, it will override this."
msgstr "" msgstr ""
#: functions/theme-options.php:557 #: functions/theme-options.php:570
msgid "Create Social Links" msgid "Create Social Links"
msgstr "" msgstr ""
#: functions/theme-options.php:558 #: functions/theme-options.php:571
msgid "Create and organize your social links" msgid "Create and organize your social links"
msgstr "" msgstr ""
#: functions/theme-options.php:560 #: functions/theme-options.php:573
msgid "Font Awesome names:" msgid "Font Awesome names:"
msgstr "" msgstr ""
#: functions/theme-options.php:560 functions/theme-options.php:577 #: functions/theme-options.php:573 functions/theme-options.php:590
msgid "View All" msgid "View All"
msgstr "" msgstr ""
#: functions/theme-options.php:563 #: functions/theme-options.php:576
msgid "social link" msgid "social link"
msgstr "" msgstr ""
#: functions/theme-options.php:570 #: functions/theme-options.php:583
msgid "Title" msgid "Title"
msgstr "" msgstr ""
#: functions/theme-options.php:571 #: functions/theme-options.php:584
msgid "Ex: Facebook" msgid "Ex: Facebook"
msgstr "" msgstr ""
#: functions/theme-options.php:576 #: functions/theme-options.php:589
msgid "Icon Name" msgid "Icon Name"
msgstr "" msgstr ""
#: functions/theme-options.php:577 #: functions/theme-options.php:590
msgid "Font Awesome icons. Ex: fa-facebook " msgid "Font Awesome icons. Ex: fa-facebook "
msgstr "" msgstr ""
#: functions/theme-options.php:582 #: functions/theme-options.php:595
msgid "Link" msgid "Link"
msgstr "" msgstr ""
#: functions/theme-options.php:583 #: functions/theme-options.php:596
msgid "Enter the full url for your icon button" msgid "Enter the full url for your icon button"
msgstr "" msgstr ""
#: functions/theme-options.php:588 #: functions/theme-options.php:601
msgid "Icon Color" msgid "Icon Color"
msgstr "" msgstr ""
#: functions/theme-options.php:589 #: functions/theme-options.php:602
msgid "Set a unique color for your icon (optional)" msgid "Set a unique color for your icon (optional)"
msgstr "" msgstr ""
#: functions/theme-options.php:594 #: functions/theme-options.php:607
msgid "Open in new window" msgid "Open in new window"
msgstr "" msgstr ""
#: functions/theme-options.php:603 #: functions/theme-options.php:616
msgid "Dynamic Styles" msgid "Dynamic Styles"
msgstr "" msgstr ""
#: functions/theme-options.php:604 #: functions/theme-options.php:617
msgid "Turn on to use the styling options below" msgid "Turn on to use the styling options below"
msgstr "" msgstr ""
#: functions/theme-options.php:612 #: functions/theme-options.php:625
msgid "Boxed Layout" msgid "Boxed Layout"
msgstr "" msgstr ""
#: functions/theme-options.php:613 #: functions/theme-options.php:626
msgid "Use a boxed layout" msgid "Use a boxed layout"
msgstr "" msgstr ""
#: functions/theme-options.php:621 #: functions/theme-options.php:634
msgid "Font" msgid "Font"
msgstr "" msgstr ""
#: functions/theme-options.php:622 #: functions/theme-options.php:635
msgid "Select font for the theme" msgid "Select font for the theme"
msgstr "" msgstr ""
#: functions/theme-options.php:626 #: functions/theme-options.php:639
msgid "Titillium Web, Latin (Self-hosted)" msgid "Titillium Web, Latin (Self-hosted)"
msgstr "" msgstr ""
#: functions/theme-options.php:627 #: functions/theme-options.php:640
msgid "Titillium Web, Latin-Ext" msgid "Titillium Web, Latin-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:628 #: functions/theme-options.php:641
msgid "Droid Serif, Latin" msgid "Droid Serif, Latin"
msgstr "" msgstr ""
#: functions/theme-options.php:629 #: functions/theme-options.php:642
msgid "Source Sans Pro, Latin-Ext" msgid "Source Sans Pro, Latin-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:630 #: functions/theme-options.php:643
msgid "Lato, Latin" msgid "Lato, Latin"
msgstr "" msgstr ""
#: functions/theme-options.php:631 #: functions/theme-options.php:644
msgid "Raleway, Latin" msgid "Raleway, Latin"
msgstr "" msgstr ""
#: functions/theme-options.php:632 #: functions/theme-options.php:645
msgid "Ubuntu, Latin-Ext" msgid "Ubuntu, Latin-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:633 #: functions/theme-options.php:646
msgid "Ubuntu, Latin / Cyrillic-Ext" msgid "Ubuntu, Latin / Cyrillic-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:634 #: functions/theme-options.php:647
msgid "Roboto, Latin-Ext" msgid "Roboto, Latin-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:635 #: functions/theme-options.php:648
msgid "Roboto, Latin / Cyrillic-Ext" msgid "Roboto, Latin / Cyrillic-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:636 #: functions/theme-options.php:649
msgid "Roboto Condensed, Latin-Ext" msgid "Roboto Condensed, Latin-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:637 #: functions/theme-options.php:650
msgid "Roboto Condensed, Latin / Cyrillic-Ext" msgid "Roboto Condensed, Latin / Cyrillic-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:638 #: functions/theme-options.php:651
msgid "Roboto Slab, Latin-Ext" msgid "Roboto Slab, Latin-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:639 #: functions/theme-options.php:652
msgid "Roboto Slab, Latin / Cyrillic-Ext" msgid "Roboto Slab, Latin / Cyrillic-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:640 #: functions/theme-options.php:653
msgid "Playfair Display, Latin-Ext" msgid "Playfair Display, Latin-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:641 #: functions/theme-options.php:654
msgid "Playfair Display, Latin / Cyrillic" msgid "Playfair Display, Latin / Cyrillic"
msgstr "" msgstr ""
#: functions/theme-options.php:642 #: functions/theme-options.php:655
msgid "Open Sans, Latin-Ext" msgid "Open Sans, Latin-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:643 #: functions/theme-options.php:656
msgid "Open Sans, Latin / Cyrillic-Ext" msgid "Open Sans, Latin / Cyrillic-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:644 #: functions/theme-options.php:657
msgid "PT Serif, Latin-Ext" msgid "PT Serif, Latin-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:645 #: functions/theme-options.php:658
msgid "PT Serif, Latin / Cyrillic-Ext" msgid "PT Serif, Latin / Cyrillic-Ext"
msgstr "" msgstr ""
#: functions/theme-options.php:646 #: functions/theme-options.php:659
msgid "Arial" msgid "Arial"
msgstr "" msgstr ""
#: functions/theme-options.php:647 #: functions/theme-options.php:660
msgid "Georgia" msgid "Georgia"
msgstr "" msgstr ""
#: functions/theme-options.php:648 #: functions/theme-options.php:661
msgid "Verdana" msgid "Verdana"
msgstr "" msgstr ""
#: functions/theme-options.php:649 #: functions/theme-options.php:662
msgid "Tahoma" msgid "Tahoma"
msgstr "" msgstr ""
#: functions/theme-options.php:656 #: functions/theme-options.php:669
msgid "Header Logo Image Max-height" msgid "Header Logo Image Max-height"
msgstr "" msgstr ""
#: functions/theme-options.php:657 #: functions/theme-options.php:670
msgid "" msgid ""
"Your logo image should have the double height of this to be high resolution" "Your logo image should have the double height of this to be high resolution"
msgstr "" msgstr ""
#: functions/theme-options.php:670 #: functions/theme-options.php:683
msgid "Website Max-width" msgid "Website Max-width"
msgstr "" msgstr ""
#: functions/theme-options.php:671 #: functions/theme-options.php:684
msgid "Max-width of the container." msgid "Max-width of the container."
msgstr "" msgstr ""
#: functions/theme-options.php:684 #: functions/theme-options.php:697
msgid "Primary Color" msgid "Primary Color"
msgstr "" msgstr ""
#: functions/theme-options.php:692 #: functions/theme-options.php:705
msgid "Gradient Left" msgid "Gradient Left"
msgstr "" msgstr ""
#: functions/theme-options.php:700 #: functions/theme-options.php:713
msgid "Gradient Right" msgid "Gradient Right"
msgstr "" msgstr ""

View file

@ -64,5 +64,8 @@ Source: https://stocksnap.io
== Changelog == == Changelog ==
= 1.0.0 - 2021-01-28 = = 1.0.1 - 2021-01-28 =
* Added blog layout options standard, grid and list
= 1.0.0 - 2021-01-27 =
* Initial release * Initial release

View file

@ -37,6 +37,12 @@
.entry-list .entry-title a { font-size: 24px; line-height: 1.4em; } .entry-list .entry-title a { font-size: 24px; line-height: 1.4em; }
/* blog */
.article-list > article { padding-left: 0; }
.article-list .entry-list-inner { float: none; width: 100%; }
.article-list .entry-list .entry-thumbnail { float: none; width: 100%; margin-top: 0; }
.article-list .entry-list .post-comments { top: 0; }
/* single */ /* single */
.sharrre-footer .sharrre .share span { display: none; } .sharrre-footer .sharrre .share span { display: none; }
.sharrre-footer .sharrre .share .fa { bottom: 0; } .sharrre-footer .sharrre .share .fa { bottom: 0; }
@ -229,6 +235,11 @@
.entry-content, .entry-content,
.entry-footer { padding-right: 20px; padding-left: 20px; } .entry-footer { padding-right: 20px; padding-left: 20px; }
.entry-list .entry-title a { font-size: 22px; } .entry-list .entry-title a { font-size: 22px; }
.article-list > article { padding-left: 0; }
.article-list .entry-list-inner { float: none; width: 100%; }
.article-list .entry-list .entry-thumbnail { float: none; width: 100%; margin-top: 0; }
.article-list .entry-list .post-comments { top: 0; }
/* sharrre */ /* sharrre */
.sharrre-footer .sharrre .count { display: none; } .sharrre-footer .sharrre .count { display: none; }

View file

@ -6,9 +6,29 @@
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<?php while ( have_posts() ): the_post(); ?> <?php if ( get_theme_mod('blog-layout','blog-standard') == 'blog-grid' ) : ?>
<?php get_template_part('content'); ?>
<?php endwhile; ?> <div class="article-grid">
<?php while ( have_posts() ): the_post(); ?>
<?php get_template_part('content-grid'); ?>
<?php endwhile; ?>
</div>
<?php elseif ( get_theme_mod('blog-layout','blog-standard') == 'blog-list' ) : ?>
<div class="article-list">
<?php while ( have_posts() ): the_post(); ?>
<?php get_template_part('content-list'); ?>
<?php endwhile; ?>
</div>
<?php else: ?>
<?php while ( have_posts() ): the_post(); ?>
<?php get_template_part('content'); ?>
<?php endwhile; ?>
<?php endif; ?>
<?php get_template_part('inc/pagination'); ?> <?php get_template_part('inc/pagination'); ?>

View file

@ -1,7 +1,7 @@
/* /*
Theme Name: Airl Theme Name: Airl
Theme URI: http://alx.media/themes/airl/ Theme URI: http://alx.media/themes/airl/
Version: 1.0.0 Version: 1.0.1
Requires at least: 5.0 Requires at least: 5.0
Requires PHP: 5.6 Requires PHP: 5.6
Tested up to: 5.5 Tested up to: 5.5
@ -1027,7 +1027,10 @@ body.single .card-articles-wrap { padding-bottom: 60px; }
.content > article { background: #fff; border-radius: 10px 10px 20px 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.03), 0 1px 0 rgba(0,0,0,0.05); } .content > article { background: #fff; border-radius: 10px 10px 20px 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.03), 0 1px 0 rgba(0,0,0,0.05); }
.post-wrapper { width: 100%; overflow: hidden; } .post-wrapper { width: 100%; overflow: hidden; }
.entry-list { margin-bottom: 30px; font-weight: 300; position: relative; } /* blog layout : standard
/* ------------------------------------ */
.entry-list { margin-bottom: 30px; font-weight: 300; position: relative; }
.entry-list > article { background: #fff; border-radius: 10px 10px 20px 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.03), 0 1px 0 rgba(0,0,0,0.05); }
.entry-list-inner { padding: 0 30px 20px 30px; position: relative; } .entry-list-inner { padding: 0 30px 20px 30px; position: relative; }
.entry-list-inner.entry-thumbnail-enabled { } .entry-list-inner.entry-thumbnail-enabled { }
@ -1038,7 +1041,7 @@ body.single .card-articles-wrap { padding-bottom: 60px; }
.entry-list .post-comments { right: 30px; } .entry-list .post-comments { right: 30px; }
.entry-list .entry-title { margin: 22px 40px 12px 0; } .entry-list .entry-title { margin: 22px 40px 12px 0; }
.entry-list .entry-title a { font-size: 28px; line-height: 1.4em; font-weight: 600; } .entry-list .entry-title a { font-size: 28px; line-height: 1.3em; font-weight: 600; }
.entry-list .entry-title a:hover { color: #00a0ff; } .entry-list .entry-title a:hover { color: #00a0ff; }
.entry-list .entry-excerpt { font-size: 18px; color: #999; line-height: 1.5em; margin-bottom: 20px; } .entry-list .entry-excerpt { font-size: 18px; color: #999; line-height: 1.5em; margin-bottom: 20px; }
@ -1067,6 +1070,27 @@ body.single .card-articles-wrap { padding-bottom: 60px; }
.entry-bar { -webkit-transition: all 0.25s ease-in-out; transition: all 0.25s ease-in-out; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } .entry-bar { -webkit-transition: all 0.25s ease-in-out; transition: all 0.25s ease-in-out; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
.entry-bar.hide-scroll { -webkit-transform: translateY(100%); transform: translateY(100%); } .entry-bar.hide-scroll { -webkit-transform: translateY(100%); transform: translateY(100%); }
/* blog layout : grid
/* ------------------------------------ */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 30px; }
.article-grid > article { background: #fff; border-radius: 10px 10px 20px 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.03), 0 1px 0 rgba(0,0,0,0.05); margin-bottom: 0; }
/* blog layout : list
/* ------------------------------------ */
.article-list > article { background: #fff; padding-left: 30px; margin-bottom: 30px; border-radius: 10px 10px 20px 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.03), 0 1px 0 rgba(0,0,0,0.05); }
.article-list .entry-list-inner { float: left; width: 70%; box-sizing: border-box; }
.article-list .entry-list .entry-thumbnail { float: left; width: 30%; margin-top: 30px; }
.article-list .entry-list .post-comments { top: 30px; }
/* blog layout : search results
/* ------------------------------------ */
body.search article.type-page .post-comments,
body.search article.type-page .entry-meta { display: none; }
body.search .article-list > article.type-page { padding-left: 0; }
body.search .article-list > article.type-page .entry-thumbnail { display: none; }
body.search .article-list > article.type-page .entry-list-inner { width: 100%; }
/* ------------------------------------------------------------------------- * /* ------------------------------------------------------------------------- *
* Single * Single