예제 #1
0
파일: theme.php 프로젝트: schiz/scrollax
    /**
     *
     */
    function miss_featured_post()
    {
        global $wp_query, $irish_framework_params;
        $paged = miss_get_page_query();
        $layout = $irish_framework_params->layout['blog'];
        if (is_archive() || is_search()) {
            return false;
        }
        if ($paged != 1) {
            return false;
        }
        if ($layout['blog_layout'] != 'blog_layout2' && $layout['blog_layout'] != 'blog_layout3') {
            return false;
        }
        $args = array_merge($wp_query->query, array('post_type' => 'post', 'category__not_in' => miss_exclude_category_array($minus = false), 'showposts' => $layout['featured'], 'posts_per_page' => 1, 'offset' => 0));
        $temp = $wp_query;
        $wp_query = null;
        remove_filter('post_limits', 'my_post_limit');
        $wp_query = new WP_Query();
        $wp_query->query($args);
        ?>
<div id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class($layout['post_class'] . ' featured_post_module');
        ?>
><?php 
        while ($wp_query->have_posts()) {
            $wp_query->the_post();
            ?>
	
		<?php 
            miss_before_post(array('featured_post' => true, 'post_id' => get_the_ID()));
            ?>
	
		<div class="<?php 
            echo $layout['content_class'];
            ?>
">
			
			<?php 
            miss_before_entry();
            ?>

			<div class="post_excerpt">
				<?php 
            miss_post_content(array('featured_post' => true, 'blog_layout' => $layout['blog_layout']));
            ?>
			</div>
			
			<?php 
            miss_after_entry();
            ?>
	
		</div><!-- .content_class -->
		
	<?php 
        }
        ?>
</div><div class="clearboth"></div><?php 
        $wp_query = null;
        $wp_query = $temp;
    }
예제 #2
0
        ?>
<!-- Content Area -->
  <div class="single_module <?php 
        echo get_post_type();
        ?>
">
    <div id="page-<?php 
        the_ID();
        ?>
" <?php 
        post_class();
        ?>
>
      <div class="single_content">
        <?php 
        miss_before_entry();
        ?>
        <div class="page_content">
          <?php 
        if (miss_get_setting('review') == 'enable') {
            echo the_score($post->ID);
        }
        ?>
          <?php 
        the_content();
        ?>
          <div class="clearboth"></div>

          <?php 
        if ($meta['enabled']) {
            ?>