if (class_exists('Dynamic_Featured_Image')) { $featured_images = $dynamic_featured_image->get_featured_images($id); } if (isset($featured_images[0])) { echo '<img src="' . $featured_images[0]['full'] . '" />'; } else { if (has_post_thumbnail()) { the_post_thumbnail('full'); } } ?> <div class="single-header"> <div class="col-offset-center"> <div class="author meta">Electronic</div> <div class="date meta"><?php the_timestamp(); ?> ago</div> <h1><?php the_title(); ?> </h1> </div> </div> </section> <section class="single-body"> <div class="col-fixed col-fixed-left pull-left" style="height:1800px;"> <?php echo author_biography();
function video_post($blogID = 1, $args = array()) { min_switch_to_blog($blogID); $id = get_the_ID(); exclude_this_post($blogID, $id); $defaults = array('beatmersive' => false); // merge arguments with defaults && set keys as variables $args = array_merge($defaults, $args); foreach ($args as $key => $val) { ${$key} = $val; } $hyperlink = get_permalink(); if ($beatmersive) { $hyperlink = addhttp(get_post_meta($id, 'db_beatmersive_hyperlink', true)); } $external = ''; if ($blogID > 1 || $beatmersive) { $external = 'external-link'; } ?> <article class="video-post"> <a href="<?php echo $hyperlink; ?> "> <div class="featured-image" data-src="<?php echo get_thumb_url(700, 700); ?> "> <div class="play-overlay"> <span class="fa-stack"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-play-circle fa-stack-1x"></i> </span> </div> </div> </a> <div class="caption"> <?php if (!$beatmersive) { ?> <h6 class="post-meta"> <span class="timestamp"><?php the_timestamp(); ?> </span> - <span class="author"><?php the_author_posts_link(); ?> </span> <?php if ($blogID > 1) { ?> via <?php echo blog_svg($blogID, 0); } ?> </h6> <?php } ?> <a href="<?php echo $hyperlink; ?> "><h2 class="<?php echo $external; ?> "><?php the_title(); ?> </h2></a> </div> </article> <?php }