web/wp-content/themes/inove/index.php
changeset 1 0d28b7c10758
equal deleted inserted replaced
0:0d9a58d2c515 1:0d28b7c10758
       
     1 <?php get_header(); ?>
       
     2 <?php
       
     3 	$options = get_option('inove_options');
       
     4 	if (function_exists('wp_list_comments')) {
       
     5 		add_filter('get_comments_number', 'comment_count', 0);
       
     6 	}
       
     7 ?>
       
     8 
       
     9 <?php if ($options['notice'] && $options['notice_content']) : ?>
       
    10 	<div class="post" id="notice">
       
    11 		<div class="content">
       
    12 			<?php echo($options['notice_content']); ?>
       
    13 			<div class="fixed"></div>
       
    14 		</div>
       
    15 	</div>
       
    16 <?php endif; ?>
       
    17 
       
    18 <?php if (have_posts()) : while (have_posts()) : the_post(); update_post_caches($posts); ?>
       
    19 	<div class="post" id="post-<?php the_ID(); ?>">
       
    20 		<h2><a class="title" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
       
    21 		<div class="info">
       
    22 			<span class="date"><?php the_time(__('F jS, Y', 'inove')) ?></span>
       
    23 			<?php if ($options['author']) : ?><span class="author"><?php the_author_posts_link(); ?></span><?php endif; ?>
       
    24 			<?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?>
       
    25 			<span class="comments"><?php comments_popup_link(__('No comments', 'inove'), __('1 comment', 'inove'), __('% comments', 'inove'), '', __('Comments off', 'inove')); ?></span>
       
    26 			<div class="fixed"></div>
       
    27 		</div>
       
    28 		<div class="content">
       
    29 			<?php the_content(__('Read more...', 'inove')); ?>
       
    30 			<div class="fixed"></div>
       
    31 		</div>
       
    32 		<div class="under">
       
    33 			<?php if ($options['categories']) : ?><span class="categories"><?php _e('Categories: ', 'inove'); ?></span><span><?php the_category(', '); ?></span><?php endif; ?>
       
    34 			<?php if ($options['tags']) : ?><span class="tags"><?php _e('Tags: ', 'inove'); ?></span><span><?php the_tags('', ', ', ''); ?></span><?php endif; ?>
       
    35 		</div>
       
    36 	</div>
       
    37 <?php endwhile; else : ?>
       
    38 	<div class="errorbox">
       
    39 		<?php _e('Sorry, no posts matched your criteria.', 'inove'); ?>
       
    40 	</div>
       
    41 <?php endif; ?>
       
    42 
       
    43 <div id="pagenavi">
       
    44 	<?php if(function_exists('wp_pagenavi')) : ?>
       
    45 		<?php wp_pagenavi() ?>
       
    46 	<?php else : ?>
       
    47 		<span class="newer"><?php previous_posts_link(__('Newer Entries', 'inove')); ?></span>
       
    48 		<span class="older"><?php next_posts_link(__('Older Entries', 'inove')); ?></span>
       
    49 	<?php endif; ?>
       
    50 	<div class="fixed"></div>
       
    51 </div>
       
    52 
       
    53 <?php get_footer(); ?>