Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $filename = '<?php get_site_url(); ?>data/uploads/<?php get_page_slug(); ?>.jpg';
- if (file_exists($filename)) {
- echo "<span class=\"image main\"><img src=.".$filename.". alt=\"\" /></span>";
- } else {
- echo "";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement