|Posted: Wed, 2012-05-16 16:14|
To offer a thumb to facebook via the "og:image"-metatag I've chosen the following if/else-function to switch: If it's the root, a standard-picture will be shown, if it's not, the thumb-url (of the album or of the big picture itself) will be placed there. So far so good, but it doesn't work with module "TAG". When I open a tag, the script stopps exactly when the 2nd version starts (after <? else: ?><meta property="og:image" content="http://XYZ/). So in the html-source it ends at: <meta property="og:image" content="http://XYZ/
<? if ($theme->item() && $theme->item()->id == item::root()->id): ?>
What's wrong? How to avoid this issue?