Changeset 627873
- Timestamp:
- 11/20/2012 08:29:26 PM (13 years ago)
- Location:
- network-latest-posts/trunk
- Files:
-
- 7 edited
-
languages/languages.pot (modified) (2 diffs)
-
languages/trans-nlp-es_ES.mo (modified) (previous)
-
languages/trans-nlp-es_ES.po (modified) (2 diffs)
-
languages/trans-nlp-fr_FR.mo (modified) (previous)
-
languages/trans-nlp-fr_FR.po (modified) (2 diffs)
-
network-latest-posts.php (modified) (11 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
network-latest-posts/trunk/languages/languages.pot
r625323 r627873 3 3 "Project-Id-Version: Network Latest Posts v3.2\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2012-11- 14 19:55+0100\n"6 "PO-Revision-Date: 2012-11- 14 19:55+0100\n"5 "POT-Creation-Date: 2012-11-20 21:16+0100\n" 6 "PO-Revision-Date: 2012-11-20 21:17+0100\n" 7 7 "Last-Translator: Jose Luis Sayago Rojas <[email protected]>\n" 8 8 "Language-Team: L'Elite <[email protected]>\n" … … 391 391 msgstr "" 392 392 393 #: ../network-latest-posts.php:671 ../network-latest-posts.php:727 394 #: ../network-latest-posts.php:891 ../network-latest-posts.php:947 393 #: ../network-latest-posts.php:474 394 msgid "Sorry, I couldn't find any recent posts matching your parameters." 395 msgstr "" 396 397 #: ../network-latest-posts.php:672 ../network-latest-posts.php:728 398 #: ../network-latest-posts.php:892 ../network-latest-posts.php:948 395 399 msgid "Published on" 396 400 msgstr "" 397 401 398 #: ../network-latest-posts.php:67 1 ../network-latest-posts.php:727399 #: ../network-latest-posts.php:89 1 ../network-latest-posts.php:947402 #: ../network-latest-posts.php:672 ../network-latest-posts.php:728 403 #: ../network-latest-posts.php:892 ../network-latest-posts.php:948 400 404 msgid "by" 401 405 msgstr "" 402 406 403 #: ../network-latest-posts.php:76 7407 #: ../network-latest-posts.php:768 404 408 msgid "«" 405 409 msgstr "" 406 410 407 #: ../network-latest-posts.php:76 8411 #: ../network-latest-posts.php:769 408 412 msgid "»" 409 413 msgstr "" 410 414 411 #: ../network-latest-posts.php:107 7 ../network-latest-posts.php:1081412 #: ../network-latest-posts.php:108 5415 #: ../network-latest-posts.php:1078 ../network-latest-posts.php:1082 416 #: ../network-latest-posts.php:1086 413 417 msgid "more" 414 418 msgstr "" 415 419 416 #: ../network-latest-posts.php:121 7 ../network-latest-posts.php:1218420 #: ../network-latest-posts.php:1218 ../network-latest-posts.php:1219 417 421 msgid "Network Latest Posts" 418 422 msgstr "" -
network-latest-posts/trunk/languages/trans-nlp-es_ES.po
r625323 r627873 3 3 "Project-Id-Version: Network Latest Posts v3.2\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2012-11- 14 19:56+0100\n"5 "POT-Creation-Date: 2012-11-20 21:17+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Jose Luis Sayago Rojas <[email protected]>\n" … … 392 392 msgstr "Clases CSS Personalizadas para el Contenedor (wrapper) de los bloques" 393 393 394 #: ../network-latest-posts.php:671 ../network-latest-posts.php:727 395 #: ../network-latest-posts.php:891 ../network-latest-posts.php:947 394 #: ../network-latest-posts.php:474 395 msgid "Sorry, I couldn't find any recent posts matching your parameters." 396 msgstr "" 397 "Lo siento, no pude encontrar ningún artículo que coincidiera con tus " 398 "parámetros." 399 400 #: ../network-latest-posts.php:672 ../network-latest-posts.php:728 401 #: ../network-latest-posts.php:892 ../network-latest-posts.php:948 396 402 msgid "Published on" 397 403 msgstr "Publicado en" 398 404 399 #: ../network-latest-posts.php:67 1 ../network-latest-posts.php:727400 #: ../network-latest-posts.php:89 1 ../network-latest-posts.php:947405 #: ../network-latest-posts.php:672 ../network-latest-posts.php:728 406 #: ../network-latest-posts.php:892 ../network-latest-posts.php:948 401 407 msgid "by" 402 408 msgstr "por" 403 409 404 #: ../network-latest-posts.php:76 7410 #: ../network-latest-posts.php:768 405 411 msgid "«" 406 412 msgstr "«" 407 413 408 #: ../network-latest-posts.php:76 8414 #: ../network-latest-posts.php:769 409 415 msgid "»" 410 416 msgstr "»" 411 417 412 #: ../network-latest-posts.php:107 7 ../network-latest-posts.php:1081413 #: ../network-latest-posts.php:108 5418 #: ../network-latest-posts.php:1078 ../network-latest-posts.php:1082 419 #: ../network-latest-posts.php:1086 414 420 msgid "more" 415 421 msgstr "leer el resto" 416 422 417 #: ../network-latest-posts.php:121 7 ../network-latest-posts.php:1218423 #: ../network-latest-posts.php:1218 ../network-latest-posts.php:1219 418 424 msgid "Network Latest Posts" 419 425 msgstr "Artículos Recientes de la Red" -
network-latest-posts/trunk/languages/trans-nlp-fr_FR.po
r625323 r627873 3 3 "Project-Id-Version: Network Latest Posts v3.2\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2012-11- 14 19:56+0100\n"5 "POT-Creation-Date: 2012-11-20 21:18+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Jose Luis Sayago Rojas <[email protected]>\n" … … 392 392 msgstr "Classe CSS pour la balise que contient les blocs (wrapper)" 393 393 394 #: ../network-latest-posts.php:671 ../network-latest-posts.php:727 395 #: ../network-latest-posts.php:891 ../network-latest-posts.php:947 394 #: ../network-latest-posts.php:474 395 msgid "Sorry, I couldn't find any recent posts matching your parameters." 396 msgstr "" 397 "Désolé, je n'ai pas trouvé des articles correspondant aux paramètres saisis." 398 399 #: ../network-latest-posts.php:672 ../network-latest-posts.php:728 400 #: ../network-latest-posts.php:892 ../network-latest-posts.php:948 396 401 msgid "Published on" 397 402 msgstr "Publié sur" 398 403 399 #: ../network-latest-posts.php:67 1 ../network-latest-posts.php:727400 #: ../network-latest-posts.php:89 1 ../network-latest-posts.php:947404 #: ../network-latest-posts.php:672 ../network-latest-posts.php:728 405 #: ../network-latest-posts.php:892 ../network-latest-posts.php:948 401 406 msgid "by" 402 407 msgstr "par" 403 408 404 #: ../network-latest-posts.php:76 7409 #: ../network-latest-posts.php:768 405 410 msgid "«" 406 411 msgstr "«" 407 412 408 #: ../network-latest-posts.php:76 8413 #: ../network-latest-posts.php:769 409 414 msgid "»" 410 415 msgstr "»" 411 416 412 #: ../network-latest-posts.php:107 7 ../network-latest-posts.php:1081413 #: ../network-latest-posts.php:108 5417 #: ../network-latest-posts.php:1078 ../network-latest-posts.php:1082 418 #: ../network-latest-posts.php:1086 414 419 msgid "more" 415 420 msgstr "lire le reste" 416 421 417 #: ../network-latest-posts.php:121 7 ../network-latest-posts.php:1218422 #: ../network-latest-posts.php:1218 ../network-latest-posts.php:1219 418 423 msgid "Network Latest Posts" 419 424 msgstr "Derniers Articles du Réseau" -
network-latest-posts/trunk/network-latest-posts.php
r625323 r627873 4 4 Plugin URI: http://en.8elite.com/network-latest-posts 5 5 Description: Display the latest posts from the blogs in your network using it as a function, shortcode or widget. 6 Version: 3.5 6 Version: 3.5.1 7 7 Author: L'Elite 8 8 Author URI: http://laelite.info/ … … 125 125 * -- Gerard Bik 126 126 * -- Proposed display post content instead of excerpts 127 * 128 * -- ThorHammer 129 * --- Spotted a warning when NLPosts couldn't find posts. 127 130 * 128 131 * That's it, let the fun begin! … … 469 472 restore_current_blog(); 470 473 } 474 // If no content was found 475 if( empty($all_posts) ) { 476 // Nothing to do here, let people know and get out of here 477 echo "<div class='alert'><p>".__("Sorry, I couldn't find any recent posts matching your parameters.","trans-nlp")."</p></div>"; 478 return; 479 } 471 480 // Sort by date (regardless blog IDs) 472 481 if( $sort_by_date == 'true' ) { … … 477 486 case "newer": 478 487 // Sort the array 479 krsort($all_posts);488 @krsort($all_posts); 480 489 // Limit the number of posts 481 490 if( !empty($sorting_limit) ) { 482 $all_posts = array_slice($all_posts,0,$sorting_limit,true);491 $all_posts = @array_slice($all_posts,0,$sorting_limit,true); 483 492 } 484 493 break; … … 486 495 case "older": 487 496 // Sort the array 488 ksort($all_posts);497 @ksort($all_posts); 489 498 // Limit the number of posts 490 499 if( !empty($sorting_limit) ) { 491 $all_posts = array_slice($all_posts,0,$sorting_limit,true);500 $all_posts = @array_slice($all_posts,0,$sorting_limit,true); 492 501 } 493 502 break; … … 495 504 default: 496 505 // Sort the array 497 krsort($all_posts);506 @krsort($all_posts); 498 507 // Limit the number of posts 499 508 if( !empty($sorting_limit) ) { 500 $all_posts = array_slice($all_posts,0,$sorting_limit,true);509 $all_posts = @array_slice($all_posts,0,$sorting_limit,true); 501 510 } 502 511 break; … … 504 513 } else { 505 514 // Sort the array 506 krsort($all_posts);515 @krsort($all_posts); 507 516 // Limit the number of posts 508 517 if( !empty($sorting_limit) ) { 509 $all_posts = array_slice($all_posts,0,$sorting_limit,true);518 $all_posts = @array_slice($all_posts,0,$sorting_limit,true); 510 519 } 511 520 } … … 519 528 case "asc": 520 529 // Sort the array 521 ksort($all_posts);530 @ksort($all_posts); 522 531 // Limit the number of posts 523 532 if( !empty($sorting_limit) ) { 524 $all_posts = array_slice($all_posts,0,$sorting_limit,true);533 $all_posts = @array_slice($all_posts,0,$sorting_limit,true); 525 534 } 526 535 break; … … 528 537 case "desc": 529 538 // Sort the array 530 krsort($all_posts);539 @krsort($all_posts); 531 540 // Limit the number of posts 532 541 if( !empty($sorting_limit) ) { 533 $all_posts = array_slice($all_posts,0,$sorting_limit,true);542 $all_posts = @array_slice($all_posts,0,$sorting_limit,true); 534 543 } 535 544 break; … … 537 546 default: 538 547 // Sort the array 539 krsort($all_posts);548 @krsort($all_posts); 540 549 // Limit the number of posts 541 550 if( !empty($sorting_limit) ) { 542 $all_posts = array_slice($all_posts,0,$sorting_limit,true);551 $all_posts = @array_slice($all_posts,0,$sorting_limit,true); 543 552 } 544 553 break; … … 546 555 } else { 547 556 // Sort the array 548 ksort($all_posts);557 @ksort($all_posts); 549 558 // Limit the number of posts 550 559 if( !empty($sorting_limit) ) { 551 $all_posts = array_slice($all_posts,0,$sorting_limit,true);560 $all_posts = @array_slice($all_posts,0,$sorting_limit,true); 552 561 } 553 562 } 554 }555 // If no content was found556 if( empty($all_posts) ) {557 // Close the door and get out of here558 return;559 563 } 560 564 // Open content box -
network-latest-posts/trunk/readme.txt
r625323 r627873 5 5 Requires at least: 3.0 6 6 Tested up to: 3.4.1 7 Stable tag: 3.5 7 Stable tag: 3.5.1 8 8 9 9 This plugin allows you to pull all the recent posts from the blogs in your WordPress network and display them in your main site (or internal sites) … … 144 144 == Changelog == 145 145 146 = 3.5.1 = 147 * Added catch to avoid warnings when NLPosts can't find posts matching your parameters. Now it will display a message letting you know, no posts matching your criteria were found. 148 146 149 = 3.5 = 147 150 * Added parameter display_content which allows you to display posts content instead of excerpts, minor bug fixes
Note: See TracChangeset
for help on using the changeset viewer.