本文整理汇总了PHP中Functions::the_excerpt方法的典型用法代码示例。如果您正苦于以下问题:PHP Functions::the_excerpt方法的具体用法?PHP Functions::the_excerpt怎么用?PHP Functions::the_excerpt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Functions
的用法示例。
在下文中一共展示了Functions::the_excerpt方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
"><h3><?php
echo Functions::the_excerpt($post['news_title'], $string = 50);
?>
</h3></a>
<p class="date"><?php
echo $post['post_on'];
?>
, <a href="<?php
echo SITE_PATH . 'tin-tuc/' . $post['ID'];
?>
#post-comments"><?php
echo $post['count'];
?>
comments</a></p>
<p class="content-post"><?php
echo Functions::the_excerpt($post['content'], 150);
?>
</p>
</div>
<?php
}
?>
</div><!--END LIST-POST-->
<div id="pagination">
<p>Page 1 of 3</p>
<ul>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#"> > </a></li>
示例2: foreach
}
//BAO MAT
?>
<div class="wrapper">
<div id="footer-widget">
<ul>
<?php
foreach ($this->footer as $footer) {
?>
<li id="about">
<h4><span><?php
echo $footer['title'];
?>
</span></h4>
<p><?php
echo Functions::the_excerpt($footer['content'], 400);
?>
</p>
</li>
<?php
}
?>
</ul>
</div>
<div id="logo-footer">
<img src="<?php
echo SITE_PATH;
?>
public/public/images/logo.png" alt="">
</div>
示例3: foreach
<th> Status </th>
<th> </th>
<th> </th>
</tr>
</thead>
<tbody>
<?php
foreach ($this->data as $value) {
?>
<tr>
<td> <?php
echo $value['news_title'];
?>
</td>
<td> <?php
echo Functions::the_excerpt($value['content']);
?>
</td>
<td> <div id="image-post-admin"> <img src="<?php
echo $value['image'];
?>
" /> </div> </td>
<td> <?php
echo $value['cat_title'];
?>
</td>
<td> <?php
echo $value['fullname'];
?>
</td>
<td> <?php
示例4:
"><?php
echo $news['news_title'];
?>
</a></h3>
<p class="date"><?php
echo $news['post_on'];
?>
, <a href="<?php
echo SITE_PATH . "tin-tuc/" . $news['ID'] . '/' . RewriteUrl::Encode($news['news_title']);
?>
#post-comments"><?php
echo $news['count'];
?>
comments</a></p>
<p class="content-post"><?php
echo Functions::the_excerpt($news['content'], $string = 250);
?>
</p>
</li>
<?php
}
?>
</ul>
</div><!--END LAST-POST-->
<div id="category-home">
<?php
foreach ($this->category as $value) {