Add option to place featured slider above or below frontpage posts

This commit is contained in:
AlxMedia 2022-09-10 12:17:09 +02:00
parent b76359b302
commit 33c96a8d47
3 changed files with 132 additions and 102 deletions

View file

@ -121,6 +121,19 @@ Kirki::add_field( 'microtype_theme', array(
'step' => '1',
),
) );
// Blog: Featured Position
Kirki::add_field( 'microtype_theme', array(
'type' => 'radio',
'settings' => 'featured-position',
'label' => esc_html__( 'Featured Posts Position', 'microtype' ),
'description' => esc_html__( 'Where to show the featured posts slider', 'microtype' ),
'section' => 'blog',
'default' => 'below',
'choices' => array(
'above' => esc_html__( 'Above posts', 'microtype' ),
'below' => esc_html__( 'Below posts', 'microtype' ),
),
) );
// Blog: Featured Posts Include
Kirki::add_field( 'microtype_theme', array(
'type' => 'switch',

View file

@ -6,7 +6,7 @@
<?php get_template_part('inc/page-title'); ?>
<?php endif; ?>
<?php get_template_part('inc/featured'); ?>
<?php if ( get_theme_mod( 'featured-position', 'below' ) == 'above' ) { get_template_part('inc/featured'); } ?>
<?php get_template_part('inc/front-widgets-top'); ?>
@ -17,6 +17,7 @@
<?php endwhile; ?>
<?php get_template_part('inc/front-widgets-bottom'); ?>
<?php if ( get_theme_mod( 'featured-position', 'below' ) == 'below' ) { get_template_part('inc/featured'); } ?>
<?php get_template_part('inc/pagination'); ?>
<?php endif; ?>

View file

@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Microtype\n"
"POT-Creation-Date: 2022-09-10 11:42+0200\n"
"POT-Creation-Date: 2022-09-10 12:16+0200\n"
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -75,7 +75,7 @@ msgstr ""
msgid "Normal full width sidebar"
msgstr ""
#: functions.php:182 functions/theme-options.php:269
#: functions.php:182 functions/theme-options.php:282
msgid "Footer Ads"
msgstr ""
@ -233,405 +233,421 @@ msgid "Max number of words. Set it to 0 to disable."
msgstr ""
#: functions/theme-options.php:128
msgid "Featured Posts"
msgid "Featured Posts Position"
msgstr ""
#: functions/theme-options.php:129
msgid "Where to show the featured posts slider"
msgstr ""
#: functions/theme-options.php:133
msgid "Above posts"
msgstr ""
#: functions/theme-options.php:134
msgid "Below posts"
msgstr ""
#: functions/theme-options.php:141
msgid "Featured Posts"
msgstr ""
#: functions/theme-options.php:142
msgid "Exclude featured posts from the content below"
msgstr ""
#: functions/theme-options.php:137
#: functions/theme-options.php:150
msgid "Featured Category"
msgstr ""
#: functions/theme-options.php:138
#: functions/theme-options.php:151
msgid ""
"By not selecting a category, it will show your latest post(s) from all "
"categories"
msgstr ""
#: functions/theme-options.php:142
#: functions/theme-options.php:155
msgid "Select a category"
msgstr ""
#: functions/theme-options.php:148
#: functions/theme-options.php:161
msgid "Featured Post Count"
msgstr ""
#: functions/theme-options.php:149
#: functions/theme-options.php:162
msgid "Max number of featured posts to display. Set it to 0 to disable"
msgstr ""
#: functions/theme-options.php:162
#: functions/theme-options.php:175
msgid "Frontpage Widgets Top"
msgstr ""
#: functions/theme-options.php:163 functions/theme-options.php:172
#: functions/theme-options.php:176 functions/theme-options.php:185
msgid "A column of widgets"
msgstr ""
#: functions/theme-options.php:171
#: functions/theme-options.php:184
msgid "Frontpage Widgets Bottom"
msgstr ""
#: functions/theme-options.php:180
#: functions/theme-options.php:193
msgid "Comment Count"
msgstr ""
#: functions/theme-options.php:188
#: functions/theme-options.php:201
msgid "Single - Author Bio"
msgstr ""
#: functions/theme-options.php:189
#: functions/theme-options.php:202
msgid "Shows post author description, if it exists"
msgstr ""
#: functions/theme-options.php:197
#: functions/theme-options.php:210
msgid "Single - Related Posts"
msgstr ""
#: functions/theme-options.php:198
#: functions/theme-options.php:211
msgid "Shows randomized related articles below the post"
msgstr ""
#: functions/theme-options.php:202 functions/theme-options.php:216
#: functions/theme-options.php:215 functions/theme-options.php:229
msgid "Disable"
msgstr ""
#: functions/theme-options.php:203
#: functions/theme-options.php:216
msgid "Related by categories"
msgstr ""
#: functions/theme-options.php:204
#: functions/theme-options.php:217
msgid "Related by tags"
msgstr ""
#: functions/theme-options.php:211
#: functions/theme-options.php:224
msgid "Single - Post Navigation"
msgstr ""
#: functions/theme-options.php:212
#: functions/theme-options.php:225
msgid "Shows links to the next and previous article"
msgstr ""
#: functions/theme-options.php:217
#: functions/theme-options.php:230
msgid "Below content"
msgstr ""
#: functions/theme-options.php:224
#: functions/theme-options.php:237
msgid "Header Search"
msgstr ""
#: functions/theme-options.php:225
#: functions/theme-options.php:238
msgid "Header search button"
msgstr ""
#: functions/theme-options.php:233
#: functions/theme-options.php:246
msgid "Header Social Links"
msgstr ""
#: functions/theme-options.php:234 functions/theme-options.php:295
#: functions/theme-options.php:247 functions/theme-options.php:308
msgid "Social link icon buttons"
msgstr ""
#: functions/theme-options.php:242
#: functions/theme-options.php:255
msgid "Profile Image"
msgstr ""
#: functions/theme-options.php:243
#: functions/theme-options.php:256
msgid "Minimum width of 320px"
msgstr ""
#: functions/theme-options.php:251
#: functions/theme-options.php:264
msgid "Profile Name"
msgstr ""
#: functions/theme-options.php:252
#: functions/theme-options.php:265
msgid "Your name appears below the image"
msgstr ""
#: functions/theme-options.php:260
#: functions/theme-options.php:273
msgid "Profile Description"
msgstr ""
#: functions/theme-options.php:261
#: functions/theme-options.php:274
msgid "A short description of you"
msgstr ""
#: functions/theme-options.php:270
#: functions/theme-options.php:283
msgid "Footer widget ads area"
msgstr ""
#: functions/theme-options.php:278
#: functions/theme-options.php:291
msgid "Footer Widget Columns"
msgstr ""
#: functions/theme-options.php:279
#: functions/theme-options.php:292
msgid "Select columns to enable footer widgets. Recommended number: 3"
msgstr ""
#: functions/theme-options.php:294
#: functions/theme-options.php:307
msgid "Footer Social Links"
msgstr ""
#: functions/theme-options.php:303
#: functions/theme-options.php:316
msgid "Footer Logo"
msgstr ""
#: functions/theme-options.php:304
#: functions/theme-options.php:317
msgid "Upload your custom logo image"
msgstr ""
#: functions/theme-options.php:312
#: functions/theme-options.php:325
msgid "Footer Copyright"
msgstr ""
#: functions/theme-options.php:313
#: functions/theme-options.php:326
msgid "Replace the footer copyright text"
msgstr ""
#: functions/theme-options.php:321
#: functions/theme-options.php:334
msgid "Footer Credit"
msgstr ""
#: functions/theme-options.php:322
#: functions/theme-options.php:335
msgid "Footer credit text"
msgstr ""
#: functions/theme-options.php:330
#: functions/theme-options.php:343
msgid "Create Social Links"
msgstr ""
#: functions/theme-options.php:331
#: functions/theme-options.php:344
msgid "Create and organize your social links"
msgstr ""
#: functions/theme-options.php:333
#: functions/theme-options.php:346
msgid "Font Awesome names:"
msgstr ""
#: functions/theme-options.php:333 functions/theme-options.php:350
#: functions/theme-options.php:346 functions/theme-options.php:363
msgid "View All"
msgstr ""
#: functions/theme-options.php:336
#: functions/theme-options.php:349
msgid "social link"
msgstr ""
#: functions/theme-options.php:343
#: functions/theme-options.php:356
msgid "Title"
msgstr ""
#: functions/theme-options.php:344
#: functions/theme-options.php:357
msgid "Ex: Facebook"
msgstr ""
#: functions/theme-options.php:349
#: functions/theme-options.php:362
msgid "Icon Name"
msgstr ""
#: functions/theme-options.php:350
#: functions/theme-options.php:363
msgid "Font Awesome icons. Ex: fa-facebook "
msgstr ""
#: functions/theme-options.php:355
#: functions/theme-options.php:368
msgid "Link"
msgstr ""
#: functions/theme-options.php:356
#: functions/theme-options.php:369
msgid "Enter the full url for your icon button"
msgstr ""
#: functions/theme-options.php:361
#: functions/theme-options.php:374
msgid "Icon Color"
msgstr ""
#: functions/theme-options.php:362
#: functions/theme-options.php:375
msgid "Set a unique color for your icon (optional)"
msgstr ""
#: functions/theme-options.php:367
#: functions/theme-options.php:380
msgid "Open in new window"
msgstr ""
#: functions/theme-options.php:376
#: functions/theme-options.php:389
msgid "Dynamic Styles"
msgstr ""
#: functions/theme-options.php:377
#: functions/theme-options.php:390
msgid "Turn on to use the styling options below"
msgstr ""
#: functions/theme-options.php:385
#: functions/theme-options.php:398
msgid "Font"
msgstr ""
#: functions/theme-options.php:386
#: functions/theme-options.php:399
msgid "Select font for the theme"
msgstr ""
#: functions/theme-options.php:390
#: functions/theme-options.php:403
msgid "Titillium Web, Latin (Self-hosted)"
msgstr ""
#: functions/theme-options.php:391
#: functions/theme-options.php:404
msgid "Titillium Web, Latin-Ext"
msgstr ""
#: functions/theme-options.php:392
#: functions/theme-options.php:405
msgid "Droid Serif, Latin"
msgstr ""
#: functions/theme-options.php:393
#: functions/theme-options.php:406
msgid "Source Sans Pro, Latin-Ext"
msgstr ""
#: functions/theme-options.php:394
#: functions/theme-options.php:407
msgid "Lato, Latin"
msgstr ""
#: functions/theme-options.php:395
#: functions/theme-options.php:408
msgid "Raleway, Latin"
msgstr ""
#: functions/theme-options.php:396
#: functions/theme-options.php:409
msgid "Inter, Latin"
msgstr ""
#: functions/theme-options.php:397
#: functions/theme-options.php:410
msgid "Ubuntu, Latin-Ext"
msgstr ""
#: functions/theme-options.php:398
#: functions/theme-options.php:411
msgid "Ubuntu, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:399
#: functions/theme-options.php:412
msgid "Roboto, Latin-Ext"
msgstr ""
#: functions/theme-options.php:400
#: functions/theme-options.php:413
msgid "Roboto, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:401
#: functions/theme-options.php:414
msgid "Roboto Condensed, Latin-Ext"
msgstr ""
#: functions/theme-options.php:402
#: functions/theme-options.php:415
msgid "Roboto Condensed, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:403
#: functions/theme-options.php:416
msgid "Roboto Slab, Latin-Ext"
msgstr ""
#: functions/theme-options.php:404
#: functions/theme-options.php:417
msgid "Roboto Slab, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:405
#: functions/theme-options.php:418
msgid "Playfair Display, Latin-Ext"
msgstr ""
#: functions/theme-options.php:406
#: functions/theme-options.php:419
msgid "Playfair Display, Latin / Cyrillic"
msgstr ""
#: functions/theme-options.php:407
#: functions/theme-options.php:420
msgid "Open Sans, Latin-Ext"
msgstr ""
#: functions/theme-options.php:408
#: functions/theme-options.php:421
msgid "Open Sans, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:409
#: functions/theme-options.php:422
msgid "PT Serif, Latin-Ext"
msgstr ""
#: functions/theme-options.php:410
#: functions/theme-options.php:423
msgid "PT Serif, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:411
#: functions/theme-options.php:424
msgid "Arial"
msgstr ""
#: functions/theme-options.php:412
#: functions/theme-options.php:425
msgid "Georgia"
msgstr ""
#: functions/theme-options.php:413
#: functions/theme-options.php:426
msgid "Verdana"
msgstr ""
#: functions/theme-options.php:414
#: functions/theme-options.php:427
msgid "Tahoma"
msgstr ""
#: functions/theme-options.php:421
#: functions/theme-options.php:434
msgid "Layout Box Max-width"
msgstr ""
#: functions/theme-options.php:422
#: functions/theme-options.php:435
msgid "Max-width of the layout box"
msgstr ""
#: functions/theme-options.php:435
#: functions/theme-options.php:448
msgid "Content Max-width"
msgstr ""
#: functions/theme-options.php:436
#: functions/theme-options.php:449
msgid "Max-width of the content"
msgstr ""
#: functions/theme-options.php:449
#: functions/theme-options.php:462
msgid "Header Logo Image Max-height"
msgstr ""
#: functions/theme-options.php:450
#: functions/theme-options.php:463
msgid ""
"Your logo image should have the double height of this to be high resolution"
msgstr ""
#: functions/theme-options.php:463
#: functions/theme-options.php:476
msgid "Dark Theme"
msgstr ""
#: functions/theme-options.php:464
#: functions/theme-options.php:477
msgid "Use dark instead of light base"
msgstr ""
#: functions/theme-options.php:472
#: functions/theme-options.php:485
msgid "Light/Dark Theme Toggle"
msgstr ""
#: functions/theme-options.php:473
#: functions/theme-options.php:486
msgid "Do not use with dark theme enabled"
msgstr ""
#: functions/theme-options.php:481
#: functions/theme-options.php:494
msgid "Invert Dark Logo Color"
msgstr ""
#: functions/theme-options.php:482
#: functions/theme-options.php:495
msgid "Change color for the logo in dark mode"
msgstr ""
#: functions/theme-options.php:490
#: functions/theme-options.php:503
msgid "Box Border Radius"
msgstr ""
#: functions/theme-options.php:491
#: functions/theme-options.php:504
msgid "Change radius of the layout box."
msgstr ""
#: functions/theme-options.php:504
#: functions/theme-options.php:517
msgid "Primary Accent"
msgstr ""
#: functions/theme-options.php:512
#: functions/theme-options.php:525
msgid "Background Color"
msgstr ""