/ Published in: PHP
Expand |
Embed | Plain Text
<?php /** * @package WordPress * @subpackage Ciro_Theme */ /* Template Name: Mobile News */ ?> <?php $includespath = $_SERVER['DOCUMENT_ROOT'] . '/m/includes/'; $currentnav = 'news'; include($includespath . 'inc-header-news.php'); ?> <div id="subheadSecondary" style="background-color:#3B4D19"> <h2>News</h2> </div> <div id="content-10"> <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query("caller_get_posts=1&paged=$paged"); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="blogEntry"> <h3><?php the_title(); ?></h3> <h4><?php the_time('F jS, Y') ?></h4> <?php the_content('Read the rest of this entry »'); ?> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php get_search_form(); ?> <?php endif; ?> </div> <?php include($includespath . 'inc-nav-comm.php'); include($includespath . 'inc-footer.php'); ?>
You need to login to post a comment.
