SHOW:
|
|
- or go back to the newest paste.
1 | <!DOCTYPE html> | |
2 | <html lang="en"> | |
3 | <head> | |
4 | <title>The Avocado Girl</title> | |
5 | <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css"> | |
6 | <link href='http://fonts.googleapis.com/css?family=Noticia+Text' rel='stylesheet' type='text/css'> | |
7 | <link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> | |
8 | <?php wp_head(); ?> | |
9 | </head> | |
10 | <body> | |
11 | <header> | |
12 | <div class="wrapper"> | |
13 | <div id="titlebar"> | |
14 | ||
15 | <img id="logo" src="<?php bloginfo('stylesheet_directory'); ?>/images/avocado.png" width="102" height="112" alt="avocado girl" /> | |
16 | <img id="title" src="<?php bloginfo('stylesheet_directory'); ?>/images/title.png" width="496" height="46" alt="TheAvocadoGirl.Com" /> | |
17 | <div class="clear"></div> | |
18 | ||
19 | </div><!-- end titlebar --> | |
20 | </div><!-- end wrapper --> | |
21 | ||
22 | </header> | |
23 | <div class="wrapper"> | |
24 | <div id="nav"> | |
25 | <?php wp_nav_menu(array( 'menu' => 'mainnav', 'menu_class' => 'nav-bar-content', 'menu_id' => 'navigation', 'container' => false, 'theme_location' => 'primary-menu', 'show_home' => '1')); ?> | |
26 | </div><!-- end nav --> | |
27 | </div><!-- end wrapper --> | |
28 | <div class="wrapper"> | |
29 | <div id="content"> | |
30 | <?php get_header(); ?> | |
31 | ||
32 | <?php if ( ! have_posts() ) : ?> | |
33 | <h1>Not Found</h1> | |
34 | <p>Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post</p> | |
35 | <?php endif; ?> | |
36 | ||
37 | <?php while ( have_posts() ) : the_post(); ?> | |
38 | <div class="article"> | |
39 | <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> | |
40 | <span class="date"><?php the_date(); ?></span> | |
41 | </a> | |
42 | <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?> | |
43 | <?php the_excerpt(); ?> | |
44 | <?php else : ?> | |
45 | <?php the_content('Read More'); ?> | |
46 | <?php endif; ?> | |
47 | <div class="meta"> | |
48 | <img src="<?php bloginfo('stylesheet_directory'); ?>/images/tag.png" width="15" height="13" alt="tags" /><span class="tags"><?php the_tags(); ?></span> | |
49 | <img src="<?php bloginfo('stylesheet_directory'); ?>/images/category.png" width="15" height="14" alt="categories" /><span class="categories"><?php the_category(', '); ?></span> </span> | |
50 | <img src="<?php bloginfo('stylesheet_directory'); ?>/images/comments.png" width="20" height="15" alt="Comments" /><span class="comments"><?php comments_popup_link('Leave a comment', '1 Comment', '% Comments'); ?></span> | |
51 | </div> | |
52 | <?php comments_template( '', true ); ?> | |
53 | </div> | |
54 | ||
55 | <?php endwhile; ?> | |
56 | <div class="clear"></div> | |
57 | <?php if ( $wp_query->max_num_pages > 1 ) : ?> | |
58 | <div id="older-posts"><?php next_posts_link('Older Posts'); ?></div> | |
59 | <div id="newer-posts"><?php previous_posts_link('Newer Posts'); ?></div> | |
60 | <div id="only-page">No newer/older posts</div> | |
61 | <?php else: ?> | |
62 | <?php endif; ?> | |
63 | </div><!-- end content --> | |
64 | ||
65 | <div id="sidebar"> | |
66 | - | <div id="sidebar"> |
66 | + | <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("sidebar") ) : ?> |
67 | - | <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("sidebar") ) : ?> |
67 | + | <?php get_sidebar(); ?> |
68 | <?php endif; ?> | |
69 | - | </div><!-- end sidebar --> |
69 | + | </div><!-- end sidebar --> |
70 | - | <?php get_sidebar(); ?> |
70 | + | |
71 | </div><!--end wrapper --> | |
72 | ||
73 | ||
74 | <?php get_footer(); ?> | |
75 | ||
76 | <div class="clear"></div> | |
77 | <footer> | |
78 | <div class="wrapper"> | |
79 | <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("footer") ) : ?> | |
80 | <?php endif; ?> | |
81 | <span id="copyright">Copyright © 2013</span> | |
82 | </div><!-- end wrapper --> | |
83 | <?php wp_footer(); ?> | |
84 | </footer> | |
85 | </body> | |
86 | </html> |