Version Description
- 2017-07-21
Download this release
Release Info
| Developer | codeinwp |
| Plugin | |
| Version | 3.1.9 |
| Comparing to | |
| See all releases | |
Code changes from version 3.1.8 to 3.1.9
- CHANGELOG.md +4 -0
- css/feedzy-rss-feeds.css +1 -1
- feedzy-rss-feed.php +7 -5
- form/form.php +1 -1
- includes/abstract/feedzy-rss-feeds-admin-abstract.php +30 -28
- includes/admin/feedzy-rss-feeds-admin.php +16 -11
- includes/admin/feedzy-rss-feeds-ui-lang.php +19 -19
- includes/feedzy-rss-feeds-activator.php +5 -3
- includes/feedzy-rss-feeds.php +1 -1
- readme.txt +5 -0
- vendor/autoload.php +1 -1
- vendor/autoload_52.php +1 -1
- vendor/composer/autoload_real.php +5 -5
- vendor/composer/autoload_real_52.php +3 -3
CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
### v3.1.8 - 2017-07-17
|
| 3 |
**Changes:**
|
| 4 |
* Fixed image fetching issues.
|
| 1 |
|
| 2 |
+
### v3.1.9 - 2017-07-21
|
| 3 |
+
**Changes:**
|
| 4 |
+
* Fixed issue with fetching images containg GET parameters.
|
| 5 |
+
|
| 6 |
### v3.1.8 - 2017-07-17
|
| 7 |
**Changes:**
|
| 8 |
* Fixed image fetching issues.
|
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.9
|
| 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: A small and lightweight RSS aggregator plugin. Fast and very easy to use, it allows you to aggregate multiple RSS feeds into your WordPress site through fully customizable shortcodes & widgets.
|
| 18 |
-
* Version: 3.1.
|
| 19 |
* Author: Themeisle
|
| 20 |
* Author URI: http://themeisle.com
|
| 21 |
* License: GPL-2.0+
|
|
@@ -108,11 +108,13 @@ function run_feedzy_rss_feeds() {
|
|
| 108 |
if ( is_readable( $vendor_file ) ) {
|
| 109 |
require_once $vendor_file;
|
| 110 |
}
|
| 111 |
-
add_filter(
|
| 112 |
-
$products
|
|
|
|
| 113 |
|
| 114 |
-
|
| 115 |
-
|
|
|
|
| 116 |
}
|
| 117 |
|
| 118 |
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: A small and lightweight RSS aggregator plugin. Fast and very easy to use, it allows you to aggregate multiple RSS feeds into your WordPress site through fully customizable shortcodes & widgets.
|
| 18 |
+
* Version: 3.1.9
|
| 19 |
* Author: Themeisle
|
| 20 |
* Author URI: http://themeisle.com
|
| 21 |
* License: GPL-2.0+
|
| 108 |
if ( is_readable( $vendor_file ) ) {
|
| 109 |
require_once $vendor_file;
|
| 110 |
}
|
| 111 |
+
add_filter(
|
| 112 |
+
'themeisle_sdk_products', function ( $products ) {
|
| 113 |
+
$products[] = FEEDZY_BASEFILE;
|
| 114 |
|
| 115 |
+
return $products;
|
| 116 |
+
}
|
| 117 |
+
);
|
| 118 |
}
|
| 119 |
|
| 120 |
spl_autoload_register( 'feedzy_rss_feeds_autoload' );
|
form/form.php
CHANGED
|
@@ -62,7 +62,7 @@ $html_parts = Feedzy_Rss_Feeds_Ui_Lang::get_form_elements();
|
|
| 62 |
$checked = 'checked="checked"';
|
| 63 |
}
|
| 64 |
$element .= '<label class="feedzy-radio-image feedzy-template-' . $values['value']
|
| 65 |
-
|
| 66 |
$values['label'] . '</label>';
|
| 67 |
}
|
| 68 |
break;
|
| 62 |
$checked = 'checked="checked"';
|
| 63 |
}
|
| 64 |
$element .= '<label class="feedzy-radio-image feedzy-template-' . $values['value']
|
| 65 |
+
. '"><input type="radio" name="' . $name . '" data-feedzy="' . $name . '" value="' . $values['value'] . '" ' . $checked . ' ' . $disabled . ' />' .
|
| 66 |
$values['label'] . '</label>';
|
| 67 |
}
|
| 68 |
break;
|
includes/abstract/feedzy-rss-feeds-admin-abstract.php
CHANGED
|
@@ -249,32 +249,34 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
|
|
| 249 |
*/
|
| 250 |
public function get_short_code_attributes( $atts ) {
|
| 251 |
// Retrieve & extract shorcode parameters
|
| 252 |
-
$sc = shortcode_atts(
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
|
|
|
| 276 |
// only display item if title contains specific keywords (comma-separated list/case sensitive)
|
| 277 |
-
|
|
|
|
| 278 |
$sc = array_merge( $sc, apply_filters( 'feedzy_get_short_code_attributes_filter', $atts ) );
|
| 279 |
|
| 280 |
return $sc;
|
|
@@ -292,7 +294,7 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
|
|
| 292 |
$feeds = apply_filters( 'feedzy_process_feed_source', $raw );
|
| 293 |
$feedURL = apply_filters( 'feedzy_get_feed_url', $feeds );
|
| 294 |
if ( is_array( $feedURL ) ) {
|
| 295 |
-
|
| 296 |
$feedURL[ $index ] = htmlspecialchars_decode( $url );
|
| 297 |
}
|
| 298 |
} else {
|
|
@@ -323,7 +325,7 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
|
|
| 323 |
$feed->init();
|
| 324 |
$feed->handle_content_type();
|
| 325 |
|
| 326 |
-
|
| 327 |
}
|
| 328 |
|
| 329 |
/**
|
|
@@ -695,7 +697,7 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
|
|
| 695 |
$pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpeg|JPEG|jpe|JPE|gif|GIF|png|PNG)/i';
|
| 696 |
$imgsrc = $thumbnail;
|
| 697 |
if ( preg_match( $pattern, $imgsrc, $matches ) ) {
|
| 698 |
-
$theThumbnail = $
|
| 699 |
break;
|
| 700 |
}
|
| 701 |
}
|
| 249 |
*/
|
| 250 |
public function get_short_code_attributes( $atts ) {
|
| 251 |
// Retrieve & extract shorcode parameters
|
| 252 |
+
$sc = shortcode_atts(
|
| 253 |
+
array(
|
| 254 |
+
'feeds' => '',
|
| 255 |
+
// comma separated feeds url
|
| 256 |
+
'max' => '5',
|
| 257 |
+
// number of feeds items (0 for unlimited)
|
| 258 |
+
'feed_title' => 'yes',
|
| 259 |
+
// display feed title yes/no
|
| 260 |
+
'target' => '_blank',
|
| 261 |
+
// _blank, _self
|
| 262 |
+
'title' => '',
|
| 263 |
+
// strip title after X char
|
| 264 |
+
'meta' => 'yes',
|
| 265 |
+
// yes, no
|
| 266 |
+
'summary' => 'yes',
|
| 267 |
+
// strip title
|
| 268 |
+
'summarylength' => '',
|
| 269 |
+
// strip summary after X char
|
| 270 |
+
'thumb' => 'auto',
|
| 271 |
+
// yes, no, auto
|
| 272 |
+
'default' => '',
|
| 273 |
+
// default thumb URL if no image found (only if thumb is set to yes or auto)
|
| 274 |
+
'size' => '',
|
| 275 |
+
// thumbs pixel size
|
| 276 |
+
'keywords_title' => '',
|
| 277 |
// only display item if title contains specific keywords (comma-separated list/case sensitive)
|
| 278 |
+
), $atts, 'feedzy_default'
|
| 279 |
+
);
|
| 280 |
$sc = array_merge( $sc, apply_filters( 'feedzy_get_short_code_attributes_filter', $atts ) );
|
| 281 |
|
| 282 |
return $sc;
|
| 294 |
$feeds = apply_filters( 'feedzy_process_feed_source', $raw );
|
| 295 |
$feedURL = apply_filters( 'feedzy_get_feed_url', $feeds );
|
| 296 |
if ( is_array( $feedURL ) ) {
|
| 297 |
+
foreach ( $feedURL as $index => $url ) {
|
| 298 |
$feedURL[ $index ] = htmlspecialchars_decode( $url );
|
| 299 |
}
|
| 300 |
} else {
|
| 325 |
$feed->init();
|
| 326 |
$feed->handle_content_type();
|
| 327 |
|
| 328 |
+
return $feed;
|
| 329 |
}
|
| 330 |
|
| 331 |
/**
|
| 697 |
$pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpeg|JPEG|jpe|JPE|gif|GIF|png|PNG)/i';
|
| 698 |
$imgsrc = $thumbnail;
|
| 699 |
if ( preg_match( $pattern, $imgsrc, $matches ) ) {
|
| 700 |
+
$theThumbnail = $thumbnail;
|
| 701 |
break;
|
| 702 |
}
|
| 703 |
}
|
includes/admin/feedzy-rss-feeds-admin.php
CHANGED
|
@@ -145,10 +145,12 @@ class Feedzy_Rss_Feeds_Admin extends Feedzy_Rss_Feeds_Admin_Abstract {
|
|
| 145 |
* @access public
|
| 146 |
*/
|
| 147 |
public function add_feedzy_post_type_metaboxes() {
|
| 148 |
-
add_meta_box(
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
|
|
|
|
|
|
| 152 |
}
|
| 153 |
|
| 154 |
/**
|
|
@@ -251,7 +253,7 @@ class Feedzy_Rss_Feeds_Admin extends Feedzy_Rss_Feeds_Admin_Abstract {
|
|
| 251 |
public function manage_feedzy_category_columns( $column, $post_id ) {
|
| 252 |
global $post;
|
| 253 |
switch ( $column ) {
|
| 254 |
-
case 'slug'
|
| 255 |
$slug = $post->post_name;
|
| 256 |
if ( empty( $slug ) ) {
|
| 257 |
echo __( 'Undefined', 'feedzy-rss-feeds' );
|
|
@@ -259,7 +261,7 @@ class Feedzy_Rss_Feeds_Admin extends Feedzy_Rss_Feeds_Admin_Abstract {
|
|
| 259 |
echo '<code>' . $slug . '</code>';
|
| 260 |
}
|
| 261 |
break;
|
| 262 |
-
default
|
| 263 |
break;
|
| 264 |
}
|
| 265 |
}
|
|
@@ -298,11 +300,14 @@ class Feedzy_Rss_Feeds_Admin extends Feedzy_Rss_Feeds_Admin_Abstract {
|
|
| 298 |
$svg_base64_icon = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4NTAuMzkiIGhlaWdodD0iODUwLjM5Ij48cGF0aCBmaWxsPSIjREIzOTM5IiBkPSJNNDI1LjIgMkMxOTAuMzYgMiAwIDE5MS45MiAwIDQyNi4yYzAgMjM0LjI3IDE5MC4zNyA0MjQuMiA0MjUuMiA0MjQuMiAyMzQuODIgMCA0MjUuMi0xODkuOTMgNDI1LjItNDI0LjJDODUwLjQgMTkxLjkgNjYwIDIgNDI1LjIgMnptLTQ2LjU1IDY2OC42NmgtOTEuNTh2LTU3LjFMMjM3LjUgNTY0LjFoLTU3LjI2di05MS4yNGg5NS4yNWwxMDMuMTUgMTAyLjh2OTV6bTE1Mi41MiAwSDQzOS42di0xMzMuM0wzMTMuODUgNDExLjk0aC0xMzMuNnYtOTEuMzZIMzUxLjdMNTMxLjE4IDQ5OS42djE3MS4wNnptMTUyLjU1IDBoLTkxLjU4VjQ2MS4yTDM5MC4wNiAyNTkuNzRIMTgwLjI0di05MS4zNmgyNDcuOGwyNTUuNjggMjU1LjA3djI0Ny4yMnoiLz48L3N2Zz4=';
|
| 299 |
add_menu_page( __( 'Feedzy RSS Feeds', 'feedzy-rss-feeds' ), __( 'Feedzy RSS', 'feedzy-rss-feeds' ), 'manage_options', 'feedzy-admin-menu', '', $svg_base64_icon, 98.7666 );
|
| 300 |
if ( ! class_exists( 'Feedzy_Rss_Feeds_Pro' ) ) {
|
| 301 |
-
add_submenu_page(
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
|
|
|
|
|
|
|
|
|
| 306 |
} else {
|
| 307 |
$is_business = apply_filters( 'feedzy_is_business_filter', false );
|
| 308 |
if ( $is_business != false ) {
|
| 145 |
* @access public
|
| 146 |
*/
|
| 147 |
public function add_feedzy_post_type_metaboxes() {
|
| 148 |
+
add_meta_box(
|
| 149 |
+
'feedzy_category_feeds', __( 'Category Feeds', 'feedzy-rss-feeds' ), array(
|
| 150 |
+
$this,
|
| 151 |
+
'feedzy_category_feed',
|
| 152 |
+
), 'feedzy_categories', 'normal', 'high'
|
| 153 |
+
);
|
| 154 |
}
|
| 155 |
|
| 156 |
/**
|
| 253 |
public function manage_feedzy_category_columns( $column, $post_id ) {
|
| 254 |
global $post;
|
| 255 |
switch ( $column ) {
|
| 256 |
+
case 'slug':
|
| 257 |
$slug = $post->post_name;
|
| 258 |
if ( empty( $slug ) ) {
|
| 259 |
echo __( 'Undefined', 'feedzy-rss-feeds' );
|
| 261 |
echo '<code>' . $slug . '</code>';
|
| 262 |
}
|
| 263 |
break;
|
| 264 |
+
default:
|
| 265 |
break;
|
| 266 |
}
|
| 267 |
}
|
| 300 |
$svg_base64_icon = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4NTAuMzkiIGhlaWdodD0iODUwLjM5Ij48cGF0aCBmaWxsPSIjREIzOTM5IiBkPSJNNDI1LjIgMkMxOTAuMzYgMiAwIDE5MS45MiAwIDQyNi4yYzAgMjM0LjI3IDE5MC4zNyA0MjQuMiA0MjUuMiA0MjQuMiAyMzQuODIgMCA0MjUuMi0xODkuOTMgNDI1LjItNDI0LjJDODUwLjQgMTkxLjkgNjYwIDIgNDI1LjIgMnptLTQ2LjU1IDY2OC42NmgtOTEuNTh2LTU3LjFMMjM3LjUgNTY0LjFoLTU3LjI2di05MS4yNGg5NS4yNWwxMDMuMTUgMTAyLjh2OTV6bTE1Mi41MiAwSDQzOS42di0xMzMuM0wzMTMuODUgNDExLjk0aC0xMzMuNnYtOTEuMzZIMzUxLjdMNTMxLjE4IDQ5OS42djE3MS4wNnptMTUyLjU1IDBoLTkxLjU4VjQ2MS4yTDM5MC4wNiAyNTkuNzRIMTgwLjI0di05MS4zNmgyNDcuOGwyNTUuNjggMjU1LjA3djI0Ny4yMnoiLz48L3N2Zz4=';
|
| 301 |
add_menu_page( __( 'Feedzy RSS Feeds', 'feedzy-rss-feeds' ), __( 'Feedzy RSS', 'feedzy-rss-feeds' ), 'manage_options', 'feedzy-admin-menu', '', $svg_base64_icon, 98.7666 );
|
| 302 |
if ( ! class_exists( 'Feedzy_Rss_Feeds_Pro' ) ) {
|
| 303 |
+
add_submenu_page(
|
| 304 |
+
'feedzy-admin-menu', __( 'More Features', 'feedzy-rss-feeds' ), __( 'More Features', 'feedzy-rss-feeds' ) . '<span class="dashicons
|
| 305 |
+
dashicons-star-filled more-features-icon"></span>', 'manage_options', 'feedzy-admin-menu-pro-upsell',
|
| 306 |
+
array(
|
| 307 |
+
$this,
|
| 308 |
+
'render_upsell',
|
| 309 |
+
)
|
| 310 |
+
);
|
| 311 |
} else {
|
| 312 |
$is_business = apply_filters( 'feedzy_is_business_filter', false );
|
| 313 |
if ( $is_business != false ) {
|
includes/admin/feedzy-rss-feeds-ui-lang.php
CHANGED
|
@@ -48,8 +48,8 @@ class Feedzy_Rss_Feeds_Ui_Lang {
|
|
| 48 |
*/
|
| 49 |
public function __construct() {
|
| 50 |
$this->strings = array(
|
| 51 |
-
|
| 52 |
-
|
| 53 |
'plugin_label' => __( 'Feedzy Lite', 'feedzy-rss-feeds' ),
|
| 54 |
'plugin_title' => __( 'Insert Feedzy RSS Feeds Shortcode', 'feedzy-rss-feeds' ),
|
| 55 |
'image_button' => __( 'Use Image', 'feedzy-rss-feeds' ),
|
|
@@ -112,13 +112,13 @@ class Feedzy_Rss_Feeds_Ui_Lang {
|
|
| 112 |
'placeholder' => __( 'Feed URL', 'feedzy-rss-feeds' ),
|
| 113 |
'type' => 'text',
|
| 114 |
'value' => '',
|
| 115 |
-
|
| 116 |
'max' => array(
|
| 117 |
'label' => __( 'Number of items to display.', 'feedzy-rss-feeds' ),
|
| 118 |
'placeholder' => __( '(eg: 5)', 'feedzy-rss-feeds' ),
|
| 119 |
'type' => 'text',
|
| 120 |
'value' => '',
|
| 121 |
-
|
| 122 |
'feed_title' => array(
|
| 123 |
'label' => __( 'Should we display the RSS title?', 'feedzy-rss-feeds' ),
|
| 124 |
'type' => 'select',
|
|
@@ -133,7 +133,7 @@ class Feedzy_Rss_Feeds_Ui_Lang {
|
|
| 133 |
'value' => 'no',
|
| 134 |
),
|
| 135 |
),
|
| 136 |
-
|
| 137 |
),
|
| 138 |
),
|
| 139 |
'section_item' => array(
|
|
@@ -169,13 +169,13 @@ class Feedzy_Rss_Feeds_Ui_Lang {
|
|
| 169 |
'value' => 'framename',
|
| 170 |
),
|
| 171 |
),
|
| 172 |
-
|
| 173 |
'title' => array(
|
| 174 |
'label' => __( 'Trim the title of the item after X characters.', 'feedzy-rss-feeds' ),
|
| 175 |
'placeholder' => __( '(eg: 160)', 'feedzy-rss-feeds' ),
|
| 176 |
'type' => 'text',
|
| 177 |
'value' => '',
|
| 178 |
-
|
| 179 |
'meta' => array(
|
| 180 |
'label' => __( 'Should we display the date of publication and the author name?', 'feedzy-rss-feeds' ),
|
| 181 |
'type' => 'select',
|
|
@@ -190,7 +190,7 @@ class Feedzy_Rss_Feeds_Ui_Lang {
|
|
| 190 |
'value' => 'no',
|
| 191 |
),
|
| 192 |
),
|
| 193 |
-
|
| 194 |
'summary' => array(
|
| 195 |
'label' => __( 'Should we display a description (abstract) of the retrieved item?', 'feedzy-rss-feeds' ),
|
| 196 |
'type' => 'select',
|
|
@@ -205,27 +205,27 @@ class Feedzy_Rss_Feeds_Ui_Lang {
|
|
| 205 |
'value' => 'no',
|
| 206 |
),
|
| 207 |
),
|
| 208 |
-
|
| 209 |
'summarylength' => array(
|
| 210 |
'label' => __( 'Crop description (summary) of the element after X characters.', 'feedzy-rss-feeds' ),
|
| 211 |
'type' => 'text',
|
| 212 |
'placeholder' => __( '(eg: 160)', 'feedzy-rss-feeds' ),
|
| 213 |
'value' => '',
|
| 214 |
-
|
| 215 |
'keywords_title' => array(
|
| 216 |
'label' => __( 'Only display item if title contains specific keyword(s) (comma-separated list/case sensitive).', 'feedzy-rss-feeds' ),
|
| 217 |
'placeholder' => __( '(eg: news, sports etc.)', 'feedzy-rss-feeds' ),
|
| 218 |
'type' => 'text',
|
| 219 |
'value' => '',
|
| 220 |
'disabled' => feedzy_is_new(),
|
| 221 |
-
|
| 222 |
'keywords_ban' => array(
|
| 223 |
'label' => __( 'Exclude items if title or content contains specific keyword(s) (comma-separated list/case sensitive). ', 'feedzy-rss-feeds' ),
|
| 224 |
'placeholder' => __( '(eg: politics, gossip etc.)', 'feedzy-rss-feeds' ),
|
| 225 |
'type' => 'text',
|
| 226 |
'value' => '',
|
| 227 |
'disabled' => true,
|
| 228 |
-
|
| 229 |
),
|
| 230 |
),
|
| 231 |
'section_image' => array(
|
|
@@ -249,7 +249,7 @@ class Feedzy_Rss_Feeds_Ui_Lang {
|
|
| 249 |
'value' => 'no',
|
| 250 |
),
|
| 251 |
),
|
| 252 |
-
|
| 253 |
'default' => array(
|
| 254 |
'label' => __( 'Default thumbnail URL if no image is found.', 'feedzy-rss-feeds' ),
|
| 255 |
'placeholder' => __( 'Image URL', 'feedzy-rss-feeds' ),
|
|
@@ -258,13 +258,13 @@ class Feedzy_Rss_Feeds_Ui_Lang {
|
|
| 258 |
'button' => array(
|
| 259 |
'button_text' => __( 'Select from Gallery', 'feedzy-rss-feeds' ),
|
| 260 |
),
|
| 261 |
-
|
| 262 |
'size' => array(
|
| 263 |
'label' => __( 'Thumblails dimension. Do not include "px". Eg: 150', 'feedzy-rss-feeds' ),
|
| 264 |
'placeholder' => __( '(eg: 150)', 'feedzy-rss-feeds' ),
|
| 265 |
'type' => 'text',
|
| 266 |
'value' => '',
|
| 267 |
-
|
| 268 |
),
|
| 269 |
),
|
| 270 |
'section_pro' => array(
|
|
@@ -286,21 +286,21 @@ class Feedzy_Rss_Feeds_Ui_Lang {
|
|
| 286 |
'value' => 'no',
|
| 287 |
),
|
| 288 |
),
|
| 289 |
-
|
| 290 |
'referral_url' => array(
|
| 291 |
'label' => __( 'Referral URL parameters (w/o "?").', 'feedzy-rss-feeds' ),
|
| 292 |
'placeholder' => __( '(eg. promo_code=feedzy_is_awesome)', 'feedzy-rss-feeds' ),
|
| 293 |
'type' => 'text',
|
| 294 |
'disabled' => true,
|
| 295 |
'value' => '',
|
| 296 |
-
|
| 297 |
'columns' => array(
|
| 298 |
'label' => __( 'How many columns we should use to display the feed items', 'feedzy-rss-feeds' ),
|
| 299 |
'placeholder' => __( '(eg. 1, 2, ..., 6)', 'feedzy-rss-feeds' ),
|
| 300 |
'type' => 'number',
|
| 301 |
'disabled' => true,
|
| 302 |
'value' => '1',
|
| 303 |
-
|
| 304 |
'template' => array(
|
| 305 |
'label' => __( 'Template to use when displaying the feed.', 'feedzy-rss-feeds' ),
|
| 306 |
'type' => 'radio',
|
|
@@ -319,7 +319,7 @@ class Feedzy_Rss_Feeds_Ui_Lang {
|
|
| 319 |
'label' => __( 'Style 2', 'feedzy-rss-feeds' ),
|
| 320 |
'value' => 'style2',
|
| 321 |
),
|
| 322 |
-
|
| 323 |
),
|
| 324 |
),
|
| 325 |
),
|
| 48 |
*/
|
| 49 |
public function __construct() {
|
| 50 |
$this->strings = array(
|
| 51 |
+
'popup_url' => wp_nonce_url( 'admin-ajax.php', 'feedzy_ajax_token', 'feedzy_request_form_token' ),
|
| 52 |
+
'pro_url' => FEEDZY_UPSELL_LINK,
|
| 53 |
'plugin_label' => __( 'Feedzy Lite', 'feedzy-rss-feeds' ),
|
| 54 |
'plugin_title' => __( 'Insert Feedzy RSS Feeds Shortcode', 'feedzy-rss-feeds' ),
|
| 55 |
'image_button' => __( 'Use Image', 'feedzy-rss-feeds' ),
|
| 112 |
'placeholder' => __( 'Feed URL', 'feedzy-rss-feeds' ),
|
| 113 |
'type' => 'text',
|
| 114 |
'value' => '',
|
| 115 |
+
),
|
| 116 |
'max' => array(
|
| 117 |
'label' => __( 'Number of items to display.', 'feedzy-rss-feeds' ),
|
| 118 |
'placeholder' => __( '(eg: 5)', 'feedzy-rss-feeds' ),
|
| 119 |
'type' => 'text',
|
| 120 |
'value' => '',
|
| 121 |
+
),
|
| 122 |
'feed_title' => array(
|
| 123 |
'label' => __( 'Should we display the RSS title?', 'feedzy-rss-feeds' ),
|
| 124 |
'type' => 'select',
|
| 133 |
'value' => 'no',
|
| 134 |
),
|
| 135 |
),
|
| 136 |
+
),
|
| 137 |
),
|
| 138 |
),
|
| 139 |
'section_item' => array(
|
| 169 |
'value' => 'framename',
|
| 170 |
),
|
| 171 |
),
|
| 172 |
+
),
|
| 173 |
'title' => array(
|
| 174 |
'label' => __( 'Trim the title of the item after X characters.', 'feedzy-rss-feeds' ),
|
| 175 |
'placeholder' => __( '(eg: 160)', 'feedzy-rss-feeds' ),
|
| 176 |
'type' => 'text',
|
| 177 |
'value' => '',
|
| 178 |
+
),
|
| 179 |
'meta' => array(
|
| 180 |
'label' => __( 'Should we display the date of publication and the author name?', 'feedzy-rss-feeds' ),
|
| 181 |
'type' => 'select',
|
| 190 |
'value' => 'no',
|
| 191 |
),
|
| 192 |
),
|
| 193 |
+
),
|
| 194 |
'summary' => array(
|
| 195 |
'label' => __( 'Should we display a description (abstract) of the retrieved item?', 'feedzy-rss-feeds' ),
|
| 196 |
'type' => 'select',
|
| 205 |
'value' => 'no',
|
| 206 |
),
|
| 207 |
),
|
| 208 |
+
),
|
| 209 |
'summarylength' => array(
|
| 210 |
'label' => __( 'Crop description (summary) of the element after X characters.', 'feedzy-rss-feeds' ),
|
| 211 |
'type' => 'text',
|
| 212 |
'placeholder' => __( '(eg: 160)', 'feedzy-rss-feeds' ),
|
| 213 |
'value' => '',
|
| 214 |
+
),
|
| 215 |
'keywords_title' => array(
|
| 216 |
'label' => __( 'Only display item if title contains specific keyword(s) (comma-separated list/case sensitive).', 'feedzy-rss-feeds' ),
|
| 217 |
'placeholder' => __( '(eg: news, sports etc.)', 'feedzy-rss-feeds' ),
|
| 218 |
'type' => 'text',
|
| 219 |
'value' => '',
|
| 220 |
'disabled' => feedzy_is_new(),
|
| 221 |
+
),
|
| 222 |
'keywords_ban' => array(
|
| 223 |
'label' => __( 'Exclude items if title or content contains specific keyword(s) (comma-separated list/case sensitive). ', 'feedzy-rss-feeds' ),
|
| 224 |
'placeholder' => __( '(eg: politics, gossip etc.)', 'feedzy-rss-feeds' ),
|
| 225 |
'type' => 'text',
|
| 226 |
'value' => '',
|
| 227 |
'disabled' => true,
|
| 228 |
+
),
|
| 229 |
),
|
| 230 |
),
|
| 231 |
'section_image' => array(
|
| 249 |
'value' => 'no',
|
| 250 |
),
|
| 251 |
),
|
| 252 |
+
),
|
| 253 |
'default' => array(
|
| 254 |
'label' => __( 'Default thumbnail URL if no image is found.', 'feedzy-rss-feeds' ),
|
| 255 |
'placeholder' => __( 'Image URL', 'feedzy-rss-feeds' ),
|
| 258 |
'button' => array(
|
| 259 |
'button_text' => __( 'Select from Gallery', 'feedzy-rss-feeds' ),
|
| 260 |
),
|
| 261 |
+
),
|
| 262 |
'size' => array(
|
| 263 |
'label' => __( 'Thumblails dimension. Do not include "px". Eg: 150', 'feedzy-rss-feeds' ),
|
| 264 |
'placeholder' => __( '(eg: 150)', 'feedzy-rss-feeds' ),
|
| 265 |
'type' => 'text',
|
| 266 |
'value' => '',
|
| 267 |
+
),
|
| 268 |
),
|
| 269 |
),
|
| 270 |
'section_pro' => array(
|
| 286 |
'value' => 'no',
|
| 287 |
),
|
| 288 |
),
|
| 289 |
+
),
|
| 290 |
'referral_url' => array(
|
| 291 |
'label' => __( 'Referral URL parameters (w/o "?").', 'feedzy-rss-feeds' ),
|
| 292 |
'placeholder' => __( '(eg. promo_code=feedzy_is_awesome)', 'feedzy-rss-feeds' ),
|
| 293 |
'type' => 'text',
|
| 294 |
'disabled' => true,
|
| 295 |
'value' => '',
|
| 296 |
+
),
|
| 297 |
'columns' => array(
|
| 298 |
'label' => __( 'How many columns we should use to display the feed items', 'feedzy-rss-feeds' ),
|
| 299 |
'placeholder' => __( '(eg. 1, 2, ..., 6)', 'feedzy-rss-feeds' ),
|
| 300 |
'type' => 'number',
|
| 301 |
'disabled' => true,
|
| 302 |
'value' => '1',
|
| 303 |
+
),
|
| 304 |
'template' => array(
|
| 305 |
'label' => __( 'Template to use when displaying the feed.', 'feedzy-rss-feeds' ),
|
| 306 |
'type' => 'radio',
|
| 319 |
'label' => __( 'Style 2', 'feedzy-rss-feeds' ),
|
| 320 |
'value' => 'style2',
|
| 321 |
),
|
| 322 |
+
),
|
| 323 |
),
|
| 324 |
),
|
| 325 |
),
|
includes/feedzy-rss-feeds-activator.php
CHANGED
|
@@ -37,9 +37,11 @@ class Feedzy_Rss_Feeds_Activator {
|
|
| 37 |
update_option( 'feedzy_logger_flag', 'no' );
|
| 38 |
}
|
| 39 |
if ( ! isset( $options['is_new'] ) ) {
|
| 40 |
-
update_option(
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
| 43 |
}
|
| 44 |
|
| 45 |
}
|
| 37 |
update_option( 'feedzy_logger_flag', 'no' );
|
| 38 |
}
|
| 39 |
if ( ! isset( $options['is_new'] ) ) {
|
| 40 |
+
update_option(
|
| 41 |
+
Feedzy_Rss_Feeds::get_plugin_name(), array(
|
| 42 |
+
'is_new' => 'yes',
|
| 43 |
+
)
|
| 44 |
+
);
|
| 45 |
}
|
| 46 |
|
| 47 |
}
|
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.9';
|
| 108 |
self::$instance->load_dependencies();
|
| 109 |
self::$instance->set_locale();
|
| 110 |
self::$instance->define_admin_hooks();
|
readme.txt
CHANGED
|
@@ -205,6 +205,11 @@ http://docs.themeisle.com/article/640-how-to-use-feedzy-categories
|
|
| 205 |
|
| 206 |
|
| 207 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
= 3.1.8 - 2017-07-17 =
|
| 209 |
|
| 210 |
* Fixed image fetching issues.
|
| 205 |
|
| 206 |
|
| 207 |
== Changelog ==
|
| 208 |
+
= 3.1.9 - 2017-07-21 =
|
| 209 |
+
|
| 210 |
+
* Fixed issue with fetching images containg GET parameters.
|
| 211 |
+
|
| 212 |
+
|
| 213 |
= 3.1.8 - 2017-07-17 =
|
| 214 |
|
| 215 |
* Fixed image fetching issues.
|
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 ComposerAutoloaderInitab16ad30c91b5a02c0955bf374590651::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 ComposerAutoloaderInitc7c3c0522117728f5887b31048b459c7::getLoader();
|
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 ComposerAutoloaderInit5715dec90aed4b8a2bc04d8e80051751
|
|
| 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) {
|
|
@@ -42,14 +42,14 @@ class ComposerAutoloaderInit5715dec90aed4b8a2bc04d8e80051751
|
|
| 42 |
|
| 43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 45 |
-
|
| 46 |
}
|
| 47 |
|
| 48 |
return $loader;
|
| 49 |
}
|
| 50 |
}
|
| 51 |
|
| 52 |
-
function
|
| 53 |
{
|
| 54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 55 |
require $file;
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInitab16ad30c91b5a02c0955bf374590651
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInitab16ad30c91b5a02c0955bf374590651', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitab16ad30c91b5a02c0955bf374590651', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 27 |
foreach ($map as $namespace => $path) {
|
| 42 |
|
| 43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 45 |
+
composerRequireab16ad30c91b5a02c0955bf374590651($fileIdentifier, $file);
|
| 46 |
}
|
| 47 |
|
| 48 |
return $loader;
|
| 49 |
}
|
| 50 |
}
|
| 51 |
|
| 52 |
+
function composerRequireab16ad30c91b5a02c0955bf374590651($fileIdentifier, $file)
|
| 53 |
{
|
| 54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 55 |
require $file;
|
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 ComposerAutoloaderInitc8a526cba70678f55f89ed685cf72161 {
|
|
| 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);
|
| 2 |
|
| 3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInitc7c3c0522117728f5887b31048b459c7 {
|
| 6 |
private static $loader;
|
| 7 |
|
| 8 |
public static function loadClassLoader($class) {
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInitc7c3c0522117728f5887b31048b459c7', 'loadClassLoader'), true /*, true */);
|
| 23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitc7c3c0522117728f5887b31048b459c7', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$vendorDir = dirname(dirname(__FILE__));
|
| 27 |
$baseDir = dirname($vendorDir);
|
