Version Description
- Added: Codes for the Freemius switch.
Download this release
Release Info
Developer | oceanwp |
Plugin | Ocean Social Sharing |
Version | 1.0.15 |
Comparing to | |
See all releases |
Code changes from version 1.0.14 to 1.0.15
- ocean-social-sharing.php +51 -4
- readme.txt +5 -2
ocean-social-sharing.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: Ocean Social Sharing
|
4 |
* Plugin URI: https://oceanwp.org/extension/ocean-social-sharing/
|
5 |
* Description: A simple plugin to add social share buttons to your posts.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: OceanWP
|
8 |
* Author URI: https://oceanwp.org/
|
9 |
* Requires at least: 4.5.0
|
10 |
-
* Tested up to: 5.
|
11 |
*
|
12 |
* Text Domain: ocean-social-sharing
|
13 |
* Domain Path: /languages/
|
@@ -86,7 +86,7 @@ final class Ocean_Social_Sharing {
|
|
86 |
$this->token = 'ocean-social-sharing';
|
87 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
88 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
89 |
-
$this->version = '1.0.
|
90 |
|
91 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
92 |
|
@@ -569,4 +569,51 @@ final class Ocean_Social_Sharing {
|
|
569 |
|
570 |
}
|
571 |
|
572 |
-
} // End Class
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
* Plugin Name: Ocean Social Sharing
|
4 |
* Plugin URI: https://oceanwp.org/extension/ocean-social-sharing/
|
5 |
* Description: A simple plugin to add social share buttons to your posts.
|
6 |
+
* Version: 1.0.15
|
7 |
* Author: OceanWP
|
8 |
* Author URI: https://oceanwp.org/
|
9 |
* Requires at least: 4.5.0
|
10 |
+
* Tested up to: 5.2
|
11 |
*
|
12 |
* Text Domain: ocean-social-sharing
|
13 |
* Domain Path: /languages/
|
86 |
$this->token = 'ocean-social-sharing';
|
87 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
88 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
89 |
+
$this->version = '1.0.15';
|
90 |
|
91 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
92 |
|
569 |
|
570 |
}
|
571 |
|
572 |
+
} // End Class
|
573 |
+
|
574 |
+
#--------------------------------------------------------------------------------
|
575 |
+
#region Freemius
|
576 |
+
#--------------------------------------------------------------------------------
|
577 |
+
|
578 |
+
if ( ! function_exists( 'ocean_social_sharing_fs' ) ) {
|
579 |
+
// Create a helper function for easy SDK access.
|
580 |
+
function ocean_social_sharing_fs() {
|
581 |
+
global $ocean_social_sharing_fs;
|
582 |
+
|
583 |
+
if ( ! isset( $ocean_social_sharing_fs ) ) {
|
584 |
+
$ocean_social_sharing_fs = OceanWP_EDD_Addon_Migration::instance( 'ocean_social_sharing_fs' )->init_sdk( array(
|
585 |
+
'id' => '3807',
|
586 |
+
'slug' => 'ocean-social-sharing',
|
587 |
+
'public_key' => 'pk_0aa6121ff893b29efa9a58d6c0ad5',
|
588 |
+
'is_premium' => false,
|
589 |
+
'is_premium_only' => false,
|
590 |
+
'has_paid_plans' => false,
|
591 |
+
) );
|
592 |
+
}
|
593 |
+
|
594 |
+
return $ocean_social_sharing_fs;
|
595 |
+
}
|
596 |
+
|
597 |
+
function ocean_social_sharing_fs_addon_init() {
|
598 |
+
if ( class_exists( 'Ocean_Extra' ) ) {
|
599 |
+
OceanWP_EDD_Addon_Migration::instance( 'ocean_social_sharing_fs' )->init();
|
600 |
+
}
|
601 |
+
}
|
602 |
+
|
603 |
+
if ( 0 == did_action( 'owp_fs_loaded' ) ) {
|
604 |
+
// Init add-on only after parent theme was loaded.
|
605 |
+
add_action( 'owp_fs_loaded', 'ocean_social_sharing_fs_addon_init', 15 );
|
606 |
+
} else {
|
607 |
+
if ( class_exists( 'Ocean_Extra' ) ) {
|
608 |
+
/**
|
609 |
+
* This makes sure that if the theme was already loaded
|
610 |
+
* before the plugin, it will run Freemius right away.
|
611 |
+
*
|
612 |
+
* This is crucial for the plugin's activation hook.
|
613 |
+
*/
|
614 |
+
ocean_social_sharing_fs_addon_init();
|
615 |
+
}
|
616 |
+
}
|
617 |
+
}
|
618 |
+
|
619 |
+
#endregion
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: oceanwp
|
3 |
Tags: social, social sharing, social share, share, oceanwp
|
4 |
Requires at least: 4.5
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -48,6 +48,9 @@ This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
|
|
|
|
|
|
51 |
= 1.0.14 =
|
52 |
- Added: WhatsApp button.
|
53 |
|
2 |
Contributors: oceanwp
|
3 |
Tags: social, social sharing, social share, share, oceanwp
|
4 |
Requires at least: 4.5
|
5 |
+
Tested up to: 5.2
|
6 |
+
Stable tag: 1.0.15
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
+
= 1.0.15 =
|
52 |
+
- Added: Codes for the Freemius switch.
|
53 |
+
|
54 |
= 1.0.14 =
|
55 |
- Added: WhatsApp button.
|
56 |
|