Changeset 378175
- Timestamp:
- 04/28/2011 02:16:28 AM (15 years ago)
- Location:
- wp-useragent/trunk
- Files:
-
- 4 added
- 2 edited
-
img/16/device/kindle.png (added)
-
img/16/os/moonos.png (added)
-
img/24/device/kindle.png (added)
-
img/24/os/moonos.png (added)
-
readme.txt (modified) (3 diffs)
-
wp-useragent.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-useragent/trunk/readme.txt
r365240 r378175 5 5 Requires at least: 2.0 6 6 Tested up to: 3.2 7 Stable tag: 0.10. 67 Stable tag: 0.10.7 8 8 9 9 == Description == … … 66 66 67 67 == Changelog == 68 69 = v0.10.7 = 70 * Added detection for Kindle. 71 * Added detection for moonOS. 72 68 73 69 74 = v0.10.6 = … … 501 506 == Upgrade Notice == 502 507 503 = v0.10.6 = 504 * Added detection for BlackHawk, Gtk+ WebCore, Tencent Traveler and Vimprobable. 505 * Added a quick fix for Arch Linux improperly being detected when IE users have SearchToolbar installed (since it improperly matched seARCHtoolbar). 506 * Added new feature to hide "Unknown" output. This is disabled by default (props: Cahya) 508 = v0.10.7 = 509 * Added detection for Kindle. 510 * Added detection for moonOS. -
wp-useragent/trunk/wp-useragent.php
r365240 r378175 4 4 Plugin URI: http://kyleabaker.com/goodies/coding/wp-useragent/ 5 5 Description: A simple User-Agent detection plugin that lets you easily insert icons and/or textual web browser and operating system details with each comment. 6 Version: 0.10. 66 Version: 0.10.7 7 7 Author: Kyle Baker 8 8 Author URI: http://kyleabaker.com/ … … 1060 1060 $code="htc"; 1061 1061 1062 //Kindle 1063 }elseif(preg_match('/Kindle/i', $useragent)){ 1064 $link="http://en.wikipedia.org/wiki/Amazon_Kindle"; 1065 $title="Kindle"; 1066 if(preg_match('/Kindle\/([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 1067 $title.=" ".$regmatch[1]; 1068 $code="kindle"; 1069 1062 1070 //LG 1063 1071 }elseif(preg_match('/LG/i', $useragent)){ … … 1338 1346 $title.=" ".$regmatch[1]; 1339 1347 $code="mandriva"; 1348 }elseif(preg_match('/moonOS/i', $useragent)){ 1349 $link="http://www.moonos.org/"; 1350 $title="moonOS"; 1351 if(preg_match('/moonOS\/([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 1352 $title.=" ".$regmatch[1]; 1353 $code="moonos"; 1340 1354 }elseif(preg_match('/MorphOS/i', $useragent)){ 1341 1355 $link="http://www.morphos-team.net/";
Note: See TracChangeset
for help on using the changeset viewer.