RSSImport - Version 4.4.13

Version Description

Download this release

Release Info

Developer Bueltge
Plugin Icon wp plugin RSSImport
Version 4.4.13
Comparing to
See all releases

Code changes from version 4.4.12 to 4.4.13

Files changed (3) hide show
  1. js/quicktag.js +0 -14
  2. readme.txt +7 -6
  3. rssimport.php +40 -19
js/quicktag.js DELETED
@@ -1,14 +0,0 @@
1
- <script type="text/javascript">
2
- //<![CDATA[
3
- var length = edButtons.length;
4
- edButtons[length] = new edButton('RSSImport', '$context', '[RSSImport display="5" feedurl="http://feedurl.com/" before_desc="<br />" displaydescriptions="TRUE" after_desc=" " html="FALSE" truncatedescchar="200" truncatedescstring=" ... " truncatetitlechar=" " truncatetitlestring=" ... " before_date=" <small>" date="FALSE" after_date="</small>" date_format="" before_creator=" <small>" creator="FALSE" after_creator="</small>" start_items="<ul>" end_items="</ul>" start_item="<li>" end_item="</li>" target="" rel="" desc4title="" charsetscan="FALSE" debug="FALSE" before_noitems="<p>" noitems="No items, feed is empty." after_noitems="</p>" before_error="<p>" error="Error: Feed has a error or is not valid" after_error="</p>" paging="FALSE" prev_paging_link="&laquo; Previous" next_paging_link="Next &raquo;" prev_paging_title="more items" next_paging_title="more items" use_simplepie="FALSE"]', '', '');
5
- function RSSImport_tag(id) {
6
- id = id.replace(/RSSImport_/, '');
7
- edInsertTag(edCanvas, id);
8
- }
9
- jQuery(document).ready(function() {
10
- content = '<input id="RSSImport_'+length+'" class="ed_button" type="button" value="' . __( 'RSSImport', FB_RSSI_TEXTDOMAIN ) . '" title="' . __( 'Import a feed with RSSImport', FB_RSSI_TEXTDOMAIN ) . '" onclick="RSSImport_tag(this.id);" />';
11
- jQuery("#ed_toolbar").append(content);
12
- });
13
- //]]>
14
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
  === RSSImport ===
2
- Contributors: Bueltge, novaclic
3
  Plugin URI: http://bueltge.de/wp-wartungsmodus-plugin/101/
4
  Author: Frank B&uuml;ltge
5
  Author URI: http://bueltge.de/
6
  Donate link: http://bueltge.de/wunschliste/
7
  Tags: rss, post, content, post, feed
8
  Requires at least: 1.5
9
- Tested up to: 3.4
10
- Stable tag: 4.4.12
11
 
12
  Import and display Feeds in your blog, use PHP or the Shortcode.
13
 
@@ -89,9 +89,6 @@ _The shortcode with a lot of parameters:_
89
  displaydescriptions="true" html="true"
90
  start_items="<ol>" end_items="</ol>" paging="true" ]
91
 
92
- = Interested in WordPress tips and tricks =
93
- You may also be interested in WordPress tips and tricks at [WP Engineer](http://wpengineer.com/) or for german people [bueltge.de](http://bueltge.de/)
94
-
95
 
96
  == Installation ==
97
  1. Unpack the download-package
@@ -105,6 +102,10 @@ You may also be interested in WordPress tips and tricks at [WP Engineer](http://
105
  1. Widget support
106
 
107
  == Changelog ==
 
 
 
 
108
  = v4.4.12 (04/02/2012) =
109
  * Bugfix: restored RSSImport QuickTag for Wordpress 3.3 and later
110
  * Improvement: avoid PHP-notice when description is missing for an item
1
  === RSSImport ===
2
+ Contributors: Bueltge, inpsyde, novaclic
3
  Plugin URI: http://bueltge.de/wp-wartungsmodus-plugin/101/
4
  Author: Frank B&uuml;ltge
5
  Author URI: http://bueltge.de/
6
  Donate link: http://bueltge.de/wunschliste/
7
  Tags: rss, post, content, post, feed
8
  Requires at least: 1.5
9
+ Tested up to: 3.7-alpha
10
+ Stable tag: 4.4.13
11
 
12
  Import and display Feeds in your blog, use PHP or the Shortcode.
13
 
89
  displaydescriptions="true" html="true"
90
  start_items="<ol>" end_items="</ol>" paging="true" ]
91
 
 
 
 
92
 
93
  == Installation ==
94
  1. Unpack the download-package
102
  1. Widget support
103
 
104
  == Changelog ==
105
+ = v4.4.13 (08/22/2013) =
106
+ * Set simplepie to default settings; is the default way of WP since lot of versions
107
+ * Fix for Quicktag on Post/Page Editor; use now the core functions, there we have since WP 3.3
108
+
109
  = v4.4.12 (04/02/2012) =
110
  * Bugfix: restored RSSImport QuickTag for Wordpress 3.3 and later
111
  * Improvement: avoid PHP-notice when description is missing for an item
rssimport.php CHANGED
@@ -12,7 +12,7 @@
12
  * Domain Path: /languages
13
  * Description: Import and display Feeds in your blog, use the function RSSImport(), a Widget or Shortcode [RSSImport]. Please see the new <a href="http://wordpress.org/extend/plugins/rss-import/">possibilities</a>.
14
  * Author: Frank B&uuml;ltge, novaclic
15
- * Version: 4.4.12
16
  * License: GPLv3
17
  * Last change: 04/04/2012
18
  */
@@ -490,7 +490,7 @@ function RSSImport_Shortcode($atts) {
490
  'next_paging_link' => __( 'Next &raquo;', FB_RSSI_TEXTDOMAIN ),
491
  'prev_paging_title' => __( 'more items', FB_RSSI_TEXTDOMAIN ),
492
  'next_paging_title' => __( 'more items', FB_RSSI_TEXTDOMAIN ),
493
- 'use_simplepie' => 0,
494
  'view' => 0
495
  ), $atts)
496
  );
@@ -573,9 +573,39 @@ function RSSImport_insert_button() {
573
  global $pagenow;
574
 
575
  $post_page_pages = array('post-new.php', 'post.php', 'page-new.php', 'page.php');
576
- if ( !in_array( $pagenow, $post_page_pages ) )
577
  return;
578
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
579
  echo '
580
  <script type="text/javascript">
581
  //<![CDATA[
@@ -594,23 +624,14 @@ function RSSImport_insert_button() {
594
  //]]>
595
  </script>';
596
  }
 
597
  if ( is_admin() && FB_RSSI_QUICKTAG ) {
598
- if ( version_compare( $GLOBALS['wp_version'], '3.3alpha', '>=' ) ) {
599
- $post_page_pages = array('post-new.php', 'post.php', 'page-new.php', 'page.php');
600
- if ( in_array( $pagenow, $post_page_pages ) ) {
601
- wp_enqueue_script(
602
- 'rssimport_insert_button',
603
- plugin_dir_url( __FILE__) . '/js/quicktag.js',
604
- array( 'quicktags' )
605
- );
606
- add_action( 'admin_print_scripts', 'rssimport_insert_button' );
607
- }
608
- } else {
609
- add_action( 'admin_footer', 'RSSImport_insert_button' );
610
- }
611
  }
612
 
613
-
614
  if ( function_exists('add_shortcode') )
615
  add_shortcode('RSSImport', 'RSSImport_Shortcode');
616
 
@@ -959,7 +980,7 @@ if ( class_exists('WP_Widget') ) {
959
  $next_paging_link = empty($instance['next_paging_link']) ? __('Next &raquo;', FB_RSSI_TEXTDOMAIN) : $instance['next_paging_link'];
960
  $prev_paging_title = empty($instance['prev_paging_title']) ? __('more items', FB_RSSI_TEXTDOMAIN) : $instance['prev_paging_title'];
961
  $next_paging_title = empty($instance['next_paging_title']) ? __('more items', FB_RSSI_TEXTDOMAIN) : $instance['next_paging_title'];
962
- $use_simplepie = empty($instance['use_simplepie']) ? '0' : $instance['use_simplepie'];
963
  $view = empty($instance['view']) ? '1' : $instance['view'];
964
 
965
  echo $before_widget;
@@ -1080,7 +1101,7 @@ if ( class_exists('WP_Widget') ) {
1080
  'next_paging_link' => __('Next &raquo;', FB_RSSI_TEXTDOMAIN),
1081
  'prev_paging_title' => __('more items', FB_RSSI_TEXTDOMAIN),
1082
  'next_paging_title' => __('more items', FB_RSSI_TEXTDOMAIN),
1083
- 'use_simplepie' => 0
1084
  )
1085
  );
1086
 
12
  * Domain Path: /languages
13
  * Description: Import and display Feeds in your blog, use the function RSSImport(), a Widget or Shortcode [RSSImport]. Please see the new <a href="http://wordpress.org/extend/plugins/rss-import/">possibilities</a>.
14
  * Author: Frank B&uuml;ltge, novaclic
15
+ * Version: 4.4.13
16
  * License: GPLv3
17
  * Last change: 04/04/2012
18
  */
490
  'next_paging_link' => __( 'Next &raquo;', FB_RSSI_TEXTDOMAIN ),
491
  'prev_paging_title' => __( 'more items', FB_RSSI_TEXTDOMAIN ),
492
  'next_paging_title' => __( 'more items', FB_RSSI_TEXTDOMAIN ),
493
+ 'use_simplepie' => 1,
494
  'view' => 0
495
  ), $atts)
496
  );
573
  global $pagenow;
574
 
575
  $post_page_pages = array('post-new.php', 'post.php', 'page-new.php', 'page.php');
576
+ if ( ! in_array( $pagenow, $post_page_pages ) )
577
  return;
578
 
579
+ ?>
580
+ <script type="text/javascript" charset="utf-8">
581
+ /* Adding Quicktag buttons to the editor WordPress ver. 3.3 and above
582
+ * - Button HTML ID (required)
583
+ * - Button display, value="" attribute (required)
584
+ * - Opening Tag (required)
585
+ * - Closing Tag (required)
586
+ * - Access key, accesskey="" attribute for the button (optional)
587
+ * - Title, title="" attribute (optional)
588
+ * - Priority/position on bar, 1-9 = first, 11-19 = second, 21-29 = third, etc. (optional)
589
+ */
590
+ var id = 'rssimport',
591
+ text = '<?php _e( 'RSSImport', FB_RSSI_TEXTDOMAIN ); ?>',
592
+ start = '[RSSImport display="5" feedurl="http://feedurl.com/" before_desc="<br />" displaydescriptions="TRUE" after_desc=" " html="FALSE" truncatedescchar="200" truncatedescstring=" ... " truncatetitlechar=" " truncatetitlestring=" ... " before_date=" <small>" date="FALSE" after_date="</small>" date_format="" before_creator=" <small>" creator="FALSE" after_creator="</small>" start_items="<ul>" end_items="</ul>" start_item="<li>" end_item="</li>" target="" rel="" desc4title="" charsetscan="FALSE" debug="FALSE" before_noitems="<p>" noitems="No items, feed is empty." after_noitems="</p>" before_error="<p>" error="Error: Feed has a error or is not valid" after_error="</p>" paging="FALSE" prev_paging_link="&laquo; Previous" next_paging_link="Next &raquo;" prev_paging_title="more items" next_paging_title="more items" use_simplepie="FALSE"]',
593
+ end = '',
594
+ access = 'r',
595
+ title = '<?php _e( 'Import a feed with RSSImport', FB_RSSI_TEXTDOMAIN ); ?>';
596
+
597
+ QTags.addButton( id, text, start, end, access );
598
+ </script>
599
+ <?php
600
+ }
601
+
602
+ function RSSImport_insert_button_old() {
603
+ global $pagenow;
604
+
605
+ $post_page_pages = array('post-new.php', 'post.php', 'page-new.php', 'page.php');
606
+ if ( ! in_array( $pagenow, $post_page_pages ) )
607
+ return;
608
+
609
  echo '
610
  <script type="text/javascript">
611
  //<![CDATA[
624
  //]]>
625
  </script>';
626
  }
627
+
628
  if ( is_admin() && FB_RSSI_QUICKTAG ) {
629
+ if ( version_compare( $GLOBALS['wp_version'], '3.3alpha', '>=' ) )
630
+ add_action( 'admin_print_footer_scripts', 'RSSImport_insert_button' );
631
+ else
632
+ add_action( 'admin_footer', 'RSSImport_insert_button_old' );
 
 
 
 
 
 
 
 
 
633
  }
634
 
 
635
  if ( function_exists('add_shortcode') )
636
  add_shortcode('RSSImport', 'RSSImport_Shortcode');
637
 
980
  $next_paging_link = empty($instance['next_paging_link']) ? __('Next &raquo;', FB_RSSI_TEXTDOMAIN) : $instance['next_paging_link'];
981
  $prev_paging_title = empty($instance['prev_paging_title']) ? __('more items', FB_RSSI_TEXTDOMAIN) : $instance['prev_paging_title'];
982
  $next_paging_title = empty($instance['next_paging_title']) ? __('more items', FB_RSSI_TEXTDOMAIN) : $instance['next_paging_title'];
983
+ $use_simplepie = empty($instance['use_simplepie']) ? '1' : $instance['use_simplepie'];
984
  $view = empty($instance['view']) ? '1' : $instance['view'];
985
 
986
  echo $before_widget;
1101
  'next_paging_link' => __('Next &raquo;', FB_RSSI_TEXTDOMAIN),
1102
  'prev_paging_title' => __('more items', FB_RSSI_TEXTDOMAIN),
1103
  'next_paging_title' => __('more items', FB_RSSI_TEXTDOMAIN),
1104
+ 'use_simplepie' => 1
1105
  )
1106
  );
1107