| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* Plugin Name: StreamCast |
| 5 |
* Plugin URI: https://wordpress.org/plugins/streamcasthttps://wordpress.org/ |
| 6 |
* Description: Play iceCast, Shoutcast, Radioco, Radionomy Live stream in Wordpress. |
| 7 |
* Version: 2.3.8 |
| 8 |
* Author: bPlugins |
| 9 |
* Author URI: http://bPlugins.com |
| 10 |
* License: GPLv2 |
| 11 |
* Text Domain: streamcast |
| 12 |
* Domain Path: /languages |
| 13 |
*/ |
| 14 |
// ABS PATH |
| 15 |
if ( !defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
if ( function_exists( 'str_fs' ) ) { |
| 19 |
str_fs()->set_basename( false, __FILE__ ); |
| 20 |
} else { |
| 21 |
// Some Setup |
| 22 |
define( 'STP_PLUGIN_DIR', plugin_dir_url( __FILE__ ) ); |
| 23 |
define( 'STP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); |
| 24 |
define( 'STP_PLUGIN_VERSION', '2.3.8' ); |
| 25 |
if ( !function_exists( 'str_fs' ) ) { |
| 26 |
function str_fs() { |
| 27 |
global $str_fs; |
| 28 |
if ( !isset( $str_fs ) ) { |
| 29 |
// Activate multisite network integration. |
| 30 |
if ( !defined( 'WP_FS__PRODUCT_6433_MULTISITE' ) ) { |
| 31 |
define( 'WP_FS__PRODUCT_6433_MULTISITE', true ); |
| 32 |
} |
| 33 |
// Include Freemius SDK. |
| 34 |
require_once dirname( __FILE__ ) . '/vendor/freemius/start.php'; |
| 35 |
$str_fs = fs_dynamic_init( array( |
| 36 |
'id' => '6433', |
| 37 |
'slug' => 'streamcast', |
| 38 |
'type' => 'plugin', |
| 39 |
'public_key' => 'pk_a19d159db561c020210345da466f1', |
| 40 |
'is_premium' => false, |
| 41 |
'has_addons' => false, |
| 42 |
'has_paid_plans' => true, |
| 43 |
'trial' => array( |
| 44 |
'days' => 7, |
| 45 |
'is_require_payment' => true, |
| 46 |
), |
| 47 |
'has_affiliation' => 'selected', |
| 48 |
'menu' => array( |
| 49 |
'slug' => 'edit.php?post_type=streamcast', |
| 50 |
'first-path' => 'edit.php?post_type=streamcast&page=streamcast#/dashboard', |
| 51 |
'support' => false, |
| 52 |
'affiliation' => false, |
| 53 |
), |
| 54 |
'is_live' => true, |
| 55 |
) ); |
| 56 |
} |
| 57 |
return $str_fs; |
| 58 |
} |
| 59 |
|
| 60 |
// Init Freemius. |
| 61 |
str_fs(); |
| 62 |
// Signal that SDK was initiated. |
| 63 |
do_action( 'str_fs_loaded' ); |
| 64 |
} |
| 65 |
// Load main plugin class |
| 66 |
require_once plugin_dir_path( __FILE__ ) . 'inc/class-streamcast.php'; |
| 67 |
// Initialize |
| 68 |
StreamCast::instance(); |
| 69 |
} |