Advertisement
Guest User

Parse error: syntax error, unexpected T_ENDWHILE

a guest
Sep 21st, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.30 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Product page
  4. */
  5. ?>
  6.  
  7. <?php get_header(); ?>
  8.  
  9. <?php get_sidebar(); ?>
  10.  
  11.     <div id="content">
  12.  
  13.     <?php if (have_posts()) : ?>
  14.  
  15.         <?php while (have_posts()) : the_post(); ?>
  16.  
  17.             <div class="post<?php the_category_unlinked(' '); ?>" id="post-<?php the_ID(); ?>">
  18.            
  19.             <?php if(!is_front_page()){ ?>
  20.             <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> 
  21.             <small><?php the_time('F jS, Y') ?> </small>
  22.            
  23.             <?php   }   ?>
  24.                
  25.                
  26.                
  27.                
  28.            
  29.  
  30.                 <div class="entry">
  31.                     <?php the_content('Read the rest of this entry &raquo;'); ?>
  32.                 </div>
  33.                
  34.                
  35.                
  36.                
  37.                 <?php
  38.                 $relatedvideos = get_post_custom_values('related_videos');
  39.                 if($relatedvideos != ''){ ?>
  40.                 <div class="relatedvideos">
  41.                 <h3>Related Videos</h3>
  42.                 <div class="tubepress_container" id="tubepress_gallery_236149327">
  43.                 <?php echo get_post_meta($post->ID, 'related_videos', true); ?>
  44.                 </div>
  45.                 <script type="text/javascript">
  46.     TubePressGallery.init(236149327, {
  47.         ajaxPagination : false,
  48.         embeddedHeight : "385",
  49.         embeddedWidth : "480",
  50.         fluidThumbs : true,
  51.         playerLocationName : "jqmodal",
  52.         shortcode : "%5Byoutube%20galleryId%3D%22236149327%22%5D",
  53.         themeCSS : ""
  54.     });
  55. </script>
  56.                
  57.                 </div>
  58.                
  59.                 <? } ?>
  60.                
  61.                
  62.                
  63.                
  64.                 <?php
  65.                 $childsafety = get_post_custom_values('child_safety');
  66.                 if($childsafety != ''){ ?>
  67.                 <div class="childsafety">
  68.                 <h3>Child Safety</h3>
  69.                 <p><?php echo get_post_meta($post->ID, 'child_safety', true); ?></p>
  70.                
  71.                 </div>
  72.                
  73.                 <? } ?>
  74.                
  75.                  <?php
  76.                 $cleaning = get_post_custom_values('care_cleaning');
  77.                 if($cleaning != ''){ ?>
  78.                
  79.                 <div class="carecleaning">
  80.                 <h3>Care &amp; Cleaning</h3>
  81.                 <p><?php echo get_post_meta($post->ID, 'care_cleaning', true); ?></p>
  82.                
  83.                 </div>
  84.                   <? } ?>
  85.                  
  86.                     <?php
  87.                 $energy = get_post_custom_values('energy_efficient');
  88.                 if($energy != ''){ ?>
  89.                
  90.                
  91.                 <div class="energyeff">
  92.                 <h3>Energy Efficiency</h3>
  93.                 <p><?php echo get_post_meta($post->ID, 'energy_efficient', true); ?></p>
  94.                
  95.                 </div>
  96.                  <? } ?>
  97.                  
  98.                     <?php
  99.                 $cost = get_post_custom_values('cost');
  100.                 if($cost != ''){ ?>
  101.                
  102.                 <div class="cost">
  103.                 <h3>Cost</h3>
  104.                 <p><?php echo get_post_meta($post->ID, 'cost', true); ?></p>
  105.                
  106.                 </div>
  107.                
  108.                 <? } ?>
  109.                  
  110.                  <div class="productspages">
  111.                 <h3>Related Products</h3>
  112.                 <ul><?php wp_list_pages('child_of=5&title_li='); ?> </ul>
  113.                
  114.                 </div>
  115.                
  116.                    <?php
  117.                 $keywords = get_post_custom_values('keywords');
  118.                 if($keywords != ''){ ?>
  119.                
  120.                 <div class="keywordtoggle">
  121.                 <h3>Keywords</h3>
  122.                 <p><?php echo get_post_meta($post->ID, 'keywords', true); ?></p>
  123.                
  124.                 </div>
  125.                
  126.                 <? } ?>
  127.                
  128.                <?php edit_post_link(); ?>
  129.  
  130.             </div>
  131.  
  132.         <?php endwhile; ?>
  133.  
  134.         <div class="navigation">
  135.             <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
  136.             <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
  137.         </div>
  138.  
  139.     <?php else : ?>
  140.  
  141.         <h2 class="center">Not Found</h2>
  142.         <p class="center">Sorry, but you are looking for something that isn't here.</p>
  143.         <?php include (TEMPLATEPATH . "/searchform.php"); ?>
  144.  
  145.     <?php endif; ?>
  146.  
  147.     </div>
  148.  
  149.  
  150. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement