You are here

instagram-block-image.html.twig in Instagram Block 8

Default theme implementation of an Instagram image link.

Available variables:

  • data: The entire data array returned from the Instagram API request.
  • href: The url to the Instagram post page.
  • src: The source url to the instagram image.
  • width: The display width of the image.
  • height: The display height of the image.

File

templates/instagram-block-image.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of an Instagram image link.
  5. *
  6. * Available variables:
  7. * - data: The entire data array returned from the Instagram API request.
  8. * - href: The url to the Instagram post page.
  9. * - src: The source url to the instagram image.
  10. * - width: The display width of the image.
  11. * - height: The display height of the image.
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. {% spaceless %}
  17. <a class="group" target="_blank" rel="group1" href="{{ href }}">
  18. <img height="{{ height }}px" width="{{ width }}px" src="{{ src }}">
  19. </a>
  20. {% endspaceless %}