예제 #1
0
파일: home.php 프로젝트: LightDestory/arras
	<?php 
        if (arras_get_option('news_title') != '') {
            ?>
	<h2 class="home-title"><?php 
            _e(arras_get_option('news_title'));
            ?>
</h2>
	<?php 
        }
        ?>
	<?php 
        $news_query_args = apply_filters('arras_news_query', array('list' => $news_cat, 'taxonomy' => arras_get_option('news_tax'), 'query' => array('posts_per_page' => arras_get_option('news_count'), 'exclude' => $post_blacklist, 'post_type' => arras_get_option('news_posttype'), 'paged' => $paged)));
        $news_query = arras_prep_query($news_query_args);
        query_posts($news_query);
        $news_display = arras_get_option('news_display') ? arras_get_option('news_display') : 'default';
        arras_featured_loop($news_display, $news_query_args, true);
        if (function_exists('wp_pagenavi')) {
            wp_pagenavi();
        } else {
            ?>
		<div class="navigation clearfix">
			<div class="floatleft"><?php 
            next_posts_link(__('Older Entries', 'arras'));
            ?>
</div>
			<div class="floatright"><?php 
            previous_posts_link(__('Newer Entries', 'arras'));
            ?>
</div>
		</div>
	<?php 
예제 #2
0
        ?>
<!-- News Articles -->
<div id="index-news">
<?php 
        if (arras_get_option('news_title') != '') {
            ?>
<div class="home-title"><?php 
            _e(arras_get_option('news_title'));
            ?>
</div>
<?php 
        }
        $news_query_args = apply_filters('arras_news_query', array('list' => $news_cat, 'taxonomy' => arras_get_option('news_tax'), 'query' => array('posts_per_page' => arras_get_option('index_count'), 'exclude' => $post_blacklist, 'post_type' => arras_get_option('news_posttype'), 'paged' => $paged)));
        $news_query = arras_prep_query($news_query_args);
        query_posts($news_query);
        arras_featured_loop(arras_get_option('news_display'), $news_query_args, true);
        if (function_exists('wp_pagenavi')) {
            wp_pagenavi();
        } else {
            ?>
	<div class="navigation clearfix">
		<div class="floatleft"><?php 
            next_posts_link(__('Older Entries', 'arras'));
            ?>
</div>
		<div class="floatright"><?php 
            previous_posts_link(__('Newer Entries', 'arras'));
            ?>
</div>
	</div>
<?php