<?php
// Detect Console or Mobile Device
function clrs_detect_device()
{
global $useragent, $ua_show_text, $ua_text_links;
// Apple
if(preg_match('/iPad/i', $useragent))
{
$link="http://www.apple.com/itunes";
$title="iPad";
if(preg_match('/CPU\ OS\ ([._0-9a-zA-Z]+)/i', $useragent, $regmatch))
{
$title.=" iOS ".str_replace("_", ".", $regmatch[1]);
}
$code="ipad";
}
elseif(preg_match('/iPod/i', $useragent))
{
$link="http://www.apple.com/itunes";
$title="iPod";
if(preg_match('/iPhone\ OS\ ([._0-9a-zA-Z]+)/i', $useragent, $regmatch))
{
$title.=" iOS ".str_replace("_", ".", $regmatch[1]);
}
$code="iphone";
}
elseif(preg_match('/iPhone/i', $useragent))
{
$link="http://www.apple.com/iphone";
$title="iPhone";
if(preg_match('/iPhone\ OS\ ([._0-9a-zA-Z]+)/i', $useragent, $regmatch))
{
$title.=" iOS ".str_replace("_", ".", $regmatch[1]);
}
$code="iphone";
}
// BenQ-Siemens (Openwave)
elseif(preg_match('/[^M]SIE/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/BenQ-Siemens";
$title="BenQ-Siemens";
if(preg_match('/[^M]SIE-([.0-9a-zA-Z]+)\//i', $useragent, $regmatch))
{
$title.=" ".$regmatch[1];
}
$code="benq-siemens";
}
// BlackBerry
elseif(preg_match('/BlackBerry/i', $useragent))
{
$link="http://www.blackberry.com/";
$title="BlackBerry";
if(preg_match('/blackberry([.0-9a-zA-Z]+)\//i', $useragent, $regmatch))
{
$title.=" ".$regmatch[1];
}
$code="blackberry";
}
// Dell
elseif(preg_match('/Dell Mini 5/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/Dell_Streak";
$title="Dell Mini 5";
$code="dell";
}
elseif(preg_match('/Dell Streak/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/Dell_Streak";
$title="Dell Streak";
$code="dell";
}
elseif(preg_match('/Dell/i', $useragent)){
$link="http://en.wikipedia.org/wiki/Dell";
$title="Dell";
$code="dell";
}
// Google
elseif(preg_match('/Nexus One/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/Nexus_One";
$title="Nexus One";
$code="google-nexusone";
}
// HTC
elseif(preg_match('/Desire/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/HTC_Desire";
$title="HTC Desire";
$code="htc";
}
elseif(preg_match('/Rhodium/i', $useragent)
|| preg_match('/HTC[_|\ ]Touch[_|\ ]Pro2/i', $useragent)
|| preg_match('/WMD-50433/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/HTC_Touch_Pro2";
$title="HTC Touch Pro2";
$code="htc";
}
elseif(preg_match('/HTC[_|\ ]Touch[_|\ ]Pro/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/HTC_Touch_Pro";
$title="HTC Touch Pro";
$code="htc";
}
elseif(preg_match('/HTC/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/High_Tech_Computer_Corporation";
$title="HTC";
if(preg_match('/HTC[\ |_|-]8500/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/HTC_Startrek";
$title.=" Startrek";
}
elseif(preg_match('/HTC[\ |_|-]Hero/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/HTC_Hero";
$title.=" Hero";
}
elseif(preg_match('/HTC[\ |_|-]Legend/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/HTC_Legend";
$title.=" Legend";
}
elseif(preg_match('/HTC[\ |_|-]Magic/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/HTC_Magic";
$title.=" Magic";
}
elseif(preg_match('/HTC[\ |_|-]P3450/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/HTC_Touch";
$title.=" Touch";
}
elseif(preg_match('/HTC[\ |_|-]P3650/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/HTC_Polaris";
$title.=" Polaris";
}
elseif(preg_match('/HTC[\ |_|-]S710/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/HTC_S710";
$title.=" S710";
}
elseif(preg_match('/HTC[\ |_|-]Tattoo/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/HTC_Tattoo";
$title.=" Tattoo";
}
elseif(preg_match('/HTC[\ |_|-]?([.0-9a-zA-Z]+)/i', $useragent, $regmatch))
{
$title.=" ".$regmatch[1];
}
elseif(preg_match('/HTC([._0-9a-zA-Z]+)/i', $useragent, $regmatch))
{
$title.=str_replace("_", " ", $regmatch[1]);
}
$code="htc";
}
// Kindle
elseif(preg_match('/Kindle/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/Amazon_Kindle";
$title="Kindle";
if(preg_match('/Kindle\/([.0-9a-zA-Z]+)/i', $useragent, $regmatch))
{
$title.=" ".$regmatch[1];
}
$code="kindle";
}
// LG
elseif(preg_match('/LG/i', $useragent))
{
$link="http://www.lgmobile.com";
$title="LG";
if(preg_match('/LG[E]?[\ |-|\/]([.0-9a-zA-Z]+)/i', $useragent, $regmatch))
{
$title.=" ".$regmatch[1];
}
$code="lg";
}
// Microsoft
elseif(preg_match('/Windows Phone OS 7.0/i', $useragent)
|| preg_match('/ZuneWP7/i', $useragent)
|| preg_match('/WP7/i', $useragent))
{
$link="http://www.microsoft.com/windowsphone/";
$title.="Windows Phone 7";
$code="wp7";
}
// Motorola
elseif(preg_match('/\ Droid/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/Motorola_Droid";
$title.="Motorola Droid";
$code="motorola";
}
elseif(preg_match('/XT720/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/Motorola";
$title.="Motorola Motoroi (XT720)";
$code="motorola";
}
elseif(preg_match('/MOT-/i', $useragent)
|| preg_match('/MIB/i', $useragent))
{
$link="http://en.wikipedia.org/wiki/Motorola";
$title="Motorola";
if(preg_match('/MOTO([.0-9a-zA-Z]+)/i', $useragent, $regmatch))
{
$title.=" ".$regmatch[1];
}
if(preg_match('/MOT-([.0-9a-zA-Z]+)/i', $useragent, $regmatch))
{
$title.=" ".$regmatch[1];
}
$code="motorola";
}
elseif(preg_match('/XOOM/i', $useragent)){
$link="http://en.wikipedia.org/wiki/Motorola_Xoom";
$title.="Motorola Xoom";
$code="motorola";
}
// Nintendo
elseif(preg_match('/Nintendo/i', $useragent))
{
$title="Nintendo";
if(preg_match('/Nintendo DSi/i', $useragent))
{
$link="http://www.nintendodsi.com/";
$title.=" DSi";
$code="nintendodsi";
}
elseif(preg_match('/Nintendo DS/i', $useragent))
{
$link="http://www.nintendo.com/ds";
$title.=" DS";
$code="nintendods";
}
elseif(preg_match('/Nintendo WiiU/i', $useragent))
{
$link="http://www.nintendo.com/wiiu";
$title.=" Wii U";
$code="nintendowiiu";
}
elseif(preg_match('/Nintendo Wii/i', $useragent))
{
$link="http://www.nintendo.com/wii";
$title.=" Wii";
$code="nintendowii";
}
else
{
$link="http://www.nintendo.com/";
$code="nintendo";
}
}
// Nokia
elseif(preg_match('/Nokia/i', $useragent)
&& !preg_match('/S(eries)?60/i', $useragent))
{
$link="http://www.nokia.com/";
$title="Nokia";
if(preg_match('/Nokia(E|N)?([0-9]+)/i', $useragent, $regmatch))
$title.=" ".$regmatch[1].$regmatch[2];
$code="nokia";
}
elseif(preg_match('/S(eries)?60/i', $useragent))
{
$link="http://www.s60.com/";
$title="Nokia Series60";
$code="nokia";
}
// OLPC (One Laptop Per Child)
elseif(preg_match('/OLPC/i', $useragent))
{
$link="http://www.laptop.org/";
$title="OLPC (XO)";
$code="olpc";
}
// Palm
elseif(preg_match('/\ Pixi\//i', $useragent))
{
$link="http://en.wikipedia.org/wiki/Palm_Pixi";
$title="Palm Pixi";
$code="palm";
}
elseif(preg_match('/\ Pre\//i', $useragent))
{
$link="http://en.wikipedia.org/wiki/Palm_Pre";
$title="Palm Pre";
$code="palm";
}
elseif(preg_match('/Palm/i', $useragent))
{
$link="http://www.palm.com/";
$title="Palm";
$code="palm";
}
elseif(preg_match('/wp-webos/i', $useragent))
{
$link="http://www.palm.com/";
$title="Palm";
$code="palm";
}
// Playstation
elseif(preg_match('/PlayStation/i', $useragent))
{
$title="PlayStation";
if(preg_match('/[PS|PlayStation\ ]3/i', $useragent))
{
$link="http://www.us.playstation.com/PS3";
$title.=" 3";
}
elseif(preg_match('/[PlayStation Portable|PSP]/i', $useragent))
{
$link="http://www.us.playstation.com/PSP";
$title.=" Portable";
}
elseif(preg_match('/[PlayStation Vita|PSVita]/i', $useragent))
{
$l
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的wordpress漂亮的透明主题php版源码.zip
共363个文件
png:339个
php:13个
js:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 11 浏览量
2023-08-29
23:35:24
上传
评论
收藏 1.72MB ZIP 举报
温馨提示
基于PHP的wordpress漂亮的透明主题php版源码.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的wordpress漂亮的透明主题php版源码.zip (363个子文件)
style.css 21KB
style.opacity.css 5KB
background.jpg 200KB
html5.js 2KB
theme-customizer.js 1002B
navigation.js 863B
script.js 792B
zh_CN.mo 4KB
en_US.mo 4KB
wp-useragent-detect.php 77KB
functions.php 13KB
theme-update-checker.php 9KB
wp-useragent.php 5KB
header.php 3KB
comments.php 3KB
content.php 1KB
index.php 1KB
page.php 536B
single.php 533B
footer.php 522B
page-comments.php 345B
sidebar.php 203B
screenshot2.png 903KB
screenshot.png 199KB
logo.png 104KB
nova.png 3KB
irix.png 3KB
enter.png 3KB
admin.png 2KB
icab.png 1KB
chromeplus.png 1KB
ipad.png 1KB
ipad.png 1KB
shiira.png 1KB
gnu.png 1KB
freebsd.png 1KB
baidubrowser.png 1KB
netsurf.png 1024B
msie2.png 1024B
omniweb.png 1020B
firefoxdevpre.png 1016B
blackbird.png 1009B
sundial.png 1008B
safari.png 1007B
firefox.png 1004B
usejump.png 1001B
alienforce.png 1000B
meneame.png 998B
seamonkey.png 998B
my-internet-browser.png 998B
galeon.png 997B
slimboat.png 997B
slackware.png 996B
rockmelt.png 992B
konqueror.png 990B
sitekiosk.png 990B
dooble.png 989B
win-phone.png 988B
iceape.png 988B
fluid.png 985B
dillo.png 985B
netnewswire.png 984B
owb.png 983B
srwareiron.png 983B
chromeos.png 979B
chrome.png 979B
nintendods.png 978B
phoenix.png 977B
win-4.png 976B
moonos.png 976B
acoobrowser.png 976B
lbrowser.png 975B
hana.png 975B
firewebnavigator.png 971B
cruz.png 969B
msie6.png 968B
gentoo.png 967B
thunderbird.png 967B
enigmabrowser.png 965B
blazer.png 964B
win-2.png 958B
icecat.png 957B
lobo.png 957B
midori.png 956B
qtwebinternetbrowser.png 953B
profile.png 949B
amigaos.png 947B
360se.png 946B
weltweitimnetzbrowser.png 946B
opera-1.png 945B
swiftfox.png 942B
pardus.png 941B
orca.png 940B
swiftweasel.png 936B
null.png 935B
null.png 935B
samsung.png 934B
samsung.png 934B
blackhawk.png 934B
ryouko.png 934B
共 363 条
- 1
- 2
- 3
- 4
资源评论
毕业_设计
- 粉丝: 1935
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功