Skip to content

Commit

Permalink
1.4.1 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
josevarghese committed Dec 3, 2019
1 parent 55f83b9 commit 0cc5bd3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
16 changes: 14 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,20 @@ Yes, SuperWebShare is GDPR Compliant. Unlike other social sharing tools, this sh

== Changelog ==

= 1.4.1 =
Release Date: December 1st, 2019

Enhancements:

* Settings page improved
* SVG icon for share both share buttons
(Thanks to [Ajith R.N](https://profiles.wordpress.org/ajithrn))
* Floating share button style changed
* General share button style changed for good user experience


= 1.4 =
Release Date: Novemebr 19th, 2019
Release Date: November 19th, 2019

Enhancements:

Expand Down Expand Up @@ -106,7 +118,7 @@ Enhancements:
* Option to select the color, text on the share button added
* Adds option's to select the pages to display the normal share button
* Minor performance improvements to render SuperWebShare faster.
Sincere thanks to [Jyothis Joy](https://profiles.wordpress.org/joe007/) for reporting the bug.
Thanks to [Jyothis Joy](https://profiles.wordpress.org/joe007/) for reporting the bug.

= 1.1 =
Release Date: December 15th, 2018
Expand Down
20 changes: 10 additions & 10 deletions admin/class-super-web-share-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ function superwebshare_register_settings_floating() {
function superwebshare_validater_and_sanitizer( $settings ) {
// Sanitize hex color input for theme_color

$settings['normal_share_color'] = preg_match( '/#([a-f0-9]{3}){1,2}\b/i', isset($settings['normal_share_color']) ) ? sanitize_text_field( $settings['normal_share_color'] ) : '#0DC152';
$settings['normal_share_color'] = preg_match( '/#([a-f0-9]{3}){1,2}\b/i', $settings['normal_share_color'] ) ? sanitize_text_field( $settings['normal_share_color'] ) : '#0DC152';
$settings['normal_share_button_text'] = sanitize_text_field( isset($settings['normal_share_button_text']) ) ? sanitize_text_field( $settings['normal_share_button_text'] ) : 'Share';
return $settings;
}
Expand All @@ -428,13 +428,13 @@ function superwebshare_validater_and_sanitizer_floating( $settings_floating ) {
*/
function superwebshare_get_settings() {
$defaults = array(
'normal_display_page' => '0', // 1 as active
'normal_display_archive' => '0', // 1 as active
'normal_display_home' => '0', // 1 as active
'position' => 'both', // both = Top and Bottom of the content
'normal_display_page' => '1', // 1 as active
'normal_display_archive' => '1', // 1 as active
'normal_display_home' => '1', // 1 as active
'position' => 'before', // both = Top and Bottom of the content
'normal_share_button_text' => 'Share', // content for share button
'normal_share_color' => '#0DC152', // default color for normal share button
'superwebshare_normal_enable' => 'enable', // enable by default
'normal_share_color' => '#BD3854', // default color for normal share button
'superwebshare_normal_enable' => 'disable', // enable by default

);
$settings = get_option( 'superwebshare_settings', $defaults );
Expand All @@ -450,13 +450,13 @@ function superwebshare_get_settings() {
*/
function superwebshare_get_settings_floating() {
$defaults = array(
'floating_share_color' => '#0DC152', // defautlt color
'floating_share_color' => '#BD3854', // defautlt color
'floating_display_page' => '1', // 1 as active
'floating_display_archive' => '1',
'floating_display_home' => '1',
'floating_position' => 'right', // left or right
'floating_position_leftright' => '30', // in pixel
'floating_position_bottom' => '30', // in pixel
'floating_position_leftright' => '5', // in pixel
'floating_position_bottom' => '5', // in pixel
'superwebshare_floating_enable' => 'enable' // enable by default

);
Expand Down
6 changes: 3 additions & 3 deletions super-web-share.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Super Web Share
* Plugin URI: https://www.josevarghese.com
* Description: Super Web Share helps to quickly add the Native Share option to your WordPress website
* Version: 1.4
* Version: 1.4.1
* Author: Super Web Share
* Author URI: https://www.josevarghese.com
* License: GPL-2.0+
Expand All @@ -25,11 +25,11 @@
}

/**
* Currently plugin version.
* Current plugin version.
*
* @since 1.0
*/
define( 'SUPERWEBSHARE_VERSION', '1.4' );
define( 'SUPERWEBSHARE_VERSION', '1.4.1' );

/**
* Full path to the plugin file.
Expand Down

0 comments on commit 0cc5bd3

Please sign in to comment.