PluginProbe ʕ •ᴥ•ʔ
Blocksy Companion / 2.0.91
Blocksy Companion v2.0.91
2.1.44 2.1.43 2.1.42 2.1.41 2.1.40 1.8.80 1.8.81 1.8.82 1.8.83 1.8.84 1.8.85 1.8.86 1.8.87 1.8.88 1.8.89 1.8.9 1.8.9.1 1.8.9.2 1.8.9.3 1.8.9.4 1.8.9.5 1.8.9.6 1.8.9.7 1.8.9.8 1.8.9.9 1.8.90 1.8.91 1.8.92 1.8.93 1.8.94 1.8.95 1.8.96 1.8.97 1.8.98 1.8.99 1.9.0 1.9.1 1.9.10 1.9.11 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.18 2.0.19 2.0.2 2.0.20 2.0.21 2.0.22 2.0.23 2.0.24 2.0.25 2.0.26 2.0.27 2.0.28 2.0.29 2.0.3 2.0.30 2.0.31 2.0.32 2.0.33 2.0.34 2.0.35 2.0.36 2.0.37 2.0.38 2.0.39 2.0.4 2.0.40 2.0.41 2.0.42 2.0.43 2.0.44 2.0.45 2.0.46 2.0.47 2.0.48 2.0.49 2.0.5 2.0.50 2.0.51 2.0.52 2.0.53 2.0.54 2.0.55 2.0.56 2.0.57 2.0.58 2.0.59 2.0.6 2.0.60 2.0.61 2.0.62 2.0.63 2.0.64 2.0.65 2.0.66 2.0.67 2.0.68 2.0.69 2.0.7 2.0.70 2.0.71 2.0.72 2.0.73 2.0.74 2.0.75 2.0.76 2.0.77 2.0.78 2.0.79 2.0.8 2.0.80 2.0.81 2.0.82 2.0.83 2.0.84 2.0.85 2.0.86 2.0.87 2.0.88 2.0.89 2.0.9 trunk 2.0.90 1.0.1 2.0.91 1.0.3 2.0.92 1.7.32 2.0.93 1.7.33 2.0.94 1.7.35 2.0.95 1.7.36 2.0.96 1.7.37 2.0.97 1.7.38 2.0.98 1.7.39 2.0.99 1.7.40 2.1.0 1.7.41 2.1.1 1.7.43 2.1.10 1.7.44 2.1.11 1.7.45 2.1.12 1.7.46 2.1.13 1.7.47 2.1.14 1.7.49 2.1.15 1.7.50 2.1.16 1.7.51 2.1.17 1.7.52 2.1.18 1.7.53 2.1.19 1.7.54 2.1.2 1.7.55 2.1.20 1.7.56 2.1.21 1.7.57 2.1.22 1.7.58 2.1.23 1.7.59 2.1.24 1.7.60 2.1.25 1.7.61 2.1.26 1.7.62 2.1.27 1.7.63 2.1.28 1.8.0 2.1.29 1.8.1 2.1.3 1.8.10 2.1.30 1.8.11 2.1.31 1.8.12 2.1.32 1.8.13 2.1.33 1.8.14 2.1.34 1.8.15 2.1.35 1.8.16 2.1.36 1.8.17 2.1.37 1.8.18 2.1.38 1.8.19 2.1.39 1.8.2 2.1.4 1.8.20 2.1.5 1.8.21 2.1.6 1.8.22 2.1.7 1.8.23 2.1.8 1.8.24 2.1.9 1.8.25 1.8.26 1.8.27 1.8.29 1.8.30 1.8.31 1.8.32 1.8.33 1.8.34 1.8.35 1.8.36 1.8.37 1.8.38 1.8.4 1.8.40 1.8.41 1.8.42 1.8.43 1.8.44 1.8.45 1.8.46 1.8.47 1.8.48 1.8.49 1.8.5 1.8.51 1.8.52 1.8.53 1.8.54 1.8.55 1.8.56 1.8.57 1.8.58 1.8.59 1.8.6 1.8.6.1 1.8.6.2 1.8.6.3 1.8.6.4 1.8.60 1.8.61 1.8.62 1.8.63 1.8.64 1.8.65 1.8.66 1.8.67 1.8.68 1.8.69 1.8.7 1.8.7.1 1.8.7.2 1.8.7.3 1.8.7.4 1.8.7.5 1.8.70 1.8.71 1.8.72 1.8.73 1.8.74 1.8.75 1.8.76 1.8.77 1.8.78 1.8.79 1.8.8 1.8.8.1 1.8.8.2 1.8.8.3 1.8.8.4 1.8.8.5 1.8.8.6 1.8.8.7 1.8.8.8
blocksy-companion / blocksy-companion.php
blocksy-companion Last commit date
framework 1 year ago languages 1 year ago static 1 year ago vendor 1 year ago LICENSE.txt 7 years ago blocksy-companion.php 1 year ago plugin.php 1 year ago readme.txt 1 year ago
blocksy-companion.php
127 lines
1 <?php
2
3 /*
4 Plugin Name: Blocksy Companion
5 Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
6 Version: 2.0.91
7 Author: CreativeThemes
8 Author URI: https://creativethemes.com
9 Text Domain: blocksy-companion
10 Domain Path: /languages/
11 License: GPLv2 or later
12 License URI: http://www.gnu.org/licenses/gpl-2.0.html
13 Requires at least: 6.5
14 Requires PHP: 7.0
15 */
16 if ( !defined( 'ABSPATH' ) ) {
17 exit;
18 // Exit if accessed directly.
19 }
20 register_activation_hook( __FILE__, function () {
21 if ( class_exists( '\\Blocksy\\Plugin' ) && !function_exists( 'blc_fs' ) ) {
22 $to_deactivate = plugin_basename( str_replace( '-pro/', '/', __FILE__ ) );
23 if ( is_plugin_active( $to_deactivate ) ) {
24 deactivate_plugins( $to_deactivate );
25 }
26 }
27 if ( isset( $_REQUEST['action'] ) && 'activate-selected' === $_REQUEST['action'] && isset( $_POST['checked'] ) && count( $_POST['checked'] ) > 1 ) {
28 return;
29 }
30 add_option( 'blc_activation_redirect', wp_get_current_user()->ID );
31 } );
32 if ( function_exists( 'blc_fs' ) || class_exists( '\\Blocksy\\Plugin' ) ) {
33 if ( function_exists( 'blc_fs' ) ) {
34 blc_fs()->set_basename( false, __FILE__ );
35 }
36 } else {
37 if ( !function_exists( 'blc_fs' ) && file_exists( dirname( __FILE__ ) . '/freemius/start.php' ) && (is_admin() || wp_doing_cron() || defined( 'WP_CLI' ) && WP_CLI) ) {
38 global $blc_fs;
39 if ( !isset( $blc_fs ) ) {
40 if ( !defined( 'WP_FS__PRODUCT_5115_MULTISITE' ) ) {
41 define( 'WP_FS__PRODUCT_5115_MULTISITE', true );
42 }
43 require_once dirname( __FILE__ ) . '/freemius/start.php';
44 $has_account = true;
45 $instance = \Freemius::instance( 5115, 'blocksy-companion', true );
46 $blocksy_active_extensions = get_option( 'blocksy_active_extensions', [] );
47 if ( !is_array( $blocksy_active_extensions ) ) {
48 $blocksy_active_extensions = [];
49 }
50 if ( in_array( 'white-label', $blocksy_active_extensions ) && ($instance->is_plan( 'agency' ) || $instance->is_plan( 'agency_v2' )) ) {
51 $settings = apply_filters( 'blocksy:ext:white-label:settings', get_option( 'blocksy_ext_white_label_settings', [] ) );
52 if ( $settings && isset( $settings['hide_billing_account'] ) && $settings['hide_billing_account'] && !is_multisite() ) {
53 $has_account = false;
54 }
55 }
56 $blc_fs = fs_dynamic_init( array(
57 'id' => '5115',
58 'slug' => 'blocksy-companion',
59 'premium_slug' => 'blocksy-companion-pro',
60 'type' => 'plugin',
61 'public_key' => 'pk_b00a5cbae90b2e948015a7d0710f5',
62 'premium_suffix' => 'PRO',
63 'is_premium' => false,
64 'has_addons' => false,
65 'has_paid_plans' => true,
66 'menu' => ( true ? [
67 'slug' => 'ct-dashboard',
68 'support' => false,
69 'contact' => false,
70 'pricing' => false,
71 'account' => $has_account,
72 ] : [
73 'support' => false,
74 'contact' => false,
75 'pricing' => false,
76 'account' => false,
77 ] ),
78 'is_live' => true,
79 ) );
80 function blc_fs() {
81 global $blc_fs;
82 // if (! is_admin()) {
83 // throw new Error('Called in frontend!');
84 // }
85 return $blc_fs;
86 }
87
88 blc_fs();
89 do_action( 'blc_fs_loaded' );
90 }
91 }
92 define( 'BLOCKSY__FILE__', __FILE__ );
93 define( 'BLOCKSY_PLUGIN_BASE', plugin_basename( BLOCKSY__FILE__ ) );
94 define( 'BLOCKSY_PATH', plugin_dir_path( BLOCKSY__FILE__ ) );
95 define( 'BLOCKSY_URL', plugin_dir_url( BLOCKSY__FILE__ ) );
96 if ( !version_compare( PHP_VERSION, '7.0', '>=' ) ) {
97 add_action( 'admin_notices', 'blc_fail_php_version' );
98 } elseif ( !version_compare( get_bloginfo( 'version' ), '5.0', '>=' ) ) {
99 add_action( 'admin_notices', 'blc_fail_wp_version' );
100 } else {
101 require BLOCKSY_PATH . 'plugin.php';
102 }
103 /**
104 * Blocksy admin notice for minimum PHP version.
105 *
106 * Warning when the site doesn't have the minimum required PHP version.
107 */
108 function blc_fail_php_version() {
109 /* translators: %s: PHP version */
110 $message = sprintf( esc_html__( 'Blocksy requires PHP version %s+, plugin is currently NOT RUNNING.', 'blocksy-companion' ), '7.0' );
111 $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
112 echo wp_kses_post( $html_message );
113 }
114
115 /**
116 * Blocksy admin notice for minimum WordPress version.
117 *
118 * Warning when the site doesn't have the minimum required WordPress version.
119 */
120 function blc_fail_wp_version() {
121 /* translators: %s: WordPress version */
122 $message = sprintf( esc_html__( 'Blocksy requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT RUNNING.', 'blocksy-companion' ), '5.0' );
123 $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
124 echo wp_kses_post( $html_message );
125 }
126
127 }