Changeset 1391526
- Timestamp:
- 04/10/2016 05:44:39 PM (10 years ago)
- Location:
- rss-image-feed
- Files:
-
- 10 edited
- 11 copied
-
tags/4.2.5 (copied) (copied from rss-image-feed/trunk)
-
tags/4.2.5/class-lib/A5_ExcerptClass.php (copied) (copied from rss-image-feed/trunk/class-lib/A5_ExcerptClass.php) (1 diff)
-
tags/4.2.5/class-lib/A5_FormFieldClass.php (copied) (copied from rss-image-feed/trunk/class-lib/A5_FormFieldClass.php) (2 diffs)
-
tags/4.2.5/class-lib/A5_ImageClass.php (copied) (copied from rss-image-feed/trunk/class-lib/A5_ImageClass.php) (1 diff)
-
tags/4.2.5/class-lib/A5_OptionPageClass.php (copied) (copied from rss-image-feed/trunk/class-lib/A5_OptionPageClass.php) (2 diffs)
-
tags/4.2.5/class-lib/RIF_AdminClass.php (copied) (copied from rss-image-feed/trunk/class-lib/RIF_AdminClass.php) (5 diffs)
-
tags/4.2.5/image-rss.php (copied) (copied from rss-image-feed/trunk/image-rss.php) (4 diffs)
-
tags/4.2.5/languages/rss-image-feed-de_DE.mo (copied) (copied from rss-image-feed/trunk/languages/rss-image-feed-de_DE.mo)
-
tags/4.2.5/languages/rss-image-feed-de_DE.po (copied) (copied from rss-image-feed/trunk/languages/rss-image-feed-de_DE.po) (7 diffs)
-
tags/4.2.5/languages/rss-image-feed.pot (copied) (copied from rss-image-feed/trunk/languages/rss-image-feed.pot) (7 diffs)
-
tags/4.2.5/readme.txt (copied) (copied from rss-image-feed/trunk/readme.txt) (3 diffs)
-
trunk/class-lib/A5_ExcerptClass.php (modified) (1 diff)
-
trunk/class-lib/A5_FormFieldClass.php (modified) (2 diffs)
-
trunk/class-lib/A5_ImageClass.php (modified) (1 diff)
-
trunk/class-lib/A5_OptionPageClass.php (modified) (2 diffs)
-
trunk/class-lib/RIF_AdminClass.php (modified) (5 diffs)
-
trunk/image-rss.php (modified) (4 diffs)
-
trunk/languages/rss-image-feed-de_DE.mo (modified) (previous)
-
trunk/languages/rss-image-feed-de_DE.po (modified) (7 diffs)
-
trunk/languages/rss-image-feed.pot (modified) (7 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rss-image-feed/tags/4.2.5/class-lib/A5_ExcerptClass.php
r1375602 r1391526 6 6 * 7 7 * @ A5 Plugin Framework 8 * Version: 1.0 beta 20160 3218 * Version: 1.0 beta 20160408 9 9 * 10 10 * Gets the excerpt of a post according to some parameters -
rss-image-feed/tags/4.2.5/class-lib/A5_FormFieldClass.php
r1375602 r1391526 6 6 * 7 7 * @ A5 Plugin Framework 8 * Version: 1.0 beta 20160 3218 * Version: 1.0 beta 20160408 9 9 * 10 10 * Gets all sort of input fields for plugins by Atelier 5 … … 16 16 class A5_FormField { 17 17 18 const version = '1.0 beta 20160 321RIF';18 const version = '1.0 beta 20160408 RIF'; 19 19 20 20 public $formfield; -
rss-image-feed/tags/4.2.5/class-lib/A5_ImageClass.php
r1375602 r1391526 6 6 * 7 7 * @ A5 Plugin Framework 8 * Version: 1.0 beta 20160 3218 * Version: 1.0 beta 20160408 9 9 * 10 10 * Gets the alt and title tag for attachments -
rss-image-feed/tags/4.2.5/class-lib/A5_OptionPageClass.php
r1375602 r1391526 6 6 * 7 7 * @ A5 Plugin Framework 8 * Version: 1.0 beta 20160 3218 * Version: 1.0 beta 20160408 9 9 * 10 10 * Gets all sort of containers for the flexible A5 settings pages … … 420 420 foreach ($cache as $key => $value) : 421 421 422 $key = 'Post-ID: '.$key; 423 422 $td = ''; 423 424 $count = 0; 425 426 foreach ($value as $item => $content) : 427 428 $count++; 429 430 if (is_array($content)) : 431 432 $td .= '<span style="text-decoration: underline">Post-ID: '.$item.'</span><br><br>'; 433 434 foreach ($content as $id => $entry) : 435 436 if (is_array($entry)) : 437 438 foreach ($entry as $a => $b) : 439 440 $a = str_replace('_', ' ',$a); 441 442 $td .= ucwords($a).': '.$b.'<br>'; 443 444 endforeach; 445 446 else : 447 448 $td .= self::tag_it($entry, 'p', 3); 449 450 endif; 451 452 endforeach; 453 454 $td .= ($count < count($value)) ? '<hr style="border:solid #cccccc 1px;height:1px;">' : ''; 455 456 else : 457 458 if ('enclosure' == $item || 'media_content' == $item) : 459 460 $td .= self::tag_it(htmlentities($content), 'p', 3); 461 462 else : 463 464 $td .= $content; 465 466 endif; 467 468 endif; 469 470 endforeach; 471 472 $key = (0 != $count) ? 'Widget-ID: '.$key : 'Post-ID: '.$key; 473 474 $key = self::tag_it($key, 'td', 2, array('style' => 'width: 25%; border: solid 1px')); 475 476 $value = self::tag_it($td, 'td', 2, array('style' => 'border: solid 1px; word-wrap: break-word')); 477 478 $opt_str .= self::tag_it($key.$value, 'tr', 1); 479 480 endforeach; 481 482 $postbox .= self::tag_it($opt_str, 'table', 0, array('style' => 'border-collapse: collapse')); 483 484 $postbox .= self::close_postbox(); 485 486 return $postbox; 487 488 } 489 490 /** 491 * 492 * Output contents of the debug.log file 493 * 494 */ 495 static function debug_log_info($label, $section_id) { 496 497 $postbox = self::open_postbox($label, 'error-log-info', true); 498 499 $filename = WP_CONTENT_DIR.'/debug.log'; 500 501 $errorlog = file_get_contents($filename); 502 503 if ($errorlog): 504 424 505 ob_start(); 425 426 var_dump($value); 427 428 $value = ob_get_contents(); 429 430 $value = self::tag_it($value, 'pre', 3); 506 507 do_settings_sections($section_id); 508 509 $section = ob_get_contents(); 431 510 432 511 ob_end_clean(); 433 434 $value = str_replace(array("\r\n", "\n", "\r"), '<br />', $value); 435 436 $key = self::tag_it($key, 'td', 2, array('style' => 'width: 25%; border: solid 1px')); 437 438 $value = self::tag_it($value, 'td', 2, array('style' => 'border: solid 1px')); 439 440 $opt_str .= self::tag_it($key.$value, 'tr', 1); 441 442 endforeach; 443 444 $postbox .= self::tag_it($opt_str, 'table', 0, array('style' => 'border-collapse: collapse')); 445 446 $postbox .= self::close_postbox(); 447 448 return $postbox; 449 450 } 451 452 /** 453 * 454 * Output contents of the debug.log file 455 * 456 */ 457 static function debug_log_info($label) { 458 459 $postbox = self::open_postbox($label, 'error-log-info', true); 460 461 $filename = WP_CONTENT_DIR.'/debug.log'; 462 463 $errorlog = file_get_contents($filename); 464 465 if ($errorlog): 512 513 $postbox .= self::tag_it($section, 'div'); 466 514 467 515 $postbox .= self::tag_it(nl2br($errorlog), 'div', 0, array('style' => 'border: 2px solid #cc0000; padding: 0.5em')); -
rss-image-feed/tags/4.2.5/class-lib/RIF_AdminClass.php
r1375602 r1391526 121 121 if (count(self::$options['cache']) > 0) self::sortable('cache-info', self::cache_info(self::$options['cache'], __('Cache', 'rss-image-feed'))); 122 122 123 if (true == WP_DEBUG_ DISPLAY) self::sortable('errorlog-info', self::debug_log_info(__('Error Log', 'rss-image-feed')));123 if (true == WP_DEBUG_LOG) self::sortable('errorlog-info', self::debug_log_info(__('Error Log', 'rss-image-feed'), 'rss_debug_settings')); 124 124 125 125 self::close_tab(); … … 164 164 if ($cachesize > 0) add_settings_field('reset_cache', sprintf(__('Empty cache (%d %s):', 'rss-image-feed'), count(self::$options['cache']), $entry), array($this, 'reset_field'), 'new_image_settings', 'image_rss_settings', array(__('You can empty the plugin's cache here, if necessary.', 'rss-image-feed'))); 165 165 166 if (true == WP_DEBUG && true == WP_DEBUG_ DISPLAY) :166 if (true == WP_DEBUG && true == WP_DEBUG_LOG) : 167 167 168 168 $filename = WP_CONTENT_DIR.'/debug.log'; … … 174 174 $entry = ($logsize > 1) ? __('entries', 'rss-image-feed') : __('entry', 'rss-image-feed'); 175 175 176 if ($logsize > 0) add_settings_field('reset_debug_log', sprintf(__('Empty debug log (%d %s):', 'rss-image-feed'), count($errorlog), $entry), array($this, 'reset_debug_field'), 'new_image_settings', 'image_rss_settings', array(__('You can empty the debug log here, if necessary.', 'rss-image-feed'))); 176 if ($logsize > 0) : 177 178 add_settings_section('image_rss_settings', sprintf(__('Empty debug log (%d %s):', 'rss-image-feed'), count($errorlog), $entry), array($this, 'display_reset_section'), 'rss_debug_settings'); 179 180 add_settings_field('reset_debug_log', __('You can empty the debug log here, if necessary.', 'rss-image-feed'), array($this, 'reset_debug_field'), 'rss_debug_settings', 'image_rss_settings'); 181 182 endif; 177 183 178 184 endif; … … 218 224 function display_notext() { 219 225 220 a5_checkbox('notext', 'rss_options[notext]', self::$options['notext'], __('Click, to not show post content.', 'rss-image-feed'));226 a5_checkbox('notext', 'rss_options[notext]', @self::$options['notext'], __('Click, to not show post content.', 'rss-image-feed')); 221 227 222 228 } … … 240 246 } 241 247 242 function reset_debug_field($labels) { 243 244 a5_checkbox('reset_debug_log', 'rss_options[reset_debug_log]', @self::$options['reset_debug_log'], $labels[0]); 248 function display_reset_section() { 249 250 self::tag_it(__('Empty the debug log.', 'rss-image-feed'), 'p'); 251 252 } 253 254 function reset_debug_field() { 255 256 submit_button(__('OK', 'rss-image-feed'), 'secondary', 'rss_options[reset_debug_log]', true, array('id' => 'reset_debug_log')); 245 257 246 258 } -
rss-image-feed/tags/4.2.5/image-rss.php
r1375602 r1391526 4 4 Plugin URI: http://wasistlos.waldemarstoffel.com/plugins-fur-wordpress/image-feed 5 5 Description: RSS Image Feed is not literally producing a feed of images but it adds the first image of the post to the normal feeds of your blog. Those images display even if you have the summary in the feed and not the content. 6 Version: 4.2. 46 Version: 4.2.5 7 7 Author: Stefan Crämer 8 8 Author URI: http://www.stefan-craemer.com … … 139 139 endif; 140 140 141 if ( self::$options['media_content'] ||self::$options['enclosure']) :141 if (@self::$options['media_content'] || @self::$options['enclosure']) : 142 142 143 143 add_action( "rss2_ns", array( $this, 'set_feed_NameSpace') ); … … 196 196 'enclosure' => false, 197 197 'media_content' => false, 198 'cache' => array(), 198 'notext' => false, 199 'cache' => array(), 200 'css' => false, 199 201 'image_number' => false 200 202 ); … … 314 316 $rif_height = ($rif_image_info[2]) ? ' height="'.$rif_image_info[2].'"' :''; 315 317 316 $rif_image_size = '" width="'.$rif_width.'" '.$rif_height;317 318 if ( !isset(self::$options['responsive']) || !self::$options['responsive']) $rif_image_size .= '"style="max-width: 100%; height: auto;"';318 $rif_image_size = '" width="'.$rif_width.'"'.$rif_height; 319 320 if (isset(self::$options['responsive']) && self::$options['responsive']) $rif_image_size .= ' style="max-width: 100%; height: auto;"'; 319 321 320 322 $eol = "\n"; -
rss-image-feed/tags/4.2.5/languages/rss-image-feed-de_DE.po
r1375602 r1391526 2 2 msgstr "" 3 3 "Project-Id-Version: RSS Image Feed\n" 4 "POT-Creation-Date: 2016-0 3-21 13:59+0200\n"5 "PO-Revision-Date: 2016-0 3-21 14:00+0200\n"4 "POT-Creation-Date: 2016-04-10 20:42+0200\n" 5 "PO-Revision-Date: 2016-04-10 20:42+0200\n" 6 6 "Last-Translator: Stefan Crämer <translate@atelier-fuenf.de>\n" 7 7 "Language-Team: Waldemar Stoffel <stoffel@atelier-fuenf.de>\n" … … 113 113 msgstr "Falls nötig, kannst du hier den Cache des Plugins leeren." 114 114 115 #: class-lib/RIF_AdminClass.php:17 6115 #: class-lib/RIF_AdminClass.php:178 116 116 #, php-format 117 117 msgid "Empty debug log (%d %s):" 118 118 msgstr "Debug Log leeren (%d %s):" 119 119 120 #: class-lib/RIF_AdminClass.php:1 76120 #: class-lib/RIF_AdminClass.php:180 121 121 msgid "You can empty the debug log here, if necessary." 122 122 msgstr "Falls nötig, kannst du hier das Debug Log leeren." 123 123 124 #: class-lib/RIF_AdminClass.php:1 84124 #: class-lib/RIF_AdminClass.php:190 125 125 msgid "Change the size of the image and the excerpt here." 126 126 msgstr "Ändere die Größe des Bildes und des Auszuges hier." 127 127 128 #: class-lib/RIF_AdminClass.php:19 0128 #: class-lib/RIF_AdminClass.php:196 129 129 msgid "" 130 130 "Give here only the longest side of the image. The smaller side will be " … … 134 134 "erstellen des Feed berechnet. Die Bilder werden nicht beschnitten." 135 135 136 #: class-lib/RIF_AdminClass.php: 196136 #: class-lib/RIF_AdminClass.php:202 137 137 msgid "" 138 138 "Click, to make image size relativ and not static. This might make the feed " … … 142 142 "deinen Feed mehr responsive machen." 143 143 144 #: class-lib/RIF_AdminClass.php:20 2144 #: class-lib/RIF_AdminClass.php:208 145 145 msgid "Click, to include the "media:content" tag in the feed." 146 146 msgstr "Anklicken, um das "media:content" Tag zu setzen." 147 147 148 #: class-lib/RIF_AdminClass.php:2 08148 #: class-lib/RIF_AdminClass.php:214 149 149 msgid "Click, to include the "enclosure" tag in the feed." 150 150 msgstr "Anklicken, um das "enclosure" Tag zu setzen." 151 151 152 #: class-lib/RIF_AdminClass.php:2 14152 #: class-lib/RIF_AdminClass.php:220 153 153 #, php-format 154 154 msgid "" … … 159 159 "des Bildes an. Das Wort %s wird das letzte Bild des Artikels anzeigen." 160 160 161 #: class-lib/RIF_AdminClass.php:22 0161 #: class-lib/RIF_AdminClass.php:226 162 162 msgid "Click, to not show post content." 163 163 msgstr "Anklicken, um keinen Text anzuzeigen." 164 164 165 #: class-lib/RIF_AdminClass.php:2 26165 #: class-lib/RIF_AdminClass.php:232 166 166 msgid "" 167 167 "Click, to limit the post content to a summary if the post doesn't have " … … 171 171 "Auszug hat." 172 172 173 #: class-lib/RIF_AdminClass.php:23 2173 #: class-lib/RIF_AdminClass.php:238 174 174 msgid "" 175 175 "How long should the summary of the article be? Enter the number of sentences " … … 179 179 "ein." 180 180 181 #: class-lib/RIF_AdminClass.php:261 181 #: class-lib/RIF_AdminClass.php:250 182 msgid "Empty the debug log." 183 msgstr "Debug Log leeren." 184 185 #: class-lib/RIF_AdminClass.php:256 186 msgid "OK" 187 msgstr "OK" 188 189 #: class-lib/RIF_AdminClass.php:273 182 190 msgid "Please enter a numeric value for the image size." 183 191 msgstr "Bitte einen numerischen Wert für die Bildgröße eingeben." 184 192 185 #: class-lib/RIF_AdminClass.php:2 69193 #: class-lib/RIF_AdminClass.php:281 186 194 msgid "Please enter a numeric value for the excerpt length." 187 195 msgstr "Bitte einen numerischen Wert für die Länge des Auszugs eingeben." 188 196 189 #: class-lib/RIF_AdminClass.php:2 79197 #: class-lib/RIF_AdminClass.php:291 190 198 msgid "Imagesize too large. Please choose a value smaller than 10000." 191 199 msgstr "Bildgröße zu groß. Bitte wähle einen Wert kleiner als 10.000." 192 200 193 #: class-lib/RIF_AdminClass.php:3 04201 #: class-lib/RIF_AdminClass.php:316 194 202 msgid "Cache emptied." 195 203 msgstr "Cache geleert." 196 204 197 #: class-lib/RIF_AdminClass.php:3 14205 #: class-lib/RIF_AdminClass.php:326 198 206 msgid "Debug Log emptied." 199 207 msgstr "Debug Log geleert." -
rss-image-feed/tags/4.2.5/languages/rss-image-feed.pot
r1375602 r1391526 3 3 msgstr "" 4 4 "Project-Id-Version: RSS Image Feed\n" 5 "POT-Creation-Date: 2016-0 3-21 13:59+0200\n"5 "POT-Creation-Date: 2016-04-10 20:41+0200\n" 6 6 "PO-Revision-Date: 2016-02-22 21:44+0200\n" 7 7 "Last-Translator: Stefan Crämer <translate@atelier-fuenf.de>\n" … … 114 114 msgstr "" 115 115 116 #: class-lib/RIF_AdminClass.php:17 6116 #: class-lib/RIF_AdminClass.php:178 117 117 #, php-format 118 118 msgid "Empty debug log (%d %s):" 119 119 msgstr "" 120 120 121 #: class-lib/RIF_AdminClass.php:1 76121 #: class-lib/RIF_AdminClass.php:180 122 122 msgid "You can empty the debug log here, if necessary." 123 123 msgstr "" 124 124 125 #: class-lib/RIF_AdminClass.php:1 84125 #: class-lib/RIF_AdminClass.php:190 126 126 msgid "Change the size of the image and the excerpt here." 127 127 msgstr "" 128 128 129 #: class-lib/RIF_AdminClass.php:19 0129 #: class-lib/RIF_AdminClass.php:196 130 130 msgid "" 131 131 "Give here only the longest side of the image. The smaller side will be " … … 133 133 msgstr "" 134 134 135 #: class-lib/RIF_AdminClass.php: 196135 #: class-lib/RIF_AdminClass.php:202 136 136 msgid "" 137 137 "Click, to make image size relativ and not static. This might make the feed " … … 139 139 msgstr "" 140 140 141 #: class-lib/RIF_AdminClass.php:20 2141 #: class-lib/RIF_AdminClass.php:208 142 142 msgid "Click, to include the "media:content" tag in the feed." 143 143 msgstr "" 144 144 145 #: class-lib/RIF_AdminClass.php:2 08145 #: class-lib/RIF_AdminClass.php:214 146 146 msgid "Click, to include the "enclosure" tag in the feed." 147 147 msgstr "" 148 148 149 #: class-lib/RIF_AdminClass.php:2 14149 #: class-lib/RIF_AdminClass.php:220 150 150 #, php-format 151 151 msgid "" … … 154 154 msgstr "" 155 155 156 #: class-lib/RIF_AdminClass.php:22 0156 #: class-lib/RIF_AdminClass.php:226 157 157 msgid "Click, to not show post content." 158 158 msgstr "" 159 159 160 #: class-lib/RIF_AdminClass.php:2 26160 #: class-lib/RIF_AdminClass.php:232 161 161 msgid "" 162 162 "Click, to limit the post content to a summary if the post doesn't have " … … 164 164 msgstr "" 165 165 166 #: class-lib/RIF_AdminClass.php:23 2166 #: class-lib/RIF_AdminClass.php:238 167 167 msgid "" 168 168 "How long should the summary of the article be? Enter the number of sentences " … … 170 170 msgstr "" 171 171 172 #: class-lib/RIF_AdminClass.php:261 172 #: class-lib/RIF_AdminClass.php:250 173 msgid "Empty the debug log." 174 msgstr "" 175 176 #: class-lib/RIF_AdminClass.php:256 177 msgid "OK" 178 msgstr "" 179 180 #: class-lib/RIF_AdminClass.php:273 173 181 msgid "Please enter a numeric value for the image size." 174 182 msgstr "" 175 183 176 #: class-lib/RIF_AdminClass.php:2 69184 #: class-lib/RIF_AdminClass.php:281 177 185 msgid "Please enter a numeric value for the excerpt length." 178 186 msgstr "" 179 187 180 #: class-lib/RIF_AdminClass.php:2 79188 #: class-lib/RIF_AdminClass.php:291 181 189 msgid "Imagesize too large. Please choose a value smaller than 10000." 182 190 msgstr "" 183 191 184 #: class-lib/RIF_AdminClass.php:3 04192 #: class-lib/RIF_AdminClass.php:316 185 193 msgid "Cache emptied." 186 194 msgstr "" 187 195 188 #: class-lib/RIF_AdminClass.php:3 14196 #: class-lib/RIF_AdminClass.php:326 189 197 msgid "Debug Log emptied." 190 198 msgstr "" -
rss-image-feed/tags/4.2.5/readme.txt
r1375602 r1391526 5 5 Requires at least: 2.7 6 6 Tested up to: 4.5 7 Stable tag: 4.2. 47 Stable tag: 4.2.5 8 8 9 9 The RSS Image Feed adds the first image of a post to your feeds, even in firefox and even if you only display the excerpt. … … 32 32 33 33 == Changelog == 34 35 = 4.2.5 = 36 37 * added some debug options to the frame work 38 * some minor bugfixes 34 39 35 40 = 4.2.4 = … … 220 225 221 226 Made downwards compatible with versions prior to WP 4.4 again; some minor bugfixes 227 228 = 4.2.5 = 229 230 some minor bugfixes; debug options added to framework -
rss-image-feed/trunk/class-lib/A5_ExcerptClass.php
r1375602 r1391526 6 6 * 7 7 * @ A5 Plugin Framework 8 * Version: 1.0 beta 20160 3218 * Version: 1.0 beta 20160408 9 9 * 10 10 * Gets the excerpt of a post according to some parameters -
rss-image-feed/trunk/class-lib/A5_FormFieldClass.php
r1375602 r1391526 6 6 * 7 7 * @ A5 Plugin Framework 8 * Version: 1.0 beta 20160 3218 * Version: 1.0 beta 20160408 9 9 * 10 10 * Gets all sort of input fields for plugins by Atelier 5 … … 16 16 class A5_FormField { 17 17 18 const version = '1.0 beta 20160 321RIF';18 const version = '1.0 beta 20160408 RIF'; 19 19 20 20 public $formfield; -
rss-image-feed/trunk/class-lib/A5_ImageClass.php
r1375602 r1391526 6 6 * 7 7 * @ A5 Plugin Framework 8 * Version: 1.0 beta 20160 3218 * Version: 1.0 beta 20160408 9 9 * 10 10 * Gets the alt and title tag for attachments -
rss-image-feed/trunk/class-lib/A5_OptionPageClass.php
r1375602 r1391526 6 6 * 7 7 * @ A5 Plugin Framework 8 * Version: 1.0 beta 20160 3218 * Version: 1.0 beta 20160408 9 9 * 10 10 * Gets all sort of containers for the flexible A5 settings pages … … 420 420 foreach ($cache as $key => $value) : 421 421 422 $key = 'Post-ID: '.$key; 423 422 $td = ''; 423 424 $count = 0; 425 426 foreach ($value as $item => $content) : 427 428 $count++; 429 430 if (is_array($content)) : 431 432 $td .= '<span style="text-decoration: underline">Post-ID: '.$item.'</span><br><br>'; 433 434 foreach ($content as $id => $entry) : 435 436 if (is_array($entry)) : 437 438 foreach ($entry as $a => $b) : 439 440 $a = str_replace('_', ' ',$a); 441 442 $td .= ucwords($a).': '.$b.'<br>'; 443 444 endforeach; 445 446 else : 447 448 $td .= self::tag_it($entry, 'p', 3); 449 450 endif; 451 452 endforeach; 453 454 $td .= ($count < count($value)) ? '<hr style="border:solid #cccccc 1px;height:1px;">' : ''; 455 456 else : 457 458 if ('enclosure' == $item || 'media_content' == $item) : 459 460 $td .= self::tag_it(htmlentities($content), 'p', 3); 461 462 else : 463 464 $td .= $content; 465 466 endif; 467 468 endif; 469 470 endforeach; 471 472 $key = (0 != $count) ? 'Widget-ID: '.$key : 'Post-ID: '.$key; 473 474 $key = self::tag_it($key, 'td', 2, array('style' => 'width: 25%; border: solid 1px')); 475 476 $value = self::tag_it($td, 'td', 2, array('style' => 'border: solid 1px; word-wrap: break-word')); 477 478 $opt_str .= self::tag_it($key.$value, 'tr', 1); 479 480 endforeach; 481 482 $postbox .= self::tag_it($opt_str, 'table', 0, array('style' => 'border-collapse: collapse')); 483 484 $postbox .= self::close_postbox(); 485 486 return $postbox; 487 488 } 489 490 /** 491 * 492 * Output contents of the debug.log file 493 * 494 */ 495 static function debug_log_info($label, $section_id) { 496 497 $postbox = self::open_postbox($label, 'error-log-info', true); 498 499 $filename = WP_CONTENT_DIR.'/debug.log'; 500 501 $errorlog = file_get_contents($filename); 502 503 if ($errorlog): 504 424 505 ob_start(); 425 426 var_dump($value); 427 428 $value = ob_get_contents(); 429 430 $value = self::tag_it($value, 'pre', 3); 506 507 do_settings_sections($section_id); 508 509 $section = ob_get_contents(); 431 510 432 511 ob_end_clean(); 433 434 $value = str_replace(array("\r\n", "\n", "\r"), '<br />', $value); 435 436 $key = self::tag_it($key, 'td', 2, array('style' => 'width: 25%; border: solid 1px')); 437 438 $value = self::tag_it($value, 'td', 2, array('style' => 'border: solid 1px')); 439 440 $opt_str .= self::tag_it($key.$value, 'tr', 1); 441 442 endforeach; 443 444 $postbox .= self::tag_it($opt_str, 'table', 0, array('style' => 'border-collapse: collapse')); 445 446 $postbox .= self::close_postbox(); 447 448 return $postbox; 449 450 } 451 452 /** 453 * 454 * Output contents of the debug.log file 455 * 456 */ 457 static function debug_log_info($label) { 458 459 $postbox = self::open_postbox($label, 'error-log-info', true); 460 461 $filename = WP_CONTENT_DIR.'/debug.log'; 462 463 $errorlog = file_get_contents($filename); 464 465 if ($errorlog): 512 513 $postbox .= self::tag_it($section, 'div'); 466 514 467 515 $postbox .= self::tag_it(nl2br($errorlog), 'div', 0, array('style' => 'border: 2px solid #cc0000; padding: 0.5em')); -
rss-image-feed/trunk/class-lib/RIF_AdminClass.php
r1375602 r1391526 121 121 if (count(self::$options['cache']) > 0) self::sortable('cache-info', self::cache_info(self::$options['cache'], __('Cache', 'rss-image-feed'))); 122 122 123 if (true == WP_DEBUG_ DISPLAY) self::sortable('errorlog-info', self::debug_log_info(__('Error Log', 'rss-image-feed')));123 if (true == WP_DEBUG_LOG) self::sortable('errorlog-info', self::debug_log_info(__('Error Log', 'rss-image-feed'), 'rss_debug_settings')); 124 124 125 125 self::close_tab(); … … 164 164 if ($cachesize > 0) add_settings_field('reset_cache', sprintf(__('Empty cache (%d %s):', 'rss-image-feed'), count(self::$options['cache']), $entry), array($this, 'reset_field'), 'new_image_settings', 'image_rss_settings', array(__('You can empty the plugin's cache here, if necessary.', 'rss-image-feed'))); 165 165 166 if (true == WP_DEBUG && true == WP_DEBUG_ DISPLAY) :166 if (true == WP_DEBUG && true == WP_DEBUG_LOG) : 167 167 168 168 $filename = WP_CONTENT_DIR.'/debug.log'; … … 174 174 $entry = ($logsize > 1) ? __('entries', 'rss-image-feed') : __('entry', 'rss-image-feed'); 175 175 176 if ($logsize > 0) add_settings_field('reset_debug_log', sprintf(__('Empty debug log (%d %s):', 'rss-image-feed'), count($errorlog), $entry), array($this, 'reset_debug_field'), 'new_image_settings', 'image_rss_settings', array(__('You can empty the debug log here, if necessary.', 'rss-image-feed'))); 176 if ($logsize > 0) : 177 178 add_settings_section('image_rss_settings', sprintf(__('Empty debug log (%d %s):', 'rss-image-feed'), count($errorlog), $entry), array($this, 'display_reset_section'), 'rss_debug_settings'); 179 180 add_settings_field('reset_debug_log', __('You can empty the debug log here, if necessary.', 'rss-image-feed'), array($this, 'reset_debug_field'), 'rss_debug_settings', 'image_rss_settings'); 181 182 endif; 177 183 178 184 endif; … … 218 224 function display_notext() { 219 225 220 a5_checkbox('notext', 'rss_options[notext]', self::$options['notext'], __('Click, to not show post content.', 'rss-image-feed'));226 a5_checkbox('notext', 'rss_options[notext]', @self::$options['notext'], __('Click, to not show post content.', 'rss-image-feed')); 221 227 222 228 } … … 240 246 } 241 247 242 function reset_debug_field($labels) { 243 244 a5_checkbox('reset_debug_log', 'rss_options[reset_debug_log]', @self::$options['reset_debug_log'], $labels[0]); 248 function display_reset_section() { 249 250 self::tag_it(__('Empty the debug log.', 'rss-image-feed'), 'p'); 251 252 } 253 254 function reset_debug_field() { 255 256 submit_button(__('OK', 'rss-image-feed'), 'secondary', 'rss_options[reset_debug_log]', true, array('id' => 'reset_debug_log')); 245 257 246 258 } -
rss-image-feed/trunk/image-rss.php
r1375602 r1391526 4 4 Plugin URI: http://wasistlos.waldemarstoffel.com/plugins-fur-wordpress/image-feed 5 5 Description: RSS Image Feed is not literally producing a feed of images but it adds the first image of the post to the normal feeds of your blog. Those images display even if you have the summary in the feed and not the content. 6 Version: 4.2. 46 Version: 4.2.5 7 7 Author: Stefan Crämer 8 8 Author URI: http://www.stefan-craemer.com … … 139 139 endif; 140 140 141 if ( self::$options['media_content'] ||self::$options['enclosure']) :141 if (@self::$options['media_content'] || @self::$options['enclosure']) : 142 142 143 143 add_action( "rss2_ns", array( $this, 'set_feed_NameSpace') ); … … 196 196 'enclosure' => false, 197 197 'media_content' => false, 198 'cache' => array(), 198 'notext' => false, 199 'cache' => array(), 200 'css' => false, 199 201 'image_number' => false 200 202 ); … … 314 316 $rif_height = ($rif_image_info[2]) ? ' height="'.$rif_image_info[2].'"' :''; 315 317 316 $rif_image_size = '" width="'.$rif_width.'" '.$rif_height;317 318 if ( !isset(self::$options['responsive']) || !self::$options['responsive']) $rif_image_size .= '"style="max-width: 100%; height: auto;"';318 $rif_image_size = '" width="'.$rif_width.'"'.$rif_height; 319 320 if (isset(self::$options['responsive']) && self::$options['responsive']) $rif_image_size .= ' style="max-width: 100%; height: auto;"'; 319 321 320 322 $eol = "\n"; -
rss-image-feed/trunk/languages/rss-image-feed-de_DE.po
r1375602 r1391526 2 2 msgstr "" 3 3 "Project-Id-Version: RSS Image Feed\n" 4 "POT-Creation-Date: 2016-0 3-21 13:59+0200\n"5 "PO-Revision-Date: 2016-0 3-21 14:00+0200\n"4 "POT-Creation-Date: 2016-04-10 20:42+0200\n" 5 "PO-Revision-Date: 2016-04-10 20:42+0200\n" 6 6 "Last-Translator: Stefan Crämer <translate@atelier-fuenf.de>\n" 7 7 "Language-Team: Waldemar Stoffel <stoffel@atelier-fuenf.de>\n" … … 113 113 msgstr "Falls nötig, kannst du hier den Cache des Plugins leeren." 114 114 115 #: class-lib/RIF_AdminClass.php:17 6115 #: class-lib/RIF_AdminClass.php:178 116 116 #, php-format 117 117 msgid "Empty debug log (%d %s):" 118 118 msgstr "Debug Log leeren (%d %s):" 119 119 120 #: class-lib/RIF_AdminClass.php:1 76120 #: class-lib/RIF_AdminClass.php:180 121 121 msgid "You can empty the debug log here, if necessary." 122 122 msgstr "Falls nötig, kannst du hier das Debug Log leeren." 123 123 124 #: class-lib/RIF_AdminClass.php:1 84124 #: class-lib/RIF_AdminClass.php:190 125 125 msgid "Change the size of the image and the excerpt here." 126 126 msgstr "Ändere die Größe des Bildes und des Auszuges hier." 127 127 128 #: class-lib/RIF_AdminClass.php:19 0128 #: class-lib/RIF_AdminClass.php:196 129 129 msgid "" 130 130 "Give here only the longest side of the image. The smaller side will be " … … 134 134 "erstellen des Feed berechnet. Die Bilder werden nicht beschnitten." 135 135 136 #: class-lib/RIF_AdminClass.php: 196136 #: class-lib/RIF_AdminClass.php:202 137 137 msgid "" 138 138 "Click, to make image size relativ and not static. This might make the feed " … … 142 142 "deinen Feed mehr responsive machen." 143 143 144 #: class-lib/RIF_AdminClass.php:20 2144 #: class-lib/RIF_AdminClass.php:208 145 145 msgid "Click, to include the "media:content" tag in the feed." 146 146 msgstr "Anklicken, um das "media:content" Tag zu setzen." 147 147 148 #: class-lib/RIF_AdminClass.php:2 08148 #: class-lib/RIF_AdminClass.php:214 149 149 msgid "Click, to include the "enclosure" tag in the feed." 150 150 msgstr "Anklicken, um das "enclosure" Tag zu setzen." 151 151 152 #: class-lib/RIF_AdminClass.php:2 14152 #: class-lib/RIF_AdminClass.php:220 153 153 #, php-format 154 154 msgid "" … … 159 159 "des Bildes an. Das Wort %s wird das letzte Bild des Artikels anzeigen." 160 160 161 #: class-lib/RIF_AdminClass.php:22 0161 #: class-lib/RIF_AdminClass.php:226 162 162 msgid "Click, to not show post content." 163 163 msgstr "Anklicken, um keinen Text anzuzeigen." 164 164 165 #: class-lib/RIF_AdminClass.php:2 26165 #: class-lib/RIF_AdminClass.php:232 166 166 msgid "" 167 167 "Click, to limit the post content to a summary if the post doesn't have " … … 171 171 "Auszug hat." 172 172 173 #: class-lib/RIF_AdminClass.php:23 2173 #: class-lib/RIF_AdminClass.php:238 174 174 msgid "" 175 175 "How long should the summary of the article be? Enter the number of sentences " … … 179 179 "ein." 180 180 181 #: class-lib/RIF_AdminClass.php:261 181 #: class-lib/RIF_AdminClass.php:250 182 msgid "Empty the debug log." 183 msgstr "Debug Log leeren." 184 185 #: class-lib/RIF_AdminClass.php:256 186 msgid "OK" 187 msgstr "OK" 188 189 #: class-lib/RIF_AdminClass.php:273 182 190 msgid "Please enter a numeric value for the image size." 183 191 msgstr "Bitte einen numerischen Wert für die Bildgröße eingeben." 184 192 185 #: class-lib/RIF_AdminClass.php:2 69193 #: class-lib/RIF_AdminClass.php:281 186 194 msgid "Please enter a numeric value for the excerpt length." 187 195 msgstr "Bitte einen numerischen Wert für die Länge des Auszugs eingeben." 188 196 189 #: class-lib/RIF_AdminClass.php:2 79197 #: class-lib/RIF_AdminClass.php:291 190 198 msgid "Imagesize too large. Please choose a value smaller than 10000." 191 199 msgstr "Bildgröße zu groß. Bitte wähle einen Wert kleiner als 10.000." 192 200 193 #: class-lib/RIF_AdminClass.php:3 04201 #: class-lib/RIF_AdminClass.php:316 194 202 msgid "Cache emptied." 195 203 msgstr "Cache geleert." 196 204 197 #: class-lib/RIF_AdminClass.php:3 14205 #: class-lib/RIF_AdminClass.php:326 198 206 msgid "Debug Log emptied." 199 207 msgstr "Debug Log geleert." -
rss-image-feed/trunk/languages/rss-image-feed.pot
r1375602 r1391526 3 3 msgstr "" 4 4 "Project-Id-Version: RSS Image Feed\n" 5 "POT-Creation-Date: 2016-0 3-21 13:59+0200\n"5 "POT-Creation-Date: 2016-04-10 20:41+0200\n" 6 6 "PO-Revision-Date: 2016-02-22 21:44+0200\n" 7 7 "Last-Translator: Stefan Crämer <translate@atelier-fuenf.de>\n" … … 114 114 msgstr "" 115 115 116 #: class-lib/RIF_AdminClass.php:17 6116 #: class-lib/RIF_AdminClass.php:178 117 117 #, php-format 118 118 msgid "Empty debug log (%d %s):" 119 119 msgstr "" 120 120 121 #: class-lib/RIF_AdminClass.php:1 76121 #: class-lib/RIF_AdminClass.php:180 122 122 msgid "You can empty the debug log here, if necessary." 123 123 msgstr "" 124 124 125 #: class-lib/RIF_AdminClass.php:1 84125 #: class-lib/RIF_AdminClass.php:190 126 126 msgid "Change the size of the image and the excerpt here." 127 127 msgstr "" 128 128 129 #: class-lib/RIF_AdminClass.php:19 0129 #: class-lib/RIF_AdminClass.php:196 130 130 msgid "" 131 131 "Give here only the longest side of the image. The smaller side will be " … … 133 133 msgstr "" 134 134 135 #: class-lib/RIF_AdminClass.php: 196135 #: class-lib/RIF_AdminClass.php:202 136 136 msgid "" 137 137 "Click, to make image size relativ and not static. This might make the feed " … … 139 139 msgstr "" 140 140 141 #: class-lib/RIF_AdminClass.php:20 2141 #: class-lib/RIF_AdminClass.php:208 142 142 msgid "Click, to include the "media:content" tag in the feed." 143 143 msgstr "" 144 144 145 #: class-lib/RIF_AdminClass.php:2 08145 #: class-lib/RIF_AdminClass.php:214 146 146 msgid "Click, to include the "enclosure" tag in the feed." 147 147 msgstr "" 148 148 149 #: class-lib/RIF_AdminClass.php:2 14149 #: class-lib/RIF_AdminClass.php:220 150 150 #, php-format 151 151 msgid "" … … 154 154 msgstr "" 155 155 156 #: class-lib/RIF_AdminClass.php:22 0156 #: class-lib/RIF_AdminClass.php:226 157 157 msgid "Click, to not show post content." 158 158 msgstr "" 159 159 160 #: class-lib/RIF_AdminClass.php:2 26160 #: class-lib/RIF_AdminClass.php:232 161 161 msgid "" 162 162 "Click, to limit the post content to a summary if the post doesn't have " … … 164 164 msgstr "" 165 165 166 #: class-lib/RIF_AdminClass.php:23 2166 #: class-lib/RIF_AdminClass.php:238 167 167 msgid "" 168 168 "How long should the summary of the article be? Enter the number of sentences " … … 170 170 msgstr "" 171 171 172 #: class-lib/RIF_AdminClass.php:261 172 #: class-lib/RIF_AdminClass.php:250 173 msgid "Empty the debug log." 174 msgstr "" 175 176 #: class-lib/RIF_AdminClass.php:256 177 msgid "OK" 178 msgstr "" 179 180 #: class-lib/RIF_AdminClass.php:273 173 181 msgid "Please enter a numeric value for the image size." 174 182 msgstr "" 175 183 176 #: class-lib/RIF_AdminClass.php:2 69184 #: class-lib/RIF_AdminClass.php:281 177 185 msgid "Please enter a numeric value for the excerpt length." 178 186 msgstr "" 179 187 180 #: class-lib/RIF_AdminClass.php:2 79188 #: class-lib/RIF_AdminClass.php:291 181 189 msgid "Imagesize too large. Please choose a value smaller than 10000." 182 190 msgstr "" 183 191 184 #: class-lib/RIF_AdminClass.php:3 04192 #: class-lib/RIF_AdminClass.php:316 185 193 msgid "Cache emptied." 186 194 msgstr "" 187 195 188 #: class-lib/RIF_AdminClass.php:3 14196 #: class-lib/RIF_AdminClass.php:326 189 197 msgid "Debug Log emptied." 190 198 msgstr "" -
rss-image-feed/trunk/readme.txt
r1375602 r1391526 5 5 Requires at least: 2.7 6 6 Tested up to: 4.5 7 Stable tag: 4.2. 47 Stable tag: 4.2.5 8 8 9 9 The RSS Image Feed adds the first image of a post to your feeds, even in firefox and even if you only display the excerpt. … … 32 32 33 33 == Changelog == 34 35 = 4.2.5 = 36 37 * added some debug options to the frame work 38 * some minor bugfixes 34 39 35 40 = 4.2.4 = … … 220 225 221 226 Made downwards compatible with versions prior to WP 4.4 again; some minor bugfixes 227 228 = 4.2.5 = 229 230 some minor bugfixes; debug options added to framework
Note: See TracChangeset
for help on using the changeset viewer.