WordPress: WPMU Functions/get site option:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: Useful for getting site stats. You can post stats in your theme sidebar.php by pasting this snippet. Just paste this code in your theme's sidebar.php <pre> <?php <h2 class="storytitle"...)
 
无编辑摘要
 
第1行: 第1行:
Useful for getting site stats.
Useful for getting site stats.
有利于得到站点统计数据。


You can post stats in your theme sidebar.php by pasting this snippet.
You can post stats in your theme sidebar.php by pasting this snippet.
通常粘贴这个snippet,你可以在你的主题sidebar.php中发表统计数据。


Just paste this code in your theme's sidebar.php  
Just paste this code in your theme's sidebar.php  
只要将这个代码粘贴到你的主题的sidebar.php
<pre>
<pre>
<?php
<?php
<h2 class="storytitle">Site Stats</h2>";
<h2 class="storytitle">Site Stats</h2>";
     echo "There are currently ".$stats[ 'blogs' ]." blogs running on this server and ".$stats[ 'users' ]." users.<br />";
     echo "There are currently ".$stats[ 'blogs' ]." blogs running on this server and ".$stats[ 'users' ]." users.<br />";
?>
</pre>
<pre>
<?php
<h2 class="storytitle">Site Stats</h2>";
    echo "现在有 ".$stats[ '博客' ]." 博客运行在这个服务器上,有".$stats[ '用户' ]." 用户。<br />";
?>
?>
</pre>
</pre>


Cheers!
Cheers!
祝贺!
--[[WordPress:User:Devportals|Devportals]] 03:45, 21 June 2008 (UTC)
--[[WordPress:User:Devportals|Devportals]] 03:45, 21 June 2008 (UTC)
--[[WordPress:User:Devportals|Devportals]]2008年6月21日, 03:45 (格林尼治标准时间)

2008年9月26日 (五) 16:27的最新版本

Useful for getting site stats.

有利于得到站点统计数据。

You can post stats in your theme sidebar.php by pasting this snippet.

通常粘贴这个snippet,你可以在你的主题sidebar.php中发表统计数据。

Just paste this code in your theme's sidebar.php

只要将这个代码粘贴到你的主题的sidebar.php

<?php
<h2 class="storytitle">Site Stats</h2>";
    echo "There are currently ".$stats[ 'blogs' ]." blogs running on this server and ".$stats[ 'users' ]." users.<br />";
?>


<?php
<h2 class="storytitle">Site Stats</h2>";
    echo "现在有 ".$stats[ '博客' ]." 博客运行在这个服务器上,有".$stats[ '用户' ]." 用户。<br />";
?>

Cheers!

祝贺!

--Devportals 03:45, 21 June 2008 (UTC)

--Devportals2008年6月21日, 03:45 (格林尼治标准时间)