Let your visitors share a quote from your pages with Quote Tweet!
When a visitor selects text from one of your pages, a prompt appears for them to share the quote, with the current page URL, to Twitter.
Check out the source code on GitHub!
安装:
Choose to add a new plugin, then click upload
Upload the quote-tweet zip
通过WordPress的的“Plugins”菜单激活插件
Try selecting text on one of your pages, to see the Twitter icon pop up.
屏幕截图:
升级注意事项:
0.7
Added default hashtags.
0.6
Critical fix to some sloppy code in 0.5.
0.5
Right-click doesn't hide selection; popup show/hide is more accurate with delayed checks for selection; added addEventListeners for all events.
0.4
Fixed issue where popup didn't show up on some sites due to z-indexing; added retina support.
0.3
Fixed warning of # of characters of unexpected output
0.2
Removed windows.onload and moved script to the bottom of page for compatibility with other plugins and to save on load time.
0.1
First Version.
更新日志:
0.7
Added default hashtags.
0.6
Fix to overwritten variable which wiped text selection in 0.5 (sorry, all affected).
0.5
Added timeouts, contextmenu event, and addEventListener for all events.
0.4
Added z index so that the popup will show up on most sites; added retina Twitter logo.
0.3
Tightened whitespace and comments, made globals explicit; eventually moved most of the plugin into a function executed on the init action.