Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Product page
- */
- ?>
- <?php get_header(); ?>
- <?php get_sidebar(); ?>
- <div id="content">
- <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="post<?php the_category_unlinked(' '); ?>" id="post-<?php the_ID(); ?>">
- <?php if(!is_front_page()){ ?>
- <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <small><?php the_time('F jS, Y') ?> </small>
- <?php } ?>
- <div class="entry">
- <?php the_content('Read the rest of this entry »'); ?>
- </div>
- <?php
- $relatedvideos = get_post_custom_values('related_videos');
- if($relatedvideos != ''){ ?>
- <div class="relatedvideos">
- <h3>Related Videos</h3>
- <div class="tubepress_container" id="tubepress_gallery_236149327">
- <?php echo get_post_meta($post->ID, 'related_videos', true); ?>
- </div>
- <script type="text/javascript">
- TubePressGallery.init(236149327, {
- ajaxPagination : false,
- embeddedHeight : "385",
- embeddedWidth : "480",
- fluidThumbs : true,
- playerLocationName : "jqmodal",
- shortcode : "%5Byoutube%20galleryId%3D%22236149327%22%5D",
- themeCSS : ""
- });
- </script>
- </div>
- <? } ?>
- <?php
- $childsafety = get_post_custom_values('child_safety');
- if($childsafety != ''){ ?>
- <div class="childsafety">
- <h3>Child Safety</h3>
- <p><?php echo get_post_meta($post->ID, 'child_safety', true); ?></p>
- </div>
- <? } ?>
- <?php
- $cleaning = get_post_custom_values('care_cleaning');
- if($cleaning != ''){ ?>
- <div class="carecleaning">
- <h3>Care & Cleaning</h3>
- <p><?php echo get_post_meta($post->ID, 'care_cleaning', true); ?></p>
- </div>
- <? } ?>
- <?php
- $energy = get_post_custom_values('energy_efficient');
- if($energy != ''){ ?>
- <div class="energyeff">
- <h3>Energy Efficiency</h3>
- <p><?php echo get_post_meta($post->ID, 'energy_efficient', true); ?></p>
- </div>
- <? } ?>
- <?php
- $cost = get_post_custom_values('cost');
- if($cost != ''){ ?>
- <div class="cost">
- <h3>Cost</h3>
- <p><?php echo get_post_meta($post->ID, 'cost', true); ?></p>
- </div>
- <? } ?>
- <div class="productspages">
- <h3>Related Products</h3>
- <ul><?php wp_list_pages('child_of=5&title_li='); ?> </ul>
- </div>
- <?php
- $keywords = get_post_custom_values('keywords');
- if($keywords != ''){ ?>
- <div class="keywordtoggle">
- <h3>Keywords</h3>
- <p><?php echo get_post_meta($post->ID, 'keywords', true); ?></p>
- </div>
- <? } ?>
- <?php edit_post_link(); ?>
- </div>
- <?php endwhile; ?>
- <div class="navigation">
- <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
- <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
- </div>
- <?php else : ?>
- <h2 class="center">Not Found</h2>
- <p class="center">Sorry, but you are looking for something that isn't here.</p>
- <?php include (TEMPLATEPATH . "/searchform.php"); ?>
- <?php endif; ?>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement