Changeset 16147
- Timestamp:
- 08/02/07 11:05:09 (1 year ago)
- Files:
-
- wp-polls/trunk/polls/polls-admin-js.php (modified) (2 diffs)
- wp-polls/trunk/polls/polls.php (modified) (1 diff)
- wp-polls/trunk/polls/tinymce (added)
- wp-polls/trunk/polls/tinymce/plugins (added)
- wp-polls/trunk/polls/tinymce/plugins/polls (added)
- wp-polls/trunk/polls/tinymce/plugins/polls/editor_plugin.js (added)
- wp-polls/trunk/polls/tinymce/plugins/polls/images (added)
- wp-polls/trunk/polls/tinymce/plugins/polls/images/poll.gif (added)
- wp-polls/trunk/polls/tinymce/plugins/polls/langs (added)
- wp-polls/trunk/polls/tinymce/plugins/polls/langs/en.js (added)
- wp-polls/trunk/polls/tinymce/plugins/polls/langs/en_us.js (added)
- wp-polls/trunk/polls/wp-polls.mo (modified) (previous)
- wp-polls/trunk/polls/wp-polls.pot (modified) (9 diffs)
- wp-polls/trunk/readme.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-polls/trunk/polls/polls-admin-js.php
r16112 r16147 203 203 204 204 // Function: Insert Poll Quick Tag 205 function edInsertPoll(myField) {205 function insertPoll(where, myField) { 206 206 var poll_id = prompt("<?php _e('Enter Poll ID', 'wp-polls'); ?>"); 207 207 while(isNaN(poll_id)) { … … 209 209 } 210 210 if (poll_id > 0) { 211 edInsertContent(myField, '[poll=' + poll_id + ']'); 212 } 213 } 211 if(where == 'code') { 212 edInsertContent(myField, '[poll=' + poll_id + ']'); 213 } else { 214 return '[poll=' + poll_id + ']'; 215 } 216 } 217 } wp-polls/trunk/polls/polls.php
r16112 r16147 202 202 echo "\t\t".'qt_button.value = "'.__('Poll', 'wp-polls').'";'."\n"; 203 203 echo "\t\t".'qt_button.title = "'.__('Insert Poll', 'wp-polls').'";'."\n"; 204 echo "\t\t".'qt_button.onclick = function () { edInsertPoll(edCanvas);}'."\n";204 echo "\t\t".'qt_button.onclick = function () { insertPoll(\'code\', edCanvas);}'."\n"; 205 205 echo "\t\t".'qt_button.id = "ed_poll";'."\n"; 206 206 echo "\t\t".'qt_toolbar.appendChild(qt_button);'."\n"; 207 207 echo "\t".'}'."\n"; 208 208 echo '</script>'."\n"; 209 } 210 211 212 ### Function: Add Quick Tag For Poll In TinyMCE, Coutesy Of An-Archos (http://an-archos.com/anarchy-media-player) 213 add_filter("mce_plugins", "poll_mce_plugins", 5); 214 function poll_mce_plugins($plugins) { 215 array_push($plugins, '-polls', 'bold'); 216 return $plugins; 217 } 218 add_filter("mce_buttons", "poll_mce_buttons", 5); 219 function poll_mce_buttons($buttons) { 220 array_push($buttons, 'separator', 'polls'); 221 return $buttons; 222 } 223 add_action('tinymce_before_init','poll_external_plugins'); 224 function poll_external_plugins() { 225 echo 'tinyMCE.loadPlugin("polls", "'.get_option('siteurl').'/wp-content/plugins/polls/tinymce/plugins/polls/");' . "\n"; 226 return; 209 227 } 210 228 wp-polls/trunk/polls/wp-polls.pot
r16112 r16147 3 3 "Project-Id-Version: WP-Polls 2.21\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-08-02 01:24+0800\n"5 "PO-Revision-Date: 2007-08-02 19:04+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Ravan <ravanhagen@gmail.com>\n" … … 415 415 #: polls-manager.php:488 416 416 #: polls-manager.php:496 417 #: polls.php:3 19418 #: polls.php:3 24419 #: polls.php:4 35420 #: polls.php:4 40421 #: polls.php:8 16422 #: polls.php:8 20417 #: polls.php:337 418 #: polls.php:342 419 #: polls.php:453 420 #: polls.php:458 421 #: polls.php:834 422 #: polls.php:838 423 423 #, php-format 424 424 msgid "%s @ %s" … … 584 584 #: polls-templates.php:116 585 585 #: polls-templates.php:119 586 #: polls.php:12 69587 #: polls.php:12 72586 #: polls.php:1287 587 #: polls.php:1290 588 588 msgid "Total Voters" 589 589 msgstr "" … … 598 598 599 599 #: polls-manager.php:494 600 #: polls.php:3 22601 #: polls.php:4 38602 #: polls.php:8 18600 #: polls.php:340 601 #: polls.php:456 602 #: polls.php:836 603 603 msgid "No Expiry" 604 604 msgstr "" … … 821 821 #: polls-templates.php:110 822 822 #: polls-templates.php:113 823 #: polls.php:12 66824 #: polls.php:12 67823 #: polls.php:1284 824 #: polls.php:1285 825 825 msgid "Votes" 826 826 msgstr "" … … 1010 1010 #: polls-templates.php:104 1011 1011 #: polls-templates.php:119 1012 #: polls.php:12 601013 #: polls.php:12 731012 #: polls.php:1278 1013 #: polls.php:1291 1014 1014 msgid "Vote" 1015 1015 msgstr "" 1016 1016 1017 1017 #: polls-templates.php:104 1018 #: polls.php:12 611018 #: polls.php:1279 1019 1019 msgid "View Results Of This Poll" 1020 1020 msgstr "" 1021 1021 1022 1022 #: polls-templates.php:104 1023 #: polls.php:12 611023 #: polls.php:1279 1024 1024 msgid "View Results" 1025 1025 msgstr "" 1026 1026 1027 1027 #: polls-templates.php:113 1028 #: polls.php:12 671028 #: polls.php:1285 1029 1029 msgid "You Have Voted For This Choice" 1030 1030 msgstr "" 1031 1031 1032 1032 #: polls-templates.php:119 1033 #: polls.php:12 731033 #: polls.php:1291 1034 1034 msgid "Vote For This Poll" 1035 1035 msgstr "" … … 1037 1037 #: polls-templates.php:122 1038 1038 #: polls-usage.php:80 1039 #: polls.php:13 001039 #: polls.php:1318 1040 1040 msgid "Polls Archive" 1041 1041 msgstr "" … … 1050 1050 1051 1051 #: polls-templates.php:131 1052 #: polls.php:12 751052 #: polls.php:1293 1053 1053 msgid "Sorry, there are no polls available at the moment." 1054 1054 msgstr "" 1055 1055 1056 1056 #: polls-templates.php:134 1057 #: polls.php:12 761057 #: polls.php:1294 1058 1058 msgid "An error has occurred when processing your poll." 1059 1059 msgstr "" … … 1516 1516 msgstr "" 1517 1517 1518 #: polls.php:4 001519 #: polls.php:5 601518 #: polls.php:418 1519 #: polls.php:578 1520 1520 msgid "Loading" 1521 1521 msgstr "" 1522 1522 1523 #: polls.php:6 021523 #: polls.php:620 1524 1524 msgid "Note: There is a poll embedded within this post, please visit the site to participate in this post's poll." 1525 1525 msgstr "" 1526 1526 1527 #: polls.php:9 451527 #: polls.php:963 1528 1528 msgid "Previous Page" 1529 1529 msgstr "" 1530 1530 1531 #: polls.php:9 531531 #: polls.php:971 1532 1532 msgid "Next Page" 1533 1533 msgstr "" 1534 1534 1535 #: polls.php:9 621535 #: polls.php:980 1536 1536 msgid "Pages" 1537 1537 msgstr "" 1538 1538 1539 #: polls.php:9 641539 #: polls.php:982 1540 1540 msgid "Go to First Page" 1541 1541 msgstr "" 1542 1542 1543 #: polls.php:9 641543 #: polls.php:982 1544 1544 msgid "First" 1545 1545 msgstr "" 1546 1546 1547 #: polls.php:9 671548 #: polls.php:9 791547 #: polls.php:985 1548 #: polls.php:997 1549 1549 msgid "Go to Page" 1550 1550 msgstr "" 1551 1551 1552 #: polls.php:9 741552 #: polls.php:992 1553 1553 msgid "Page" 1554 1554 msgstr "" 1555 1555 1556 #: polls.php: 9821556 #: polls.php:1000 1557 1557 msgid "Go to Last Page" 1558 1558 msgstr "" 1559 1559 1560 #: polls.php: 9821560 #: polls.php:1000 1561 1561 msgid "Last" 1562 1562 msgstr "" 1563 1563 1564 #: polls.php:11 461564 #: polls.php:1164 1565 1565 #, php-format 1566 1566 msgid "Unable To Update Poll Total Votes And Poll Total Voters. Poll ID #%s" 1567 1567 msgstr "" 1568 1568 1569 #: polls.php:11 501569 #: polls.php:1168 1570 1570 #, php-format 1571 1571 msgid "You Had Already Voted For This Poll. Poll ID #%s" 1572 1572 msgstr "" 1573 1573 1574 #: polls.php:11 541574 #: polls.php:1172 1575 1575 #, php-format 1576 1576 msgid "Invalid Poll ID. Poll ID #%s" 1577 1577 msgstr "" 1578 1578 1579 #: polls.php:11 801580 #: polls.php:1 1821581 #: polls.php:1 1921579 #: polls.php:1198 1580 #: polls.php:1200 1581 #: polls.php:1210 1582 1582 msgid "WP-Polls" 1583 1583 msgstr "" 1584 1584 1585 #: polls.php:1 1941585 #: polls.php:1212 1586 1586 msgid "polls were created." 1587 1587 msgstr "" 1588 1588 1589 #: polls.php:1 1951589 #: polls.php:1213 1590 1590 msgid "polls' answers were given." 1591 1591 msgstr "" 1592 1592 1593 #: polls.php:1 1961593 #: polls.php:1214 1594 1594 msgid "votes were casted." 1595 1595 msgstr "" 1596 1596 1597 #: polls.php:12 441597 #: polls.php:1262 1598 1598 msgid "How Is My Site?" 1599 1599 msgstr "" 1600 1600 1601 #: polls.php:12 471601 #: polls.php:1265 1602 1602 msgid "Good" 1603 1603 msgstr "" 1604 1604 1605 #: polls.php:12 481605 #: polls.php:1266 1606 1606 msgid "Excellent" 1607 1607 msgstr "" 1608 1608 1609 #: polls.php:12 491609 #: polls.php:1267 1610 1610 msgid "Bad" 1611 1611 msgstr "" 1612 1612 1613 #: polls.php:12 501613 #: polls.php:1268 1614 1614 msgid "Can Be Improved" 1615 1615 msgstr "" 1616 1616 1617 #: polls.php:12 511617 #: polls.php:1269 1618 1618 msgid "No Comments" 1619 1619 msgstr "" wp-polls/trunk/readme.html
r16112 r16147 299 299 <strong>Version 2.21 (01-10-2007)</strong> 300 300 <ul> 301 <li>NEW: Added Quick Tag For Poll To Code Editor</li>301 <li>NEW: Added Quick Tag For Poll To Visual (TinyMCE) / Code Editor</li> 302 302 <li>NEW: New CSS Style For WP-Polls Archive (.wp-polls-archive)</li> 303 303 <li>NEW: Uses WP-Stats Filter To Add Stats Into WP-Stats Page</li>
