Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Single Image
- */
- ?>
- <?php get_header(); ?>
- <?php include(TEMPLATEPATH . '/includes/breadcrumbs.php'); ?>
- <div id="left-area"<?php if ($fullwidth) echo ' class="fullwidth"'; ?>>
- <div class="big-box">
- <div class="big-box-top">
- <div class="big-box-content">
- <div class="post clearfix single">
- <?php
- $pid = $_GET["pid"];
- $pid = ereg_replace("[^0-9]", "", $pid);
- $shortcode_output = do_shortcode('[singlepic id="' . $pid . '" w="" h=""]');
- if ($shortcode_output=="[SinglePic not found]"){
- echo ("No picture here");
- }else {
- echo do_shortcode('[singlepic id="' . $pid . '" w="" h=""]');
- }?>
- </div> <!-- end .post-->
- </div> <!-- end .big-box-content-->
- </div> <!-- end .big-box-top-->
- </div> <!-- end .big-box-->
- </div> <!-- end #left-area -->
- <?php if (!$fullwidth) get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement