Added blog heading and subheading option

This commit is contained in:
Alexander Agnarson 2019-07-12 21:17:16 +02:00
parent 1e5d3665ab
commit 695bb13b41
6 changed files with 195 additions and 135 deletions

View file

@ -108,6 +108,33 @@ Kirki::add_field( 'minimer_theme', array(
'section' => 'general',
'default' => 'on',
) );
// Blog: Enable Blog Heading
Kirki::add_field( 'minimer_theme', array(
'type' => 'switch',
'settings' => 'heading-enable',
'label' => esc_html__( 'Enable Blog Heading', 'minimer' ),
'description' => esc_html__( 'Show heading on blog home', 'minimer' ),
'section' => 'blog',
'default' => 'off',
) );
// Blog: Heading
Kirki::add_field( 'minimer_theme', array(
'type' => 'text',
'settings' => 'blog-heading',
'label' => esc_html__( 'Heading', 'minimer' ),
'description' => esc_html__( 'Your blog heading', 'minimer' ),
'section' => 'blog',
'default' => '',
) );
// Blog: Subheading
Kirki::add_field( 'minimer_theme', array(
'type' => 'text',
'settings' => 'blog-subheading',
'label' => esc_html__( 'Subheading', 'minimer' ),
'description' => esc_html__( 'Your blog subheading', 'minimer' ),
'section' => 'blog',
'default' => '',
) );
// Blog: Use Excerpts
Kirki::add_field( 'minimer_theme', array(
'type' => 'switch',

View file

@ -2,6 +2,10 @@
<div class="content">
<?php if ( get_theme_mod('heading-enable','off') == 'on' ) : ?>
<?php get_template_part('inc/page-title'); ?>
<?php endif; ?>
<?php get_template_part('inc/front-widgets-top'); ?>
<?php if ( have_posts() ) : ?>

View file

@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Minimer\n"
"POT-Creation-Date: 2019-07-12 20:57+0200\n"
"POT-Creation-Date: 2019-07-12 21:16+0200\n"
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -87,7 +87,7 @@ msgstr ""
msgid "Normal full width sidebar"
msgstr ""
#: functions.php:162 functions/theme-options.php:280
#: functions.php:162 functions/theme-options.php:307
msgid "Footer Ads"
msgstr ""
@ -164,10 +164,10 @@ msgid "Primary Sidebar"
msgstr ""
#: functions/meta-boxes.php:31 functions/meta-boxes.php:65
#: functions/theme-options.php:479 functions/theme-options.php:489
#: functions/theme-options.php:499 functions/theme-options.php:509
#: functions/theme-options.php:519 functions/theme-options.php:529
#: functions/theme-options.php:539
#: functions/theme-options.php:506 functions/theme-options.php:516
#: functions/theme-options.php:526 functions/theme-options.php:536
#: functions/theme-options.php:546 functions/theme-options.php:556
#: functions/theme-options.php:566
msgid "Select a sidebar"
msgstr ""
@ -245,531 +245,555 @@ msgid "Enable or disable the recommended plugins notice"
msgstr ""
#: functions/theme-options.php:115
msgid "Enable Excerpts"
msgid "Enable Blog Heading"
msgstr ""
#: functions/theme-options.php:116
msgid "Show excerpt instead of full post"
msgid "Show heading on blog home"
msgstr ""
#: functions/theme-options.php:124
msgid "Excerpt Length"
msgid "Heading"
msgstr ""
#: functions/theme-options.php:125
msgid "Your blog heading"
msgstr ""
#: functions/theme-options.php:133
msgid "Subheading"
msgstr ""
#: functions/theme-options.php:134
msgid "Your blog subheading"
msgstr ""
#: functions/theme-options.php:142
msgid "Enable Excerpts"
msgstr ""
#: functions/theme-options.php:143
msgid "Show excerpt instead of full post"
msgstr ""
#: functions/theme-options.php:151
msgid "Excerpt Length"
msgstr ""
#: functions/theme-options.php:152
msgid "Max number of words. Set it to 0 to disable."
msgstr ""
#: functions/theme-options.php:138
#: functions/theme-options.php:165
msgid "Featured Posts"
msgstr ""
#: functions/theme-options.php:139
#: functions/theme-options.php:166
msgid "To show featured posts in the slider AND the content below"
msgstr ""
#: functions/theme-options.php:147
#: functions/theme-options.php:174
msgid "Featured Category"
msgstr ""
#: functions/theme-options.php:148
#: functions/theme-options.php:175
msgid ""
"By not selecting a category, it will show your latest post(s) from all "
"categories"
msgstr ""
#: functions/theme-options.php:152
#: functions/theme-options.php:179
msgid "Select a category"
msgstr ""
#: functions/theme-options.php:158
#: functions/theme-options.php:185
msgid "Featured Post Count"
msgstr ""
#: functions/theme-options.php:159
#: functions/theme-options.php:186
msgid "Max number of featured posts to display. Set it to 0 to disable"
msgstr ""
#: functions/theme-options.php:172
#: functions/theme-options.php:199
msgid "Frontpage Widgets Top"
msgstr ""
#: functions/theme-options.php:173 functions/theme-options.php:182
#: functions/theme-options.php:200 functions/theme-options.php:209
msgid "2 columns of widgets"
msgstr ""
#: functions/theme-options.php:181
#: functions/theme-options.php:208
msgid "Frontpage Widgets Bottom"
msgstr ""
#: functions/theme-options.php:190
#: functions/theme-options.php:217
msgid "Comment Count"
msgstr ""
#: functions/theme-options.php:191
#: functions/theme-options.php:218
msgid "Comment count on bubbles"
msgstr ""
#: functions/theme-options.php:199
#: functions/theme-options.php:226
msgid "Single - Author Bio"
msgstr ""
#: functions/theme-options.php:200
#: functions/theme-options.php:227
msgid "Shows post author description, if it exists"
msgstr ""
#: functions/theme-options.php:208
#: functions/theme-options.php:235
msgid "Single - Related Posts"
msgstr ""
#: functions/theme-options.php:209
#: functions/theme-options.php:236
msgid "Shows randomized related articles below the post"
msgstr ""
#: functions/theme-options.php:213 functions/theme-options.php:227
#: functions/theme-options.php:240 functions/theme-options.php:254
msgid "Disable"
msgstr ""
#: functions/theme-options.php:214
#: functions/theme-options.php:241
msgid "Related by categories"
msgstr ""
#: functions/theme-options.php:215
#: functions/theme-options.php:242
msgid "Related by tags"
msgstr ""
#: functions/theme-options.php:222
#: functions/theme-options.php:249
msgid "Single - Post Navigation"
msgstr ""
#: functions/theme-options.php:223
#: functions/theme-options.php:250
msgid "Shows links to the next and previous article"
msgstr ""
#: functions/theme-options.php:228
#: functions/theme-options.php:255
msgid "Below content"
msgstr ""
#: functions/theme-options.php:235
#: functions/theme-options.php:262
msgid "Header Search"
msgstr ""
#: functions/theme-options.php:236
#: functions/theme-options.php:263
msgid "Header search button"
msgstr ""
#: functions/theme-options.php:244
#: functions/theme-options.php:271
msgid "Header Social Links"
msgstr ""
#: functions/theme-options.php:245 functions/theme-options.php:306
#: functions/theme-options.php:272 functions/theme-options.php:333
msgid "Social link icon buttons"
msgstr ""
#: functions/theme-options.php:253
#: functions/theme-options.php:280
msgid "Profile Image"
msgstr ""
#: functions/theme-options.php:254
#: functions/theme-options.php:281
msgid "Minimum width of 320px"
msgstr ""
#: functions/theme-options.php:262
#: functions/theme-options.php:289
msgid "Profile Name"
msgstr ""
#: functions/theme-options.php:263
#: functions/theme-options.php:290
msgid "Your name appears below the image"
msgstr ""
#: functions/theme-options.php:271
#: functions/theme-options.php:298
msgid "Profile Description"
msgstr ""
#: functions/theme-options.php:272
#: functions/theme-options.php:299
msgid "A short description of you"
msgstr ""
#: functions/theme-options.php:281
#: functions/theme-options.php:308
msgid "Footer widget ads area"
msgstr ""
#: functions/theme-options.php:289
#: functions/theme-options.php:316
msgid "Footer Widget Columns"
msgstr ""
#: functions/theme-options.php:290
#: functions/theme-options.php:317
msgid "Select columns to enable footer widgets. Recommended number: 3"
msgstr ""
#: functions/theme-options.php:305
#: functions/theme-options.php:332
msgid "Footer Social Links"
msgstr ""
#: functions/theme-options.php:314
#: functions/theme-options.php:341
msgid "Footer Logo"
msgstr ""
#: functions/theme-options.php:315
#: functions/theme-options.php:342
msgid "Upload your custom logo image"
msgstr ""
#: functions/theme-options.php:323
#: functions/theme-options.php:350
msgid "Footer Copyright"
msgstr ""
#: functions/theme-options.php:324
#: functions/theme-options.php:351
msgid "Replace the footer copyright text"
msgstr ""
#: functions/theme-options.php:332
#: functions/theme-options.php:359
msgid "Footer Credit"
msgstr ""
#: functions/theme-options.php:333
#: functions/theme-options.php:360
msgid "Footer credit text"
msgstr ""
#: functions/theme-options.php:341
#: functions/theme-options.php:368
msgid "Global Layout"
msgstr ""
#: functions/theme-options.php:342
#: functions/theme-options.php:369
msgid "Other layouts will override this option if they are set"
msgstr ""
#: functions/theme-options.php:355 functions/theme-options.php:474
#: functions/theme-options.php:382 functions/theme-options.php:501
msgid "Home"
msgstr ""
#: functions/theme-options.php:356
#: functions/theme-options.php:383
msgid "(is_home) Posts homepage layout"
msgstr ""
#: functions/theme-options.php:370 functions/theme-options.php:484
#: functions/theme-options.php:397 functions/theme-options.php:511
msgid "Single"
msgstr ""
#: functions/theme-options.php:371
#: functions/theme-options.php:398
msgid ""
"(is_single) Single post layout - If a post has a set layout, it will "
"override this."
msgstr ""
#: functions/theme-options.php:385 functions/theme-options.php:494
#: functions/theme-options.php:412 functions/theme-options.php:521
msgid "Archive"
msgstr ""
#: functions/theme-options.php:386
#: functions/theme-options.php:413
msgid "(is_archive) Category, date, tag and author archive layout"
msgstr ""
#: functions/theme-options.php:400 functions/theme-options.php:504
#: functions/theme-options.php:427 functions/theme-options.php:531
msgid "Archive - Category"
msgstr ""
#: functions/theme-options.php:401
#: functions/theme-options.php:428
msgid "(is_category) Category archive layout"
msgstr ""
#: functions/theme-options.php:415 functions/theme-options.php:514
#: functions/theme-options.php:442 functions/theme-options.php:541
msgid "Search"
msgstr ""
#: functions/theme-options.php:416
#: functions/theme-options.php:443
msgid "(is_search) Search page layout"
msgstr ""
#: functions/theme-options.php:430 functions/theme-options.php:524
#: functions/theme-options.php:457 functions/theme-options.php:551
msgid "Error 404"
msgstr ""
#: functions/theme-options.php:431
#: functions/theme-options.php:458
msgid "(is_404) Error 404 page layout"
msgstr ""
#: functions/theme-options.php:445 functions/theme-options.php:534
#: functions/theme-options.php:472 functions/theme-options.php:561
msgid "Default Page"
msgstr ""
#: functions/theme-options.php:446
#: functions/theme-options.php:473
msgid ""
"(is_page) Default page layout - If a page has a set layout, it will override "
"this."
msgstr ""
#: functions/theme-options.php:475
#: functions/theme-options.php:502
msgid "(is_home) Primary"
msgstr ""
#: functions/theme-options.php:485
#: functions/theme-options.php:512
msgid ""
"(is_single) Primary - If a single post has a unique sidebar, it will "
"override this."
msgstr ""
#: functions/theme-options.php:495
#: functions/theme-options.php:522
msgid "(is_archive) Primary"
msgstr ""
#: functions/theme-options.php:505
#: functions/theme-options.php:532
msgid "(is_category) Primary"
msgstr ""
#: functions/theme-options.php:515
#: functions/theme-options.php:542
msgid "(is_search) Primary"
msgstr ""
#: functions/theme-options.php:525
#: functions/theme-options.php:552
msgid "(is_404) Primary"
msgstr ""
#: functions/theme-options.php:535
#: functions/theme-options.php:562
msgid ""
"(is_page) Primary - If a page has a unique sidebar, it will override this."
msgstr ""
#: functions/theme-options.php:548
#: functions/theme-options.php:575
msgid "Create Social Links"
msgstr ""
#: functions/theme-options.php:549
#: functions/theme-options.php:576
msgid "Create and organize your social links"
msgstr ""
#: functions/theme-options.php:551
#: functions/theme-options.php:578
msgid "Font Awesome names:"
msgstr ""
#: functions/theme-options.php:551 functions/theme-options.php:568
#: functions/theme-options.php:578 functions/theme-options.php:595
msgid "View All"
msgstr ""
#: functions/theme-options.php:554
#: functions/theme-options.php:581
msgid "social link"
msgstr ""
#: functions/theme-options.php:561
#: functions/theme-options.php:588
msgid "Title"
msgstr ""
#: functions/theme-options.php:562
#: functions/theme-options.php:589
msgid "Ex: Facebook"
msgstr ""
#: functions/theme-options.php:567
#: functions/theme-options.php:594
msgid "Icon Name"
msgstr ""
#: functions/theme-options.php:568
#: functions/theme-options.php:595
msgid "Font Awesome icons. Ex: fa-facebook "
msgstr ""
#: functions/theme-options.php:573
#: functions/theme-options.php:600
msgid "Link"
msgstr ""
#: functions/theme-options.php:574
#: functions/theme-options.php:601
msgid "Enter the full url for your icon button"
msgstr ""
#: functions/theme-options.php:579
#: functions/theme-options.php:606
msgid "Icon Color"
msgstr ""
#: functions/theme-options.php:580
#: functions/theme-options.php:607
msgid "Set a unique color for your icon (optional)"
msgstr ""
#: functions/theme-options.php:585
#: functions/theme-options.php:612
msgid "Open in new window"
msgstr ""
#: functions/theme-options.php:594
#: functions/theme-options.php:621
msgid "Dynamic Styles"
msgstr ""
#: functions/theme-options.php:595
#: functions/theme-options.php:622
msgid "Turn on to use the styling options below"
msgstr ""
#: functions/theme-options.php:603
#: functions/theme-options.php:630
msgid "Boxed Layout"
msgstr ""
#: functions/theme-options.php:604
#: functions/theme-options.php:631
msgid "Use a boxed layout"
msgstr ""
#: functions/theme-options.php:612
#: functions/theme-options.php:639
msgid "Font"
msgstr ""
#: functions/theme-options.php:613
#: functions/theme-options.php:640
msgid "Select font for the theme"
msgstr ""
#: functions/theme-options.php:617
#: functions/theme-options.php:644
msgid "Titillium Web, Latin (Self-hosted)"
msgstr ""
#: functions/theme-options.php:618
#: functions/theme-options.php:645
msgid "Titillium Web, Latin-Ext"
msgstr ""
#: functions/theme-options.php:619
#: functions/theme-options.php:646
msgid "Droid Serif, Latin"
msgstr ""
#: functions/theme-options.php:620
#: functions/theme-options.php:647
msgid "Source Sans Pro, Latin-Ext"
msgstr ""
#: functions/theme-options.php:621
#: functions/theme-options.php:648
msgid "Lato, Latin"
msgstr ""
#: functions/theme-options.php:622
#: functions/theme-options.php:649
msgid "Raleway, Latin"
msgstr ""
#: functions/theme-options.php:623
#: functions/theme-options.php:650
msgid "Ubuntu, Latin-Ext"
msgstr ""
#: functions/theme-options.php:624
#: functions/theme-options.php:651
msgid "Ubuntu, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:625
#: functions/theme-options.php:652
msgid "Roboto, Latin-Ext"
msgstr ""
#: functions/theme-options.php:626
#: functions/theme-options.php:653
msgid "Roboto, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:627
#: functions/theme-options.php:654
msgid "Roboto Condensed, Latin-Ext"
msgstr ""
#: functions/theme-options.php:628
#: functions/theme-options.php:655
msgid "Roboto Condensed, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:629
#: functions/theme-options.php:656
msgid "Roboto Slab, Latin-Ext"
msgstr ""
#: functions/theme-options.php:630
#: functions/theme-options.php:657
msgid "Roboto Slab, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:631
#: functions/theme-options.php:658
msgid "Playfair Display, Latin-Ext"
msgstr ""
#: functions/theme-options.php:632
#: functions/theme-options.php:659
msgid "Playfair Display, Latin / Cyrillic"
msgstr ""
#: functions/theme-options.php:633
#: functions/theme-options.php:660
msgid "Open Sans, Latin-Ext"
msgstr ""
#: functions/theme-options.php:634
#: functions/theme-options.php:661
msgid "Open Sans, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:635
#: functions/theme-options.php:662
msgid "PT Serif, Latin-Ext"
msgstr ""
#: functions/theme-options.php:636
#: functions/theme-options.php:663
msgid "PT Serif, Latin / Cyrillic-Ext"
msgstr ""
#: functions/theme-options.php:637
#: functions/theme-options.php:664
msgid "Arial"
msgstr ""
#: functions/theme-options.php:638
#: functions/theme-options.php:665
msgid "Georgia"
msgstr ""
#: functions/theme-options.php:639
#: functions/theme-options.php:666
msgid "Verdana"
msgstr ""
#: functions/theme-options.php:640
#: functions/theme-options.php:667
msgid "Tahoma"
msgstr ""
#: functions/theme-options.php:647
#: functions/theme-options.php:674
msgid "Website Max-width"
msgstr ""
#: functions/theme-options.php:648
#: functions/theme-options.php:675
msgid "Max-width of the container. Use default for full width."
msgstr ""
#: functions/theme-options.php:661
#: functions/theme-options.php:688
msgid "Content Max-width"
msgstr ""
#: functions/theme-options.php:662
#: functions/theme-options.php:689
msgid "Max-width of the website content"
msgstr ""
#: functions/theme-options.php:675
#: functions/theme-options.php:702
msgid "Content Media Max-width"
msgstr ""
#: functions/theme-options.php:676
#: functions/theme-options.php:703
msgid "Max-width of the content media"
msgstr ""
#: functions/theme-options.php:689
#: functions/theme-options.php:716
msgid "Link Color"
msgstr ""
#: functions/theme-options.php:697
#: functions/theme-options.php:724
msgid "Sidebar Color"
msgstr ""
#: functions/theme-options.php:705
#: functions/theme-options.php:732
msgid "Header Line Color"
msgstr ""
#: functions/theme-options.php:713
#: functions/theme-options.php:740
msgid "Header Line Height"
msgstr ""
#: functions/theme-options.php:726
#: functions/theme-options.php:753
msgid "Header Color"
msgstr ""
#: functions/theme-options.php:734
#: functions/theme-options.php:761
msgid "Comment Bubble Color"
msgstr ""
#: functions/theme-options.php:742
#: functions/theme-options.php:769
msgid "Category Label Color"
msgstr ""
#: functions/theme-options.php:750
#: functions/theme-options.php:777
msgid "Footer Menu Color"
msgstr ""
#: functions/theme-options.php:758
#: functions/theme-options.php:785
msgid "Footer Color"
msgstr ""
#: functions/theme-options.php:766
#: functions/theme-options.php:793
msgid "Header Logo Image Max-height"
msgstr ""
#: functions/theme-options.php:767
#: functions/theme-options.php:794
msgid ""
"Your logo image should have the double height of this to be high resolution"
msgstr ""

View file

@ -73,6 +73,7 @@ Sidebar images
= 1.0.7 - 2019-07-12 =
* Added blog excerpt option
* Added blog heading and subheading option
* Added footer menu color styling option
= 1.0.6 - 2019-07-12 =

View file

@ -53,6 +53,7 @@
.entry-header .entry-title { font-size: 42px; }
.page-title h1,
.page-title h2,
.page-title h3,
.page-title h4 { font-size: 20px; }
.page-title .notebox { font-size: 16px; }
@ -190,6 +191,7 @@
.sidebar .widget { padding-left: 15px!important; padding-right: 15px!important; }
.notebox { margin-bottom: 15px; }
.page-title h1,
.page-title h2,
.page-title h3,
.page-title h4 { font-size: 18px; }
.page-title .notebox { font-size: 15px; }

View file

@ -436,8 +436,10 @@ box-shadow: inset 0 1px 1px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.03); }
.page-title-inner { max-width: 740px; padding: 0; margin: 0 auto; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.page-title .fa { margin-right: 12px; }
.page-title h1,
.page-title h2,
.page-title h3,
.page-title h4 { font-size: 24px; line-height: 1.4em; font-weight: 600; }
.page-title span { color: #999; }
.page-title .notebox { font-size: 19px; font-weight: 300; margin-top: 10px; }
.page-title .notebox p { margin-bottom: 20px; }