Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php global $bpxl_techblaze_options; ?>
- <?php $bpxl_cover = rwmb_meta( 'bpxl_post_cover_show', $args = array('type' => 'checkbox'), $post->ID ); ?>
- <article <?php post_class(); ?>>
- <div id="post-<?php the_ID(); ?>" class="post-box">
- <?php
- if($bpxl_techblaze_options['bpxl_single_meta'] == '1') { ?>
- <div class="post-meta-top"><?php
- if($bpxl_techblaze_options['bpxl_single_post_meta_options']['3'] == '1') { ?>
- <div class="post-cats uppercase">
- <span>
- <?php $category = get_the_category();
- if ($category) {
- echo '<a href="' . get_category_link( $category[0]->term_id ) . '" title="' . sprintf( __( "View all posts in %s", "bloompixel" ), $category[0]->name ) . '" ' . '>' . $category[0]->name.'</a> ';
- } ?>
- </span>
- </div><?php
- // Post Format Icon
- get_template_part('template-parts/post-format-icons');
- }
- if($bpxl_cover == '0' || $bpxl_cover == '') {
- if($bpxl_techblaze_options['bpxl_post_meta_options']['2'] == '1') { ?>
- <span class="post-date"><time datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php the_time(get_option( 'date_format' )); ?></time></span><?php
- }
- } ?>
- </div><?php
- }
- if($bpxl_cover == '0' || $bpxl_cover == '') { ?>
- <header>
- <h1 class="title single-title"><?php the_title(); ?></h1>
- <?php
- if( $bpxl_techblaze_options['bpxl_single_meta'] == '1' && $bpxl_techblaze_options['bpxl_single_post_meta_pos'] == 'below_title' ) {
- // Post Meta
- get_template_part('template-parts/post-meta');
- }
- get_template_part('template-parts/post-meta-left');
- ?>
- </header><!--.header-->
- <?php }
- $bpxl_videourl = rwmb_meta( 'bpxl_videourl', $args = array('type' => 'text'), $post->ID );
- $bpxl_videohost = rwmb_meta( 'bpxl_videohost', $args = array('type' => 'text'), $post->ID );
- $bpxl_hosted_video = rwmb_meta( 'bpxl_hostedvideourl', $args = array('type' => 'file_advanced'), $post->ID );
- $bpxl_videocode = rwmb_meta( 'bpxl_videocode', $args = array('type' => 'textarea'), $post->ID );
- $bpxl_video_single = rwmb_meta( 'bpxl_video_single_hide', $args = array('type' => 'checkbox'), $post->ID );
- if($bpxl_techblaze_options['bpxl_single_featured'] == '1') {
- if(empty($bpxl_video_single)) {
- if ($bpxl_videocode != '') {
- echo $bpxl_videocode;
- } elseif($bpxl_videohost != '') {
- if (is_ssl()) {
- $src = 'https://';
- } else {
- $src = 'http://';
- }
- if ($bpxl_videohost == 'youtube') {
- $src .= 'www.youtube-nocookie.com/embed/'.$bpxl_videourl;
- } elseif ($bpxl_videohost == 'vimeo') {
- $src .= 'player.vimeo.com/video/'.$bpxl_videourl;
- } elseif ($bpxl_videohost == 'dailymotion') {
- $src .= 'www.dailymotion.com/embed/video/'.$bpxl_videourl;
- } elseif ($bpxl_videohost == 'metacafe') {
- $src .= 'www.metacafe.com/embed/'.$bpxl_videourl;
- } ?>
- <div class="post-format-content">
- <iframe src="<?php echo esc_url( $src ); ?>" class="vid iframe-<?php echo esc_attr( $bpxl_videohost ); ?>"></iframe>
- </div>
- <?php
- } elseif ($bpxl_hosted_video != NULL) { ?>
- <div class="post-format-content">
- <?php
- foreach ($bpxl_hosted_video as $bpxl_hosted_video_id) {
- echo do_shortcode( '[video src="'. esc_url( $bpxl_hosted_video_id['url'] ) .'"][/video]' );
- }
- ?>
- </div>
- <?php }
- }
- }
- ?>
- <div class="post-inner">
- <div class="post-content single-post-content">
- <?php if($bpxl_techblaze_options['bpxl_below_title_ad'] != '') { ?>
- <div class="single-post-ad">
- <?php echo $bpxl_techblaze_options['bpxl_below_title_ad']; ?>
- </div>
- <?php } ?>
- <?php the_content(); ?>
- <?php if($bpxl_techblaze_options['bpxl_below_content_ad'] != '') { ?>
- <div class="single-post-ad">
- <?php echo $bpxl_techblaze_options['bpxl_below_content_ad']; ?>
- </div>
- <?php } ?>
- <?php bpxl_wp_link_pages() ?>
- </div><!--.single-post-content-->
- </div><!--.post-inner-->
- <?php
- if($bpxl_techblaze_options['bpxl_show_share_buttons'] == '1') {
- if($bpxl_techblaze_options['bpxl_share_buttons_pos'] == 'below_content') {
- get_template_part('template-parts/share-buttons');
- }
- }
- ?>
- </div><!--.post excerpt-->
- </article><!--.post-box-->
Advertisement
Add Comment
Please, Sign In to add comment