PluginProbe ʕ •ᴥ•ʔ
Blocksy Companion / 2.0.67
Blocksy Companion v2.0.67
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
129 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.67
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 */
14 if ( !defined( 'ABSPATH' ) ) {
15 exit;
16 // Exit if accessed directly.
17 }
18 register_activation_hook( __FILE__, function () {
19 if ( class_exists( '\\Blocksy\\Plugin' ) && !function_exists( 'blc_fs' ) ) {
20 $to_deactivate = plugin_basename( str_replace( '-pro/', '/', __FILE__ ) );
21 if ( is_plugin_active( $to_deactivate ) ) {
22 deactivate_plugins( $to_deactivate );
23 }
24 }
25 if ( isset( $_REQUEST['action'] ) && 'activate-selected' === $_REQUEST['action'] && isset( $_POST['checked'] ) && count( $_POST['checked'] ) > 1 ) {
26 return;
27 }
28 add_option( 'blc_activation_redirect', wp_get_current_user()->ID );
29 } );
30 if ( function_exists( 'blc_fs' ) || class_exists( '\\Blocksy\\Plugin' ) ) {
31 if ( function_exists( 'blc_fs' ) ) {
32 blc_fs()->set_basename( false, __FILE__ );
33 }
34 } else {
35 if ( !function_exists( 'blc_fs' ) && file_exists( dirname( __FILE__ ) . '/freemius/start.php' ) && (is_admin() || wp_doing_cron() || defined( 'WP_CLI' ) && WP_CLI) ) {
36 global $blc_fs;
37 if ( !isset( $blc_fs ) ) {
38 if ( !defined( 'WP_FS__PRODUCT_5115_MULTISITE' ) ) {
39 define( 'WP_FS__PRODUCT_5115_MULTISITE', true );
40 }
41 require_once dirname( __FILE__ ) . '/freemius/start.php';
42 $has_account = true;
43 $instance = \Freemius::instance( 5115, 'blocksy-companion', true );
44 if ( in_array( 'white-label', get_option( 'blocksy_active_extensions', [] ) ) && ($instance->is_plan( 'agency' ) || $instance->is_plan( 'agency_v2' )) ) {
45 $settings = apply_filters( 'blocksy:ext:white-label:settings', get_option( 'blocksy_ext_white_label_settings', [] ) );
46 if ( $settings && isset( $settings['hide_billing_account'] ) && $settings['hide_billing_account'] ) {
47 $has_account = false;
48 }
49 }
50 $blc_fs = fs_dynamic_init( array(
51 'id' => '5115',
52 'slug' => 'blocksy-companion',
53 'premium_slug' => 'blocksy-companion-pro',
54 'type' => 'plugin',
55 'public_key' => 'pk_b00a5cbae90b2e948015a7d0710f5',
56 'premium_suffix' => 'PRO',
57 'is_premium' => false,
58 'has_addons' => false,
59 'has_paid_plans' => true,
60 'menu' => ( true ? [
61 'slug' => 'ct-dashboard',
62 'support' => false,
63 'contact' => false,
64 'pricing' => false,
65 'account' => $has_account,
66 ] : [
67 'support' => false,
68 'contact' => false,
69 'pricing' => false,
70 'account' => false,
71 ] ),
72 'is_live' => true,
73 ) );
74 function blc_fs() {
75 global $blc_fs;
76 // if (! is_admin()) {
77 // throw new Error('Called in frontend!');
78 // }
79 return $blc_fs;
80 }
81
82 blc_fs();
83 do_action( 'blc_fs_loaded' );
84 }
85 }
86 define( 'BLOCKSY__FILE__', __FILE__ );
87 define( 'BLOCKSY_PLUGIN_BASE', plugin_basename( BLOCKSY__FILE__ ) );
88 define( 'BLOCKSY_PATH', plugin_dir_path( BLOCKSY__FILE__ ) );
89 define( 'BLOCKSY_URL', plugin_dir_url( BLOCKSY__FILE__ ) );
90 add_action( 'init', function () {
91 /**
92 * Load Blocksy textdomain.
93 *
94 * Load gettext translate for Blocksy text domain.
95 */
96 load_plugin_textdomain( 'blocksy-companion', false, dirname( BLOCKSY_PLUGIN_BASE ) . '/languages' );
97 } );
98 if ( !version_compare( PHP_VERSION, '7.0', '>=' ) ) {
99 add_action( 'admin_notices', 'blc_fail_php_version' );
100 } elseif ( !version_compare( get_bloginfo( 'version' ), '5.0', '>=' ) ) {
101 add_action( 'admin_notices', 'blc_fail_wp_version' );
102 } else {
103 require BLOCKSY_PATH . 'plugin.php';
104 }
105 /**
106 * Blocksy admin notice for minimum PHP version.
107 *
108 * Warning when the site doesn't have the minimum required PHP version.
109 */
110 function blc_fail_php_version() {
111 /* translators: %s: PHP version */
112 $message = sprintf( esc_html__( 'Blocksy requires PHP version %s+, plugin is currently NOT RUNNING.', 'blocksy-companion' ), '7.0' );
113 $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
114 echo wp_kses_post( $html_message );
115 }
116
117 /**
118 * Blocksy admin notice for minimum WordPress version.
119 *
120 * Warning when the site doesn't have the minimum required WordPress version.
121 */
122 function blc_fail_wp_version() {
123 /* translators: %s: WordPress version */
124 $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' );
125 $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
126 echo wp_kses_post( $html_message );
127 }
128
129 }