
“瀑布流布局”随着pinterest网的流行而出名,现在国内使用这种风格布局的网站也越来越多,比如说Mark之,蘑菇街,点点网,哇哦等等。我第一次听到这个布局名称是来自于“乔花写的《瀑布流布局浅析一文”,之后在群里也时不时有同学会问有关于这种布局的使用方法。今天我老话重谈,主要向大家介绍一些相关的制作插件,以及成功的案例,希望能给大家今后的工作有所帮助。
制作瀑布流布局的优秀插件
首先简单的向大家推荐几款制作瀑布流的jQuery插件,这些插件能帮助大家轻松的实现类似于pinterest的布局效果:
1.Masonry
Masonr......

打开主题下的 functions.php 文件,在最后添加如下代码,将内容修改成你想要的样子。
代码如下:
<pre>function feed_copyright($content) {
if(is_single() or is_feed()) {
$content.= "<p class='crinfo'>";
$content.= '» 版权所有:<a title="owoer" href="http://www.iswz.net/">Themeidea</a> » <a rel="bookmark" title="'.get_the_title().'" href="'.get_permalink().'">......

function ForStrdate ($time) {
$now = time();
$interphase = $now - $time ;
$return = '';
if ( $interphase >= 0) {
$temp = $interphase/60;
if ($temp < 60) {
if (floor($temp) == 0) {
$return = '刚刚';
} else {
$return = floor($temp).'分钟前';
}
}elseif ($temp < 3600) {
$return = floor($temp/60).'小时前';
}elseif ($temp < 43200) {
$return = floor($temp/(60*24)).'天前';
}else {
$return = date('Y年m月d日',$time);
}
} els......
作者: owoer
|
发表于:2012年8月29日
|
栏目:PHP
|
php时间显示几分钟前几天前已关闭评论
阅读全文