Last active
August 29, 2015 14:04
-
-
Save cidadesonho/4af2e26a3253d2be3301 to your computer and use it in GitHub Desktop.
Index PHP for WP Bootstrap Theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php get_header(); ?> | |
| <div class="jumbotron"> | |
| <div class="container"> | |
| <h1><?php bloginfo( 'description' ); ?></h1> | |
| <p><?php bloginfo( 'admin_email' ); ?></p> | |
| </div> | |
| </div> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-md-8"> | |
| <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
| <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
| <h1 class="page-header"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> | |
| <span class="pull-right"> | |
| <span class="glyphicon glyphicon-time"></span> <em><?php the_time('l, F jS, Y'); ?></em> | |
| <div class="author-box"> | |
| <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?> | |
| </div> | |
| </span> | |
| <?php if ( has_post_thumbnail()) : ?> | |
| <a class="img-responsive" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > | |
| <?php the_post_thumbnail(); ?> | |
| </a> | |
| <?php endif; ?> | |
| <p><span class="glyphicon glyphicon-folder-open"></span> <?php the_category(', '); ?></p> | |
| <p><?php the_content(); ?></p> | |
| <p><span class="glyphicon glyphicon-comment"></span> <?php comments_popup_link(__('0 comments','wpbootstrap'),__('1 comment','wpbootstrap'),__('% comments','wpbootstrap')); ?></p> | |
| </div> | |
| <?php endwhile; ?> | |
| <ul class="pager"> | |
| <?php posts_nav_link(); ?> | |
| </ul> | |
| <?php else: ?> | |
| <p><?php _e( 'Desculpe, nenhum post no momento.', 'wpbootstrap' ); ?></p> | |
| <?php endif; ?> | |
| </div> | |
| <div class="col-md-4"> | |
| <div id="sidebar" role="complementary"><?php dynamic_sidebar( 'sidebar' ); ?></div> | |
| </div> | |
| </div> | |
| </div> | |
| <?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment