function widget($args, $instance)
 {
     extract($args);
     global $post;
     $get_meta = get_post_custom($post->ID);
     if (is_singular() && !empty($get_meta['tie_review_position'][0])) {
         $title = apply_filters('widget_title', $instance['title']);
         $page_url = $instance['page_url'];
         echo $before_widget;
         if ($title) {
             echo $before_title;
         }
         echo $title;
         echo $after_title;
         echo tie_get_review('review-bottom');
         echo $after_widget;
     }
 }
Пример #2
0
					<?php 
        if (!empty($review_position) && ($review_position == 'top' || $review_position == 'both')) {
            echo tie_get_review('review-top');
        }
        ?>

					<?php 
        the_content();
        ?>
					<?php 
        wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'tie'), 'after' => '</div>'));
        ?>
					
					<?php 
        if (!empty($review_position) && ($review_position == 'bottom' || $review_position == 'both')) {
            echo tie_get_review('review-bottom');
        }
        ?>

					<?php 
        edit_post_link(__('Edit', 'tie'), '<span class="edit-link">', '</span>');
        ?>
				</div><!-- .entry /-->	
				<span style="display:none" class="updated"><?php 
        the_time('Y-m-d');
        ?>
</span>
				<?php 
        if (get_the_author_meta('google')) {
            ?>
				<div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="http://schema.org/Person"><strong class="fn" itemprop="name"><a href="<?php 
Пример #3
0
		}
		?>
		<article <?php if( !empty( $rv['review'] ) ) echo $rv['review']; post_class('post-listing post'); ?>>
			<?php get_template_part( 'includes/post-head' ); ?>
			<div class="post-inner">
				<h1 class="name post-title entry-title" itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing"><span itemprop="name"><?php the_title(); ?></span></h1>
				<p class="post-meta"></p>
				<div class="clear"></div>
				<div class="entry">
                    
                    <?php if( !empty( $review_position ) && ( $review_position == 'top' || $review_position == 'both'  ) ) echo tie_get_review('review-top'); ?>

					<?php the_content(); ?>
					<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'tie' ), 'after' => '</div>' ) ); ?>
					
					<?php if( !empty( $review_position ) && ( $review_position == 'bottom' || $review_position == 'both' ) ) echo tie_get_review('review-bottom'); ?>

					<?php edit_post_link( __( 'Edit', 'tie' ), '<span class="edit-link">', '</span>' ); ?>
				</div><!-- .entry /-->	
				<span style="display:none" class="updated"><?php the_time( 'Y-m-d' ); ?></span>
				<?php if ( get_the_author_meta( 'google' ) ){ ?>
				<div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="http://schema.org/Person"><strong class="fn" itemprop="name"><a href="<?php the_author_meta( 'google' ); ?>?rel=author">+<?php echo get_the_author(); ?></a></strong></div>
				<?php }else{ ?>
				<div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="http://schema.org/Person"><strong class="fn" itemprop="name"><?php the_author_posts_link(); ?></strong></div>
				<?php } ?>
				
			</div><!-- .post-inner -->
		</article><!-- .post-listing -->
		<?php endwhile; ?>
		<?php //Below Post Banner
		if( empty( $get_meta["tie_hide_below"][0] ) ){
Пример #4
0
function tie_shortcode_review($atts, $content = null)
{
    $output = tie_get_review('review-bottom');
    return $output;
}
Пример #5
0
function tie_shortcode_review($atts, $content = null)
{
    ob_start();
    tie_get_review('review-bottom');
    $output = ob_get_contents();
    ob_end_clean();
    return $output;
}