Exemplo n.º 1
0
<?php

$this->load->view('site_header');
?>
<div id="wrap" class="clearfix">
    <div id="content">
<div id="view">
            <div id="info">
                <h1><?php 
echo $article->title;
?>
</h1>
                <p>
                    <em>发布于:<?php 
echo float_time($article->created);
?>
</em> -
                    <em>查看:<?php 
echo $article->views;
?>
次</em>
                 </p>
            </div>
            
            <div id="text">
                <p>

                        <?php 
echo htmlspecialchars_decode($article->content);
?>
Exemplo n.º 2
0
">
                        <div class="funx-list-item-image" style="background-image: url(<?php 
        echo get_article_image($v->aid);
        ?>
)"></div>
                        <div class="funx-list-item-line">
                            <div class="funx-list-item-title"><?php 
        $title = substring($v->title, 100);
        echo $title;
        ?>
</div>
                            <div class="funx-list-item-summary">被 <?php 
        echo $v->views;
        ?>
 人阅读, 于 <?php 
        echo float_time($v->created);
        ?>
发表</div>
                        </div>
                        <div class="funx-list-item-icon fa fa-chevron-right"></div>
                    </a>
            </div>

			<?php 
    }
    ?>
			<?php 
} else {
    ?>
			<p class="null">该分类下还没有发布文章,请 <a href="javascript:;" onClick="history.back()">返回上页</a> 或 <a href="<?php 
    echo site_url();