Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Loop
- *
- * This is the default loop file, containing the looping logic for use in all templates
- * where a loop is required.
- *
- * To override this loop in a particular context (in all archives, for example), create a
- * duplicate of this file and rename it to `loop-archive.php`. Make any changes to this
- * new file and they will be reflected on all your archive screens.
- *
- * @package WooFramework
- * @subpackage Template
- */
- global $more; $more = 0;
- woo_loop_before();
- if (have_posts()) { $count = 0;
- ?>
- <div class="fix"></div>
- <?php
- while (have_posts()) { the_post(); $count++;
- if ( is_home() && $count == 1 ) :
- global $woo_options;
- $title_before = '<h1 class="title">';
- $title_after = '</h1>';
- if ( ! is_single() ) {
- $title_before = '<h2 class="title">';
- $title_after = '</h2>';
- $title_before = $title_before . '<a href="' . get_permalink( get_the_ID() ) . '" rel="bookmark" title="' . the_title_attribute( array( 'echo' => 0 ) ) . '">';
- $title_after = '</a>' . $title_after;
- }
- $page_link_args = apply_filters( 'woothemes_pagelinks_args', array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) );
- woo_post_before();
- ?>
- <div <?php post_class(); ?>>
- <?php
- woo_post_inside_before();
- if ( $woo_options['woo_post_content'] != 'content' AND !is_singular() )
- woo_image( 'width='.$woo_options['woo_thumb_w'].'&height='.$woo_options['woo_thumb_h'].'&class=thumbnail '.$woo_options['woo_thumb_align'] );
- the_title( $title_before, $title_after );
- woo_post_meta();
- ?>
- <div class="entry">
- <?php
- the_content(__('Continue Reading →', 'woothemes'));
- ?>
- </div><!-- /.entry -->
- <div class="fix"></div>
- <?php
- woo_post_inside_after();
- ?>
- </div><!-- /.post -->
- <?php
- woo_post_after();
- $comm = $woo_options[ 'woo_comments' ];
- if ( ( $comm == 'post' || $comm == 'both' ) && is_single() ) { comments_template(); }
- ?>
- <?php else :
- woo_get_template_part( 'content', get_post_type() );
- endif;
- } // End WHILE Loop
- } else {
- get_template_part( 'content', 'noposts' );
- } // End IF Statement
- woo_loop_after();
- woo_pagenav();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement