Skip to content

Commit

Permalink
1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign committed May 15, 2019
1 parent 553997e commit e0ba50b
Show file tree
Hide file tree
Showing 15 changed files with 119 additions and 34 deletions.
8 changes: 8 additions & 0 deletions assets/images/svg/social-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Reykjavik Changelog

## 1.5.3

* **Add**: Adding WhatsApp and Google social icon
* **Update**: Implementing WordPress 5.2 code updates
* **Fix**: Preventing PHP error after theme activation

### Files changed:

changelog.md
header.php
readme.txt
style.css
assets/images/svg/social-icons.svg
includes/frontend/class-header.php
includes/frontend/class-menu.php
includes/welcome/welcome.php
templates/parts/admin/notice-welcome.php
templates/parts/admin/welcome-demo.php
templates/parts/admin/welcome-footer.php
templates/parts/admin/welcome-header.php
templates/parts/admin/welcome-promo.php
templates/parts/admin/welcome-quickstart.php
templates/parts/admin/welcome-wordpress.php


## 1.5.2

* **Update**: Custom typography info in theme options
Expand Down
8 changes: 7 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.5.2
* @version 1.5.3
*/


Expand Down Expand Up @@ -40,6 +40,12 @@

<?php

if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
} else {
do_action( 'wp_body_open' );
}

do_action( 'tha_body_top' );

if ( Reykjavik_Header::is_enabled() ) {
Expand Down
10 changes: 2 additions & 8 deletions includes/frontend/class-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.5.2
* @version 1.5.3
*
* Contents:
*
Expand Down Expand Up @@ -336,7 +336,7 @@ public static function site_branding() {
* HTML Body classes
*
* @since 1.0.0
* @version 1.3.0
* @version 1.5.3
*
* @param array $classes
*/
Expand Down Expand Up @@ -390,12 +390,6 @@ public static function body_class( $classes = array() ) {

$post_id = get_the_ID();

// Privacy Policy page

if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post_id ) {
$classes[] = 'page-privacy-policy';
}

// Has featured image?
if ( has_post_thumbnail() ) {
Expand Down
8 changes: 5 additions & 3 deletions includes/frontend/class-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.5.0
* @version 1.5.3
*
* Contents:
*
Expand Down Expand Up @@ -438,7 +438,7 @@ public static function get_menu_args_social( $items_wrap = '<ul data-id="%1$s" c
* Social links supported icons.
*
* @since 1.0.0
* @version 1.3.1
* @version 1.5.3
*/
public static function social_links_icons() {

Expand All @@ -456,7 +456,8 @@ public static function social_links_icons() {
'facebook.com' => 'facebook',
'flickr.com' => 'flickr',
'foursquare.com' => 'foursquare',
'plus.google.com' => 'google-plus',
'plus.google.' => 'google-plus',
'google.' => 'google',
'github.com' => 'github',
'instagram.com' => 'instagram',
'linkedin.com' => 'linkedin',
Expand Down Expand Up @@ -486,6 +487,7 @@ public static function social_links_icons() {
'vimeo.com' => 'vimeo',
'vine.co' => 'vine',
'vk.com' => 'vk',
'wa.me' => 'whatsapp',
'wordpress.org' => 'wordpress',
'wordpress.com' => 'wordpress',
'xing.com' => 'xing',
Expand Down
5 changes: 3 additions & 2 deletions includes/welcome/welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.3.0
* @version 1.5.3
*
* Contents:
*
Expand All @@ -24,7 +24,8 @@

if (
! is_admin()
|| ! Reykjavik_Library_Customize::get_theme_mod( 'admin_welcome_page' )
// Reykjavik_Library_Customize::get_theme_mod() does not work here yet.
|| ! get_theme_mod( 'admin_welcome_page', true )
) {
return;
}
Expand Down
8 changes: 4 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: webmandesign
Tags: one-column, two-columns, right-sidebar, grid-layout, flexible-header, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-image-header, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce, portfolio
Requires at least: 4.7.0
Tested up to: 5.1.1
Stable tag: 1.5.2
Tested up to: 5.2
Stable tag: 1.5.3
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -37,8 +37,8 @@ Please see `changelog.md` file.

== Upgrade Notice ==

= 1.5.2 =
Fixing "Continue reading" broken HTML for posts with more tag, updating themer plugins compatibility, improving accessibility skip links, updating info and code.
= 1.5.3 =
Implementing WordPress 5.2 code updates, adding WhatsApp and Google social icon, preventing PHP error after theme activation.


== Resources ==
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme Name: Reykjavik
Theme URI: https://www.webmandesign.eu/portfolio/reykjavik-wordpress-theme/
Author: WebMan Design
Author URI: https://www.webmandesign.eu/
Version: 1.5.2
Version: 1.5.3
Text Domain: reykjavik
Domain Path: /languages
License: GNU General Public License v3
Expand Down
9 changes: 8 additions & 1 deletion templates/parts/admin/notice-welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.5.2
* @version 1.5.2
* @version 1.5.3
*/





// Requirements check

if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
return;
}


// Variables

$theme_name = wp_get_theme( 'reykjavik' )->display( 'Name' );
Expand Down
9 changes: 8 additions & 1 deletion templates/parts/admin/welcome-demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.0.0
* @version 1.5.3
*/





// Requirements check

if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
return;
}


?>

<div class="wm-notes special">
Expand Down
9 changes: 8 additions & 1 deletion templates/parts/admin/welcome-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.5.2
* @version 1.5.3
*/





// Requirements check

if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
return;
}


?>

</div> <!-- /.welcome-content -->
Expand Down
9 changes: 8 additions & 1 deletion templates/parts/admin/welcome-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.5.2
* @version 1.5.3
*/





// Requirements check

if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
return;
}


?>

<div class="wm-notes special">
Expand Down
19 changes: 13 additions & 6 deletions templates/parts/admin/welcome-promo.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,27 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.5.2
* @version 1.5.3
*/





// Requirements check

if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
return;
}


?>

<div class="welcome-upgrade">

<div class="two-col">
<div class="two-col has-2-columns" style="max-width: none;">

<div class="col">
<div class="col column">

<h2><strong><?php esc_html_e( 'Do you like this theme?', 'reykjavik' ); ?></strong></h2>

Expand All @@ -30,7 +37,7 @@
(<a href="https://www.webmandesign.eu" target="_blank"><?php esc_html_e( 'Go to WebMan Design website &raquo;', 'reykjavik' ); ?></a>)
<?php esc_html_e( 'Or perhaps you are considering a small donation?', 'reykjavik' ); ?>
&rarr;
<a href="https://www.paypal.me/webmandesign/20" target="_blank"><em><?php esc_html_e( '"Hey Oliver, have a gallon of coffee on me :)"', 'reykjavik' ); ?></em></a>
<a href="http://webmandesign.eu/contact/?utm_source=reykjavik" target="_blank"><em><?php esc_html_e( '"Hey Oliver, have a gallon of coffee on me :)"', 'reykjavik' ); ?></em></a>
</p>

<p>
Expand All @@ -41,7 +48,7 @@
</p>

<p>
<a href="https://www.paypal.me/webmandesign/20" target="_blank" class="welcome-upgrade-button"><?php esc_html_e( 'Support theme development', 'reykjavik' ); ?></a>
<a href="http://webmandesign.eu/contact/?utm_source=reykjavik" target="_blank" class="welcome-upgrade-button"><?php esc_html_e( 'Support theme development', 'reykjavik' ); ?></a>
</p>

<p class="welcome-upgrade-thanks">
Expand All @@ -50,7 +57,7 @@

</div>

<div class="col">
<div class="col column">

<h2><strong><?php esc_html_e( 'Feel like stepping up?', 'reykjavik' ); ?></strong></h2>

Expand Down
15 changes: 11 additions & 4 deletions templates/parts/admin/welcome-quickstart.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,27 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.4.0
* @version 1.5.3
*/





// Requirements check

if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
return;
}


?>

<h2 class="screen-reader-text"><?php esc_html_e( 'Quickstart Guide', 'reykjavik' ); ?></h2>

<div class="feature-section two-col">
<div class="feature-section two-col has-2-columns" style="max-width: none;">

<div class="first-feature col">
<div class="first-feature col column">

<span class="dropcap">1</span>

Expand All @@ -41,7 +48,7 @@

</div>

<div class="last-feature col">
<div class="last-feature col column">

<span class="dropcap">2</span>

Expand Down
9 changes: 8 additions & 1 deletion templates/parts/admin/welcome-wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.0.0
* @version 1.5.3
*/





// Requirements check

if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
return;
}


?>

<div class="wm-notes special" style="padding: 2em; font-size: inherit;">
Expand Down

0 comments on commit e0ba50b

Please sign in to comment.