Advertising
- Anonymous
- Friday, May 11th, 2012 at 9:04:41am MDT
- <!-- functions.php -->
- <?php
- if ( function_exists('register_sidebar') )
- register_sidebar( array('name' => "sidebar1", 'id' => "sidebar1") );
- register_sidebar( array('name' => "footerbar1", 'id' => "footerbar1") );
- ?>
- <!-- header.php -->
- <!DOCTYPE HTML>
- <html <? language_attributes(); ?>>
- <head>
- <title><? bloginfo('name'); ?></title>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width" />
- <link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_url' ); ?>" media="all" />
- <?php wp_head(); ?>
- </head>
- <body>
- <div id="parappa">
- <header>
- <h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><? bloginfo('name'); ?></a></h1>
- </header>
- <!-- index.php -->
- <? get_header(); ?>
- <div id="listposts">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <article class="listedpost">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <?php the_title_attribute(); ?>
- </a></h2>
- <p><?php the_content(); ?></p>
- </article>
- <? endwhile; else: ?>
- <p>Could not find any posts. You should try harder!</p>
- <?php endif; ?>
- <nav id="nav-below"><?php posts_nav_link(' -- ', 'newer entries','older entries'); ?> </nav>
- </div> <!-- listposts -->
- <ul id="sidebar">
- <?php if ( !function_exists('dynamic_sidebar') ||
- dynamic_sidebar( 'sidebar1' )): // displaying the bar we made in functions.php
- endif;?>
- </ul>
- <? get_footer(); ?>
- <!-- single.php: -->
- <? get_header(); ?>
- <div id="single">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <article class="singlepost">
- <h2><?php the_title(); ?></h2>
- <p><?php the_content(); ?></p>
- </article>
- <? endwhile; else: ?>
- <p>Could not find any posts. You should try harder!</p>
- <?php endif; ?>
- <? comments_template() //gets comments.php ?>
- </div>
- <ul id="sidebar">
- <?php if ( !function_exists('dynamic_sidebar') ||
- dynamic_sidebar( 'sidebar1' )): // displaying the bar we made in functions.php
- endif;?>
- </ul>
- <? get_footer(); ?>
- <!-- comments.php: -->
- <div id="comments">
- <?php if ( have_comments() ) : ?>
- <?php wp_list_comments( array('style'=> 'div', 'type'=>'comment', ) ); ?>
- <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
- <nav id="nav-below"><?php next_comments_link( 'newer comments' ); ?> -- <?php previous_comments_link( 'older comments' ); ?></nav>
- <?php endif; ?>
- <? else: ?>
- <p>create a conversation by posting a comment in the form below</p>
- <? endif; ?>
- </div>
- <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
- <?php comment_id_fields(); ?>
- <textarea name="comment" id="commentarea" rows="10" tabindex="4"></textarea>
- <input name="submit" type="submit" id="commentsubmit" tabindex="5" value="<?php _e('Submit Comment'); ?>" />
- </form>
- <!-- footer.php -->
- <footer>
- <ul>
- <?php if ( !function_exists('dynamic_sidebar') ||
- dynamic_sidebar( 'footerbar1' )): // displaying the bar we made in functions.php
- endif;?>
- <li>Theme: <a href="http://fortelle.no/blog/2012/toosimple">Too Simple</a> by <a href="http://fortelle.no/">Fortelle</a></li>
- </ul>
- </footer>
- </div> <!-- parappa -->
- </body>
- </html>
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.