From 3225714dfac33bef7f3946c7818684b6ed4d2988 Mon Sep 17 00:00:00 2001 From: Alexander Agnarson Date: Tue, 19 Mar 2019 17:49:21 +0100 Subject: [PATCH] 1.0.3 --- functions/dynamic-styles.php | 13 +++++++++++++ functions/theme-options.php | 8 ++++++++ languages/curver.pot | 14 +++++++++----- readme.txt | 5 ++++- style.css | 2 +- 5 files changed, 35 insertions(+), 7 deletions(-) diff --git a/functions/dynamic-styles.php b/functions/dynamic-styles.php index da6adab..50b395f 100644 --- a/functions/dynamic-styles.php +++ b/functions/dynamic-styles.php @@ -147,6 +147,19 @@ a, '."\n"; } + // header color + if ( get_theme_mod('color-header','#000000') != '#000000' ) { + $styles .= ' +#header-inner-inner-inner { background-color: '.esc_attr( get_theme_mod('color-header') ).'; } +@media only screen and (min-width: 720px) { + #nav-header .nav > li.current_page_item > a:before, + #nav-header .nav > li.current-menu-item > a:before, + #nav-header .nav > li.current-menu-ancestor > a:before, + #nav-header .nav > li.current-post-parent > a:before { border-top: 8px solid '.esc_attr( get_theme_mod('color-header') ).'!important; } +} +.site-title { border-bottom-color: rgba(255,255,255,0.1)!important; } + '."\n"; + } // gradient left if ( get_theme_mod('gradient-left','#da1b60') != '#da1b60' ) { $styles .= ' diff --git a/functions/theme-options.php b/functions/theme-options.php index 6f38760..ba20e89 100644 --- a/functions/theme-options.php +++ b/functions/theme-options.php @@ -685,6 +685,14 @@ Kirki::add_field( 'curver_theme', array( 'section' => 'styling', 'default' => '#ed542f', ) ); +// Styling: Header Color +Kirki::add_field( 'curver_theme', array( + 'type' => 'color', + 'settings' => 'color-header', + 'label' => esc_html__( 'Header Color', 'curver' ), + 'section' => 'styling', + 'default' => '#000000', +) ); // Styling: Gradient Left Kirki::add_field( 'curver_theme', array( 'type' => 'color', diff --git a/languages/curver.pot b/languages/curver.pot index 9205c32..ac3fe3c 100644 --- a/languages/curver.pot +++ b/languages/curver.pot @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Curver\n" -"POT-Creation-Date: 2019-02-17 14:26+0100\n" +"POT-Creation-Date: 2019-03-19 17:47+0100\n" "PO-Revision-Date: 2018-09-21 21:27+0100\n" "Last-Translator: \n" "Language-Team: \n" @@ -750,23 +750,27 @@ msgid "Primary Color" msgstr "" #: functions/theme-options.php:692 -msgid "Gradient Color Left Top" +msgid "Header Color" msgstr "" #: functions/theme-options.php:700 -msgid "Gradient Color Right Bottom" +msgid "Gradient Color Left Top" msgstr "" #: functions/theme-options.php:708 +msgid "Gradient Color Right Bottom" +msgstr "" + +#: functions/theme-options.php:716 msgid "Header Logo Image Max-height" msgstr "" -#: functions/theme-options.php:709 +#: functions/theme-options.php:717 msgid "" "Your logo image should have the double height of this to be high resolution" msgstr "" -#: functions/theme-options.php:722 +#: functions/theme-options.php:730 msgid "Background Color" msgstr "" diff --git a/readme.txt b/readme.txt index 0cbddbe..a89d97f 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: alxmedia Requires at least: 5.0 Tested up to: 5.0 -Version: 1.0.2 +Version: 1.0.3 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0 Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background @@ -79,6 +79,9 @@ Sidebar images == Changelog == += 1.0.3 - 2019-03-19 = +* Added styling option to change header color + = 1.0.2 - 2019-03-11 = * Updated to Kirki 3.0.38 * Changed all alxmedia.se links to alx.media diff --git a/style.css b/style.css index 3326392..e45fbe6 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,7 @@ /* Theme Name: Curver Theme URI: http://alx.media/themes/curver/ -Version: 1.0.2 +Version: 1.0.3 Description: Curver is a flexible personal blog theme with plenty of options. Optimized for all devices, this theme will stand out with a unique colorful curved header style with a header profile image, name and description. It includes a featured posts slider and two different blog layouts: standard and list. Set the theme to any width and accent color you wish. Use a sidebar to the right, or disable it entirely - it is all up to you. Author: Alexander Agnarson Author URI: http://alx.media