Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Post 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
- */
- $settings = array(
- 'thumb_w' => 100,
- 'thumb_h' => 100,
- 'thumb_align' => 'alignleft',
- 'post_content' => 'excerpt',
- 'comments' => 'both',
- );
- $settings = woo_get_dynamic_values( $settings );
- $title_before = '<h1 class="title entry-title">';
- $title_after = '</h1>';
- if ( ! is_single() ) {
- $title_before = '<h2 class="title entry-title">';
- $title_after = '</h2>';
- $title_before = $title_before . '<a href="' . esc_url( 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();
- ?>
- <article <?php post_class(); ?>>
- <?php
- woo_post_inside_before();
- if (is_archive() ) {
- if (has_post_thumbnail() ) { the_post_thumbnail('prop-img', array( 'class' => 'propimg' ));
- } else {
- echo '<img class="prop-image" src="http://legacylandsllc.com/wp/wp-content/uploads/2016/03/IMG_4938-700x5255-1.jpg" width=600 />';
- }
- }
- if (! is_archive() ) { ?>
- <header>
- <?php the_title( $title_before, $title_after ); ?>
- </header>
- <?php }
- if (is_single() ) { include(locate_template('/includes/prop-top.php')); }
- ?>
- <section class="entry">
- <?php
- if (is_archive() ) {
- the_title($title_before,$title_after);
- if ( get_post_meta($post->ID, "_spprice", true) != '') { ?>
- <p>Price: $<?php $key="_spprice"; echo number_format(get_post_meta($post->ID, $key, true) ); ?></p>
- <?php };
- }
- if ( is_single() ) { the_content( __( 'Read More →', 'woothemes' ) ); } else {
- the_excerpt();
- echo '<a class="more-link" href="' . esc_url( get_permalink( get_the_ID() ) ) . '">READ MORE → </a>'; }
- if ( 'content' == $settings['post_content'] || is_singular() ) wp_link_pages( $page_link_args );
- ?>
- </section><!-- /.entry -->
- <div class="fix"></div>
- <?php
- woo_post_inside_after();
- ?>
- </article><!-- /.post -->
- <?php
- woo_post_after();
- $comm = $settings['comments'];
- if ( ( 'post' == $comm || 'both' == $comm ) && is_single() ) { comments_template(); }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement