Version Description
- Adds new compatibilities to check if plugin editor is enabled
Download this release
Release Info
Developer | raptor235 |
Plugin | Sidekick |
Version | 2.2.4 |
Comparing to | |
See all releases |
Code changes from version 2.2.3 to 2.2.4
- libs/sk_config_data.php +13 -0
- readme.txt +62 -44
- sidekick.php +8 -3
- sidekick_embed.php +27 -6
libs/sk_config_data.php
CHANGED
@@ -26,6 +26,19 @@ if (!class_exists('sk_config_data')) {
|
|
26 |
return $output;
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
function get_themes(){
|
30 |
$themes = wp_get_themes( array( 'allowed' => true ) );
|
31 |
return count($themes);
|
26 |
return $output;
|
27 |
}
|
28 |
|
29 |
+
function get_file_editor_enabled(){
|
30 |
+
if (defined('GD_SYSTEM_PLUGIN_DIR')) {
|
31 |
+
// Only check this file editor setting for GoDaddy Themes
|
32 |
+
$gd_file_editor_enabled = get_site_option( 'gd_file_editor_enabled', null );
|
33 |
+
if (isset($gd_file_editor_enabled) && $gd_file_editor_enabled) {
|
34 |
+
$gd_file_editor_enabled = 'true';
|
35 |
+
} else {
|
36 |
+
$gd_file_editor_enabled = 'false';
|
37 |
+
}
|
38 |
+
}
|
39 |
+
return (isset($gd_file_editor_enabled)) ? $gd_file_editor_enabled : null;
|
40 |
+
}
|
41 |
+
|
42 |
function get_themes(){
|
43 |
$themes = wp_get_themes( array( 'allowed' => true ) );
|
44 |
return count($themes);
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: raptor235,benfox,bitwit,riavalon
|
|
3 |
Donate link: http://www.sidekick.pro
|
4 |
Tags: help, tutorial, training, learn, learning, sidekick, guide, teach, video, manual, videos, wphelp, support, instructions, question, questions, answers, answer, clippy, q&a, wpuniversity, helper, walkthrough
|
5 |
Requires at least: 3.7
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GNU Version 2 or Any Later Version
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,39 +12,56 @@ Real-time, voice-guided WordPress training and support straight from your dashbo
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
|
16 |
|
17 |
-
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
22 |
-
- **How-Tos**: Step-by-step instructions to help you complete a task.
|
23 |
-
- **Hotspots**: Useful reminders for on-screen elements, features and functions.
|
24 |
|
25 |
-
**
|
26 |
|
27 |
-
|
28 |
|
29 |
-
|
|
|
|
|
30 |
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
**SIDEKICK is perfect for you, if...**
|
34 |
|
35 |
-
|
|
|
|
|
36 |
|
37 |
-
|
38 |
|
39 |
-
|
40 |
|
41 |
-
|
42 |
|
43 |
-
|
44 |
|
45 |
Walkthroughs are served directly from our servers, so you don't need to download or install additional files as new or updated walkthroughs are released.
|
46 |
|
47 |
-
|
48 |
|
49 |
== Installation ==
|
50 |
|
@@ -70,56 +87,54 @@ With the user’s permission, Sidekick will collect anonymous data to track walk
|
|
70 |
3. Upload the plugin folder, via FTP, to your /wp-content/plugins/ directory.
|
71 |
4. On your Plugins screen, under Sidekick, click Activate.
|
72 |
|
73 |
-
== Upgrade Notice ==
|
74 |
-
|
75 |
-
Upgrade Notice
|
76 |
-
|
77 |
-
== Activation ==
|
78 |
-
|
79 |
-
After installation you’ll have access to at least 5 Core WordPress Walkthroughs. Activating Sidekick will unlock 30+ free WordPress Core Walkthroughs.
|
80 |
-
|
81 |
-
**Why Upgrade?**
|
82 |
-
|
83 |
-
Purchase a Premium WordPress Core subscription to unlock access to
|
84 |
-
|
85 |
== Frequently Asked Questions ==
|
86 |
|
87 |
-
= What is Sidekick
|
88 |
|
89 |
-
|
90 |
|
91 |
-
|
|
|
92 |
|
93 |
-
|
|
|
94 |
|
95 |
-
= What is
|
|
|
|
|
|
|
96 |
|
97 |
-
|
98 |
|
99 |
-
|
100 |
|
101 |
-
|
102 |
|
103 |
Plugin and theme specific Walkthroughs are called Third Party Walkthroughs and are created and maintained by the plugin or theme creator, unless otherwise mentioned.
|
104 |
|
105 |
= How do I create Walkthroughs for my Plugin(s) or Theme(s)? =
|
106 |
|
107 |
-
|
108 |
|
109 |
= What does Sidekick for WordPress cost? =
|
110 |
|
111 |
-
The Sidekick plugin for WordPress is and always will be free to download and use. Installing the plugin gives you instant and unlimited access to
|
112 |
|
113 |
-
|
|
|
|
|
|
|
|
|
114 |
|
115 |
= Ok, the plugin is installed and activated. How do I use it? =
|
116 |
|
117 |
-
Click on the “Help Me” bottom left of your screen to open the Walkthrough menu.
|
118 |
-
You will be presented with the Walkthrough menu. Select your bucket then your walkthrough and away you go.
|
119 |
|
120 |
= Can I suggest a Walkthrough that I’d like to see or give you feedback on the Sidekick WordPress Plugin? =
|
121 |
|
122 |
-
Absolutely. In fact, we rely on users like you
|
|
|
|
|
123 |
|
124 |
== Screenshots ==
|
125 |
|
@@ -130,6 +145,9 @@ Absolutely. In fact, we rely on users like you to tell us about things that nee
|
|
130 |
|
131 |
== Changelog ==
|
132 |
|
|
|
|
|
|
|
133 |
= 2.2.3 =
|
134 |
* Fixes to user capability checks
|
135 |
|
3 |
Donate link: http://www.sidekick.pro
|
4 |
Tags: help, tutorial, training, learn, learning, sidekick, guide, teach, video, manual, videos, wphelp, support, instructions, question, questions, answers, answer, clippy, q&a, wpuniversity, helper, walkthrough
|
5 |
Requires at least: 3.7
|
6 |
+
Tested up to: 4.2
|
7 |
+
Stable tag: 2.2.4
|
8 |
License: GNU Version 2 or Any Later Version
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
**At last, WordPress Tutorials that actually work!**
|
16 |
|
17 |
+
Sidekick puts interactive, real-time tutorials (**Walkthroughs**) right inside your WordPress dashboard.
|
18 |
|
19 |
+
No more reading documentation or watching videos. **Just Click. Do. Learn.**
|
20 |
|
21 |
+
SIDEKICK for WordPress comes with 55+ Walkthroughs with no signup required (including 30 for the Genesis Framework). You can also choose to [upgrade](http://sidekick.pro/plans/wordpress?utm_source=wordpress.org&utm_medium=plugin_page_description) to over 200 starting at just $3.50/month. Here’s a complete list of what’s in our [library](http://support.sidekick.pro/article/167-which-walkthroughs-are-included-with-wordpress-basics?utm_source=wordpress.org&utm_medium=plugin_page_description).
|
|
|
|
|
22 |
|
23 |
+
**Pro Tip:** If you host with any of our [awesome partners](http://www.sidekick.pro/sidekick-partners?utm_source=wordpress.org&utm_medium=plugin_page_description), you get a the full library for FREE!
|
24 |
|
25 |
+
With SIDEKICK your life will get better because it:
|
26 |
|
27 |
+
- Eliminates the time you spend searching, reading and fast-forwarding through video guides
|
28 |
+
- Speeds up the learning process
|
29 |
+
- Allows you to spend more time creating great websites and content
|
30 |
|
31 |
+
[youtube https://www.youtube.com/watch?v=OAW0WWzIKt4]
|
32 |
+
|
33 |
+
**Features**
|
34 |
+
|
35 |
+
- Guided, step-by-step training
|
36 |
+
- Walkthroughs happen in real-time, right inside your browser
|
37 |
+
- Different solutions for different questions (Overviews, How-Tos & Hotspots)
|
38 |
+
- Audio and visual prompts including captions
|
39 |
+
- Walkthrough analytics for developers
|
40 |
+
- Filter walkthroughs based on user roles
|
41 |
+
- Point and click Walkthrough creation
|
42 |
+
- Walkthroughs for active plugins & themes appear automatically
|
43 |
+
|
44 |
+
**Are you a WordPress Product Developer?**
|
45 |
+
|
46 |
+
COMING SOON: Create customized Walkthroughs for your Plugin and/or Theme by joining our [Developer Program](https://www.sidekick.pro/sidekick-plugins-themes-non-wordpress/?utm_source=wordpress.org&utm_medium=plugin_page_description)!
|
47 |
|
48 |
**SIDEKICK is perfect for you, if...**
|
49 |
|
50 |
+
**You're new to WordPress.** Instead of jumping back-and-forth between documentation, videos, and your own WordPress site, just follow the step-by-step SIDEKICK walkthroughs.
|
51 |
+
|
52 |
+
**You're helping someone learn WordPress.** Instead of repeatedly showing them the basics, let SIDEKICK do it for you - just install the plugin and tell them which walkthroughs to follow.
|
53 |
|
54 |
+
**You build WordPress sites or products for a living (or fun).** Reduce your training and support costs by installing Sidekick on client websites.
|
55 |
|
56 |
+
**Looking for a non-WordPress solution?**
|
57 |
|
58 |
+
If onboarding success, lower support costs, and increasing customer success are important to your online business, then Sidekick would be a great addition to your product!
|
59 |
|
60 |
+
Sidekick works with any web application, requiring no app or browser extension downloads for the user.
|
61 |
|
62 |
Walkthroughs are served directly from our servers, so you don't need to download or install additional files as new or updated walkthroughs are released.
|
63 |
|
64 |
+
You can find out more [here](https://www.sidekick.pro/sidekick-plugins-themes-non-wordpress/?utm_source=wordpress.org&utm_medium=plugin_page_description)
|
65 |
|
66 |
== Installation ==
|
67 |
|
87 |
3. Upload the plugin folder, via FTP, to your /wp-content/plugins/ directory.
|
88 |
4. On your Plugins screen, under Sidekick, click Activate.
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
== Frequently Asked Questions ==
|
91 |
|
92 |
+
= What is Sidekick? =
|
93 |
|
94 |
+
Sidekick is a platform that provides real-time interactive tutorials from within any web application or CMS.
|
95 |
|
96 |
+
= What is a Sidekick Walkthrough? =
|
97 |
+
A Walkthrough is a real-time, guided tutorial that takes you step by step through a task from start to finish. When you complete the Walkthrough, you’ve completed the task!
|
98 |
|
99 |
+
= What’s the difference between a video and a SIDEKICK Walkthrough? =
|
100 |
+
While a video speaks to you about a feature or completing a task, a SIDEKICK Walkthrough walks you step by step through to completing your goals. Walkthroughs are interactive and in real-time, which means they happen live, on your dashboard while a video takes you out of flow and doesn’t work with you to get things done.
|
101 |
|
102 |
+
= What is WordPress Basics? =
|
103 |
+
When we say “WordPress Basics”, we are referring to any Walkthrough that has to do with features and functions provided by a fresh, default install of WordPress, downloaded from WordPress.org. Basically, if a walkthrough is helping you complete a standard WordPress function like creating a post, it’s part of our WordPress Basics Library.
|
104 |
+
|
105 |
+
You can view all the Walkthroughs available in our library [here](http://support.sidekick.pro/article/167-which-walkthroughs-are-included-with-wordpress-basics).
|
106 |
|
107 |
+
= Who Maintains the WordPress Basics Library? =
|
108 |
|
109 |
+
SIDEKICK builds, maintains and updates the WordPress Basics Library.
|
110 |
|
111 |
+
= What about Walkthroughs built for 3rd Party Plugins or Themes? =
|
112 |
|
113 |
Plugin and theme specific Walkthroughs are called Third Party Walkthroughs and are created and maintained by the plugin or theme creator, unless otherwise mentioned.
|
114 |
|
115 |
= How do I create Walkthroughs for my Plugin(s) or Theme(s)? =
|
116 |
|
117 |
+
You can build Walkthroughs for your plugin or theme by joining our WordPress [Developer Program](https://www.sidekick.pro/sidekick-plugins-themes-non-wordpress/?utm_source=wordpress.org&utm_medium=plugin_page_faq). Your Walkthroughs will be available for free to anyone with SIDEKICK plus your plugin or theme activate d.
|
118 |
|
119 |
= What does Sidekick for WordPress cost? =
|
120 |
|
121 |
+
The Sidekick plugin for WordPress is and always will be free to download and use. Installing the plugin gives you instant and unlimited access to 25 basic WordPress How-To and Overview Walkthroughs.
|
122 |
|
123 |
+
Access to the full library of [WordPress Basics Walkthroughs](http://support.sidekick.pro/article/167-which-walkthroughs-are-included-with-wordpress-basics?utm_source=wordpressorg&utm_medium=plugin_page_faq) (Over 190) including Hotspots, starts at just $4.00/mont h.
|
124 |
+
|
125 |
+
You can find out more on our [pricing page](http://www.sidekick.pro/plans/wordpress?utm_source=wordpress.org&utm_medium=plugin_page_faq).
|
126 |
+
|
127 |
+
**Pro Tip:** You can get access to the full Basics Library for free if you host with one of our [partners](http://www.sidekick.pro/partners?utm_source=wordpress.org&utm_medium=plugin_page_faq).
|
128 |
|
129 |
= Ok, the plugin is installed and activated. How do I use it? =
|
130 |
|
131 |
+
Click on the “Help Me” bottom left of your screen to open the Walkthrough menu. You will be presented with the Walkthrough menu. Select your bucket then your walkthrough and away you go.
|
|
|
132 |
|
133 |
= Can I suggest a Walkthrough that I’d like to see or give you feedback on the Sidekick WordPress Plugin? =
|
134 |
|
135 |
+
Absolutely. In fact, we rely on users like you to tell us about things that need to be improved or that you’d like to see added to the plugin. Send your email to [info@sidekick.pro](mailto:info@sidekick.pro).
|
136 |
+
|
137 |
+
We read and respond to every piece of feedback we get.
|
138 |
|
139 |
== Screenshots ==
|
140 |
|
145 |
|
146 |
== Changelog ==
|
147 |
|
148 |
+
= 2.2.4 =
|
149 |
+
* Adds new compatibilities to check if plugin editor is enabled
|
150 |
+
|
151 |
= 2.2.3 =
|
152 |
* Fixes to user capability checks
|
153 |
|
sidekick.php
CHANGED
@@ -6,7 +6,7 @@ Plugin URL: http://wordpress.org/plugins/sidekick/
|
|
6 |
Description: Adds a real-time WordPress training walkthroughs right in your Dashboard
|
7 |
Requires at least: 4.0
|
8 |
Tested up to: 4.1.1
|
9 |
-
Version: 2.2.
|
10 |
Author: Sidekick.pro
|
11 |
Author URI: http://www.sidekick.pro
|
12 |
*/
|
@@ -17,6 +17,8 @@ if ( ! defined( 'PLAYER_PATH' ) ) define( 'PLAYER_PATH', 'tag/latest' );
|
|
17 |
if ( ! defined( 'PLAYER_FILE' ) ) define( 'PLAYER_FILE', 'sidekick.min.js' );
|
18 |
if ( ! defined( 'COMPOSER_DOMAIN' ) ) define( 'COMPOSER_DOMAIN', 'composer.sidekick.pro' );
|
19 |
if ( ! defined( 'COMPOSER_PATH' ) ) define( 'COMPOSER_PATH', 'tag/latest' );
|
|
|
|
|
20 |
if ( ! function_exists('mlog')) {
|
21 |
function mlog(){}
|
22 |
}
|
@@ -231,6 +233,7 @@ if (!class_exists('Sidekick')){
|
|
231 |
$post_types_and_statuses = $sk_config_data->get_post_types_and_statuses();
|
232 |
$number_of_themes = $sk_config_data->get_themes();
|
233 |
$frameworks = $sk_config_data->get_framework();
|
|
|
234 |
|
235 |
delete_option( 'sk_just_activated' );
|
236 |
if(preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT'])) $not_supported_ie = true;
|
@@ -264,6 +267,7 @@ if (!class_exists('Sidekick')){
|
|
264 |
main_soft_version: '<?php echo get_bloginfo("version") ?>',
|
265 |
user_level: '<?php echo $user_role ?>',
|
266 |
main_soft_name: 'WordPress',
|
|
|
267 |
role: '<?php echo $user_role ?>'
|
268 |
},
|
269 |
|
@@ -295,11 +299,12 @@ if (!class_exists('Sidekick')){
|
|
295 |
// Platform Info
|
296 |
library_version: 2,
|
297 |
platform_id: 1,
|
|
|
298 |
|
299 |
// Generic Info
|
300 |
just_activated: <?php echo ($sk_just_activated) ? "true" : "false" ?>,
|
301 |
platform_version: null,
|
302 |
-
plugin_version: '2.2.
|
303 |
show_login: <?php echo ($sk_just_activated) ? "true" : "false" ?>,
|
304 |
|
305 |
// SIDEKICK URLS
|
@@ -416,7 +421,7 @@ if (!class_exists('Sidekick')){
|
|
416 |
|
417 |
function check_ver(){
|
418 |
|
419 |
-
$data = json_encode('2.2.
|
420 |
|
421 |
if(array_key_exists('callback', $_GET)){
|
422 |
|
6 |
Description: Adds a real-time WordPress training walkthroughs right in your Dashboard
|
7 |
Requires at least: 4.0
|
8 |
Tested up to: 4.1.1
|
9 |
+
Version: 2.2.4
|
10 |
Author: Sidekick.pro
|
11 |
Author URI: http://www.sidekick.pro
|
12 |
*/
|
17 |
if ( ! defined( 'PLAYER_FILE' ) ) define( 'PLAYER_FILE', 'sidekick.min.js' );
|
18 |
if ( ! defined( 'COMPOSER_DOMAIN' ) ) define( 'COMPOSER_DOMAIN', 'composer.sidekick.pro' );
|
19 |
if ( ! defined( 'COMPOSER_PATH' ) ) define( 'COMPOSER_PATH', 'tag/latest' );
|
20 |
+
if ( ! defined( 'SK_EMBED_PARTNER' ) ) define( 'SK_EMBED_PARTNER', '' );
|
21 |
+
|
22 |
if ( ! function_exists('mlog')) {
|
23 |
function mlog(){}
|
24 |
}
|
233 |
$post_types_and_statuses = $sk_config_data->get_post_types_and_statuses();
|
234 |
$number_of_themes = $sk_config_data->get_themes();
|
235 |
$frameworks = $sk_config_data->get_framework();
|
236 |
+
$file_editor_enabled = $sk_config_data->get_file_editor_enabled();
|
237 |
|
238 |
delete_option( 'sk_just_activated' );
|
239 |
if(preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT'])) $not_supported_ie = true;
|
267 |
main_soft_version: '<?php echo get_bloginfo("version") ?>',
|
268 |
user_level: '<?php echo $user_role ?>',
|
269 |
main_soft_name: 'WordPress',
|
270 |
+
file_editor_enabled: <?php echo ($file_editor_enabled) ? $file_editor_enabled: 'null' ?>,
|
271 |
role: '<?php echo $user_role ?>'
|
272 |
},
|
273 |
|
299 |
// Platform Info
|
300 |
library_version: 2,
|
301 |
platform_id: 1,
|
302 |
+
embed_partner: '<?php echo SK_EMBED_PARTNER ?>',
|
303 |
|
304 |
// Generic Info
|
305 |
just_activated: <?php echo ($sk_just_activated) ? "true" : "false" ?>,
|
306 |
platform_version: null,
|
307 |
+
plugin_version: '2.2.4',
|
308 |
show_login: <?php echo ($sk_just_activated) ? "true" : "false" ?>,
|
309 |
|
310 |
// SIDEKICK URLS
|
421 |
|
422 |
function check_ver(){
|
423 |
|
424 |
+
$data = json_encode('2.2.4');
|
425 |
|
426 |
if(array_key_exists('callback', $_GET)){
|
427 |
|
sidekick_embed.php
CHANGED
@@ -8,7 +8,7 @@ Description: Adds a real-time WordPress training walkthroughs right in your Dash
|
|
8 |
We recommend not activating SIDEKICK automatically for people but via an Opt-In process when they configure your own theme or plugin.
|
9 |
Requires at least: 4.0
|
10 |
Tested up to: 4.1.1
|
11 |
-
Version: 2.2.
|
12 |
Author: Sidekick.pro
|
13 |
Author URI: http://www.sidekick.pro
|
14 |
*/
|
@@ -19,11 +19,16 @@ if ( ! defined( 'PLAYER_PATH' ) ) define( 'PLAYER_PATH', 'tag/latest' );
|
|
19 |
if ( ! defined( 'PLAYER_FILE' ) ) define( 'PLAYER_FILE', 'sidekick.min.js' );
|
20 |
if ( ! defined( 'COMPOSER_DOMAIN' ) ) define( 'COMPOSER_DOMAIN', 'composer.sidekick.pro' );
|
21 |
if ( ! defined( 'COMPOSER_PATH' ) ) define( 'COMPOSER_PATH', 'tag/latest' );
|
|
|
|
|
22 |
if ( ! function_exists('mlog')) {
|
23 |
function mlog(){}
|
24 |
}
|
25 |
|
26 |
-
|
|
|
|
|
|
|
27 |
|
28 |
class Sidekick{
|
29 |
|
@@ -447,6 +452,7 @@ if (!class_exists('Sidekick')){
|
|
447 |
$post_types_and_statuses = $sk_config_data->get_post_types_and_statuses();
|
448 |
$number_of_themes = $sk_config_data->get_themes();
|
449 |
$frameworks = $sk_config_data->get_framework();
|
|
|
450 |
|
451 |
delete_option( 'sk_just_activated' );
|
452 |
if(preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT'])) $not_supported_ie = true;
|
@@ -480,6 +486,7 @@ if (!class_exists('Sidekick')){
|
|
480 |
main_soft_version: '<?php echo get_bloginfo("version") ?>',
|
481 |
user_level: '<?php echo $user_role ?>',
|
482 |
main_soft_name: 'WordPress',
|
|
|
483 |
role: '<?php echo $user_role ?>'
|
484 |
},
|
485 |
|
@@ -511,11 +518,12 @@ if (!class_exists('Sidekick')){
|
|
511 |
// Platform Info
|
512 |
library_version: 2,
|
513 |
platform_id: 1,
|
|
|
514 |
|
515 |
// Generic Info
|
516 |
just_activated: <?php echo ($sk_just_activated) ? "true" : "false" ?>,
|
517 |
platform_version: null,
|
518 |
-
plugin_version: '2.2.
|
519 |
show_login: <?php echo ($sk_just_activated) ? "true" : "false" ?>,
|
520 |
|
521 |
// SIDEKICK URLS
|
@@ -632,7 +640,7 @@ if (!class_exists('Sidekick')){
|
|
632 |
|
633 |
function check_ver(){
|
634 |
|
635 |
-
$data = json_encode('2.2.
|
636 |
|
637 |
if(array_key_exists('callback', $_GET)){
|
638 |
|
@@ -751,7 +759,7 @@ if (defined('MULTISITE')) {
|
|
751 |
|
752 |
// licensing.php
|
753 |
|
754 |
-
if (!class_exists('sidekickMassActivator')) {
|
755 |
|
756 |
class sidekickMassActivator{
|
757 |
|
@@ -1345,7 +1353,7 @@ if (!class_exists('sidekickMassActivator')) {
|
|
1345 |
|
1346 |
// sk_config_data.php
|
1347 |
|
1348 |
-
if (!class_exists('sk_config_data')) {
|
1349 |
|
1350 |
class sk_config_data{
|
1351 |
function get_domain(){
|
@@ -1370,6 +1378,19 @@ if (!class_exists('sk_config_data')) {
|
|
1370 |
return $output;
|
1371 |
}
|
1372 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1373 |
function get_themes(){
|
1374 |
$themes = wp_get_themes( array( 'allowed' => true ) );
|
1375 |
return count($themes);
|
8 |
We recommend not activating SIDEKICK automatically for people but via an Opt-In process when they configure your own theme or plugin.
|
9 |
Requires at least: 4.0
|
10 |
Tested up to: 4.1.1
|
11 |
+
Version: 2.2.4
|
12 |
Author: Sidekick.pro
|
13 |
Author URI: http://www.sidekick.pro
|
14 |
*/
|
19 |
if ( ! defined( 'PLAYER_FILE' ) ) define( 'PLAYER_FILE', 'sidekick.min.js' );
|
20 |
if ( ! defined( 'COMPOSER_DOMAIN' ) ) define( 'COMPOSER_DOMAIN', 'composer.sidekick.pro' );
|
21 |
if ( ! defined( 'COMPOSER_PATH' ) ) define( 'COMPOSER_PATH', 'tag/latest' );
|
22 |
+
if ( ! defined( 'SK_EMBED_PARTNER' ) ) define( 'SK_EMBED_PARTNER', '' );
|
23 |
+
|
24 |
if ( ! function_exists('mlog')) {
|
25 |
function mlog(){}
|
26 |
}
|
27 |
|
28 |
+
$sidekick_active = null;
|
29 |
+
if (!function_exists('is_plugin_active')) { include_once( ABSPATH . 'wp-admin/includes/plugin.php' );}
|
30 |
+
if (function_exists('is_plugin_active')) { $sidekick_active = is_plugin_active('sidekick/sidekick.php');}
|
31 |
+
if (!$sidekick_active && !class_exists('Sidekick')){
|
32 |
|
33 |
class Sidekick{
|
34 |
|
452 |
$post_types_and_statuses = $sk_config_data->get_post_types_and_statuses();
|
453 |
$number_of_themes = $sk_config_data->get_themes();
|
454 |
$frameworks = $sk_config_data->get_framework();
|
455 |
+
$file_editor_enabled = $sk_config_data->get_file_editor_enabled();
|
456 |
|
457 |
delete_option( 'sk_just_activated' );
|
458 |
if(preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT'])) $not_supported_ie = true;
|
486 |
main_soft_version: '<?php echo get_bloginfo("version") ?>',
|
487 |
user_level: '<?php echo $user_role ?>',
|
488 |
main_soft_name: 'WordPress',
|
489 |
+
file_editor_enabled: <?php echo ($file_editor_enabled) ? $file_editor_enabled: 'null' ?>,
|
490 |
role: '<?php echo $user_role ?>'
|
491 |
},
|
492 |
|
518 |
// Platform Info
|
519 |
library_version: 2,
|
520 |
platform_id: 1,
|
521 |
+
embed_partner: '<?php echo SK_EMBED_PARTNER ?>',
|
522 |
|
523 |
// Generic Info
|
524 |
just_activated: <?php echo ($sk_just_activated) ? "true" : "false" ?>,
|
525 |
platform_version: null,
|
526 |
+
plugin_version: '2.2.4',
|
527 |
show_login: <?php echo ($sk_just_activated) ? "true" : "false" ?>,
|
528 |
|
529 |
// SIDEKICK URLS
|
640 |
|
641 |
function check_ver(){
|
642 |
|
643 |
+
$data = json_encode('2.2.4');
|
644 |
|
645 |
if(array_key_exists('callback', $_GET)){
|
646 |
|
759 |
|
760 |
// licensing.php
|
761 |
|
762 |
+
if (!$sidekick_active && !class_exists('sidekickMassActivator')) {
|
763 |
|
764 |
class sidekickMassActivator{
|
765 |
|
1353 |
|
1354 |
// sk_config_data.php
|
1355 |
|
1356 |
+
if (!$sidekick_active && !class_exists('sk_config_data')) {
|
1357 |
|
1358 |
class sk_config_data{
|
1359 |
function get_domain(){
|
1378 |
return $output;
|
1379 |
}
|
1380 |
|
1381 |
+
function get_file_editor_enabled(){
|
1382 |
+
if (defined('GD_SYSTEM_PLUGIN_DIR')) {
|
1383 |
+
// Only check this file editor setting for GoDaddy Themes
|
1384 |
+
$gd_file_editor_enabled = get_site_option( 'gd_file_editor_enabled', null );
|
1385 |
+
if (isset($gd_file_editor_enabled) && $gd_file_editor_enabled) {
|
1386 |
+
$gd_file_editor_enabled = 'true';
|
1387 |
+
} else {
|
1388 |
+
$gd_file_editor_enabled = 'false';
|
1389 |
+
}
|
1390 |
+
}
|
1391 |
+
return (isset($gd_file_editor_enabled)) ? $gd_file_editor_enabled : null;
|
1392 |
+
}
|
1393 |
+
|
1394 |
function get_themes(){
|
1395 |
$themes = wp_get_themes( array( 'allowed' => true ) );
|
1396 |
return count($themes);
|