From 5120edad5ed78fddea57cf37a908198f4ddb026e Mon Sep 17 00:00:00 2001 From: Ronald Huereca Date: Sun, 26 Mar 2023 15:32:02 -0500 Subject: [PATCH] Version bump. --- highlight-and-share.php | 4 ++-- php/Blocks.php | 6 ++++-- readme.txt | 18 ++++++++++++++---- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/highlight-and-share.php b/highlight-and-share.php index bf8c80a..a2c6900 100644 --- a/highlight-and-share.php +++ b/highlight-and-share.php @@ -5,7 +5,7 @@ * Plugin URI: https://has.dlxplugins.com * Description: Select text, inline highlight, or use a Click to Share block and show social networks. * Author: DLX Plugins - * Version: 4.2.4 + * Version: 4.3.0 * Requires at least: 5.1 * Requires PHP: 7.2 * Author URI: https://dlxplugins.com @@ -17,7 +17,7 @@ namespace DLXPlugins\HAS; -define( 'HIGHLIGHT_AND_SHARE_VERSION', '4.2.4' ); +define( 'HIGHLIGHT_AND_SHARE_VERSION', '4.3.0' ); define( 'HIGHLIGHT_AND_SHARE_FILE', __FILE__ ); // Support for site-level autoloading. diff --git a/php/Blocks.php b/php/Blocks.php index 02391b8..44a7561 100644 --- a/php/Blocks.php +++ b/php/Blocks.php @@ -468,16 +468,18 @@ public function frontend( $attributes, $content ) { public function get_legacy_frontend( $attributes ) { ob_start(); global $post; + $share_content = wp_strip_all_tags( $attributes['shareText'] ); + $share_content_trimmed = preg_replace( '/\n+/', "\n\n", trim( $share_content ) ); // Replace newline chars with single newline. ?>
-
+
- +
diff --git a/readme.txt b/readme.txt index 2911c67..23c8fab 100755 --- a/readme.txt +++ b/readme.txt @@ -1,9 +1,9 @@ -=== Highlight and Share - Inline Highlighting and Click to Share === +=== Highlight and Share === Contributors: ronalfy Tags: highlight, social sharing, click to tweet, sharing, highlight text Requires at least: 5.1 Tested up to: 6.2 -Stable tag: 4.2.4 +Stable tag: 4.3.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Donate link: https://github.com/sponsors/DLXPlugins @@ -14,6 +14,8 @@ Easily Show Social Networks When Users Interact With Your Site's Text Meet your readers at your content. +> View a Fully Featured Demo via InstaWP + Show social network options when users interact with your text (find out how Highlight and Share works). Highlight and Share has the following major features: @@ -108,6 +110,14 @@ So far, the latest versions of Chrome, Firefox, Safari, Edge, and IE9+. == Changelog == += 4.3.0 = +* Released 2023-03-26 +* New Feature: Set tooltips for inline highlighting, including the ability to customize the label, bakground color, and text color. +* New Feature: Customize the email subject, email body, and modal title when sending emails. +* New Feature: Customize the share text using a new toolbar option in the Click to Share block. +* Bug fix: Legacy Click to Share output was returning null or empty on the frontend. +* Bug fix: The Click to Share block was not showing the share text. + = 4.2.2 = * Released 2023-03-21 * New Feature: Can set the wrapper CSS classes to avoid layout issues. @@ -436,5 +446,5 @@ So far, the latest versions of Chrome, Firefox, Safari, Edge, and IE9+. == Upgrade Notice == -= 4.2.2 = -New Feature: Can set the wrapper CSS classes to avoid layout issues. += 4.3.0 = +Version 4.3.0 was released on March 26, 2023, and includes new features such as the ability to set tooltips for inline highlighting with customization options for label, background color, and text color, as well as the ability to customize the email subject, body, and modal title when sending emails. Another new feature is the ability to customize the share text using a toolbar option in the Click to Share block. This version also includes bug fixes for the legacy Click to Share output returning null or empty on the frontend and the Click to Share block not showing the share text. \ No newline at end of file