Skip to content

Commit

Permalink
v2.2 - Added share support for offical AMP plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
josevarghese committed Jun 24, 2022
1 parent 5a745a1 commit bd367ad
Show file tree
Hide file tree
Showing 9 changed files with 342 additions and 93 deletions.
39 changes: 28 additions & 11 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ Donate link: https://www.superwebshare.com
Tags: share button, web share, native share, Share API, share
Requires at least: 3.0.1
Tested up to: 5.9.2
Stable tag: 2.1.1
Stable tag: 2.2
Requires PHP: 7.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Super Web Share helps to easily add native share prompt to your website for easy page/post sharing in less than a minute.
Super Web Share helps to easily add native share prompt to your website to easily share page/post in less than a minute.

== Description ==

Super Web Share is a WordPress-based native share plugin that helps users easily share the page/post with others by prompting the native share action. As SuperWebShare only shows the apps installed within the device upon the share prompt, the rate of sharing of post/page will be higher. Due to that reason, website developers can skip the usage of other social media icons upon their website and keep the share more prominent.
Super Web Share is a WordPress-based native share plugin that helps users easily share the page/post with others by prompting the native share action. As SuperWebShare only shows the apps installed within the device upon the share prompt on Android or share sheet on iOS, the rate of sharing of post/page will be higher. Due to that reason, website developers can skip the usage of other social media icons upon their website and keep the share more prominent.

The Super Web Share plugin for WordPress helps increase your traffic and engagement by a single quick click to share the website with your friends and social media. Super Web Share works on all supported browsers like Chrome for Android, Edge for Android, Brave for Android, and Opera for Android. It will show the native apps installed upon the device once you share the article with others; due to that, users can easily share the page/post with others super easily in just a click. Upon the native share, which prompts up, they can easily copy the website page link if the users need it.

Expand All @@ -22,21 +22,22 @@ It takes less than a minute to set up Super Web Share, and we provide a clean un
Currently, the Super Web Share plugin provides a share button before and after the post/page content and a floating share button where you can set the color, the text of the share buttons, the position of the floating button, and can also set the pages or posts which you would like to show the share buttons via our Settings page, to easily add the share feature to your websites. As an addon, we are fully compatible with the AMP plugin, which means you can add the native share to your AMP pages provided by the AMP plugin.

### Advantages of using Super Web Share
* Increase the rate of sharing of pages and posts by users
* Developers / Bloggers can easily skip the number of social icons to be used on the page or post
* Increase the rate of sharing of pages and posts by users by the power of native share
* Your visitors can easily skip the number of social icons to be used on the page or post
* Lightweight and super fast loading share plugin
* Fully AMP supported native share plugin
* Fully AMP supported native share plugin/ screen sheet plugin (We supports official AMP plugin and AMPforWP plugin, with fallback options)
* Fully responsive

#### Want to test to know how SuperWebShare works on a website?

* Open [SuperWebShare.com](https://superwebshare.com/?utm_source=wordpress-plugin&utm_medium=wordpress-readme) in a supported device. See [FAQ to know the supported browsers](https://wordpress.org/plugins/super-web-share/#faq)
* You can see a floating button at the right bottom corner
* Tap on it, instantly you can see the native Web Share prompt with the applications, which you can share the page.
* Tap on it, instantly you can see the native Web Share prompt with the applications, which you can share the page. (As for Android devices you will notice the Native share prompt and on iOS devices you will notice the share sheet)
* Tap on the icon of application from the prompt, and send.
* If the website is not supporting Native share option, you will notice the fallback popup which we created to make a all in one Share plugin for your website

#### Requirments for working SuperWebShare?
* The Website should be served fully via a secured origin, i.e., the green padlock should be there on the address for working Super Web Share. Else by default, our fallback popup will show on those browsers where users can share via WhatsApp, Facebook, LinkedIn and Twitter with copy link option.
* The Website should be served fully via a secured origin, i.e., the green padlock should be there on the address for working Super Web Share to show the native share prompt or the share sheet on iOS devices like iPhone, Mac, iPad etc. Else by default, our fallback popup will show on those browsers where users can share via WhatsApp, Facebook, LinkedIn and Twitter with copy link option.

== Installation ==

Expand Down Expand Up @@ -85,10 +86,27 @@ Yes, SuperWebShare is fully GDPR Compliant. Unlike other social sharing tools, t

== Changelog ==

= 2.2 =
Release Date: May 1st, 2022

New Features:

* Added fallback and native share support for official AMP plugin and AMP for WordPress plugin.
(Make sure to enable to Fallback within our settings page to see the fallback social buttons

Enhancements:

Coding improved a lot for the easily implementation new features to the plugin quickly on the future release.

Bug Fix:

* Removed the showing of the share button from the Archive pages as share button won't archives pages won't make any sense.

= 2.1.1 =
Release Date: April 1st, 2022

Bug Fix:

* Removed the Copy Link URL encoding. Thanks to [kscl](https://wordpress.org/support/users/kscl/) for reporting this issue.

= 2.1 =
Expand All @@ -112,13 +130,12 @@ Enhancements:

* Added toggle for the selection of the settings.
* Changed the name 'General' to 'Inline content' for better understanding.
* Optimized the code


= 2.0.1 & 2.0 =
Release Date: January 8th, 2022

Bug Fix:

* Small fix on CSS where the fallback was not loading on some themes

Enhancements:
Expand Down Expand Up @@ -245,4 +262,4 @@ Inital Release
Enhancements:

* Initial release with Floating Share Button
* Option to change color of button from Settings page
* Option to change color of button from Settings page
37 changes: 36 additions & 1 deletion admin/js/super-web-share-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,39 @@ function SuperWebShareRighTLeft() {
jQuery(document).ready(function($){
if(typeof navigator.share==='undefined' || !navigator.share){
var share = "yes";
}});
}

const buttonNames = [ 'floating', 'inline' ];
for( i in buttonNames ){
let floatingPostTypes = jQuery( `[name="superwebshare_${buttonNames[i]}_settings[${buttonNames[i]}_display_pages][]"]` );
let manFloatingActive = jQuery( `[name="superwebshare_${buttonNames[i]}_settings[superwebshare_${buttonNames[i]}_enable]"]` );
floatingPostTypes.change( function(){
let anyOneActive = false;

floatingPostTypes.each( function(input){
if( $( this ).is( ":checked" ) ){
anyOneActive = true;
}
} );
if( anyOneActive != true ){
manFloatingActive.prop( 'checked', false );
}else{
manFloatingActive.prop( 'checked', true );
}

} );
manFloatingActive.change( function(){
let anyOneActive = false;

floatingPostTypes.each( function(input){
if( $( this ).is( ":checked" ) ){
anyOneActive = true;
}
} );
if( anyOneActive != true ){
floatingPostTypes.prop( 'checked', true );
}
} )
}
});

4 changes: 2 additions & 2 deletions admin/partials/super-web-share-admin-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function inline_amp_enable_cb() {
superwebshare_input_toggle("superwebshare_inline_settings[inline_amp_enable]","enable", $settings['inline_amp_enable']);
?>
<p class="description">
<?php _e( "Right now, we are only supporting the official AMP plugin. We are extending the AMP support to more AMP plugins on the coming version.", 'super-web-share' );?>
<?php _e( "Right now, we are supporting the official AMP plugin and AMPforWP. We are extending the AMP support to more AMP plugins on the coming version.", 'super-web-share' );?>
</p>
<?php
}
Expand Down Expand Up @@ -213,7 +213,7 @@ function floating_amp_enable_cb() {
superwebshare_input_toggle( 'superwebshare_floating_settings[floating_amp_enable]', 'enable', $settings_floating['floating_amp_enable'] );
?>
<p class="description">
<?php _e( "Right now, we are only supporting the official AMP plugin. We are extending the AMP support to more AMP plugins on the coming version.", 'super-web-share' );?>
<?php _e( "Right now, we are supporting the official AMP plugin and AMPforWP. We are extending the AMP support to more AMP plugins on the coming version.", 'super-web-share' );?>
</p>
<?php
}
Expand Down
2 changes: 1 addition & 1 deletion languages/super-web-share.pot
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ msgstr ""
#: admin/partials/super-web-share-admin-display.php:99
#: admin/partials/super-web-share-admin-display.php:216
msgid ""
"Right now, we are only supporting the official AMP plugin. We are extending "
"Right now, we are supporting the official AMP plugin and AMPforWP. We are extending "
"the AMP support to more AMP plugins on the coming version."
msgstr ""

Expand Down
Loading

0 comments on commit bd367ad

Please sign in to comment.