コード例 #1
0
ファイル: section.php プロジェクト: benpeck/experticity-fools
 function get_loop()
 {
     global $post;
     $id = isset($post->ID) ? $post->ID : null;
     if (true == apply_filters('pl_legacy_postloop', pl_setting('post_loop_legacy'), $id)) {
         require_once $this->base_dir . '/class.posts.php';
         $theposts = new PageLinesPosts($this);
         echo '<div class="pl-old-loop">';
         $theposts->load_loop();
         echo '</div>';
     } else {
         echo '<div class="pl-new-loop">';
         $this->loop();
         echo '</div>';
     }
 }
コード例 #2
0
ファイル: section.php プロジェクト: climo/PageLines-Framework
 /**
  * Section template.
  */
 function section_template()
 {
     //Included in theme root for easy editing.
     $theposts = new PageLinesPosts();
     $theposts->load_loop();
 }