FEEDZY RSS Feeds Lite - Version 3.0.10

Version Description

  • 24/04/2017 =
  • Fixed wrong image regex.
  • Fixed image compression.
Download this release

Release Info

Developer codeinwp
Plugin Icon 128x128 FEEDZY RSS Feeds Lite
Version 3.0.10
Comparing to
See all releases

Code changes from version 3.0.9 to 3.0.10

CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
 
 
 
 
2
- Fixed wrong image regex.
3
- Fixed image compression.
4
- Added wraith.
5
 
6
 
7
 
8
- Fixed wrong empty title check.
1
 
2
+
3
+
4
+
5
+
6
+
7
+
8
 
9
 
10
 
 
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.0.9
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.0.10
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.0.9
19
  * Author: Themeisle
20
  * Author URI: http://themeisle.com
21
  * License: GPL-2.0+
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.0.10
19
  * Author: Themeisle
20
  * Author URI: http://themeisle.com
21
  * License: GPL-2.0+
form/form.php CHANGED
@@ -84,7 +84,7 @@ $html_parts = Feedzy_Rss_Feeds_Ui_Lang::get_form_elements();
84
  default:
85
  $element = '<input type="text" name="' . $name . '" data-feedzy="' . $name . '" value="' . $props['value'] . '" placeholder="' . $props['placeholder'] . '" ' . $disabled . ' />';
86
  break;
87
- }
88
  $output .= '
89
  <div class="row feedzy_element_' . $name . '">
90
  <div class="column column-50">
@@ -96,11 +96,11 @@ $html_parts = Feedzy_Rss_Feeds_Ui_Lang::get_form_elements();
96
  <hr/>
97
  </div>
98
  ';
99
- }
100
- }
101
  $output .= '</div>';
102
- }
103
- }
104
  echo $output;
105
  ?>
106
  </div>
84
  default:
85
  $element = '<input type="text" name="' . $name . '" data-feedzy="' . $name . '" value="' . $props['value'] . '" placeholder="' . $props['placeholder'] . '" ' . $disabled . ' />';
86
  break;
87
+ } // End switch().
88
  $output .= '
89
  <div class="row feedzy_element_' . $name . '">
90
  <div class="column column-50">
96
  <hr/>
97
  </div>
98
  ';
99
+ } // End foreach().
100
+ } // End if().
101
  $output .= '</div>';
102
+ } // End foreach().
103
+ } // End if().
104
  echo $output;
105
  ?>
106
  </div>
img/feedzy-default-template.jpg CHANGED
Binary file
img/feedzy-style1-template.jpg CHANGED
Binary file
img/feedzy-style2-template.jpg CHANGED
Binary file
img/feedzy.png CHANGED
Binary file
img/feedzy.svg CHANGED
@@ -1,11 +1 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
- <svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
- width="850.39px" height="850.39px" viewBox="0 0 850.39 850.39" enable-background="new 0 0 850.39 850.39" xml:space="preserve">
6
- <path fill="#DB3939" d="M425.195,2C190.366,2,0,191.918,0,426.195C0,660.472,190.366,850.39,425.195,850.39
7
- c234.828,0,425.195-189.918,425.195-424.195C850.39,191.918,660.023,2,425.195,2z M378.648,670.664L378.648,670.664h-91.578v-57.115
8
- l-49.567-49.451H180.24v-91.236h95.248l103.161,102.797V670.664z M531.175,670.664h-91.576V537.367L313.852,411.931H180.24v-91.362
9
- h171.472l179.463,179.024V670.664z M683.718,670.664h-91.574V461.21L390.063,259.73H180.24v-91.361h247.806l255.672,255.072V670.664
10
- z"/>
11
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="850.39" height="850.39"><path fill="#DB3939" d="M425.2 2C190.36 2 0 191.92 0 426.2c0 234.27 190.37 424.2 425.2 424.2 234.82 0 425.2-189.93 425.2-424.2C850.4 191.9 660 2 425.2 2zm-46.55 668.66h-91.58v-57.1L237.5 564.1h-57.26v-91.24h95.25l103.15 102.8v95zm152.52 0H439.6v-133.3L313.85 411.94h-133.6v-91.36H351.7L531.18 499.6v171.06zm152.55 0h-91.58V461.2L390.06 259.74H180.24v-91.36h247.8l255.68 255.07v247.22z"/></svg>
 
 
 
 
 
 
 
 
 
 
includes/abstract/feedzy-rss-feeds-admin-abstract.php CHANGED
@@ -245,7 +245,7 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
245
  ) );
246
  $feed->init();
247
  $feed->handle_content_type();
248
- $sc = $this->sanitize_attr( $sc, $feedURL );
249
  $content = $this->render_content( $sc, $feed, $content, $feedURL );
250
 
251
  return $content;
@@ -378,7 +378,10 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
378
  */
379
  public function render_content( $sc, $feed, $content = '', $feedURL ) {
380
  $count = 0;
381
- $sizes = array( 'width' => $sc['size'], 'height' => $sc['size'] );
 
 
 
382
  $sizes = apply_filters( 'feedzy_thumb_sizes', $sizes, $feedURL );
383
  // Display the error message
384
  if ( $feed->error() ) {
@@ -525,13 +528,13 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
525
  $authorName = $author->get_email();
526
  }
527
  if ( $authorName ) {
528
- $domain = parse_url( $newLink );
529
  $contentMeta .= __( 'by', 'feedzy-rss-feeds' ) . ' <a href="http://' . $domain['host'] . '" target="' . $sc['target'] . '" title="' . $domain['host'] . '" >' . $authorName . '</a> ';
530
  }
531
  }
532
  if ( $metaArgs['date'] ) {
533
- $date_time = $item->get_date( 'U' );
534
- $date_time = apply_filters( 'feedzy_feed_timestamp', $date_time, $feedURL );
535
  $contentMeta .= __( 'on', 'feedzy-rss-feeds' ) . ' ' . date_i18n( $metaArgs['date_format'], $date_time );
536
  $contentMeta .= ' ';
537
  $contentMeta .= __( 'at', 'feedzy-rss-feeds' ) . ' ' . date_i18n( $metaArgs['time_format'], $date_time );
@@ -592,13 +595,13 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
592
  }
593
  }
594
  if ( $thumbnail = $enclosure->embed() ) {
595
- $pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/iU';
596
  if ( preg_match( $pattern, $thumbnail, $matches ) ) {
597
  $theThumbnail = $matches[0];
598
  }
599
  }
600
  foreach ( (array) $enclosure->get_link() as $thumbnail ) {
601
- $pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/iU';
602
  $imgsrc = $thumbnail;
603
  if ( preg_match( $pattern, $imgsrc, $matches ) ) {
604
  $theThumbnail = $matches[0];
@@ -761,7 +764,7 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
761
  $path_parts = pathinfo( $string );
762
  $path = $path_parts['dirname'];
763
  $file = rawurldecode( $path_parts['filename'] );
764
- $extention = pathinfo( $url_tab['path'], PATHINFO_EXTENSION );
765
  if ( ! empty( $extention ) ) {
766
  $extention = '.' . $extention;
767
  } else {
245
  ) );
246
  $feed->init();
247
  $feed->handle_content_type();
248
+ $sc = $this->sanitize_attr( $sc, $feedURL );
249
  $content = $this->render_content( $sc, $feed, $content, $feedURL );
250
 
251
  return $content;
378
  */
379
  public function render_content( $sc, $feed, $content = '', $feedURL ) {
380
  $count = 0;
381
+ $sizes = array(
382
+ 'width' => $sc['size'],
383
+ 'height' => $sc['size'],
384
+ );
385
  $sizes = apply_filters( 'feedzy_thumb_sizes', $sizes, $feedURL );
386
  // Display the error message
387
  if ( $feed->error() ) {
528
  $authorName = $author->get_email();
529
  }
530
  if ( $authorName ) {
531
+ $domain = parse_url( $newLink );
532
  $contentMeta .= __( 'by', 'feedzy-rss-feeds' ) . ' <a href="http://' . $domain['host'] . '" target="' . $sc['target'] . '" title="' . $domain['host'] . '" >' . $authorName . '</a> ';
533
  }
534
  }
535
  if ( $metaArgs['date'] ) {
536
+ $date_time = $item->get_date( 'U' );
537
+ $date_time = apply_filters( 'feedzy_feed_timestamp', $date_time, $feedURL );
538
  $contentMeta .= __( 'on', 'feedzy-rss-feeds' ) . ' ' . date_i18n( $metaArgs['date_format'], $date_time );
539
  $contentMeta .= ' ';
540
  $contentMeta .= __( 'at', 'feedzy-rss-feeds' ) . ' ' . date_i18n( $metaArgs['time_format'], $date_time );
595
  }
596
  }
597
  if ( $thumbnail = $enclosure->embed() ) {
598
+ $pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/i';
599
  if ( preg_match( $pattern, $thumbnail, $matches ) ) {
600
  $theThumbnail = $matches[0];
601
  }
602
  }
603
  foreach ( (array) $enclosure->get_link() as $thumbnail ) {
604
+ $pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/i';
605
  $imgsrc = $thumbnail;
606
  if ( preg_match( $pattern, $imgsrc, $matches ) ) {
607
  $theThumbnail = $matches[0];
764
  $path_parts = pathinfo( $string );
765
  $path = $path_parts['dirname'];
766
  $file = rawurldecode( $path_parts['filename'] );
767
+ $extention = pathinfo( $url_tab['path'], PATHINFO_EXTENSION );
768
  if ( ! empty( $extention ) ) {
769
  $extention = '.' . $extention;
770
  } else {
includes/admin/feedzy-rss-feeds-options.php CHANGED
@@ -81,4 +81,4 @@ if ( ! class_exists( 'Feedy_Rss_Feeds_Options' ) ) {
81
 
82
  }
83
  }
84
- }
81
 
82
  }
83
  }
84
+ }// End if().
includes/admin/feedzy-rss-feeds-upgrader.php CHANGED
@@ -65,4 +65,4 @@ if ( ! class_exists( 'Feedzy_Rss_Feeds_Upgrader' ) ) {
65
  return str_replace( '.', '_', $version );
66
  }
67
  }
68
- }
65
  return str_replace( '.', '_', $version );
66
  }
67
  }
68
+ }// End if().
includes/feedzy-rss-feeds-activator.php CHANGED
@@ -32,7 +32,9 @@ class Feedzy_Rss_Feeds_Activator {
32
  public static function activate() {
33
  $options = get_option( Feedzy_Rss_Feeds::get_plugin_name(), array() );
34
  if ( ! isset( $options['is_new'] ) ) {
35
- update_option( Feedzy_Rss_Feeds::get_plugin_name(), array( 'is_new' => 'yes' ) );
 
 
36
  }
37
 
38
  }
32
  public static function activate() {
33
  $options = get_option( Feedzy_Rss_Feeds::get_plugin_name(), array() );
34
  if ( ! isset( $options['is_new'] ) ) {
35
+ update_option( Feedzy_Rss_Feeds::get_plugin_name(), array(
36
+ 'is_new' => 'yes',
37
+ ) );
38
  }
39
 
40
  }
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.0.9';
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.0.10';
108
  self::$instance->load_dependencies();
109
  self::$instance->set_locale();
110
  self::$instance->define_admin_hooks();
languages/feedzy-rss-feeds.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Feedzy RSS Feeds Lite 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://github.com/Codeinwp/feedzy-rss-feeds/issues\n"
7
- "POT-Creation-Date: 2017-02-20 15:13:55+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -32,15 +32,15 @@ msgstr ""
32
  msgid "Sorry, this feed is currently unavailable or does not exists anymore."
33
  msgstr ""
34
 
35
- #: includes/abstract/feedzy-rss-feeds-admin-abstract.php:529
36
  msgid "by"
37
  msgstr ""
38
 
39
- #: includes/abstract/feedzy-rss-feeds-admin-abstract.php:535
40
  msgid "on"
41
  msgstr ""
42
 
43
- #: includes/abstract/feedzy-rss-feeds-admin-abstract.php:537
44
  msgid "at"
45
  msgstr ""
46
 
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Feedzy RSS Feeds Lite 3.0.9\n"
6
  "Report-Msgid-Bugs-To: https://github.com/Codeinwp/feedzy-rss-feeds/issues\n"
7
+ "POT-Creation-Date: 2017-04-12 12:55:41+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
32
  msgid "Sorry, this feed is currently unavailable or does not exists anymore."
33
  msgstr ""
34
 
35
+ #: includes/abstract/feedzy-rss-feeds-admin-abstract.php:532
36
  msgid "by"
37
  msgstr ""
38
 
39
+ #: includes/abstract/feedzy-rss-feeds-admin-abstract.php:538
40
  msgid "on"
41
  msgstr ""
42
 
43
+ #: includes/abstract/feedzy-rss-feeds-admin-abstract.php:540
44
  msgid "at"
45
  msgstr ""
46
 
readme.txt CHANGED
@@ -188,6 +188,10 @@ http://docs.themeisle.com/article/567-how-to-display-rss-feed-time-and-date-in-l
188
 
189
  == Changelog ==
190
 
 
 
 
 
191
  = 3.0.9 - 21/02/2017 =
192
  * Added wrong feed title check.
193
 
188
 
189
  == Changelog ==
190
 
191
+ = 3.0.10 - 24/04/2017 =
192
+ * Fixed wrong image regex.
193
+ * Fixed image compression.
194
+
195
  = 3.0.9 - 21/02/2017 =
196
  * Added wrong feed title check.
197