编辑“WordPress:WPMU Functions/get site option”
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第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. | ||
Just paste this code in your theme's sidebar.php | Just paste this code in your theme's 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> | ||
Cheers! | Cheers! | ||
--[[WordPress:User:Devportals|Devportals]] 03:45, 21 June 2008 (UTC) | --[[WordPress:User:Devportals|Devportals]] 03:45, 21 June 2008 (UTC) | ||