Version Description
- Added new sdk logic.
- Improved compatibility with the pro version.
Download this release
Release Info
Developer | codeinwp |
Plugin | FEEDZY RSS Feeds Lite |
Version | 3.1.7 |
Comparing to | |
See all releases |
Code changes from version 3.1.6 to 3.1.7
- CHANGELOG.md +4 -2
- css/feedzy-rss-feeds.css +1 -1
- feedzy-rss-feed.php +6 -2
- includes/feedzy-rss-feeds.php +1 -1
- readme.txt +3 -1
- vendor/autoload.php +1 -1
- vendor/autoload_52.php +1 -1
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-licenser.php +23 -0
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-loader.php +5 -29
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-product.php +46 -7
- vendor/codeinwp/themeisle-sdk/composer.json +0 -16
- vendor/codeinwp/themeisle-sdk/load.php +35 -0
- vendor/codeinwp/themeisle-sdk/start.php +35 -0
- vendor/composer/autoload_classmap.php +0 -12
- vendor/composer/autoload_files.php +10 -0
- vendor/composer/autoload_real.php +17 -3
- vendor/composer/autoload_real_52.php +5 -3
- vendor/composer/installed.json +6 -23
CHANGELOG.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
|
2 |
-
### v3.1.
|
3 |
**Changes:**
|
4 |
-
|
|
|
|
|
5 |
### v3.1.6 - 2017-06-02
|
6 |
**Changes:**
|
7 |
- Added sdk test.
|
1 |
|
2 |
+
### v3.1.7 - 2017-06-21
|
3 |
**Changes:**
|
4 |
+
* Added new sdk logic.
|
5 |
+
* Improved compatibility with the pro version.
|
6 |
+
|
7 |
### v3.1.6 - 2017-06-02
|
8 |
**Changes:**
|
9 |
- Added sdk test.
|
css/feedzy-rss-feeds.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* feedzy-rss-feeds.css
|
3 |
* Feedzy RSS Feed
|
4 |
* Copyright: (c) 2016 Themeisle, themeisle.com
|
5 |
-
* Version: 3.1.
|
6 |
* Plugin Name: FEEDZY RSS Feeds
|
7 |
* Plugin URI: http://themeisle.com/plugins/feedzy-rss-feeds/
|
8 |
* Author: Themeisle
|
2 |
* feedzy-rss-feeds.css
|
3 |
* Feedzy RSS Feed
|
4 |
* Copyright: (c) 2016 Themeisle, themeisle.com
|
5 |
+
* Version: 3.1.7
|
6 |
* Plugin Name: FEEDZY RSS Feeds
|
7 |
* Plugin URI: http://themeisle.com/plugins/feedzy-rss-feeds/
|
8 |
* Author: Themeisle
|
feedzy-rss-feed.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: Feedzy RSS Feeds Lite
|
16 |
* Plugin URI: https://themeisle.com/plugins/feedzy-rss-feeds-lite/
|
17 |
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area.
|
18 |
-
* Version: 3.1.
|
19 |
* Author: Themeisle
|
20 |
* Author URI: http://themeisle.com
|
21 |
* License: GPL-2.0+
|
@@ -107,8 +107,12 @@ function run_feedzy_rss_feeds() {
|
|
107 |
$vendor_file = FEEDZY_ABSPATH . '/vendor/autoload_52.php';
|
108 |
if ( is_readable( $vendor_file ) ) {
|
109 |
require_once $vendor_file;
|
110 |
-
ThemeIsle_SDK_Loader::init_product( FEEDZY_BASEFILE );
|
111 |
}
|
|
|
|
|
|
|
|
|
|
|
112 |
}
|
113 |
|
114 |
spl_autoload_register( 'feedzy_rss_feeds_autoload' );
|
15 |
* Plugin Name: Feedzy RSS Feeds Lite
|
16 |
* Plugin URI: https://themeisle.com/plugins/feedzy-rss-feeds-lite/
|
17 |
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area.
|
18 |
+
* Version: 3.1.7
|
19 |
* Author: Themeisle
|
20 |
* Author URI: http://themeisle.com
|
21 |
* License: GPL-2.0+
|
107 |
$vendor_file = FEEDZY_ABSPATH . '/vendor/autoload_52.php';
|
108 |
if ( is_readable( $vendor_file ) ) {
|
109 |
require_once $vendor_file;
|
|
|
110 |
}
|
111 |
+
add_filter( 'themeisle_sdk_products', function ( $products ) {
|
112 |
+
$products[] = FEEDZY_BASEFILE;
|
113 |
+
|
114 |
+
return $products;
|
115 |
+
} );
|
116 |
}
|
117 |
|
118 |
spl_autoload_register( 'feedzy_rss_feeds_autoload' );
|
includes/feedzy-rss-feeds.php
CHANGED
@@ -104,7 +104,7 @@ class Feedzy_Rss_Feeds {
|
|
104 |
*/
|
105 |
public function init() {
|
106 |
self::$plugin_name = 'feedzy-rss-feeds';
|
107 |
-
self::$version = '3.1.
|
108 |
self::$instance->load_dependencies();
|
109 |
self::$instance->set_locale();
|
110 |
self::$instance->define_admin_hooks();
|
104 |
*/
|
105 |
public function init() {
|
106 |
self::$plugin_name = 'feedzy-rss-feeds';
|
107 |
+
self::$version = '3.1.7';
|
108 |
self::$instance->load_dependencies();
|
109 |
self::$instance->set_locale();
|
110 |
self::$instance->define_admin_hooks();
|
readme.txt
CHANGED
@@ -205,8 +205,10 @@ http://docs.themeisle.com/article/640-how-to-use-feedzy-categories
|
|
205 |
|
206 |
|
207 |
== Changelog ==
|
208 |
-
= 3.1.
|
209 |
|
|
|
|
|
210 |
|
211 |
|
212 |
|
205 |
|
206 |
|
207 |
== Changelog ==
|
208 |
+
= 3.1.7 =
|
209 |
|
210 |
+
* Added new sdk logic.
|
211 |
+
* Improved compatibility with the pro version.
|
212 |
|
213 |
|
214 |
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitafcbafc262073611f93d4da2d44890c7::getLoader();
|
vendor/autoload_52.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitfb848037b4f3828a83e60b26fda57767::getLoader();
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-licenser.php
CHANGED
@@ -75,6 +75,28 @@ if ( ! class_exists( 'ThemeIsle_SDK_Licenser' ) ) :
|
|
75 |
add_action( 'admin_notices', array( $this, 'show_notice' ) );
|
76 |
}
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
/**
|
79 |
* Register the setting for the license of the product
|
80 |
*
|
@@ -427,6 +449,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Licenser' ) ) :
|
|
427 |
add_action( 'load-update-core.php', array( &$this, 'delete_theme_update_transient' ) );
|
428 |
add_action( 'load-themes.php', array( &$this, 'delete_theme_update_transient' ) );
|
429 |
add_action( 'load-themes.php', array( &$this, 'load_themes_screen' ) );
|
|
|
430 |
|
431 |
}
|
432 |
|
75 |
add_action( 'admin_notices', array( $this, 'show_notice' ) );
|
76 |
}
|
77 |
|
78 |
+
/**
|
79 |
+
* @param string $r Update payload.
|
80 |
+
* @param string $url The api url.
|
81 |
+
*
|
82 |
+
* @return mixed List of themes to check for update.
|
83 |
+
*/
|
84 |
+
function disable_wporg_update( $r, $url ) {
|
85 |
+
|
86 |
+
if ( 0 !== strpos( $url, 'https://api.wordpress.org/themes/update-check/' ) ) {
|
87 |
+
return $r;
|
88 |
+
}
|
89 |
+
|
90 |
+
// Decode the JSON response
|
91 |
+
$themes = json_decode( $r['body']['themes'] );
|
92 |
+
|
93 |
+
unset( $themes->themes->{ $this->product->get_slug() } );
|
94 |
+
|
95 |
+
// Encode the updated JSON response
|
96 |
+
$r['body']['themes'] = json_encode( $themes );
|
97 |
+
|
98 |
+
return $r;
|
99 |
+
}
|
100 |
/**
|
101 |
* Register the setting for the license of the product
|
102 |
*
|
449 |
add_action( 'load-update-core.php', array( &$this, 'delete_theme_update_transient' ) );
|
450 |
add_action( 'load-themes.php', array( &$this, 'delete_theme_update_transient' ) );
|
451 |
add_action( 'load-themes.php', array( &$this, 'load_themes_screen' ) );
|
452 |
+
add_filter( 'http_request_args', array( $this, 'disable_wporg_update' ), 5, 2 );
|
453 |
|
454 |
}
|
455 |
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-loader.php
CHANGED
@@ -38,9 +38,10 @@ if ( ! class_exists( 'ThemeIsle_SDK_Loader' ) ) :
|
|
38 |
* @return ThemeIsle_SDK_Loader The singleton object.
|
39 |
*/
|
40 |
public static function init_product( $basefile ) {
|
|
|
41 |
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof ThemeIsle_SDK_Loader ) ) {
|
42 |
self::$instance = new ThemeIsle_SDK_Loader;
|
43 |
-
|
44 |
}
|
45 |
$product_object = new ThemeIsle_SDK_Product( $basefile );
|
46 |
self::$products[ $product_object->get_slug() ] = $product_object;
|
@@ -66,8 +67,9 @@ if ( ! class_exists( 'ThemeIsle_SDK_Loader' ) ) :
|
|
66 |
$notifications[] = $instances['review'];
|
67 |
}
|
68 |
new ThemeIsle_SDK_Notification_Manager( $product_object, $notifications );
|
69 |
-
|
70 |
-
|
|
|
71 |
|
72 |
return self::$instance;
|
73 |
}
|
@@ -81,32 +83,6 @@ if ( ! class_exists( 'ThemeIsle_SDK_Loader' ) ) :
|
|
81 |
return self::$products;
|
82 |
}
|
83 |
|
84 |
-
/**
|
85 |
-
* Setup loader hookds.
|
86 |
-
*/
|
87 |
-
public function setup_hooks() {
|
88 |
-
add_filter( 'extra_plugin_headers', array( $this, 'add_extra_headers' ) );
|
89 |
-
add_filter( 'extra_theme_headers', array( $this, 'add_extra_headers' ) );
|
90 |
-
}
|
91 |
-
|
92 |
-
/**
|
93 |
-
* @param array $headers The extra headers.
|
94 |
-
*
|
95 |
-
* @return array The new headers.
|
96 |
-
*/
|
97 |
-
function add_extra_headers( $headers ) {
|
98 |
-
if ( ! in_array( 'Requires License', $headers ) ) {
|
99 |
-
$headers[] = 'Requires License';
|
100 |
-
}
|
101 |
-
if ( ! in_array( 'WordPress Available', $headers ) ) {
|
102 |
-
$headers[] = 'WordPress Available';
|
103 |
-
}
|
104 |
-
if ( ! in_array( 'Pro Slug', $headers ) ) {
|
105 |
-
$headers[] = 'Pro Slug';
|
106 |
-
}
|
107 |
-
|
108 |
-
return $headers;
|
109 |
-
}
|
110 |
|
111 |
}
|
112 |
endif;
|
38 |
* @return ThemeIsle_SDK_Loader The singleton object.
|
39 |
*/
|
40 |
public static function init_product( $basefile ) {
|
41 |
+
|
42 |
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof ThemeIsle_SDK_Loader ) ) {
|
43 |
self::$instance = new ThemeIsle_SDK_Loader;
|
44 |
+
|
45 |
}
|
46 |
$product_object = new ThemeIsle_SDK_Product( $basefile );
|
47 |
self::$products[ $product_object->get_slug() ] = $product_object;
|
67 |
$notifications[] = $instances['review'];
|
68 |
}
|
69 |
new ThemeIsle_SDK_Notification_Manager( $product_object, $notifications );
|
70 |
+
if ( ! $product_object->is_external_author() ) {
|
71 |
+
new ThemeIsle_SDK_Widgets_Factory( $product_object, $product_object->get_widget_types() );
|
72 |
+
}
|
73 |
|
74 |
return self::$instance;
|
75 |
}
|
83 |
return self::$products;
|
84 |
}
|
85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
}
|
88 |
endif;
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-product.php
CHANGED
@@ -41,6 +41,10 @@ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
|
|
41 |
* @var string $key The product ready key.
|
42 |
*/
|
43 |
private $key;
|
|
|
|
|
|
|
|
|
44 |
/**
|
45 |
* @var string $store_url The store url.
|
46 |
*/
|
@@ -53,6 +57,10 @@ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
|
|
53 |
* @var string $store_name The store name.
|
54 |
*/
|
55 |
private $store_name;
|
|
|
|
|
|
|
|
|
56 |
/**
|
57 |
* @var bool $requires_license Either user needs to activate it with license.
|
58 |
*/
|
@@ -104,23 +112,39 @@ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
|
|
104 |
$this->install = $install;
|
105 |
|
106 |
$this->logger_option = $this->get_key() . '_logger_flag';
|
|
|
107 |
}
|
108 |
|
109 |
/**
|
110 |
* Setup props from fileheaders.
|
111 |
*/
|
112 |
public function setup_from_fileheaders() {
|
113 |
-
$file_headers = array(
|
|
|
|
|
|
|
|
|
|
|
114 |
if ( $this->type == 'plugin' ) {
|
115 |
-
|
116 |
-
$file_headers =
|
|
|
117 |
}
|
118 |
if ( $this->type == 'theme' ) {
|
119 |
-
$file_headers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
}
|
121 |
-
$this->name = $file_headers['Name'];
|
122 |
-
$this->store_name = $file_headers['AuthorName'];
|
123 |
-
$this->store_url = $file_headers['AuthorURI'];
|
124 |
$this->requires_license = ( $file_headers['Requires License'] == 'yes' ) ? true : false;
|
125 |
$this->wordpress_available = ( $file_headers['WordPress Available'] == 'yes' ) ? true : false;
|
126 |
$this->pro_slug = ! empty( $file_headers['Pro Slug'] ) ? $file_headers['Pro Slug'] : '';
|
@@ -133,6 +157,21 @@ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
|
|
133 |
}
|
134 |
}
|
135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
/**
|
137 |
* The magic var_dump info method.
|
138 |
*
|
41 |
* @var string $key The product ready key.
|
42 |
*/
|
43 |
private $key;
|
44 |
+
/**
|
45 |
+
* @var string $author_url The url of the author.
|
46 |
+
*/
|
47 |
+
private $author_url;
|
48 |
/**
|
49 |
* @var string $store_url The store url.
|
50 |
*/
|
57 |
* @var string $store_name The store name.
|
58 |
*/
|
59 |
private $store_name;
|
60 |
+
/**
|
61 |
+
* @var array $allowed_authors The allowed authors.
|
62 |
+
*/
|
63 |
+
private $allowed_authors = array( 'proteusthemes.com' );
|
64 |
/**
|
65 |
* @var bool $requires_license Either user needs to activate it with license.
|
66 |
*/
|
112 |
$this->install = $install;
|
113 |
|
114 |
$this->logger_option = $this->get_key() . '_logger_flag';
|
115 |
+
|
116 |
}
|
117 |
|
118 |
/**
|
119 |
* Setup props from fileheaders.
|
120 |
*/
|
121 |
public function setup_from_fileheaders() {
|
122 |
+
$file_headers = array(
|
123 |
+
'Requires License' => 'Requires License',
|
124 |
+
'WordPress Available' => 'WordPress Available',
|
125 |
+
'Pro Slug' => 'Pro Slug',
|
126 |
+
'Version' => 'Version',
|
127 |
+
);
|
128 |
if ( $this->type == 'plugin' ) {
|
129 |
+
$file_headers['Name'] = 'Plugin Name';
|
130 |
+
$file_headers['AuthorName'] = 'Author';
|
131 |
+
$file_headers['AuthorURI'] = 'Author URI';
|
132 |
}
|
133 |
if ( $this->type == 'theme' ) {
|
134 |
+
$file_headers['Name'] = 'Theme Name';
|
135 |
+
$file_headers['AuthorName'] = 'Author';
|
136 |
+
$file_headers['AuthorURI'] = 'Author URI';
|
137 |
+
}
|
138 |
+
$file_headers = get_file_data( $this->basefile, $file_headers );
|
139 |
+
|
140 |
+
$this->name = $file_headers['Name'];
|
141 |
+
$this->store_name = $file_headers['AuthorName'];
|
142 |
+
$this->author_url = $file_headers['AuthorURI'];
|
143 |
+
$this->store_url = $file_headers['AuthorURI'];
|
144 |
+
if ( $this->is_external_author() ) {
|
145 |
+
$this->store_url = 'https://themeisle.com';
|
146 |
+
$this->store_name = 'ThemeIsle';
|
147 |
}
|
|
|
|
|
|
|
148 |
$this->requires_license = ( $file_headers['Requires License'] == 'yes' ) ? true : false;
|
149 |
$this->wordpress_available = ( $file_headers['WordPress Available'] == 'yes' ) ? true : false;
|
150 |
$this->pro_slug = ! empty( $file_headers['Pro Slug'] ) ? $file_headers['Pro Slug'] : '';
|
157 |
}
|
158 |
}
|
159 |
|
160 |
+
/**
|
161 |
+
* Check if the product is by external author or not.
|
162 |
+
*
|
163 |
+
* @return bool Either is external author or no.
|
164 |
+
*/
|
165 |
+
public function is_external_author() {
|
166 |
+
foreach ( $this->allowed_authors as $author ) {
|
167 |
+
if ( strpos( $this->author_url, $author ) !== false ) {
|
168 |
+
return true;
|
169 |
+
}
|
170 |
+
}
|
171 |
+
|
172 |
+
return false;
|
173 |
+
}
|
174 |
+
|
175 |
/**
|
176 |
* The magic var_dump info method.
|
177 |
*
|
vendor/codeinwp/themeisle-sdk/composer.json
CHANGED
@@ -13,22 +13,6 @@
|
|
13 |
"homepage": "https://themeisle.com"
|
14 |
}
|
15 |
],
|
16 |
-
"autoload": {
|
17 |
-
"classmap": [
|
18 |
-
"class-themeisle-sdk-loader.php",
|
19 |
-
"class-themeisle-sdk-product.php",
|
20 |
-
"class-themeisle-sdk-logger.php",
|
21 |
-
"class-themeisle-sdk-licenser.php",
|
22 |
-
"class-themeisle-sdk-feedback-factory.php",
|
23 |
-
"class-themeisle-sdk-feedback.php",
|
24 |
-
"class-themeisle-sdk-feedback-deactivate.php",
|
25 |
-
"class-themeisle-sdk-feedback-review.php",
|
26 |
-
"class-themeisle-sdk-notification-manager.php",
|
27 |
-
"class-themeisle-sdk-widget.php",
|
28 |
-
"class-themeisle-sdk-widget-dashboard-blog.php",
|
29 |
-
"class-themeisle-sdk-widgets-factory.php"
|
30 |
-
]
|
31 |
-
},
|
32 |
"support": {
|
33 |
"issues": "https://github.com/Codeinwp/themeisle-sdk/issues"
|
34 |
}
|
13 |
"homepage": "https://themeisle.com"
|
14 |
}
|
15 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
"support": {
|
17 |
"issues": "https://github.com/Codeinwp/themeisle-sdk/issues"
|
18 |
}
|
vendor/codeinwp/themeisle-sdk/load.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Loader for the ThemeIsleSDK
|
4 |
+
*
|
5 |
+
* Logic for loading always the latest SDK from the installed themes/plugins.
|
6 |
+
*
|
7 |
+
* @package ThemeIsleSDK
|
8 |
+
* @copyright Copyright (c) 2017, Marius Cristea
|
9 |
+
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
10 |
+
* @since 1.1.0
|
11 |
+
*/
|
12 |
+
|
13 |
+
// Current SDK version and path.
|
14 |
+
$themeisle_sdk_version = '1.3.0';
|
15 |
+
$themeisle_sdk_path = dirname( __FILE__ );
|
16 |
+
|
17 |
+
global $themeisle_sdk_max_version;
|
18 |
+
global $themeisle_sdk_max_path;
|
19 |
+
|
20 |
+
if ( version_compare( $themeisle_sdk_version, $themeisle_sdk_max_version ) >= 0 ) {
|
21 |
+
$themeisle_sdk_max_version = $themeisle_sdk_version;
|
22 |
+
$themeisle_sdk_max_path = $themeisle_sdk_path;
|
23 |
+
}
|
24 |
+
|
25 |
+
// load the latest sdk version from the active Themeisle products
|
26 |
+
if ( ! function_exists( 'themeisle_sdk_load_latest' ) ) :
|
27 |
+
/**
|
28 |
+
* Always load the latest sdk version.
|
29 |
+
*/
|
30 |
+
function themeisle_sdk_load_latest() {
|
31 |
+
global $themeisle_sdk_max_path;
|
32 |
+
require_once $themeisle_sdk_max_path . '/start.php';
|
33 |
+
}
|
34 |
+
endif;
|
35 |
+
add_action( 'init', 'themeisle_sdk_load_latest' );
|
vendor/codeinwp/themeisle-sdk/start.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* File responsible for sdk files loading.
|
4 |
+
*
|
5 |
+
* @package ThemeIsleSDK
|
6 |
+
* @copyright Copyright (c) 2017, Marius Cristea
|
7 |
+
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
+
* @since 1.1.0
|
9 |
+
*/
|
10 |
+
$products = apply_filters( 'themeisle_sdk_products', array() );
|
11 |
+
$path = dirname( __FILE__ );
|
12 |
+
$files_to_load = array(
|
13 |
+
'class-themeisle-sdk-loader.php',
|
14 |
+
'class-themeisle-sdk-product.php',
|
15 |
+
'class-themeisle-sdk-logger.php',
|
16 |
+
'class-themeisle-sdk-licenser.php',
|
17 |
+
'class-themeisle-sdk-feedback-factory.php',
|
18 |
+
'class-themeisle-sdk-feedback.php',
|
19 |
+
'class-themeisle-sdk-feedback-deactivate.php',
|
20 |
+
'class-themeisle-sdk-feedback-review.php',
|
21 |
+
'class-themeisle-sdk-notification-manager.php',
|
22 |
+
'class-themeisle-sdk-widget.php',
|
23 |
+
'class-themeisle-sdk-widget-dashboard-blog.php',
|
24 |
+
'class-themeisle-sdk-widgets-factory.php',
|
25 |
+
);
|
26 |
+
|
27 |
+
foreach ( $files_to_load as $file ) {
|
28 |
+
$file_path = $path . '/' . $file;
|
29 |
+
if ( is_readable( $file_path ) ) {
|
30 |
+
require_once $file_path;
|
31 |
+
}
|
32 |
+
}
|
33 |
+
foreach ( $products as $product ) {
|
34 |
+
ThemeIsle_SDK_Loader::init_product( $product );
|
35 |
+
}
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -6,16 +6,4 @@ $vendorDir = dirname(dirname(__FILE__));
|
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
-
'ThemeIsle_SDK_Feedback' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback.php',
|
10 |
-
'ThemeIsle_SDK_Feedback_Deactivate' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-deactivate.php',
|
11 |
-
'ThemeIsle_SDK_Feedback_Factory' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-factory.php',
|
12 |
-
'ThemeIsle_SDK_Feedback_Review' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-review.php',
|
13 |
-
'ThemeIsle_SDK_Licenser' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-licenser.php',
|
14 |
-
'ThemeIsle_SDK_Loader' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-loader.php',
|
15 |
-
'ThemeIsle_SDK_Logger' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-logger.php',
|
16 |
-
'ThemeIsle_SDK_Notification_Manager' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-notification-manager.php',
|
17 |
-
'ThemeIsle_SDK_Product' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-product.php',
|
18 |
-
'ThemeIsle_SDK_Widget' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-widget.php',
|
19 |
-
'ThemeIsle_SDK_Widget_Dashboard_Blog' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-widget-dashboard-blog.php',
|
20 |
-
'ThemeIsle_SDK_Widgets_Factory' => $vendorDir . '/codeinwp/themeisle-sdk/class-themeisle-sdk-widgets-factory.php',
|
21 |
);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
);
|
vendor/composer/autoload_files.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// autoload_files.php @generated by Composer
|
4 |
+
|
5 |
+
$vendorDir = dirname(dirname(__FILE__));
|
6 |
+
$baseDir = dirname($vendorDir);
|
7 |
+
|
8 |
+
return array(
|
9 |
+
'3df8ee254224091c21b9aebb792d2f8b' => $vendorDir . '/codeinwp/themeisle-sdk/load.php',
|
10 |
+
);
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitcd3a04f3638c25e97b6a4908f6d4e48e
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
@@ -40,6 +40,20 @@ class ComposerAutoloaderInitcd3a04f3638c25e97b6a4908f6d4e48e
|
|
40 |
|
41 |
$loader->register(true);
|
42 |
|
|
|
|
|
|
|
|
|
|
|
43 |
return $loader;
|
44 |
}
|
45 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitafcbafc262073611f93d4da2d44890c7
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitafcbafc262073611f93d4da2d44890c7', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitafcbafc262073611f93d4da2d44890c7', 'loadClassLoader'));
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
40 |
|
41 |
$loader->register(true);
|
42 |
|
43 |
+
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
+
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
+
composerRequireafcbafc262073611f93d4da2d44890c7($fileIdentifier, $file);
|
46 |
+
}
|
47 |
+
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
+
|
52 |
+
function composerRequireafcbafc262073611f93d4da2d44890c7($fileIdentifier, $file)
|
53 |
+
{
|
54 |
+
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
+
require $file;
|
56 |
+
|
57 |
+
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
58 |
+
}
|
59 |
+
}
|
vendor/composer/autoload_real_52.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
-
class
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit58bd9a85210b926af4c2feb8ecaf2b87 {
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
@@ -39,6 +39,8 @@ class ComposerAutoloaderInit58bd9a85210b926af4c2feb8ecaf2b87 {
|
|
39 |
|
40 |
$loader->register(true);
|
41 |
|
|
|
|
|
42 |
return $loader;
|
43 |
}
|
44 |
}
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
+
class ComposerAutoloaderInitfb848037b4f3828a83e60b26fda57767 {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitfb848037b4f3828a83e60b26fda57767', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitfb848037b4f3828a83e60b26fda57767', 'loadClassLoader'));
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
39 |
|
40 |
$loader->register(true);
|
41 |
|
42 |
+
require $vendorDir . '/codeinwp/themeisle-sdk/load.php';
|
43 |
+
|
44 |
return $loader;
|
45 |
}
|
46 |
}
|
vendor/composer/installed.json
CHANGED
@@ -38,34 +38,18 @@
|
|
38 |
"version_normalized": "9999999-dev",
|
39 |
"source": {
|
40 |
"type": "git",
|
41 |
-
"url": "
|
42 |
-
"reference": "
|
43 |
},
|
44 |
"dist": {
|
45 |
"type": "zip",
|
46 |
-
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/
|
47 |
-
"reference": "
|
48 |
"shasum": ""
|
49 |
},
|
50 |
-
"time": "2017-
|
51 |
"type": "library",
|
52 |
"installation-source": "dist",
|
53 |
-
"autoload": {
|
54 |
-
"classmap": [
|
55 |
-
"class-themeisle-sdk-loader.php",
|
56 |
-
"class-themeisle-sdk-product.php",
|
57 |
-
"class-themeisle-sdk-logger.php",
|
58 |
-
"class-themeisle-sdk-licenser.php",
|
59 |
-
"class-themeisle-sdk-feedback-factory.php",
|
60 |
-
"class-themeisle-sdk-feedback.php",
|
61 |
-
"class-themeisle-sdk-feedback-deactivate.php",
|
62 |
-
"class-themeisle-sdk-feedback-review.php",
|
63 |
-
"class-themeisle-sdk-notification-manager.php",
|
64 |
-
"class-themeisle-sdk-widget.php",
|
65 |
-
"class-themeisle-sdk-widget-dashboard-blog.php",
|
66 |
-
"class-themeisle-sdk-widgets-factory.php"
|
67 |
-
]
|
68 |
-
},
|
69 |
"license": [
|
70 |
"GPL-2.0+"
|
71 |
],
|
@@ -82,8 +66,7 @@
|
|
82 |
"wordpress"
|
83 |
],
|
84 |
"support": {
|
85 |
-
"issues": "https://github.com/Codeinwp/themeisle-sdk/issues"
|
86 |
-
"source": "https://github.com/Codeinwp/themeisle-sdk/tree/master"
|
87 |
}
|
88 |
}
|
89 |
]
|
38 |
"version_normalized": "9999999-dev",
|
39 |
"source": {
|
40 |
"type": "git",
|
41 |
+
"url": "git@github.com:Codeinwp/themeisle-sdk.git",
|
42 |
+
"reference": "1f5be4cb219a5c26d70f4c0296a7e9e020997ede"
|
43 |
},
|
44 |
"dist": {
|
45 |
"type": "zip",
|
46 |
+
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/1f5be4cb219a5c26d70f4c0296a7e9e020997ede",
|
47 |
+
"reference": "1f5be4cb219a5c26d70f4c0296a7e9e020997ede",
|
48 |
"shasum": ""
|
49 |
},
|
50 |
+
"time": "2017-06-19 17:23:23",
|
51 |
"type": "library",
|
52 |
"installation-source": "dist",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
"license": [
|
54 |
"GPL-2.0+"
|
55 |
],
|
66 |
"wordpress"
|
67 |
],
|
68 |
"support": {
|
69 |
+
"issues": "https://github.com/Codeinwp/themeisle-sdk/issues"
|
|
|
70 |
}
|
71 |
}
|
72 |
]
|