| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 3 |
/* |
| 4 |
* Plugin Name: Wp Social - Login, Share, Counter |
| 5 |
* Plugin URI: https://wpmet.com/ |
| 6 |
* Description: Wp Social Login / Social Sharing / Social Counter System for Facebook, Google, Twitter, Linkedin, Dribble, Pinterest, Wordpress, Instagram, GitHub, Vkontakte, Reddit and more providers. |
| 7 |
* Author: Wpmet |
| 8 |
* Version: 1.3.2 |
| 9 |
* Author URI: https://wpmet.com/ |
| 10 |
* Text Domain: wp-social |
| 11 |
* License: GPL2+ |
| 12 |
* Domain Path: /languages/ |
| 13 |
**/ |
| 14 |
define( 'WSLU_VERSION', '1.3.0' ); |
| 15 |
define( 'WSLU_VERSION_PREVIOUS_STABLE_VERSION', '1.2.9' ); |
| 16 |
|
| 17 |
define( "WSLU_LOGIN_PLUGIN", plugin_dir_path(__FILE__) ); |
| 18 |
define( "WSLU_LOGIN_PLUGIN_URL", plugin_dir_url(__FILE__) ); |
| 19 |
|
| 20 |
|
| 21 |
require( WSLU_LOGIN_PLUGIN.'autoload.php' ); |
| 22 |
/** |
| 23 |
* Load Text Domain |
| 24 |
*/ |
| 25 |
if ( ! function_exists( 'wslu_social_init' ) ) : |
| 26 |
function wslu_social_init() { |
| 27 |
load_plugin_textdomain( 'wp-social' , false, dirname( plugin_basename( __FILE__ ) ).'/languages' ); |
| 28 |
|
| 29 |
if ( file_exists( WP_PLUGIN_DIR . '/elementor/elementor.php' ) ) { |
| 30 |
WpSocialXs\Elementor\Elements::instance()->_init(); |
| 31 |
} |
| 32 |
} |
| 33 |
add_action( 'plugins_loaded', 'wslu_social_init', 199 ); |
| 34 |
endif; |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
/** |
| 39 |
* Active Plugin |
| 40 |
*/ |
| 41 |
if ( ! function_exists( 'xs_social_plugin_activate' ) ) : |
| 42 |
function xs_social_plugin_activate() { |
| 43 |
$counter = New \XsSocialCounter\Counter(false); |
| 44 |
$counter->xs_counter_defalut_providers(); |
| 45 |
|
| 46 |
} |
| 47 |
register_activation_hook( __FILE__, 'xs_social_plugin_activate' ); |
| 48 |
|
| 49 |
// custom function added |
| 50 |
if(file_exists(WSLU_LOGIN_PLUGIN.'inc/custom-function.php') ){ |
| 51 |
include( WSLU_LOGIN_PLUGIN.'inc/custom-function.php'); |
| 52 |
} |
| 53 |
endif; |
| 54 |
|
| 55 |
|