Skip to content

Commit 5dc4521

Browse files
Merge pull request #228 from MachoThemes/master
v 2.4.4 update
2 parents 55c5a85 + c933383 commit 5dc4521

File tree

5 files changed

+195
-10
lines changed

5 files changed

+195
-10
lines changed

functions.php

+63
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,69 @@ function sparkling_remove_gallery_css( $css ) {
243243

244244
add_filter( 'gallery_style', 'sparkling_remove_gallery_css' );
245245

246+
247+
function sparkling_archive_pages_title($title) {
248+
if (is_tag()) {
249+
$template = of_get_option('tag_title');
250+
if (empty($template)) {
251+
return $title;
252+
}
253+
else {
254+
return sprintf($template, single_tag_title('', false));
255+
}
256+
}
257+
elseif (is_category()) {
258+
$template = of_get_option('category_title');
259+
if (empty($template)) {
260+
return $title;
261+
}
262+
else {
263+
return sprintf($template, single_cat_title('', false));
264+
}
265+
}
266+
elseif (is_author()) {
267+
$template = of_get_option('author_title');
268+
if (empty($template)) {
269+
return $title;
270+
}
271+
else {
272+
return sprintf($template, get_the_author());
273+
}
274+
}
275+
elseif (is_year()) {
276+
$template = of_get_option('year_title');
277+
if (empty($template)) {
278+
return $title;
279+
}
280+
else {
281+
return sprintf($template, get_the_date(_x('Y', 'yearly archives date format')));
282+
}
283+
}
284+
elseif (is_month()) {
285+
$template = of_get_option('month_title');
286+
if (empty($template)) {
287+
return $title;
288+
}
289+
else {
290+
return sprintf($template, get_the_date(_x('F Y', 'monthly archives date format')));
291+
}
292+
}
293+
elseif (is_day()) {
294+
$template = of_get_option('day_title');
295+
if (empty($template)) {
296+
return $title;
297+
}
298+
else {
299+
return sprintf($template, get_the_date(_x('F j, Y', 'daily archives date format')));
300+
}
301+
}
302+
else {
303+
return $title;
304+
}
305+
}
306+
307+
add_filter('get_the_archive_title', 'sparkling_archive_pages_title');
308+
246309
/**
247310
* Enqueue scripts and styles.
248311
*/

inc/customizer.php

+113-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function sparkling_customizer( $wp_customize ) {
8383
/* Sparkling Main Options */
8484
$wp_customize->add_section(
8585
'sparkling_slider_options', array(
86-
'title' => __( 'Slider options', 'sparkling' ),
86+
'title' => __( 'Slider Options', 'sparkling' ),
8787
'priority' => 31,
8888
'panel' => 'sparkling_main_options',
8989
)
@@ -161,7 +161,7 @@ function sparkling_customizer( $wp_customize ) {
161161

162162
$wp_customize->add_section(
163163
'sparkling_layout_options', array(
164-
'title' => __( 'Layout options', 'sparkling' ),
164+
'title' => __( 'Layout Options', 'sparkling' ),
165165
'priority' => 31,
166166
'panel' => 'sparkling_main_options',
167167
)
@@ -446,7 +446,7 @@ function sparkling_customizer( $wp_customize ) {
446446
);
447447
$wp_customize->add_control(
448448
'sparkling[main_body_typography][subset]', array(
449-
'label' => __( 'Font susbet', 'sparkling' ),
449+
'label' => __( 'Font Subset', 'sparkling' ),
450450
'section' => 'sparkling_typography_options',
451451
'description' => __( 'Enter the Google fonts subset', 'sparkling' ),
452452
'type' => 'text',
@@ -815,6 +815,116 @@ function sparkling_customizer( $wp_customize ) {
815815
)
816816
);
817817

818+
/* Archive pages settings */
819+
$wp_customize->add_section(
820+
'sparkling_archive_section', array(
821+
'title' => esc_html__( 'Archive Pages', 'sparkling' ),
822+
'priority' => 50,
823+
'panel' => 'sparkling_main_options',
824+
)
825+
);
826+
827+
$wp_customize->add_setting(
828+
'sparkling[tag_title]', array(
829+
'default' => '',
830+
'type' => 'option',
831+
'sanitize_callback' => 'esc_html',
832+
)
833+
);
834+
835+
$wp_customize->add_control(
836+
'sparkling[tag_title]', array(
837+
'label' => __( 'Tag Page Title', 'sparkling' ),
838+
'section' => 'sparkling_archive_section',
839+
'description' => __( 'The headline for your tag pages. You can use %s as a placeholder for the tag. Leave empty for default.', 'sparkling' ),
840+
'type' => 'text',
841+
)
842+
);
843+
844+
$wp_customize->add_setting(
845+
'sparkling[category_title]', array(
846+
'default' => '',
847+
'type' => 'option',
848+
'sanitize_callback' => 'esc_html',
849+
)
850+
);
851+
852+
$wp_customize->add_control(
853+
'sparkling[category_title]', array(
854+
'label' => __( 'Category Page Title', 'sparkling' ),
855+
'section' => 'sparkling_archive_section',
856+
'description' => __( 'The headline for your category pages. You can use %s as a placeholder for the category. Leave empty for default.', 'sparkling' ),
857+
'type' => 'text',
858+
)
859+
);
860+
861+
$wp_customize->add_setting(
862+
'sparkling[author_title]', array(
863+
'default' => '',
864+
'type' => 'option',
865+
'sanitize_callback' => 'esc_html',
866+
)
867+
);
868+
869+
$wp_customize->add_control(
870+
'sparkling[author_title]', array(
871+
'label' => __( 'Author Page Title', 'sparkling' ),
872+
'section' => 'sparkling_archive_section',
873+
'description' => __( 'The headline for your author pages. You can use %s as a placeholder for the author\'s name. Leave empty for default.', 'sparkling' ),
874+
'type' => 'text',
875+
)
876+
);
877+
878+
$wp_customize->add_setting(
879+
'sparkling[year_title]', array(
880+
'default' => '',
881+
'type' => 'option',
882+
'sanitize_callback' => 'esc_html',
883+
)
884+
);
885+
886+
$wp_customize->add_control(
887+
'sparkling[year_title]', array(
888+
'label' => __( 'Year Page Title', 'sparkling' ),
889+
'section' => 'sparkling_archive_section',
890+
'description' => __( 'The headline for your year pages. You can use %s as a placeholder for the year. Leave empty for default.', 'sparkling' ),
891+
'type' => 'text',
892+
)
893+
);
894+
895+
$wp_customize->add_setting(
896+
'sparkling[month_title]', array(
897+
'default' => '',
898+
'type' => 'option',
899+
'sanitize_callback' => 'esc_html',
900+
)
901+
);
902+
903+
$wp_customize->add_control(
904+
'sparkling[month_title]', array(
905+
'label' => __( 'Month Page Title', 'sparkling' ),
906+
'section' => 'sparkling_archive_section',
907+
'description' => __( 'The headline for your month pages. You can use %s as a placeholder for the month. Leave empty for default.', 'sparkling' ),
908+
'type' => 'text',
909+
)
910+
);
911+
912+
$wp_customize->add_setting(
913+
'sparkling[day_title]', array(
914+
'default' => '',
915+
'type' => 'option',
916+
'sanitize_callback' => 'esc_html',
917+
)
918+
);
919+
920+
$wp_customize->add_control(
921+
'sparkling[day_title]', array(
922+
'label' => __( 'Day Page Title', 'sparkling' ),
923+
'section' => 'sparkling_archive_section',
924+
'description' => __( 'The headline for your day pages. You can use %s as a placeholder for the day. Leave empty for default.', 'sparkling' ),
925+
'type' => 'text',
926+
)
927+
);
818928
}
819929

820930
add_action( 'customize_register', 'sparkling_customizer' );

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sparkling",
33
"main": "Gruntfile.js",
4-
"version": "2.4.3",
4+
"version": "2.4.4",
55
"homepage": "https://www.colorlib.com",
66
"author": "Colorlib",
77
"license": "GPL v3",

readme.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
Theme Name: Sparkling<br>
44
Theme URI: http://colorlib.com/wp/sparkling/<br>
5-
Version: 2.3.4<br>
6-
Tested up to: WP 4.8<br>
5+
Version: 2.4.4<br>
6+
Tested up to: WP 4.9<br>
77

88
Author: Aigars Silkalns<br>
99
Author URI: http://colorlib.com/wp/<br>
1010
License: GNU General Public License v3.0
1111
License URI: http://www.gnu.org/licenses/gpl.html
1212
-------------------------------------------------------
13-
Sparkling theme, Copyright 2014-2017 colorlib.com
13+
Sparkling theme, Copyright 2014-2018 colorlib.com
1414
Sparkling WordPress theme is distributed under the terms of the GNU GPL
1515
Sparkling is based on Underscores http://underscores.me/, (C) 2012-2017 Automattic, Inc.
1616
-------------------------------------------------------
@@ -64,6 +64,9 @@ Theme documentation is available on http://colorlib.com/wp/support/sparkling
6464

6565
# Changelog
6666

67+
# 2.4.4
68+
* Removed subject tags, can't keep more than 3 as per w.org rules
69+
6770
# 2.4.3
6871
* Fixed a few more bugs with FA5 & missing icons
6972

style.css

+12-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Theme URI: http://colorlib.com/wp/themes/sparkling
44
Author: Colorlib
55
Author URI: http://colorlib.com/
66
Description: Sparkling is a clean minimal and responsive WordPress theme well suited for travel, health, business, finance, portfolio, design, art, photography, personal, ecommerce and any other creative websites and blogs. Developed using Bootstrap 3 that makes it mobile and tablets friendly. Theme comes with full-screen slider, social icon integration, author bio, popular posts widget and improved category widget. Sparkling incorporates latest web standards such as HTML5 and CSS3 and is SEO friendly thanks to its clean structure and codebase. It has dozens of Theme Options based on WordPress Customizer to change theme layout, colors, fonts, slider settings and much more. Theme is also translation and multilingual ready, compatible with WPML and is available in Spanish, French, Dutch, Polish, Russian, German, Brazilian Portuguese, Portuguese (Portugal), Persian (Iranian language), Romanian, Turkish, Bulgarian, Japanese, Lithuanian, Czech, Ukrainian, Traditional Chinese, Simplified Chinese, Indonesian, Estonian, Spanish (Argentina), Hungarian and Italian. Sparkling is a free WordPress theme with premium functionality and design. Theme is ecommerce ready thanks to its WooCommerce integration. Now theme is optimized to work with bbPress, Contact Form 7, Jetpack, WooCommerce and other popular free and premium plugins. Lately we introduced a sticky/fixed navigation that you can enable or disable via WordPress Customizer.
7-
Version: 2.4.3
7+
Version: 2.4.4
88
License: GNU General Public License v2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Text Domain: sparkling
1111
Domain Path: /languages/
12-
Tags: grid-layout, footer-widgets, blog, education, entertainment, food-and-drink, news, photography, portfolio, e-commerce
12+
Tags: blog, news, e-commerce
1313
1414
1515
This theme, like WordPress, is licensed under the GPL.
@@ -2013,6 +2013,10 @@ p.logged-in-as {
20132013
background-color: #4183C4 !important;
20142014
}
20152015

2016+
#menu-social li a[href*="gitlab.com"]:hover {
2017+
background-color: #fc9403 !important;
2018+
}
2019+
20162020
#menu-social li a[href*="stackoverflow.com"]:hover {
20172021
background-color: #F48024 !important;
20182022
}
@@ -2061,6 +2065,11 @@ p.logged-in-as {
20612065
content: "\f09b"
20622066
}
20632067

2068+
#menu-social li a[href*="gitlab.com"]:before {
2069+
font-family: 'Font Awesome\ 5 Brands';
2070+
content: "\f296"
2071+
}
2072+
20642073
#menu-social li a[href*="stackoverflow.com"]:before {
20652074
font-family: 'Font Awesome\ 5 Brands';
20662075
content: "\f16c"
@@ -2447,4 +2456,4 @@ button[type=submit],
24472456
left: 50%;
24482457
transform: translateX(-50%);
24492458
width: auto;
2450-
}
2459+
}

0 commit comments

Comments
 (0)