Advertisement
Guest User

Untitled

a guest
Oct 30th, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?php
  2.                             $filename = '<?php get_site_url(); ?>data/uploads/<?php get_page_slug(); ?>.jpg';
  3.                            
  4.                             if (file_exists($filename)) {
  5.                                 echo "<span class=\"image main\"><img src=.".$filename.". alt=\"\" /></span>";
  6.                                 } else {
  7.                                     echo "";
  8.                                     }
  9.                             ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement