* Main Theme * Page file. * * @author Joe Steer */ ?> <?php get_header(); if (class_exists('Dynamic_Featured_Image')) { global $dynamic_featured_image; $featured_images = $dynamic_featured_image->get_featured_images(); $featured_images = $featured_images[0]['full']; } if (empty($featured_images)) { $featured_images = defaultImage(); } ?> <div class="container containerTitle" style="background: linear-gradient(to bottom, rgba(52, 73, 94, 0.70), rgba(44, 62, 80, 0.90)), url('<?php echo $featured_images; ?> ') no-repeat center center;-webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover; "> <h2><?php the_title(); ?> </h2> </div> <div class="container content"> <?php if (have_posts()) {
function getEmailAsset($filename, $title = "Eclipse Tourism") { if (!empty($filename)) { return '<img src="' . asset('images/email/' . $filename) . '" alt="' . $title . '" title="' . $title . '" class="responsive-img" />'; } return defaultImage($title); }
function getEmailAsset($filename) { if (!empty($filename)) { return '<img src="' . asset('images/email/' . $filename) . '" alt="' . config('eclipse.name') . '" title="' . config('eclipse.name') . '" class="responsive-img" />'; } return defaultImage($title); }
?> <div class="row post-item"> <?php } else { ?> <div class="row padBottom"> <?php } ?> <?php if (class_exists('Dynamic_Featured_Image')) { $thumbnailImage = $dynamic_featured_image->get_featured_images(get_the_ID()); } $thumbnailImage = $thumbnailImage[0]['full']; if (empty($thumbnailImage)) { $thumbnailImage = defaultImage(); } ?> <div class="col-sm-3"> <div class="imageContainer"> <div class="imagePrev"> <img src="<?php echo $thumbnailImage; ?> " /> </div> </div> </div> <div class="col-sm-9"> <div class="postTitle"> <h3>
function getPhoto($filename, $title = "Eclipse Tourism", $class = "img-rounded") { if (!empty($filename)) { return '<img src="' . asset('images/' . $filename) . '" alt="' . $title . '" title="' . $title . '" class="responsive-img ' . $class . '" />'; } else { return defaultImage($title); } }