I’m trying to add a facebook/twitter/etc. share image (= the first media thumbnail of an item, if available) as a meta tag to my section in my theme. I’m not so familiar with APIs or how to do this best and couldn’t figure this out, as I could only get my thumbnail images in show.phtml but would require the $item array in layout.phtml.
So basically that’s what I’m seeking for:
<meta name="twitter:image" property="og:image" content="https://...large-thumnail-image-of-item.jpg">';
This might be a dump question but maybe I’m just not understanding the PHP Api fully, don’t have much experience with APIs or Omeka S Theming so far.
Thanks for your help,