-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-operacoes.php
83 lines (81 loc) · 3.36 KB
/
single-operacoes.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php get_header(); ?>
<div class="image-header"><img src="<?php echo $cfs->get('header_image') ?>" alt=""></div>
<!--<?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">
<div id="main-content">
<div class="main-content-wrap clearfix">
<div id="content">
<?php get_template_part( 'includes/breadcrumbs', 'index' ); ?>
<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 endwhile; ?>
</div> <!-- end #left-area -->
</div> <!-- #content -->
<div id="sidebar">
<div class="assista widget">
<h4 class="widgettitle">Assista à aula</h4>
<div class="recent-video-slides">
<div class="et-recent-video">
<img src="<?php echo $cfs->get('assista_img') ?>" width='321' height='214' />
<a href="#assista" class="et-recent-video-play fancybox"></a>
</div>
</div>
</div>
<div class="veja widget">
<h4 class="widgettitle">Veja o vídeo</h4>
<div class="recent-video-slides">
<div class="et-recent-video">
<img src="<?php echo $cfs->get('veja_img') ?>" width='321' height='214' />
<a href="#veja" class="et-recent-video-play fancybox"></a>
</div>
</div>
</div>
</div>
</div> <!-- .main-content-wrap -->
<!-- video posts divs -->
<div class="et_embedded_videos">
<div id="assista">
<iframe width="838" height="471" src="//www.youtube.com/embed/<?php echo $cfs->get('assista_url') ?>" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div class="et_embedded_videos">
<div id="veja">
<iframe width="838" height="471" src="//www.youtube.com/embed/<?php echo $cfs->get('veja_url') ?>" frameborder="0" allowfullscreen></iframe>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_template_part( 'includes/footer-banner', 'single' ); ?>
</div> <!-- #main-content -->
<?php get_footer(); ?>