Nick miller
1 <div id="choice" class="col-11 last">
2 <ul class="tab">
3 <li><a href="#choice-2">new</a></li>
4 <li><a href="#choice-3">best stories</a></li>
5 <li><a href="#choice-4">Famous stories</a></li>
6 <?php if(is_home()): ?>
7 <li><a href="#choice-1">the book</a></li>
8 <?php endif; ?>
9 </ul>
10 <div class="f-m">
11 <div id="choice-2">
12 <ul class="list">
13 <?php query_posts('posts_per_page=8&ignore_sticky_posts=1'); ?>
14 <?php while (have_posts()) : the_post(); ?>
15 <li>
16 <em><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></em>
17 <span class="date"><?php the_time('Y-m-d'); ?></span>
18 </li>
19 <?php endwhile; ?>
20 </ul>
21 </div>
22 <div id="choice-3">
23 <ul class="list">
24 <?php query_posts('posts_per_page=8&ignore_sticky_posts=1&orderby=comment_count'); ?>
25 <?php while (have_posts()) : the_post(); ?>
26 <li>
27 <em><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></em>
28 <span class="date"><?php the_time('Y-m-d'); ?></span>
29 </li>
30 <?php endwhile; ?>
31 </ul>
32 </div>
33 <div id="choice-4">
34 <ul class="list">
35 <?php query_posts('posts_per_page=8&ignore_sticky_posts=1&orderby=rand'); ?>
36 <?php while (have_posts()) : the_post(); ?>
37 <li>
38 <em><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></em>
39 <span class="date"><?php the_time('Y-m-d'); ?></span>
40 </li>
41 <?php endwhile; ?>
42 </ul>
43 </div>
44 <?php wp_reset_query(); if(is_home()): ?>
45 <div id="choice-1">
46 <div id="notice"><?php echo get_theme_mod('ts_notice'); ?></div>
47 </div>
48 <?php endif; ?>
49 </div>
50 <div class="f-e"></div>
51 </div>
2 <ul class="tab">
3 <li><a href="#choice-2">new</a></li>
4 <li><a href="#choice-3">best stories</a></li>
5 <li><a href="#choice-4">Famous stories</a></li>
6 <?php if(is_home()): ?>
7 <li><a href="#choice-1">the book</a></li>
8 <?php endif; ?>
9 </ul>
10 <div class="f-m">
11 <div id="choice-2">
12 <ul class="list">
13 <?php query_posts('posts_per_page=8&ignore_sticky_posts=1'); ?>
14 <?php while (have_posts()) : the_post(); ?>
15 <li>
16 <em><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></em>
17 <span class="date"><?php the_time('Y-m-d'); ?></span>
18 </li>
19 <?php endwhile; ?>
20 </ul>
21 </div>
22 <div id="choice-3">
23 <ul class="list">
24 <?php query_posts('posts_per_page=8&ignore_sticky_posts=1&orderby=comment_count'); ?>
25 <?php while (have_posts()) : the_post(); ?>
26 <li>
27 <em><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></em>
28 <span class="date"><?php the_time('Y-m-d'); ?></span>
29 </li>
30 <?php endwhile; ?>
31 </ul>
32 </div>
33 <div id="choice-4">
34 <ul class="list">
35 <?php query_posts('posts_per_page=8&ignore_sticky_posts=1&orderby=rand'); ?>
36 <?php while (have_posts()) : the_post(); ?>
37 <li>
38 <em><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></em>
39 <span class="date"><?php the_time('Y-m-d'); ?></span>
40 </li>
41 <?php endwhile; ?>
42 </ul>
43 </div>
44 <?php wp_reset_query(); if(is_home()): ?>
45 <div id="choice-1">
46 <div id="notice"><?php echo get_theme_mod('ts_notice'); ?></div>
47 </div>
48 <?php endif; ?>
49 </div>
50 <div class="f-e"></div>
51 </div>
©
Nick miller is powered by Blogger - Template designed by kirolos khalil - Nick Template