PluginProbe
Super Video player – Fully Customizable Video Player with Playlist / 1.8.8
Super Video player – Fully Customizable Video Player with Playlist v1.8.8
1.8.10 1.8.9 1.4.0 1.4.1 1.6.10 1.6.12 1.6.14 1.7.0 1.7.2 1.7.3 1.7.4 1.7.5 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 trunk 1.0 1.1 1.2 All 28 releases
super-video-player / super-video-player.php

super-video-player.php in Super Video player – Fully Customizable Video Player with Playlist 1.8.8, at super-video-player.php

84 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * Plugin Name: Super Video Player
5 * Plugin URI: https://bplugins.com/super-video-player
6 * Description: A fully customizable video player for wordpress.
7 * Version: 1.8.8
8 * Author: bPlugins
9 * Author URI: http://bplugins.com
10 * Text Domain: svp
11 * Domain Path: /languages
12 */
13 if ( !defined( 'ABSPATH' ) ) {
14 exit;
15 }
16 if ( function_exists( 'svp_fs' ) ) {
17 svp_fs()->set_basename( false, __FILE__ );
18 } else {
19 if ( !function_exists( 'svp_fs' ) ) {
20 // Create a helper function for easy SDK access.
21 function svp_fs() {
22 global $svp_fs;
23 if ( !isset( $svp_fs ) ) {
24 // Activate multisite network integration.
25 if ( !defined( 'WP_FS__PRODUCT_6749_MULTISITE' ) ) {
26 define( 'WP_FS__PRODUCT_6749_MULTISITE', true );
27 }
28 // Include Freemius SDK.
29 require_once dirname( __FILE__ ) . '/freemius/start.php';
30 $svp_fs = fs_dynamic_init( array(
31 'id' => '6749',
32 'slug' => 'super-video-player',
33 'type' => 'plugin',
34 'public_key' => 'pk_ebfc28616ca46b064866ea36660e0',
35 'is_premium' => false,
36 'premium_suffix' => 'Pro',
37 'has_addons' => false,
38 'has_paid_plans' => true,
39 'trial' => array(
40 'days' => 7,
41 'is_require_payment' => false,
42 ),
43 'menu' => array(
44 'slug' => 'edit.php?post_type=svplayer',
45 'first-path' => 'edit.php?post_type=svplayer&page=svplayer',
46 'network' => true,
47 ),
48 'is_live' => true,
49 'is_org_compliant' => true,
50 ) );
51 }
52 return $svp_fs;
53 }
54
55 // Init Freemius.
56 svp_fs();
57 // Signal that SDK was initiated.
58 do_action( 'svp_fs_loaded' );
59 }
60 require_once __DIR__ . '/upgrade.php';
61 require_once __DIR__ . '/inc/functions.php';
62 require_once plugin_dir_path( __FILE__ ) . '/video-player-block.php';
63 add_action( 'init', 'svp_load_textdomain' );
64 function svp_load_textdomain() {
65 load_plugin_textdomain( 'svp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
66 if ( svp_fs()->is_free_plan() ) {
67 require_once 'admin/inc/metabox-free.php';
68 require_once 'inc/shortcode-free.php';
69 }
70 }
71
72 /*Some Set-up*/
73 define( 'SVP_PLUGIN_DIR', plugin_dir_url( __FILE__ ) );
74 define( 'SVP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
75 define( 'SVP_VERSION', '1.8.8' );
76 /* JS*/
77 // Inc common
78 include_once 'admin/blocks/init.php';
79 require_once 'admin/codestar-framework/codestar-framework.php';
80 require_once "inc/Dashboard.php";
81 if ( 'super-video-player-premium/super-video-player.php' === plugin_basename( __FILE__ ) ) {
82 require_once 'premium-files/LicenseActivation.php';
83 }
84 }