-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-full.php
62 lines (60 loc) · 2.77 KB
/
single-full.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php get_header(); ?>
<!--<?php
$featured_image = false;
if ( '' != get_the_post_thumbnail() ) :
$featured_image = true;
?>
<div class="post-thumbnail">
<div class="container">
<h1 class="post-heading"><?php the_title(); ?></h1>
</div>
</div>
<?php endif; ?>
-->
<div class="page-wrap container fullwidth">
<?php get_template_part( 'includes/breadcrumbs', 'index' ); ?>
<div class="title-bg"><h1 class="main-title show"><?php the_title(); ?></h1></div>
<div id="main-content">
<div class="main-content-wrap clearfix">
<div id="content">
<div id="left-area">
<?php while ( have_posts() ) : the_post(); ?>
<?php if (et_get_option('nexus_integration_single_bottom') <> '' && et_get_option('nexus_integrate_singlebottom_enable') == 'on') echo(et_get_option('nexus_integration_single_bottom')); ?>
<article class="entry-content clearfix">
<?php if ( ! $featured_image ) : ?>
<h1 class="main-title"><?php the_title(); ?></h1>
<?php endif; ?>
<!--<?php et_nexus_post_meta(); ?>
<?php if ( ( $review_rating = get_post_meta( get_the_ID(), '_et_author_rating', true ) ) && '' !== $review_rating ) : ?>
<span class="review-rating"><span style="width: <?php echo $review_rating * 33.5; ?>px;"></span></span>
<?php endif; ?>-->
<?php
if ( has_post_format( 'video' ) ) {
global $wp_embed;
$video_width = (int) apply_filters( 'nexus_video_width', 838 );
$et_video_url = get_post_meta( get_the_ID(), '_format_video_embed', true );
$video = apply_filters( 'the_content', $wp_embed->shortcode( '', esc_url( $et_video_url ) ) );
$video = preg_replace('/<embed /','<embed wmode="transparent" ',$video);
$video = preg_replace('/<\/object>/','<param name="wmode" value="transparent" /></object>',$video);
$video = preg_replace("/width=\"[0-9]*\"/", "width={$video_width}", $video);
echo '<div class="et-single-video">' . $video . '</div>';
}
?>
<?php
the_content();
wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'Nexus' ), 'after' => '</div>' ) );
?>
<?php echo do_shortcode('[shareaholic app="share_buttons" id="6361707"]'); ?>
</article> <!-- .entry -->
<?php if (et_get_option('nexus_integration_single_bottom') <> '' && et_get_option('nexus_integrate_singlebottom_enable') == 'on') echo(et_get_option('nexus_integration_single_bottom')); ?>
<?php
if ( comments_open() && 'on' == et_get_option( 'nexus_show_postcomments', 'on' ) )
comments_template( '', true );
?>
<?php endwhile; ?>
</div> <!-- end #left-area -->
</div> <!-- #content -->
</div> <!-- .main-content-wrap -->
<?php get_template_part( 'includes/footer-banner', 'single' ); ?>
</div> <!-- #main-content -->
<?php get_footer(); ?>