コード例 #1
0
        }
        ?>
						| 时间:<?php 
        echo date('Y/m/d H:i', $list["time"]);
        ?>
<a href="<?php 
        echo U('/content_' . $list['id']);
        ?>
" class="float-right"><i class="icon-share"></i> 阅读全文</a></p></div></div><div class="line mysummary"><div class="xb4 xl12"><img src="<?php 
        echo $list["imgUrl"];
        ?>
" class="img-responsive radius" alt="<?php 
        echo $list["title"];
        ?>
"></div><div class="xb8 xl12 zhaiyao"><p class="icon-quote-left"><?php 
        echo change_substr($list["content"], 200);
        ?>
</p><small><i class="icon-comment"></i> 评论:<span class="ds-thread-count" data-thread-key="<?php 
        echo $list["id"];
        ?>
" data-count-type="comments"></span> | <i class="icon-eye"></i> 阅读: <?php 
        echo $list["clicknum"];
        ?>
 | <i class="icon-user"></i> 作者:<?php 
        echo $list["name"];
        ?>
</small></div></div><!-- 一篇文章结束 --><?php 
    }
}
?>
<!-- <div class="page"><?php 
コード例 #2
0
<?php

if (!defined('THINK_PATH')) {
    exit;
}
?>
<!DOCTYPE html><html lang="zh-cn"><head><title><?php 
echo $data["0"]["title"];
?>
 - Ming依然</title><meta name="keywords" content="<?php 
echo $data["0"]["title"];
?>
,Ming依然,MingCMS,MingBlog,个人博客" /><meta name="description" content="<?php 
echo change_substr($data["0"]["content"], 50);
?>
" /><meta name="renderer" content="webkit"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta property="qc:admins" content="436125133761524776654" /><link rel="stylesheet" href="__PUBLIC__/css/pintuer.css"><link rel="stylesheet" href="__PUBLIC__/css/index.css"><script>    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?75c4d1212e0e86f5b991bce6a20a8e82";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
    </script></head><body><!-- 导航 --><div class="container-layout mynav"><div class="line"><div class="navbar xb10 xb1-move"><div class="navbar-head"><button class="button icon-navicon" data-target="#navbar1"></button><a href="#" class="xb12 xl8"><img src="__PUBLIC__/images/logo.jpg" class="img-responsive shake-hover" alt="logo" /></a></div><div class="navbar-right hidden-s hidden-l bg-main login"><a href="javascript:;"><span id="login"></span></a><a href="javascript:;" onclick="AddFavorite(window.location,document.title)" target="_blank" class="icon-heart"> 收藏</a><script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js" data-appid="101209215" charset="utf-8"></script><script type="text/javascript">QC.Login({ btnId:"login" });</script></div></div></div><!-- line --><div class="line"><div class="xb8 xb1-move mymenu"><div class="navbar-body nav-navicon" id="navbar1"><ul class="nav nav-inline nav-menu"><li><a href="./"><i class=" icon-qrcode"></i><strong>首页</strong><i class=" icon-qrcode"></i></a></li><?php 
$_nav_cate = M('cate')->order("sort ASC")->limit("4")->select();
import('Class.Category', APP_PATH);
$_nav_cate = Category::unlimitedCate($_nav_cate);
foreach ($_nav_cate as $_nav_cate_v) {
    extract($_nav_cate_v);
    $url = U('/list_' . $id);
    ?>
<li><a href="<?php 
コード例 #3
0
<?php

if (!defined('THINK_PATH')) {
    exit;
}
$i = 0;
if (is_array($blog)) {
    foreach ($blog as $key => $v) {
        $i += 1;
        ?>
<ul><li><a href="<?php 
        echo U('/content_' . $v['id']);
        ?>
"><i class=" icon-caret-right"></i><?php 
        echo $i;
        echo change_substr($v["title"], 15);
        ?>
</a><span>(阅读<?php 
        echo $v["clicknum"];
        ?>
)</span></li></ul><?php 
    }
}
コード例 #4
0
    foreach ($new as $key => $v) {
        ?>
<div class="xb3 xl12 new-artical bg"><div class="img"><img src="<?php 
        echo $v["imgUrl"];
        ?>
" alt="<?php 
        echo $v["title"];
        ?>
" class="img-responsive"></div><div class="content"><a href="<?php 
        echo U('/content_' . $v['id']);
        ?>
" target="_blank"><strong><i class="icon-pencil"></i><?php 
        echo change_substr($v["title"], 25);
        ?>
</strong></a><p><?php 
        echo change_substr($v["content"], 40);
        ?>
...</p></div></div><?php 
    }
}
?>
</div></div></div></div><!-- 最新文章 --><script type="text/javascript">    var tourl = "<?php 
echo U('Index/Index/getTXnews');
?>
";
    function AddFavorite(sURL, sTitle)
    { try{
            window.external.addFavorite(sURL, sTitle);
         }catch (e){ try{
                        window.sidebar.addPanel(sTitle, sURL, "");
                        }catch (e){alert("加入收藏失败,请使用Ctrl+D进行添加");}}}