示例#1
0
  <div id="main">
   <div id="main-inside" class="clear-block">

    <!-- primary content -->
    <div id="primary-content">
     <div class="blocks">
      <?php 
do_action('mystique_before_primary');
?>
      <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        mystique_post();
    }
    mystique_pagenavi();
} else {
    ?>
       <h1 class="title error"><?php 
    _e("No posts found", "mystique");
    ?>
</h1>
       <p><?php 
    _e("Sorry, but you are looking for something that isn't here.", "mystique");
    ?>
</p>

      <?php 
}
?>
      <?php 
示例#2
0
         <h1 class="title"><?php 
        printf(__("Search results for %s", "mystique"), '<span class="altText">' . $searchquery . '</span>');
        ?>
</h1>
         <?php 
        mystique_pagenavi();
        while (have_posts()) {
            the_post();
            mystique_post();
        }
        ?>

         <!-- page navigation -->
         <div class="page-navigation clear-block">
          <?php 
        mystique_pagenavi('alignright');
        ?>
         </div>
         <!-- /page navigation -->

        <?php 
    } else {
        ?>
         <h1 class="title"><span class="error"><?php 
        _e('Nothing found.', 'mystique');
        ?>
</span> <?php 
        _e('Try a different search?', 'mystique');
        ?>
</h1>
         <?php