示例#1
0
文件: home.php 项目: alx/Tetalab
<?php 
arras_above_index_news_post();
?>

<!-- News Articles -->
<div id="index-news">
<div class="home-title"><?php 
_e('Latest Headlines', 'arras');
?>
</div>
<?php 
$news_query = array('cat' => arras_get_option('news_cat'), 'paged' => $paged, 'showposts' => arras_get_option('index_count') == 0 ? get_option('posts_per_page') : arras_get_option('index_count'));
// if you are a WP plugin freak you can use 'arras_news_query' filter to override the query
wp_reset_query();
query_posts(apply_filters('arras_news_query', $news_query));
arras_get_posts('news');
?>

<?php 
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'));
    ?>
示例#2
0
    _e('<strong>Sorry, we couldn\'t find any results based on your search query.</strong>', 'arras');
    ?>
</p>
    <?php 
    include TEMPLATEPATH . '/searchform.php';
    ?>
    </div>
</div> 

<h2 class="feed-title"><?php 
    _e('Blog Archive', 'arras');
    ?>
</h2>
<?php 
    query_posts('');
    arras_get_posts('archive');
    ?>
    
<?php 
    if (function_exists('wp_pagenavi')) {
        wp_pagenavi();
    } else {
        ?>
    <div class="navigation clearfix">
		<div class="floatLeft"><?php 
        next_posts_link(__('&laquo; Older Entries', 'arras'));
        ?>
</div>
		<div class="floatRight"><?php 
        previous_posts_link(__('Newer Entries &raquo;', 'arras'));
        ?>
示例#3
0
        arras_get_posts('featured2', $q2);
    }
}
?>

<?php 
arras_above_index_news_post();
?>

<!-- News Articles -->
<?php 
$news_query = array('cat' => arras_get_option('news_cat'), 'paged' => $paged, 'showposts' => arras_get_option('index_count') == 0 ? get_option('posts_per_page') : arras_get_option('index_count'));
// if you are a WP plugin freak you can use 'arras_news_query' filter to override the query
wp_reset_query();
query_posts(apply_filters('arras_news_query', $news_query));
arras_get_posts('index');
?>

<?php 
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'));
    ?>