Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @package GeneratePress
- */
- $generate_settings = wp_parse_args(
- get_option( 'generate_settings', array() ),
- generate_get_defaults()
- );
- ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemprop="blogPost" itemtype="http://schema.org/BlogPosting" itemscope="itemscope">
- <div class="inside-article">
- <?php do_action( 'generate_before_content'); ?>
- <?php
- if ( "retailers" == get_post_type() ) {
- $field = get_field_object('trusted_retailer');
- $trusted = get_field("trusted_retailer");
- $labeller = $field['choices'][ $trusted ];
- if (!empty($trusted)) { echo '<div class="smalltitle">' . $labeller . ' [<a href="/trusted-retailers">?</a>]</div>'; }
- }
- ?>
- <header class="entry-header">
- <?php the_title( sprintf( '<h2 class="entry-title" itemprop="headline"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
- <div class="entry-meta">
- <?php generate_posted_on(); ?>
- </div><!-- .entry-meta -->
- </header><!-- .entry-header -->
- <?php do_action( 'generate_after_entry_header'); ?>
- <?php
- // Check to see if the more tag is being used
- $more_tag = apply_filters( 'generate_more_tag', @strpos( $post->post_content, '<!--more-->' ) );
- // Check the post format
- $format = ( false !== get_post_format() ) ? get_post_format() : 'standard';
- // Show the_content() or the the_excerpt() based on settings
- if ( is_search() || ( 'standard' == $format && false == $more_tag ) ) : ?>
- <div class="entry-summary" itemprop="text">
- <?php the_excerpt(); ?>
- </div><!-- .entry-summary -->
- <?php else : ?>
- <div class="entry-content" itemprop="text">
- <?php the_content(); ?>
- <?php
- wp_link_pages( array(
- 'before' => '<div class="page-links">' . __( 'Pages:', 'generate' ),
- 'after' => '</div>',
- ) );
- ?>
- </div><!-- .entry-content -->
- <?php endif; ?>
- <?php do_action( 'generate_after_entry_content'); ?>
- <footer class="entry-meta">
- <?php generate_entry_meta(); ?>
- </footer><!-- .entry-meta -->
- <?php do_action( 'generate_after_content'); ?>
- </div><!-- .inside-article -->
- </article><!-- #post-## -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement