This commit is contained in:
AlxMedia 2021-09-21 12:43:51 +02:00
parent 469cdf9a99
commit c1a15affd6
5 changed files with 145 additions and 117 deletions

View file

@ -167,6 +167,15 @@ Kirki::add_field( 'gridframe_theme', array(
'section' => 'blog',
'default' => 'on',
) );
// Blog: Single - Post Format
Kirki::add_field( 'gridframe_theme', array(
'type' => 'switch',
'settings' => 'post-format',
'label' => esc_html__( 'Single - Post Format', 'gridframe' ),
'description' => esc_html__( 'Shows post format content instead of featured image', 'gridframe' ),
'section' => 'blog',
'default' => 'off',
) );
// Blog: Single - Authorbox
Kirki::add_field( 'gridframe_theme', array(
'type' => 'switch',

View file

@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Gridframe\n"
"POT-Creation-Date: 2021-09-21 11:49+0200\n"
"POT-Creation-Date: 2021-09-21 12:35+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:184 functions/theme-options.php:255
#: functions.php:184 functions/theme-options.php:264
msgid "Footer Ads"
msgstr ""
@ -148,10 +148,10 @@ msgid "Primary Sidebar"
msgstr ""
#: functions/meta-boxes.php:31 functions/meta-boxes.php:64
#: functions/theme-options.php:454 functions/theme-options.php:464
#: functions/theme-options.php:474 functions/theme-options.php:484
#: functions/theme-options.php:494 functions/theme-options.php:504
#: functions/theme-options.php:514
#: functions/theme-options.php:463 functions/theme-options.php:473
#: functions/theme-options.php:483 functions/theme-options.php:493
#: functions/theme-options.php:503 functions/theme-options.php:513
#: functions/theme-options.php:523
msgid "Select a sidebar"
msgstr ""
@ -302,434 +302,442 @@ msgid "Show categories below each item"
msgstr ""
#: functions/theme-options.php:174
msgid "Single - Author Bio"
msgid "Single - Post Format"
msgstr ""
#: functions/theme-options.php:175
msgid "Shows post author description, if it exists"
msgid "Shows post format content instead of featured image"
msgstr ""
#: functions/theme-options.php:183
msgid "Single - Related Posts"
msgid "Single - Author Bio"
msgstr ""
#: functions/theme-options.php:184
msgid "Shows post author description, if it exists"
msgstr ""
#: functions/theme-options.php:192
msgid "Single - Related Posts"
msgstr ""
#: functions/theme-options.php:193
msgid "Shows randomized related articles below the post"
msgstr ""
#: functions/theme-options.php:188 functions/theme-options.php:202
#: functions/theme-options.php:197 functions/theme-options.php:211
msgid "Disable"
msgstr ""
#: functions/theme-options.php:189
#: functions/theme-options.php:198
msgid "Related by categories"
msgstr ""
#: functions/theme-options.php:190
#: functions/theme-options.php:199
msgid "Related by tags"
msgstr ""
#: functions/theme-options.php:197
#: functions/theme-options.php:206
msgid "Single - Post Navigation"
msgstr ""
#: functions/theme-options.php:198
#: functions/theme-options.php:207
msgid "Shows links to the next and previous article"
msgstr ""
#: functions/theme-options.php:203
#: functions/theme-options.php:212
msgid "Below content"
msgstr ""
#: functions/theme-options.php:210
#: functions/theme-options.php:219
msgid "Header Search"
msgstr ""
#: functions/theme-options.php:211
#: functions/theme-options.php:220
msgid "Header search button"
msgstr ""
#: functions/theme-options.php:219
#: functions/theme-options.php:228
msgid "Header Social Links"
msgstr ""
#: functions/theme-options.php:220 functions/theme-options.php:281
#: functions/theme-options.php:229 functions/theme-options.php:290
msgid "Social link icon buttons"
msgstr ""
#: functions/theme-options.php:228
#: functions/theme-options.php:237
msgid "Profile Image"
msgstr ""
#: functions/theme-options.php:229
#: functions/theme-options.php:238
msgid "Works best with square size"
msgstr ""
#: functions/theme-options.php:237
#: functions/theme-options.php:246
msgid "Profile Title"
msgstr ""
#: functions/theme-options.php:238
#: functions/theme-options.php:247
msgid "The large text"
msgstr ""
#: functions/theme-options.php:246
#: functions/theme-options.php:255
msgid "Profile Description"
msgstr ""
#: functions/theme-options.php:247
#: functions/theme-options.php:256
msgid "The smaller text below the title"
msgstr ""
#: functions/theme-options.php:256
#: functions/theme-options.php:265
msgid "Footer widget ads area"
msgstr ""
#: functions/theme-options.php:264
#: functions/theme-options.php:273
msgid "Footer Widget Columns"
msgstr ""
#: functions/theme-options.php:265
#: functions/theme-options.php:274
msgid "Select columns to enable footer widgets. Recommended number: 3"
msgstr ""
#: functions/theme-options.php:280
#: functions/theme-options.php:289
msgid "Footer Social Links"
msgstr ""
#: functions/theme-options.php:289
#: functions/theme-options.php:298
msgid "Footer Logo"
msgstr ""
#: functions/theme-options.php:290
#: functions/theme-options.php:299
msgid "Upload your custom logo image"
msgstr ""
#: functions/theme-options.php:298
#: functions/theme-options.php:307
msgid "Footer Copyright"
msgstr ""
#: functions/theme-options.php:299
#: functions/theme-options.php:308
msgid "Replace the footer copyright text"
msgstr ""
#: functions/theme-options.php:307
#: functions/theme-options.php:316
msgid "Footer Credit"
msgstr ""
#: functions/theme-options.php:308
#: functions/theme-options.php:317
msgid "Footer credit text"
msgstr ""
#: functions/theme-options.php:316
#: functions/theme-options.php:325
msgid "Global Layout"
msgstr ""
#: functions/theme-options.php:317
#: functions/theme-options.php:326
msgid "Other layouts will override this option if they are set"
msgstr ""
#: functions/theme-options.php:330 functions/theme-options.php:449
#: functions/theme-options.php:339 functions/theme-options.php:458
msgid "Home"
msgstr ""
#: functions/theme-options.php:331
#: functions/theme-options.php:340
msgid "(is_home) Posts homepage layout"
msgstr ""
#: functions/theme-options.php:345 functions/theme-options.php:459
#: functions/theme-options.php:354 functions/theme-options.php:468
msgid "Single"
msgstr ""
#: functions/theme-options.php:346
#: functions/theme-options.php:355
msgid ""
"(is_single) Single post layout - If a post has a set layout, it will "
"override this."
msgstr ""
#: functions/theme-options.php:360 functions/theme-options.php:469
#: functions/theme-options.php:369 functions/theme-options.php:478
msgid "Archive"
msgstr ""
#: functions/theme-options.php:361
#: functions/theme-options.php:370
msgid "(is_archive) Category, date, tag and author archive layout"
msgstr ""
#: functions/theme-options.php:375 functions/theme-options.php:479
#: functions/theme-options.php:384 functions/theme-options.php:488
msgid "Archive - Category"
msgstr ""
#: functions/theme-options.php:376
#: functions/theme-options.php:385
msgid "(is_category) Category archive layout"
msgstr ""
#: functions/theme-options.php:390 functions/theme-options.php:489
#: functions/theme-options.php:399 functions/theme-options.php:498
msgid "Search"
msgstr ""
#: functions/theme-options.php:391
#: functions/theme-options.php:400
msgid "(is_search) Search page layout"
msgstr ""
#: functions/theme-options.php:405 functions/theme-options.php:499
#: functions/theme-options.php:414 functions/theme-options.php:508
msgid "Error 404"
msgstr ""
#: functions/theme-options.php:406
#: functions/theme-options.php:415
msgid "(is_404) Error 404 page layout"
msgstr ""
#: functions/theme-options.php:420 functions/theme-options.php:509
#: functions/theme-options.php:429 functions/theme-options.php:518
msgid "Default Page"
msgstr ""
#: functions/theme-options.php:421
#: functions/theme-options.php:430
msgid ""
"(is_page) Default page layout - If a page has a set layout, it will override "
"this."
msgstr ""
#: functions/theme-options.php:450
#: functions/theme-options.php:459
msgid "(is_home) Primary"
msgstr ""
#: functions/theme-options.php:460
#: functions/theme-options.php:469
msgid ""
"(is_single) Primary - If a single post has a unique sidebar, it will "
"override this."
msgstr ""
#: functions/theme-options.php:470
#: functions/theme-options.php:479
msgid "(is_archive) Primary"
msgstr ""
#: functions/theme-options.php:480
#: functions/theme-options.php:489
msgid "(is_category) Primary"
msgstr ""
#: functions/theme-options.php:490
#: functions/theme-options.php:499
msgid "(is_search) Primary"
msgstr ""
#: functions/theme-options.php:500
#: functions/theme-options.php:509
msgid "(is_404) Primary"
msgstr ""
#: functions/theme-options.php:510
#: functions/theme-options.php:519
msgid ""
"(is_page) Primary - If a page has a unique sidebar, it will override this."
msgstr ""
#: functions/theme-options.php:523
#: functions/theme-options.php:532
msgid "Create Social Links"
msgstr ""
#: functions/theme-options.php:524
#: functions/theme-options.php:533
msgid "Create and organize your social links"
msgstr ""
#: functions/theme-options.php:526
#: functions/theme-options.php:535
msgid "Font Awesome names:"
msgstr ""
#: functions/theme-options.php:526 functions/theme-options.php:543
#: functions/theme-options.php:535 functions/theme-options.php:552
msgid "View All"
msgstr ""
#: functions/theme-options.php:529
#: functions/theme-options.php:538
msgid "social link"
msgstr ""
#: functions/theme-options.php:536
#: functions/theme-options.php:545
msgid "Title"
msgstr ""
#: functions/theme-options.php:537
#: functions/theme-options.php:546
msgid "Ex: Facebook"
msgstr ""
#: functions/theme-options.php:542
#: functions/theme-options.php:551
msgid "Icon Name"
msgstr ""
#: functions/theme-options.php:543
#: functions/theme-options.php:552
msgid "Font Awesome icons. Ex: fa-facebook "
msgstr ""
#: functions/theme-options.php:548
#: functions/theme-options.php:557
msgid "Link"
msgstr ""
#: functions/theme-options.php:549
#: functions/theme-options.php:558
msgid "Enter the full url for your icon button"
msgstr ""
#: functions/theme-options.php:554
#: functions/theme-options.php:563
msgid "Icon Color"
msgstr ""
#: functions/theme-options.php:555
#: functions/theme-options.php:564
msgid "Set a unique color for your icon (optional)"
msgstr ""
#: functions/theme-options.php:560
#: functions/theme-options.php:569
msgid "Open in new window"
msgstr ""
#: functions/theme-options.php:569
#: functions/theme-options.php:578
msgid "Dynamic Styles"
msgstr ""
#: functions/theme-options.php:570
#: functions/theme-options.php:579
msgid "Turn on to use the styling options below"
msgstr ""
#: functions/theme-options.php:578
#: functions/theme-options.php:587
msgid "Font"
msgstr ""
#: functions/theme-options.php:579
#: functions/theme-options.php:588
msgid "Select font for the theme"
msgstr ""
#: functions/theme-options.php:583
#: functions/theme-options.php:592
msgid "Titillium Web, Latin (Self-hosted)"
msgstr ""
#: functions/theme-options.php:584
#: functions/theme-options.php:593
msgid "Titillium Web, Latin-Ext"
msgstr ""
#: functions/theme-options.php:585
#: functions/theme-options.php:594
msgid "Droid Serif, Latin"
msgstr ""
#: functions/theme-options.php:586
#: functions/theme-options.php:595
msgid "Source Sans Pro, Latin-Ext"
msgstr ""
#: functions/theme-options.php:587
#: functions/theme-options.php:596
msgid "Lato, Latin"
msgstr ""
#: functions/theme-options.php:588
#: functions/theme-options.php:597
msgid "Raleway, Latin"
msgstr ""
#: functions/theme-options.php:589
#: functions/theme-options.php:598
msgid "Ubuntu, Latin-Ext"
msgstr ""
#: functions/theme-options.php:590
#: functions/theme-options.php:599
msgid "Ubuntu, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:591
#: functions/theme-options.php:600
msgid "Roboto, Latin-Ext"
msgstr ""
#: functions/theme-options.php:592
#: functions/theme-options.php:601
msgid "Roboto, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:593
#: functions/theme-options.php:602
msgid "Roboto Condensed, Latin-Ext"
msgstr ""
#: functions/theme-options.php:594
#: functions/theme-options.php:603
msgid "Roboto Condensed, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:595
#: functions/theme-options.php:604
msgid "Roboto Slab, Latin-Ext"
msgstr ""
#: functions/theme-options.php:596
#: functions/theme-options.php:605
msgid "Roboto Slab, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:597
#: functions/theme-options.php:606
msgid "Playfair Display, Latin-Ext"
msgstr ""
#: functions/theme-options.php:598
#: functions/theme-options.php:607
msgid "Playfair Display, Latin / Cyrillic"
msgstr ""
#: functions/theme-options.php:599
#: functions/theme-options.php:608
msgid "Open Sans, Latin-Ext"
msgstr ""
#: functions/theme-options.php:600
#: functions/theme-options.php:609
msgid "Open Sans, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:601
#: functions/theme-options.php:610
msgid "PT Serif, Latin-Ext"
msgstr ""
#: functions/theme-options.php:602
#: functions/theme-options.php:611
msgid "PT Serif, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:603
#: functions/theme-options.php:612
msgid "Arial"
msgstr ""
#: functions/theme-options.php:604
#: functions/theme-options.php:613
msgid "Georgia"
msgstr ""
#: functions/theme-options.php:605
#: functions/theme-options.php:614
msgid "Verdana"
msgstr ""
#: functions/theme-options.php:606
#: functions/theme-options.php:615
msgid "Tahoma"
msgstr ""
#: functions/theme-options.php:613
#: functions/theme-options.php:622
msgid "Header Logo Image Max-height"
msgstr ""
#: functions/theme-options.php:614
#: functions/theme-options.php:623
msgid ""
"Your logo image should have the double height of this to be high resolution"
msgstr ""
#: functions/theme-options.php:627
#: functions/theme-options.php:636
msgid "Website Max-width"
msgstr ""
#: functions/theme-options.php:628
#: functions/theme-options.php:637
msgid "Max-width of the container. Set to default for full width."
msgstr ""
#: functions/theme-options.php:641
#: functions/theme-options.php:650
msgid "Post Format Max-width"
msgstr ""
#: functions/theme-options.php:642
#: functions/theme-options.php:651
msgid "Max-width of the post formats, shown at the top of articles"
msgstr ""
#: functions/theme-options.php:655
#: functions/theme-options.php:664
msgid "Content Max-width"
msgstr ""
#: functions/theme-options.php:656
#: functions/theme-options.php:665
msgid "Max-width of the website content"
msgstr ""
#: functions/theme-options.php:669
#: functions/theme-options.php:678
msgid "Header Background"
msgstr ""
#: functions/theme-options.php:677
#: functions/theme-options.php:686
msgid "Item Frame"
msgstr ""
#: functions/theme-options.php:678
#: functions/theme-options.php:687
msgid "The frame around each item"
msgstr ""
@ -783,10 +791,10 @@ msgstr ""
msgid "To search type and hit enter"
msgstr ""
#: single.php:22
#: single.php:30
msgid "Pages:"
msgstr ""
#: single.php:28
#: single.php:36
msgid "Tags:"
msgstr ""

View file

@ -82,5 +82,8 @@ Content images
== Changelog ==
= 1.0.1 - 2021-09-21 =
* Added option to show post format instead of featured image
= 1.0.0 - 2021-09-21 =
* Initial release

View file

@ -9,9 +9,17 @@
<div class="post-wrapper group">
<div class="entry-media">
<?php if( get_post_format() ) { get_template_part('inc/post-formats'); } ?>
</div>
<?php if (get_theme_mod('post-format','off') == 'on'): ?>
<div class="entry-media">
<?php if( get_post_format() ) { get_template_part('inc/post-formats'); } ?>
</div>
<?php else: ?>
<div class="entry-media">
<div class="image-container">
<?php if ( has_post_thumbnail() ) { the_post_thumbnail('gridframe-large'); } ?>
</div>
</div>
<?php endif; ?>
<header class="entry-header group">
<h1 class="entry-title"><?php the_title(); ?></h1>

View file

@ -1,7 +1,7 @@
/*
Theme Name: Gridframe
Theme URI: http://alx.media/themes/gridframe/
Version: 1.0.0
Version: 1.0.1
Requires at least: 5.0
Requires PHP: 5.6
Tested up to: 5.8