Changeset 13474

Show
Ignore:
Timestamp:
05/31/07 11:37:28 (1 year ago)
Author:
GamerZ
Message:

WP-Email 2.11

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-email/trunk/email/email.php

    r13117 r13474  
    55Description: Allows people to recommand/send your WordPress blog's post/page to a friend. 
    66Version: 2.11 
    7 Author: GaMerZ 
     7Author: Lester 'GaMerZ' Chan 
    88Author URI: http://www.lesterchan.net 
    99*/ 
     
    257257 
    258258### Function: E-Mail Title 
    259 function email_title() { 
    260       $post_title = get_the_title(); 
    261       $post_author = the_author('', false);                  
    262       $post_date = get_the_time(get_option('date_format').' ('.get_option('time_format').')', '', '', false); 
    263       $post_category = email_category();               
    264       $post_category_alt = strip_tags($post_category); 
    265       $template_title = stripslashes(get_option('email_template_title')); 
    266       $template_title = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_title); 
    267       $template_title = str_replace("%EMAIL_POST_AUTHOR%", $post_author, $template_title); 
    268       $template_title = str_replace("%EMAIL_POST_DATE%", $post_date, $template_title); 
    269       $template_title = str_replace("%EMAIL_POST_CATEGORY%", $post_category, $template_title); 
    270       $template_title = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_title); 
    271       $template_title = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_title); 
    272       $template_title = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_title);      
    273       return $template_title; 
     259function email_title($page_title) { 
     260      global $email_title_once; 
     261      if(in_the_loop()) { 
     262            $post_title = get_the_title(); 
     263            $post_author = the_author('', false);                  
     264            $post_date = get_the_time(get_option('date_format').' ('.get_option('time_format').')', '', '', false); 
     265            $post_category = email_category();               
     266            $post_category_alt = strip_tags($post_category); 
     267            $template_title = stripslashes(get_option('email_template_title')); 
     268            $template_title = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_title); 
     269            $template_title = str_replace("%EMAIL_POST_AUTHOR%", $post_author, $template_title); 
     270            $template_title = str_replace("%EMAIL_POST_DATE%", $post_date, $template_title); 
     271            $template_title = str_replace("%EMAIL_POST_CATEGORY%", $post_category, $template_title); 
     272            $template_title = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_title); 
     273            $template_title = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_title); 
     274            $template_title = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_title); 
     275            return $template_title; 
     276      } else { 
     277            return $page_title; 
     278      } 
    274279} 
    275280 
  • wp-email/trunk/email/wp-email-popup.php

    r7946 r13474  
    5656<body> 
    5757      <?php email_form(true); ?> 
    58       <p style="text-align: center; padding-top: 20px;"><a href="#" onclick="window.close();"><?php _e('Close This Window', 'wp-email'); ?></a></p> 
     58      </p><p style="text-align: center; padding-top: 20px;"><a href="#" onclick="window.close();"><?php _e('Close This Window', 'wp-email'); ?></a></p> 
    5959      <?php wp_footer(); ?> 
    6060</body> 
  • wp-email/trunk/email/wp-email.pot

    r13117 r13474  
    33"Project-Id-Version: WP-EMail 2.10\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2007-05-23 15:11+0800\n" 
     5"PO-Revision-Date: 2007-05-31 19:37+0800\n" 
    66"Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 
    77"Language-Team: Lester Chan <gamerz84@hotmail.com>\n" 
     
    9292 
    9393#: email-manager.php:126 
    94 #: email.php:400 
    95 #: email.php:528 
    96 #: email.php:803 
    97 #: email.php:851 
     94#: email.php:405 
     95#: email.php:533 
     96#: email.php:808 
     97#: email.php:856 
    9898msgid "Success" 
    9999msgstr "" 
    100100 
    101101#: email-manager.php:127 
    102 #: email.php:542 
    103 #: email.php:815 
     102#: email.php:547 
     103#: email.php:820 
    104104msgid "Failed" 
    105105msgstr "" 
     
    298298 
    299299#: email-options.php:121 
    300 #: email.php:1009 
     300#: email.php:1014 
    301301msgid "E-Mail '%EMAIL_POST_TITLE%' To A Friend" 
    302302msgstr "" 
    303303 
    304304#: email-options.php:124 
    305 #: email.php:1010 
     305#: email.php:1015 
    306306msgid "Email a copy of <strong>'%EMAIL_POST_TITLE%'</strong> to a friend" 
    307307msgstr "" 
    308308 
    309309#: email-options.php:127 
    310 #: email.php:984 
     310#: email.php:989 
    311311msgid "Recommended Article By %EMAIL_YOUR_NAME%: %EMAIL_POST_TITLE%" 
    312312msgstr "" 
     
    336336 
    337337#: email-options.php:139 
    338 #: email.php:996 
     338#: email.php:1001 
    339339msgid "An Error Has Occured When Trying To Send The E-Mail" 
    340340msgstr "" 
    341341 
    342342#: email-options.php:142 
    343 #: email.php:997 
     343#: email.php:1002 
    344344msgid "An Error Has Occured" 
    345345msgstr "" 
     
    702702msgstr "" 
    703703 
    704 #: email.php:316 
     704#: email.php:321 
    705705msgid "Password Protected Post" 
    706706msgstr "" 
    707707 
    708 #: email.php:500 
     708#: email.php:505 
    709709#, php-format 
    710710msgid "Separate multiple entries with a comma. Maximum %s entries." 
    711711msgstr "" 
    712712 
    713 #: email.php:569 
    714 #: email.php:575 
     713#: email.php:574 
     714#: email.php:580 
    715715msgid "Emails" 
    716716msgstr "" 
    717717 
    718 #: email.php:579 
    719 #: email.php:738 
    720 #: email.php:814 
     718#: email.php:584 
     719#: email.php:743 
     720#: email.php:819 
    721721msgid "N/A" 
    722722msgstr "" 
    723723 
    724 #: email.php:664 
     724#: email.php:669 
    725725msgid "Your name is empty." 
    726726msgstr "" 
    727727 
    728 #: email.php:670 
     728#: email.php:675 
    729729msgid "Your email is invalid or is empty." 
    730730msgstr "" 
    731731 
    732 #: email.php:676 
     732#: email.php:681 
    733733msgid "Your remark is invalid." 
    734734msgstr "" 
    735735 
    736 #: email.php:685 
     736#: email.php:690 
    737737#, php-format 
    738738msgid "Friend's name (%s) is empty." 
    739739msgstr "" 
    740740 
    741 #: email.php:702 
     741#: email.php:707 
    742742#, php-format 
    743743msgid "Friend's email (%s) is invalid or is empty." 
    744744msgstr "" 
    745745 
    746 #: email.php:716 
     746#: email.php:721 
    747747#, php-format 
    748748msgid "Maximum %s entries allowed" 
    749749msgstr "" 
    750750 
    751 #: email.php:721 
     751#: email.php:726 
    752752msgid "Friends' name count does not tally with friends' email count." 
    753753msgstr "" 
    754754 
    755 #: email.php:728 
     755#: email.php:733 
    756756msgid "Image verification is empty." 
    757757msgstr "" 
    758758 
    759 #: email.php:731 
     759#: email.php:736 
    760760msgid "Image verification failed." 
    761761msgstr "" 
    762762 
    763 #: email.php:866 
     763#: email.php:871 
    764764msgid "* Required Field" 
    765765msgstr "" 
    766766 
    767 #: email.php:869 
     767#: email.php:874 
    768768msgid "Your Name: *" 
    769769msgstr "" 
    770770 
    771 #: email.php:875 
     771#: email.php:880 
    772772msgid "Your E-Mail: *" 
    773773msgstr "" 
    774774 
    775 #: email.php:881 
     775#: email.php:886 
    776776msgid "Your Remark:" 
    777777msgstr "" 
    778778 
    779 #: email.php:887 
     779#: email.php:892 
    780780msgid "Friend's Name: *" 
    781781msgstr "" 
    782782 
    783 #: email.php:893 
     783#: email.php:898 
    784784msgid "Friend's E-Mail: *" 
    785785msgstr "" 
    786786 
    787 #: email.php:899 
     787#: email.php:904 
    788788msgid "Image Verification: *" 
    789789msgstr "" 
    790790 
    791 #: email.php:900 
     791#: email.php:905 
    792792msgid "E-Mail Image Verification" 
    793793msgstr "" 
    794794 
    795 #: email.php:903 
     795#: email.php:908 
    796796msgid "     Mail It!     " 
    797797msgstr "" 
    798798 
    799 #: email.php:909 
     799#: email.php:914 
    800800#, php-format 
    801801msgid "Please wait for <strong>%s Minutes</strong> before sending the next article." 
    802802msgstr "" 
    803803 
    804 #: email.php:985 
     804#: email.php:990 
    805805msgid "<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 remark:</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>" 
    806806msgstr "" 
    807807 
    808 #: email.php:986 
     808#: email.php:991 
    809809msgid "Hi %EMAIL_FRIEND_NAME%," 
    810810msgstr "" 
    811811 
    812 #: email.php:986 
    813 #: email.php:988 
    814 #: email.php:990 
    815812#: email.php:991 
     813#: email.php:993 
     814#: email.php:995 
     815#: email.php:996 
     816#: email.php:997 
     817#: email.php:998 
     818msgid "\n" 
     819msgstr "" 
     820 
    816821#: email.php:992 
    817 #: email.php:993 
    818 msgid "\n" 
    819 msgstr "" 
    820  
    821 #: email.php:987 
    822822msgid "Your friend, %EMAIL_YOUR_NAME%, has recommended this article entitled '%EMAIL_POST_TITLE%' to you." 
    823823msgstr "" 
    824824 
    825 #: email.php:987 
    826 #: email.php:989 
     825#: email.php:992 
     826#: email.php:994 
    827827msgid "" 
    828828"\n" 
     
    830830msgstr "" 
    831831 
    832 #: email.php:988 
     832#: email.php:993 
    833833msgid "Here is his/her remarks:" 
    834834msgstr "" 
    835835 
    836 #: email.php:989 
     836#: email.php:994 
    837837msgid "%EMAIL_YOUR_REMARKS%" 
    838838msgstr "" 
    839839 
    840 #: email.php:990 
     840#: email.php:995 
    841841msgid "%EMAIL_POST_TITLE%" 
    842842msgstr "" 
    843843 
    844 #: email.php:991 
     844#: email.php:996 
    845845msgid "Posted By %EMAIL_POST_AUTHOR% On %EMAIL_POST_DATE% In %EMAIL_POST_CATEGORY%" 
    846846msgstr "" 
    847847 
    848 #: email.php:992 
     848#: email.php:997 
    849849msgid "%EMAIL_POST_CONTENT%" 
    850850msgstr "" 
    851851 
    852 #: email.php:993 
     852#: email.php:998 
    853853msgid "Article taken from %EMAIL_BLOG_NAME% - %EMAIL_BLOG_URL%" 
    854854msgstr "" 
    855855 
    856 #: email.php:994 
     856#: email.php:999 
    857857msgid "URL to article: %EMAIL_PERMALINK%" 
    858858msgstr "" 
    859859 
    860 #: email.php:995 
     860#: email.php:1000 
    861861msgid "Article: <strong>%EMAIL_POST_TITLE%</strong> Has Been Sent To <strong>%EMAIL_FRIEND_NAME% (%EMAIL_FRIEND_EMAIL%)</strong></p>" 
    862862msgstr "" 
    863863 
    864 #: email.php:1004 
     864#: email.php:1009 
    865865msgid "Email This Post" 
    866866msgstr "" 
    867867 
    868 #: email.php:1004 
     868#: email.php:1009 
    869869msgid "Email This Page" 
    870870msgstr "" 
  • wp-email/trunk/readme.html

    r13117 r13474  
    244244                  <p> 
    245245                        <strong>Download:</strong><br /> 
    246                         <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=13" title="http://www.lesterchan.net/others/downloads.php?id=13">WP-EMail 2.11 For WordPress 2.1.x</a><br /> 
     246                        <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=13" title="http://www.lesterchan.net/others/downloads.php?id=13">WP-EMail 2.11 For WordPress 2.1.x And Above</a><br /> 
    247247                        <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-email207.zip" title="http://www.lesterchan.net/others/downloads/wp-email207.zip">WP-EMail 2.07 For WordPress 2.0.x</a><br /> 
    248248                        <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-email200b.zip" title="http://www.lesterchan.net/others/downloads/wp-email200b.zip">WP-EMail 2.00b For WordPress 1.5.2</a> 
     
    454454                        </li> 
    455455                        <li> 
    456                               You Need To Re-Generate The Permalink (<strong>Options -> Permalinks Options -> Update Permalink Structure</strong>) 
     456                              You Need To Re-Generate The Permalink (<strong>WP-Admin -> Options -> Permalinks -> Update Permalink Structure</strong>) 
    457457                        </li> 
    458458                        <li> 
     
    481481                        </li> 
    482482                        <li> 
    483                               Go to 'WP-Admin -> EMail -> EMail Options' and restore all the template variables to <strong>Default</strong> 
    484                         </li> 
    485                         <li> 
    486                               You Need To Re-Generate The Permalink (<strong>Options -> Permalinks Options -> Update Permalink Structure</strong>) 
     483                              Go to '<strong>WP-Admin -> EMail -> EMail Options</strong>' and restore all the template variables to <strong>Default</strong> 
     484                        </li> 
     485                        <li> 
     486                              You Need To Re-Generate The Permalink (<strong>WP-Admin -> Options -> Permalinks -> Update Permalink Structure</strong>) 
    487487                        </li> 
    488488                        <li> 
  • wp-email/trunk/readme.txt

    r8565 r13474  
    44Tags: email, e-mail, wp-email, mail, send, recommend 
    55Requires at least: 2.1.0 
    6 Stable tag: 2.10 
     6Stable tag: 2.11 
    77 
    88Allows people to recommand/send your WordPress blog's post/page to a friend.