示例#1
0
文件: index.php 项目: RHWTeam/Fresh
<?php

/*!
 * 主页模版
 */
get_header();
?>
<div class="container">
  <div class="row">
    <div class="col-md-8">
      <div class="panel panel-default">
        <div class="panel-body">
        <?php 
rhw_breadcrumbs();
rhw_statistics::update('home', '1');
rhw_home_meta();
?>
		</div>
      </div>
      <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
            <div class="panel panel-default post">
              <h4>
                <a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
示例#2
0
文件: single.php 项目: RHWTeam/Fresh
<?php

/*!
 * 文章模版
 */
get_header();
?>
<div class="container">
  <div class="row">
    <div class="col-md-8">
      <?php 
if (!is_attachment()) {
    rhw_statistics::update('post', get_the_ID());
}
while (have_posts()) {
    ?>
      <div class="panel panel-default">
        <div class="panel-body">
          <?php 
    rhw_breadcrumbs();
    the_post();
    ?>
          <h3>
			<?php 
    the_title();
    if (current_user_can('edit_post', get_the_ID()) && !is_attachment()) {
        printf(' <a class="edit-link" href="%1$s">编辑</a>', get_edit_post_link(get_the_ID()));
    }
    ?>
          </h3>
          <div class="meta-div">