Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php global $bpxl_techblaze_options; ?>
- <article <?php post_class(); ?>>
- <div id="post-<?php the_ID(); ?>" class="post-box">
- <?php
- if($bpxl_techblaze_options['bpxl_post_meta'] == '1') { ?>
- <div class="post-meta-top"><?php
- if($bpxl_techblaze_options['bpxl_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 Icons
- get_template_part('template-parts/post-format-icons');
- }
- 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
- }
- $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 );
- 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">
- <?php get_template_part('template-parts/post-header'); ?>
- <?php if ( is_search() ) { ?>
- <div class="post-content entry-summary">
- <?php the_excerpt(); ?>
- </div><!-- .entry-summary -->
- <?php } else { ?>
- <div class="post-content entry-content">
- <?php
- if($bpxl_techblaze_options['bpxl_home_content'] == '1') {
- the_excerpt(); ?>
- <div class="read-more">
- <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php _e('Read More','bloompixel'); ?></a>
- </div><?php
- } else {
- the_content( __('Read More','bloompixel') );
- } ?>
- </div><!--post-content-->
- <?php }
- if($bpxl_techblaze_options['bpxl_show_home_share_buttons'] == '1') {
- if($bpxl_techblaze_options['bpxl_home_share_buttons_pos'] == 'below_content') {
- get_template_part('template-parts/share-buttons');
- }
- }
- ?>
- </div><!--.post-inner-->
- </div><!--.post excerpt-->
- </article><!--.post-box-->
Advertisement
Add Comment
Please, Sign In to add comment