function engine_thumbnail($type = 'archive') { if (!is_admin()) { // Thumbnail ID $thumb = get_post_thumbnail_id(); // Get place holder image if available $img_url = engine_placeholder_image(); // If has a featured image, get the URL if ($thumb) { $img_url = wp_get_attachment_url($thumb, 'full'); } $img = engine_resize($img_url, 700, 350, true); // Full Width Image // Set size for single if (is_singular() || is_front_page()) { $img = engine_resize($img_url, 700, 350, true); // Full Width Image if (!engine_content_position()) { $img = engine_resize($img_url, 940, 510, true); } if ($type == 'large') { $img = engine_resize($img_url, 940, 510, true); } // 1 Column if ($type == 'medium') { $img = engine_resize($img_url, 700, 350, true); } // 2 Column if ($type == 'small') { $img = engine_resize($img_url, 460, 250, true); } // 3 Column if ($type == 'smallest') { $img = engine_resize($img_url, 220, 120, true); } // 4 Column if ($type == 'tiny') { $img = engine_resize($img_url, 90, 50, true); } // Widget size } // Output the image if ($img) { ?> <img src="<?php echo $img; ?> " alt="<?php the_title(); ?> "/> <?php } } }
</div> <!-- /.post --> <?php get_template_part('parts/related'); ?> <?php // comments_template('', true); ?> </div> <!-- /.content small-12 large-9 column --> <?php if (engine_content_position() != 'large-12') { ?> <div class="sidebar small-12 large-3 column" id="sidebar"> <?php get_sidebar(); ?> </div> <!-- /#sidebar.sidebar small-12 large-3 column --> <?php } ?> </div> <!-- /.row --> <?php