Advertisement
gilzow

getFeaturedImage()

Jun 25th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. /**
  2. * If the image data wasn't already requested, ask for it
  3. */
  4. if(!isset($objPublication->image{
  5.     $objPublication->getFeaturedImage();
  6. }
  7.  
  8. /**
  9. * Now the featured image data has been retrieved and is available
  10. * just like it would be if it had been enabled at the controller
  11. * level
  12. */
  13. if($objPublication->image != ''){
  14.     //keep on truckin' !!!
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement