Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Shop Content Template
- *
- * This template is the default page content template. It is used to display the content of the
- * `single.php` template file, contextually, as well as in archive lists or search results.
- *
- * @package WooFramework
- * @subpackage Template
- */
- /**
- * Settings for this template file.
- *
- * This is where the specify the HTML tags for the title.
- * These options can be filtered via a child theme.
- *
- * @link http://codex.wordpress.org/Plugin_API#Filters
- */
- 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
- if ( $woo_options['woo_post_content'] == 'content' || is_single() ) { the_content(__('Continue Reading →', 'woothemes') ); } else { the_excerpt(); }
- if ( $woo_options['woo_post_content'] == 'content' || is_singular() ) wp_link_pages( $page_link_args );
- ?>
- </div><!-- /.entry -->
- <div style="display:inline-block;float:left;">
- <!-- Custom field for Product ID-->
- <?php $values = get_post_custom_values('Product_ID',$post->ID);
- if ($values){
- ?>
- <?php echo get_button_code_for_product($values[0]); ?>
- <?php } else { ?>
- <p>no btns</p>
- <?php } ?>
- <!-- End Custom field for Product ID-->
- </div>
- <div class="fix"></div>
- <div style="border-bottom:1px solid #382517"></div>
- <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(); }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment