Changeset 41125

Show
Ignore:
Timestamp:
04/17/08 09:29:57 (3 months ago)
Author:
GamerZ
Message:

Allow CSS Style Sheet For This Plugin To Be Placed In The Theme's Directory

Files:

Legend:

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

    r40987 r41125  
    284284                              <ul> 
    285285                                    <li>NEW: Works For WordPress 2.5 Only</li> 
     286                                    <li>NEW: WP-Email Will Load 'email-css.css' Inside Your Theme Directory If It Exists. If Not, It Will Just Load The Default 'email-css.css' By WP-Email</li> 
    286287                                    <li>NEW: Renamed email-js.php To email-js.js and Move The Dynamic Javascript Variables To The PHP Pages</li> 
    287288                                    <li>NEW: Uses email-js-packed.js</li> 
     
    541542                                    &lt;?php if(function_exists('wp_email')) { email_link(); } ?&gt; 
    542543                              </blockquote> 
    543                               <p>If you DO NOT want the print link to appear in every post/page, DO NOT use the code above. Just type in <strong>[email_link]</strong> into the selected post/page content and it will embed the email link into that post/page only.</p> 
     544                              <p>If you DO NOT want the email link to appear in every post/page, DO NOT use the code above. Just type in <strong>[email_link]</strong> into the selected post/page content and it will embed the email link into that post/page only.</p> 
    544545                              <p>The <b>first value</b> is the text for emailing post.</p> 
    545546                              <p>The <b>second value</b> is the text for emailing page.</p>                              
     
    620621                  <div class="SubSubTitle">Note</div> 
    621622                  <ul> 
     623                        <li> 
     624                              WP-Email will load '<strong>email-css.css</strong>' from your theme's directory if it exists. 
     625                              <ul> 
     626                                    <li>If it doesn't exists, it will just load the default 'email-css.css' that comes with WP-Email.</li> 
     627                                    <li>This will allow you to upgrade WP-Email without worrying about overwriting your email styles that you have created.</li> 
     628                              </ul> 
     629                        </li> 
    622630                        <li> 
    623631                              To change the background color of the popup window: 
  • wp-email/trunk/wp-email.php

    r40987 r41125  
    170170      wp_register_script('wp-email', '/wp-content/plugins/wp-email/email-js-packed.js', false, '2.30'); 
    171171      wp_print_scripts(array('sack', 'wp-email')); 
    172       echo '<link rel="stylesheet" href="'.get_option('siteurl').'/wp-content/plugins/wp-email/email-css.css" type="text/css" media="screen" />'."\n"; 
     172      if(@file_exists(get_template_directory().'/email-css.css')) { 
     173            echo '<link rel="stylesheet" href="'.get_stylesheet_directory_uri().'/email-css.css" type="text/css" media="screen" />'."\n";  
     174      } else { 
     175            echo '<link rel="stylesheet" href="'.get_option('siteurl').'/wp-content/plugins/wp-email/email-css.css" type="text/css" media="screen" />'."\n"; 
     176      }      
    173177      echo '<!-- End Of Script Generated By WP-EMail 2.30 -->'."\n"; 
    174178} 
  • wp-email/trunk/wp-email.pot

    r40987 r41125  
    33"Project-Id-Version: WP-EMail 2.30\n" 
    44"Report-Msgid-Bugs-To: \n" 
    5 "POT-Creation-Date: 2008-04-17 03:22+0800\n" 
    6 "PO-Revision-Date: 2008-04-17 03:22+0800\n" 
     5"POT-Creation-Date: 2008-04-17 17:20+0800\n" 
     6"PO-Revision-Date: 2008-04-17 17:20+0800\n" 
    77"Last-Translator: Lester Chan <lesterchan@gmail.com>\n" 
    88"Language-Team: Lester Chan <lesterchan@gmail.com>\n" 
     
    9393 
    9494#: email-manager.php:126 
    95 #: wp-email.php:528 
    96 #: wp-email.php:665 
    97 #: wp-email.php:960 
    98 #: wp-email.php:997 
    99 #: wp-email.php:1208 
     95#: wp-email.php:532 
     96#: wp-email.php:669 
     97#: wp-email.php:964 
     98#: wp-email.php:1001 
     99#: wp-email.php:1212 
    100100msgid "Success" 
    101101msgstr "" 
    102102 
    103103#: email-manager.php:127 
    104 #: wp-email.php:679 
    105 #: wp-email.php:972 
    106 #: wp-email.php:1209 
     104#: wp-email.php:683 
     105#: wp-email.php:976 
     106#: wp-email.php:1213 
    107107msgid "Failed" 
    108108msgstr "" 
     
    311311 
    312312#: email-options.php:122 
    313 #: wp-email.php:1286 
     313#: wp-email.php:1290 
    314314msgid "E-Mail '%EMAIL_POST_TITLE%' To A Friend" 
    315315msgstr "" 
    316316 
    317317#: email-options.php:125 
    318 #: wp-email.php:1287 
     318#: wp-email.php:1291 
    319319msgid "Email a copy of <strong>'%EMAIL_POST_TITLE%'</strong> to a friend" 
    320320msgstr "" 
    321321 
    322322#: email-options.php:128 
    323 #: wp-email.php:1261 
     323#: wp-email.php:1265 
    324324msgid "Recommended Article By %EMAIL_YOUR_NAME%: %EMAIL_POST_TITLE%" 
    325325msgstr "" 
     
    349349 
    350350#: email-options.php:137 
    351 #: wp-email.php:1272 
     351#: wp-email.php:1276 
    352352msgid "Back to %EMAIL_POST_TITLE%" 
    353353msgstr "" 
    354354 
    355355#: email-options.php:140 
    356 #: wp-email.php:1273 
     356#: wp-email.php:1277 
    357357msgid "An error has occurred when trying to send this email: " 
    358358msgstr "" 
    359359 
    360360#: email-options.php:143 
    361 #: wp-email.php:1274 
     361#: wp-email.php:1278 
    362362msgid "An error has occurred: " 
    363363msgstr "" 
     
    812812 
    813813#: wp-email.php:57 
    814 #: wp-email.php:345 
     814#: wp-email.php:349 
    815815msgid "E-Mail" 
    816816msgstr "" 
     
    870870msgstr "" 
    871871 
    872 #: wp-email.php:293 
     872#: wp-email.php:297 
    873873msgid "Note: There is an email link embedded within this post, please visit this post to email it." 
    874874msgstr "" 
    875875 
    876 #: wp-email.php:364 
     876#: wp-email.php:368 
    877877#, php-format 
    878878msgid "Protected: %s" 
    879879msgstr "" 
    880880 
    881 #: wp-email.php:366 
     881#: wp-email.php:370 
    882882#, php-format 
    883883msgid "Private: %s" 
    884884msgstr "" 
    885885 
    886 #: wp-email.php:433 
     886#: wp-email.php:437 
    887887msgid "Password Protected Post" 
    888888msgstr "" 
    889889 
    890 #: wp-email.php:637 
     890#: wp-email.php:641 
    891891#, php-format 
    892892msgid "Separate multiple entries with a comma. Maximum %s entries." 
    893893msgstr "" 
    894894 
    895 #: wp-email.php:707 
    896 #: wp-email.php:713 
     895#: wp-email.php:711 
     896#: wp-email.php:717 
    897897msgid "emails" 
    898898msgstr "" 
    899899 
    900 #: wp-email.php:717 
    901 #: wp-email.php:889 
    902 #: wp-email.php:971 
     900#: wp-email.php:721 
     901#: wp-email.php:893 
     902#: wp-email.php:975 
    903903msgid "N/A" 
    904904msgstr "" 
    905905 
    906 #: wp-email.php:801 
     906#: wp-email.php:805 
    907907msgid "Your Name is empty" 
    908908msgstr "" 
    909909 
    910 #: wp-email.php:804 
     910#: wp-email.php:808 
    911911msgid "Your Name is invalid" 
    912912msgstr "" 
    913913 
    914 #: wp-email.php:810 
     914#: wp-email.php:814 
    915915msgid "Your Email is empty" 
    916916msgstr "" 
    917917 
    918 #: wp-email.php:813 
     918#: wp-email.php:817 
    919919msgid "Your Email is invalid" 
    920920msgstr "" 
    921921 
    922 #: wp-email.php:819 
     922#: wp-email.php:823 
    923923msgid "Your Remarks is invalid" 
    924924msgstr "" 
    925925 
    926 #: wp-email.php:825 
     926#: wp-email.php:829 
    927927msgid "Friend Name(s) is empty" 
    928928msgstr "" 
    929929 
    930 #: wp-email.php:831 
     930#: wp-email.php:835 
    931931#, php-format 
    932932msgid "Friend Name is empty: %s" 
    933933msgstr "" 
    934934 
    935 #: wp-email.php:833 
     935#: wp-email.php:837 
    936936#, php-format 
    937937msgid "Friend Name is invalid: %s" 
    938938msgstr "" 
    939939 
    940 #: wp-email.php:847 
     940#: wp-email.php:851 
    941941msgid "Friend Email(s) is empty" 
    942942msgstr "" 
    943943 
    944 #: wp-email.php:853 
     944#: wp-email.php:857 
    945945#, php-format 
    946946msgid "Friend Email is empty: %s" 
    947947msgstr "" 
    948948 
    949 #: wp-email.php:855 
     949#: wp-email.php:859 
    950950#, php-format 
    951951msgid "Friend Email is invalid: %s" 
    952952msgstr "" 
    953953 
    954 #: wp-email.php:868 
     954#: wp-email.php:872 
    955955#, php-format 
    956956msgid "Maximum %s Friend(s) allowed" 
    957957msgstr "" 
    958958 
    959 #: wp-email.php:872 
     959#: wp-email.php:876 
    960960msgid "Friend Name(s) count does not tally with Friend Email(s) count" 
    961961msgstr "" 
    962962 
    963 #: wp-email.php:879 
     963#: wp-email.php:883 
    964964msgid "Image Verification is empty" 
    965965msgstr "" 
    966966 
    967 #: wp-email.php:882 
     967#: wp-email.php:886 
    968968msgid "Image Verification failed" 
    969969msgstr "" 
    970970 
    971 #: wp-email.php:1064 
     971#: wp-email.php:1068 
    972972msgid "* Required Field" 
    973973msgstr "" 
    974974 
    975 #: wp-email.php:1067 
     975#: wp-email.php:1071 
    976976msgid "Your Name: *" 
    977977msgstr "" 
    978978 
    979 #: wp-email.php:1073 
     979#: wp-email.php:1077 
    980980msgid "Your E-Mail: *" 
    981981msgstr "" 
    982982 
    983 #: wp-email.php:1079 
     983#: wp-email.php:1083 
    984984msgid "Your Remark:" 
    985985msgstr "" 
    986986 
    987 #: wp-email.php:1085 
     987#: wp-email.php:1089 
    988988msgid "Friend's Name: *" 
    989989msgstr "" 
    990990 
    991 #: wp-email.php:1090 
     991#: wp-email.php:1094 
    992992msgid "Friend's E-Mail: *" 
    993993msgstr "" 
    994994 
    995 #: wp-email.php:1095 
     995#: wp-email.php:1099 
    996996msgid "Image Verification: *" 
    997997msgstr "" 
    998998 
    999 #: wp-email.php:1096 
     999#: wp-email.php:1100 
    10001000msgid "E-Mail Image Verification" 
    10011001msgstr "" 
    10021002 
    1003 #: wp-email.php:1099 
     1003#: wp-email.php:1103 
    10041004msgid "     Mail It!     " 
    10051005msgstr "" 
    10061006 
    1007 #: wp-email.php:1105 
     1007#: wp-email.php:1109 
    10081008#, php-format 
    10091009msgid "Please wait for <strong>%s Minutes</strong> before sending the next article." 
    10101010msgstr "" 
    10111011 
    1012 #: wp-email.php:1107 
     1012#: wp-email.php:1111 
    10131013msgid "Loading" 
    10141014msgstr "" 
    10151015 
    1016 #: wp-email.php:1170 
    1017 #: wp-email.php:1172 
    1018 #: wp-email.php:1205 
     1016#: wp-email.php:1174 
     1017#: wp-email.php:1176 
     1018#: wp-email.php:1209 
    10191019msgid "WP-EMail" 
    10201020msgstr "" 
    10211021 
    1022 #: wp-email.php:1183 
    1023 #: wp-email.php:1185 
     1022#: wp-email.php:1187 
     1023#: wp-email.php:1189 
    10241024msgid "Most Emailed Posts" 
    10251025msgstr "" 
    10261026 
    1027 #: wp-email.php:1207 
     1027#: wp-email.php:1211 
    10281028msgid "emails were sent." 
    10291029msgstr "" 
    10301030 
    1031 #: wp-email.php:1208 
     1031#: wp-email.php:1212 
    10321032msgid "emails were sent successfully." 
    10331033msgstr "" 
    10341034 
    1035 #: wp-email.php:1209 
     1035#: wp-email.php:1213 
    10361036msgid "emails failed to send." 
    10371037msgstr "" 
    10381038 
    1039 #: wp-email.php:1221 
     1039#: wp-email.php:1225 
    10401040msgid "Most Emailed Post" 
    10411041msgstr "" 
    10421042 
    1043 #: wp-email.php:1262 
     1043#: wp-email.php:1266 
    10441044msgid "<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>" 
    10451045msgstr "" 
    10461046 
    1047 #: wp-email.php:1263 
     1047#: wp-email.php:1267 
    10481048msgid "" 
    10491049"Hi %EMAIL_FRIEND_NAME%,\n" 
     
    10601060msgstr "" 
    10611061 
    1062 #: wp-email.php:1272 
     1062#: wp-email.php:1276 
    10631063msgid "Article: <strong>%EMAIL_POST_TITLE%</strong> has been sent to <strong>%EMAIL_FRIEND_NAME% (%EMAIL_FRIEND_EMAIL%)</strong></p><p>&laquo; <a href=\"%EMAIL_PERMALINK%\">" 
    10641064msgstr "" 
    10651065 
    1066 #: wp-email.php:1281 
     1066#: wp-email.php:1285 
    10671067msgid "Email This Post" 
    10681068msgstr "" 
    10691069 
    1070 #: wp-email.php:1281 
     1070#: wp-email.php:1285 
    10711071msgid "Email This Page" 
    10721072msgstr ""