Changeset 8068
- Timestamp:
- 02/26/07 06:05:23 (1 year ago)
- Files:
-
- wp-email/trunk/email/email.php (modified) (3 diffs)
- wp-email/trunk/email/wp-email.pot (modified) (7 diffs)
- wp-email/trunk/readme.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-email/trunk/email/email.php
r7946 r8068 201 201 } 202 202 203 203 204 ### Function: E-Mail Page Title 204 205 function email_pagetitle($page_title) { 205 206 $page_title = '» '.__('E-Mail', 'wp-email').$page_title; 206 207 return $page_title; 208 } 209 210 211 ### Function: E-Mail Post ID 212 if(!function_exists('get_the_id')) { 213 function get_the_id() { 214 global $id; 215 return $id; 216 } 207 217 } 208 218 … … 490 500 $where = '1=1'; 491 501 } 492 $mostemailed= $wpdb->get_results("SELECT $wpdb->posts. ID, post_title, post_name, post_date, COUNT($wpdb->email.email_postid) AS email_total FROM $wpdb->email LEFT JOIN $wpdb->posts ON $wpdb->email.email_postid = $wpdb->posts.ID WHERE post_date < '".current_time('mysql')."' AND $where AND post_password = '' AND post_status = 'publish' GROUP BY $wpdb->email.email_postid ORDER BY email_total DESC LIMIT $limit");502 $mostemailed= $wpdb->get_results("SELECT $wpdb->posts.*, COUNT($wpdb->email.email_postid) AS email_total FROM $wpdb->email LEFT JOIN $wpdb->posts ON $wpdb->email.email_postid = $wpdb->posts.ID WHERE post_date < '".current_time('mysql')."' AND $where AND post_password = '' AND post_status = 'publish' GROUP BY $wpdb->email.email_postid ORDER BY email_total DESC LIMIT $limit"); 493 503 if($mostemailed) { 494 504 if($chars > 0) { 495 505 foreach ($mostemailed as $post) { 496 $post_title = htmlspecialchars(stripslashes($post->post_title));506 $post_title = get_the_title(); 497 507 $email_total = intval($post->email_total); 498 508 $temp .= "<li><a href=\"".get_permalink()."\">".snippet_chars($post_title, $chars)."</a> - $email_total ".__('Emails', 'wp-email')."</li>\n"; … … 500 510 } else { 501 511 foreach ($mostemailed as $post) { 502 $post_title = htmlspecialchars(stripslashes($post->post_title));512 $post_title = get_the_title(); 503 513 $email_total = intval($post->email_total); 504 514 $temp .= "<li><a href=\"".get_permalink()."\">$post_title</a> - $email_total ".__('Emails', 'wp-email')."</li>\n"; wp-email/trunk/email/wp-email.pot
r7946 r8068 3 3 "Project-Id-Version: WP-EMail 2.10\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-02- 12 20:18+0800\n"5 "PO-Revision-Date: 2007-02-26 13:14+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@hotmail.com>\n" … … 92 92 93 93 #: email-manager.php:126 94 #: email.php:3 4195 #: email.php:4 5796 #: email.php:7 2697 #: email.php:7 7494 #: email.php:351 95 #: email.php:467 96 #: email.php:736 97 #: email.php:784 98 98 msgid "Success" 99 99 msgstr "" 100 100 101 101 #: email-manager.php:127 102 #: email.php:4 71103 #: email.php:7 38102 #: email.php:481 103 #: email.php:748 104 104 msgid "Failed" 105 105 msgstr "" … … 290 290 291 291 #: email-options.php:115 292 #: email.php:9 06292 #: email.php:916 293 293 msgid "Recommended Article By %EMAIL_YOUR_NAME%: %EMAIL_POST_TITLE%" 294 294 msgstr "" … … 318 318 319 319 #: email-options.php:127 320 #: email.php:9 18320 #: email.php:928 321 321 msgid "An Error Has Occured When Trying To Send The E-Mail" 322 322 msgstr "" 323 323 324 324 #: email-options.php:130 325 #: email.php:9 19325 #: email.php:929 326 326 msgid "An Error Has Occured" 327 327 msgstr "" … … 656 656 657 657 #: email.php:43 658 #: email.php:20 5658 #: email.php:206 659 659 msgid "E-Mail" 660 660 msgstr "" … … 664 664 msgstr "" 665 665 666 #: email.php:2 12666 #: email.php:222 667 667 #, php-format 668 668 msgid "E-Mail '%s' To A Friend" 669 669 msgstr "" 670 670 671 #: email.php:2 56671 #: email.php:266 672 672 msgid "Password Protected Post" 673 673 msgstr "" 674 674 675 #: email.php:4 29675 #: email.php:439 676 676 #, php-format 677 677 msgid "Separate multiple entries with a comma. Maximum %s entries." 678 678 msgstr "" 679 679 680 #: email.php: 498681 #: email.php:5 04680 #: email.php:508 681 #: email.php:514 682 682 msgid "Emails" 683 683 msgstr "" 684 684 685 #: email.php:5 08686 #: email.php:7 37685 #: email.php:518 686 #: email.php:747 687 687 msgid "N/A" 688 688 msgstr "" 689 689 690 #: email.php:5 61690 #: email.php:571 691 691 #, php-format 692 692 msgid "Email a copy of <strong>%s</strong> to a Friend." 693 693 msgstr "" 694 694 695 #: email.php:5 80695 #: email.php:590 696 696 msgid "Your name is empty." 697 697 msgstr "" 698 698 699 #: email.php:5 86699 #: email.php:596 700 700 msgid "Your email is invalid or is empty." 701 701 msgstr "" 702 702 703 #: email.php: 592703 #: email.php:602 704 704 msgid "Your remarks is invalid." 705 705 msgstr "" 706 706 707 #: email.php:6 01707 #: email.php:611 708 708 #, php-format 709 709 msgid "Friend's name (%s) is empty." 710 710 msgstr "" 711 711 712 #: email.php:6 18712 #: email.php:628 713 713 #, php-format 714 714 msgid "Friend's email (%s) is invalid or is empty." 715 715 msgstr "" 716 716 717 #: email.php:6 32717 #: email.php:642 718 718 #, php-format 719 719 msgid "Maximum %s entries allowed" 720 720 msgstr "" 721 721 722 #: email.php:6 37722 #: email.php:647 723 723 msgid "Friends' name count does not tally with friends' email count." 724 724 msgstr "" 725 725 726 #: email.php:6 44726 #: email.php:654 727 727 msgid "Image verification is empty." 728 728 msgstr "" 729 729 730 #: email.php:6 47730 #: email.php:657 731 731 msgid "Image verification failed." 732 732 msgstr "" 733 733 734 #: email.php:8 23734 #: email.php:833 735 735 msgid "E-Mail Image Verification" 736 736 msgstr "" 737 737 738 #: email.php:8 26738 #: email.php:836 739 739 msgid " Mail It! " 740 740 msgstr "" 741 741 742 #: email.php:8 32742 #: email.php:842 743 743 #, php-format 744 744 msgid "Please wait for <strong>%s Minutes</strong> before sending the next article." 745 745 msgstr "" 746 746 747 #: email.php:9 07747 #: email.php:917 748 748 msgid "<p>Hi <strong>%EMAIL_FRIEND_NAME%</strong>,<br />Your friend, <strong>%EMAIL_YOUR_NAME%</strong>, has recommended this article entitled '<strong>%EMAIL_POST_TITLE%</strong>' to you.</p><p><strong>Here is his/her remarks:</strong><br />%EMAIL_YOUR_REMARKS%</p><p><strong>%EMAIL_POST_TITLE%</strong><br />Posted By %EMAIL_POST_AUTHOR% On %EMAIL_POST_DATE% In %EMAIL_POST_CATEGORY%</p>%EMAIL_POST_CONTENT%<p>Article taken from %EMAIL_BLOG_NAME% - <a href=\"%EMAIL_BLOG_URL%\">%EMAIL_BLOG_URL%</a><br />URL to article: <a href=\"%EMAIL_PERMALINK%\">%EMAIL_PERMALINK%</a></p>" 749 749 msgstr "" 750 750 751 #: email.php:9 08751 #: email.php:918 752 752 msgid "Hi %EMAIL_FRIEND_NAME%," 753 753 msgstr "" 754 754 755 #: email.php:9 08756 #: email.php:9 10757 #: email.php:9 12758 #: email.php:9 13759 #: email.php:9 14760 #: email.php:9 15755 #: email.php:918 756 #: email.php:920 757 #: email.php:922 758 #: email.php:923 759 #: email.php:924 760 #: email.php:925 761 761 msgid "\n" 762 762 msgstr "" 763 763 764 #: email.php:9 09764 #: email.php:919 765 765 msgid "Your friend, %EMAIL_YOUR_NAME%, has recommended this article entitled '%EMAIL_POST_TITLE%' to you." 766 766 msgstr "" 767 767 768 #: email.php:9 09769 #: email.php:9 11768 #: email.php:919 769 #: email.php:921 770 770 msgid "" 771 771 "\n" … … 773 773 msgstr "" 774 774 775 #: email.php:9 10775 #: email.php:920 776 776 msgid "Here is his/her remarks:" 777 777 msgstr "" 778 778 779 #: email.php:9 11779 #: email.php:921 780 780 msgid "%EMAIL_YOUR_REMARKS%" 781 781 msgstr "" 782 782 783 #: email.php:9 12783 #: email.php:922 784 784 msgid "%EMAIL_POST_TITLE%" 785 785 msgstr "" 786 786 787 #: email.php:9 13787 #: email.php:923 788 788 msgid "Posted By %EMAIL_POST_AUTHOR% On %EMAIL_POST_DATE% In %EMAIL_POST_CATEGORY%" 789 789 msgstr "" 790 790 791 #: email.php:9 14791 #: email.php:924 792 792 msgid "%EMAIL_POST_CONTENT%" 793 793 msgstr "" 794 794 795 #: email.php:9 15795 #: email.php:925 796 796 msgid "Article taken from %EMAIL_BLOG_NAME% - %EMAIL_BLOG_URL%" 797 797 msgstr "" 798 798 799 #: email.php:9 16799 #: email.php:926 800 800 msgid "URL to article: %EMAIL_PERMALINK%" 801 801 msgstr "" 802 802 803 #: email.php:9 17803 #: email.php:927 804 804 msgid "Article: <strong>%EMAIL_POST_TITLE%</strong> Has Been Sent To <strong>%EMAIL_FRIEND_NAME% (%EMAIL_FRIEND_EMAIL%)</strong></p>" 805 805 msgstr "" 806 806 807 #: email.php:9 26807 #: email.php:936 808 808 msgid "Email This Post" 809 809 msgstr "" 810 810 811 #: email.php:9 26811 #: email.php:936 812 812 msgid "Email This Page" 813 813 msgstr "" wp-email/trunk/readme.html
r7946 r8068 293 293 <li>FIXED: Suppress gethostbyaddr() Error</li> 294 294 <li>FIXED: If page.php Is Not Found, single.php or index.php Will Be Used</li> 295 <li>FIXED: Wrong URL For Page Under Most E-Mailed Posts Listing</li> 295 296 </ul> 296 297 </li>
