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', 'section' => 'blog',
'default' => 'on', '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 // Blog: Single - Authorbox
Kirki::add_field( 'gridframe_theme', array( Kirki::add_field( 'gridframe_theme', array(
'type' => 'switch', 'type' => 'switch',

View file

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

View file

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

View file

@ -9,9 +9,17 @@
<div class="post-wrapper group"> <div class="post-wrapper group">
<?php if (get_theme_mod('post-format','off') == 'on'): ?>
<div class="entry-media"> <div class="entry-media">
<?php if( get_post_format() ) { get_template_part('inc/post-formats'); } ?> <?php if( get_post_format() ) { get_template_part('inc/post-formats'); } ?>
</div> </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"> <header class="entry-header group">
<h1 class="entry-title"><?php the_title(); ?></h1> <h1 class="entry-title"><?php the_title(); ?></h1>

View file

@ -1,7 +1,7 @@
/* /*
Theme Name: Gridframe Theme Name: Gridframe
Theme URI: http://alx.media/themes/gridframe/ Theme URI: http://alx.media/themes/gridframe/
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.8 Tested up to: 5.8