Bing 必应景致美图堪称一大特点。大天然是一个奇异的魔术师,把天下万物变得五光十色。翠绿的山林,倾注而下的瀑布,绮丽丰硕的海底天下,云雾围绕的日出,鬼斧神工的绝壁,湛蓝广大的大海,显现的彩虹……它们都是天然付与咱们的财产!爱好就不要错过咯!

WordPress 使用Bing图片作为登录页面背景
将以下代码加入至主题目录 Functions.php 中:
1 2 3 4 5 6 7 |
function custom_login_head(){ $str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1'); if(preg_match("/(.+?)<\/url>/ies",$str,$matches)){ $imgurl='http://cn.bing.com'.$matches[1]; echo''; }} add_action('login_head', 'custom_login_head'); |
评论抢沙发