| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Social Share Block – Social Sharing Buttons for Posts and Pages |
| 4 |
* Plugin URI: https://bplugins.com/products/b-social-share |
| 5 |
* Description: Share your website/website-page link to social networks and mobile messengers |
| 6 |
* Version: 2.4.0 |
| 7 |
* Author: bPlugins |
| 8 |
* Author URI: https://bplugins.com |
| 9 |
* License: GPLv3 or later |
| 10 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt |
| 11 |
* Text Domain: b-social-share |
| 12 |
* Domain Path: /languages |
| 13 |
* Requires at least: 6.5 |
| 14 |
* Tested up to: 7.1 |
| 15 |
* Requires PHP: 7.4 |
| 16 |
*/ |
| 17 |
|
| 18 |
if (!defined('ABSPATH')) { |
| 19 |
exit; |
| 20 |
} |
| 21 |
|
| 22 |
define('BSSB_PLUGIN_VERSION', '2.4.0'); |
| 23 |
define('BSSB_DIR_PATH', plugin_dir_path(__FILE__)); |
| 24 |
define('BSSB_DIR_URL', plugin_dir_url(__FILE__)); |
| 25 |
|
| 26 |
if (function_exists('bssb_fs')) { |
| 27 |
bssb_fs()->set_basename(true, __FILE__); |
| 28 |
} else { |
| 29 |
function bssb_fs() |
| 30 |
{ |
| 31 |
global $bssb_fs; |
| 32 |
|
| 33 |
if (!isset($bssb_fs)) { |
| 34 |
require_once BSSB_DIR_PATH . 'vendor/freemius-lite/start.php'; |
| 35 |
|
| 36 |
$config = array( |
| 37 |
'id' => '20173', |
| 38 |
'slug' => 'b-social-share', |
| 39 |
'premium_slug' => 'b-social-share-pro', |
| 40 |
'type' => 'plugin', |
| 41 |
'public_key' => 'pk_d6bd48e230834275b20b6a3ee1a68', |
| 42 |
'is_premium' => false, |
| 43 |
'menu' => array( |
| 44 |
'slug' => 'edit.php?post_type=social_share_cpt', |
| 45 |
'first-path' => 'edit.php?post_type=social_share_cpt&page=social_share_Dashboard', |
| 46 |
'contact' => false, |
| 47 |
'support' => false, |
| 48 |
'affiliation' => false |
| 49 |
), |
| 50 |
); |
| 51 |
|
| 52 |
$bssb_fs = fs_lite_dynamic_init($config); |
| 53 |
} |
| 54 |
return $bssb_fs; |
| 55 |
} |
| 56 |
|
| 57 |
bssb_fs(); |
| 58 |
do_action('bssb_fs_loaded'); |
| 59 |
} |
| 60 |
|
| 61 |
require_once BSSB_DIR_PATH . 'inc/class_bssPlugin.php'; |
| 62 |
|
| 63 |
register_activation_hook(__FILE__, 'bssb_activate'); |
| 64 |
register_deactivation_hook(__FILE__, 'bssb_deactivate'); |
| 65 |
|
| 66 |
function bssb_activate() { |
| 67 |
BSSB_Plugin::bssb_social_share_block_post_type(); |
| 68 |
flush_rewrite_rules(); |
| 69 |
} |
| 70 |
|
| 71 |
function bssb_deactivate() { |
| 72 |
flush_rewrite_rules(); |
| 73 |
} |
| 74 |
|
| 75 |
new BSSB_Plugin(); |