HenryMKalango

Single_image Kalango Seco

Oct 9th, 2012
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. Template Name: Single Image
  4. */
  5. ?>
  6.  
  7.  
  8. <?php get_header(); ?>
  9.  
  10. <?php include(TEMPLATEPATH . '/includes/breadcrumbs.php'); ?>
  11.  
  12. <div id="left-area"<?php if ($fullwidth) echo ' class="fullwidth"'; ?>>
  13. <div class="big-box">
  14. <div class="big-box-top">
  15. <div class="big-box-content">
  16. <div class="post clearfix single">
  17.  
  18. <?php
  19. $pid = $_GET["pid"];
  20. $pid = ereg_replace("[^0-9]", "", $pid);
  21.  
  22. $shortcode_output = do_shortcode('[singlepic id="' . $pid . '" w="" h=""]');
  23. if ($shortcode_output=="[SinglePic not found]"){
  24. echo ("No picture here");
  25. }else {
  26. echo do_shortcode('[singlepic id="' . $pid . '" w="" h=""]');
  27. }?>
  28.  
  29.  
  30.  
  31. </div> <!-- end .post-->
  32. </div> <!-- end .big-box-content-->
  33. </div> <!-- end .big-box-top-->
  34. </div> <!-- end .big-box-->
  35.  
  36. </div> <!-- end #left-area -->
  37.  
  38. <?php if (!$fullwidth) get_sidebar(); ?>
  39.  
  40. <?php get_footer(); ?>
RAW Paste Data