File: /homepages/4/d4297730999/htdocs/wordpress/wp-content/themes/kamini-wp/products.php
<?php
/*
Template Name: Products
*/
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php if (!is_page('testimonials')) { ?>
<?php if (class_exists('MultiPostThumbnails')
&& MultiPostThumbnails::has_post_thumbnail('page', 'secondary-image')) :
MultiPostThumbnails::the_post_thumbnail('page', 'secondary-image'); endif; ?>
<?php }; ?>
</header><!-- .entry-header -->
<div class="entry-content">
<div style="float:left;width:600px;margin-right:40px">
<?php the_content(); ?>
</div>
<div style="float:left;width:460px;margin-top:-15px">
<img src="<?php $key="right image"; echo get_post_meta($post->ID, $key, true); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
</div>
<div style="display:block;clear:both">
<?php
if ( get_post_meta($post->ID, 'before and after', true) )
echo '<h3>Before and After</h3>';
echo do_shortcode(get_post_meta($post->ID, 'before and after', $single = true));
?>
</div>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_footer(); ?>