Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Index Template
- *
- * Here we setup all logic and XHTML that is required for the index template, used as both the homepage
- * and as a fallback template, if a more appropriate template file doesn't exist for a specific context.
- *
- * @package WooFramework
- * @subpackage Template
- */
- get_header();
- global $woo_options;
- /**
- * The Variables
- *
- * Setup default variables, overriding them if the "Theme Options" have been saved.
- */
- $settings = array(
- 'thumb_w' => 75,
- 'thumb_h' => 75,
- 'thumb_align' => 'alignleft',
- 'enable_searchbox' => 'true',
- 'enable_filterbar' => 'true'
- );
- $settings = woo_get_dynamic_values( $settings );
- ?>
- <div id="content" class="col-full">
- <section id="main" class="col-right">
- <?php
- // Load the front page search form.
- if ( $settings['enable_searchbox'] == 'true' ) {
- get_template_part( 'includes/advanced-search-form' );
- }
- // Load the filter bar.
- if ( $settings['enable_filterbar'] == 'true' ) {
- get_template_part( 'includes/filter-bar' );
- }
- ?>
- <center>
- <script type="text/javascript"><!--
- google_ad_client = "ca-pub-0044915326038182";
- /* Leader board 728 x 90 */
- google_ad_slot = "6866417018";
- google_ad_width = 728;
- google_ad_height = 90;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>
- </center>
- <br>
- <?php if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?>
- <section id="breadcrumbs">
- <?php woo_breadcrumbs(); ?>
- </section><!--/#breadcrumbs -->
- <?php } ?>
- <?php
- // To customise the query used on this template, please uncomment the code below.
- /*
- $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; query_posts( array( 'post_type' => 'post', 'paged' => $paged ) );
- */
- ?>
- <?php /* #entries DIV used in the AJAX search. */ ?>
- <div id="entries">
- <?php
- if ( have_posts() ) { $count = 0;
- while ( have_posts() ) { the_post(); $count++;
- ?>
- <!-- Post Starts -->
- <article <?php post_class(); ?>>
- <?php
- $image = woo_image( 'return=true&width=' . $settings['thumb_w'] . '&height=' . $settings['thumb_h'] . '&link=img&class=thumbnail' );
- if ( $image != '' ) {
- ?>
- <?php if ( isset( $woo_options['woo_post_content'] ) && $woo_options['woo_post_content'] != 'content' ) { ?>
- <div class="drop-shadow curved curved-hz-1 <?php echo $settings['thumb_align']; ?>">
- <a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>" >
- <?php echo $image; ?>
- </a>
- </div><!--/.drop-shadow-->
- <?php }} ?>
- <div class="container">
- <header>
- <h1 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
- <?php woo_post_meta(); ?>
- </header>
- <section class="entry">
- <?php if ( isset( $woo_options['woo_post_content'] ) && $woo_options['woo_post_content'] == 'content' ) { the_content( __( 'Continue Reading →', 'woothemes' ) ); } else { the_excerpt(); } ?>
- </section>
- <div class="comments">
- <?php comments_popup_link( __( '0', 'woothemes' ), __( '1', 'woothemes' ), __( '%', 'woothemes' ) ); ?>
- </div>
- </div><!-- /.container -->
- <div class="fix"></div>
- </article><!-- /.post -->
- <?php
- } // End WHILE Loop
- } else {
- ?>
- <article <?php post_class(); ?>>
- <p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
- </article><!-- /.post -->
- <?php } ?>
- <center>
- <script type="text/javascript"><!--
- google_ad_client = "ca-pub-0044915326038182";
- /* Leader board 728 x 90 */
- google_ad_slot = "6866417018";
- google_ad_width = 728;
- google_ad_height = 90;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>
- </center>
- <?php if ( isset( $woo_options['woo_pagenav_show'] ) && $woo_options['woo_pagenav_show'] == 'true' ) { woo_pagenav(); } ?>
- </div><!--/#entries-->
- </section><!-- /#main -->
- <?php get_sidebar(); ?>
- </div><!-- /#content -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement