Created
December 9, 2016 08:29
-
-
Save koentjuh1/459c914f6544cac58e4bb35122220140 to your computer and use it in GitHub Desktop.
Check if afbeelding isset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (strlen($nieuwsbericht->afbeelding) > 0 && file_exists(PUBLIC_PATH . '/' . $nieuwsbericht->afbeelding)) { | |
?> | |
<img itemprop="image" src="<?=getCrop($nieuwsbericht->afbeelding, '389x373')?>" alt=""> | |
<?php | |
} else { | |
?> | |
<img itemprop="image" src="images/nieuws-lorum.jpg" alt=""> | |
<?php | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment