You are here

amp-social-post-theme.html.twig in Accelerated Mobile Pages (AMP) 8.3

Template for amp-social-post-theme.

Available variables:

  • provider: The social provider.
  • placeholder: Placeholder for amp-twitter.
  • attributes: The HTML attributes for amp-facebook:
    • layout: The layout of the element.
    • height: The height of the element.
    • width: The width of the element.
    • data-embed-as: Embed as post or video.
    • data-align-center: Center align or not.

See also

template_preprocess_amp_social_post_theme()

File

templates/amp-social-post-theme.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for amp-social-post-theme.
  5. *
  6. * Available variables:
  7. * - provider: The social provider.
  8. * - placeholder: Placeholder for amp-twitter.
  9. * - attributes: The HTML attributes for amp-facebook:
  10. * - layout: The layout of the element.
  11. * - height: The height of the element.
  12. * - width: The width of the element.
  13. * - data-embed-as: Embed as post or video.
  14. * - data-align-center: Center align or not.
  15. *
  16. * @see template_preprocess_amp_social_post_theme()
  17. */
  18. #}
  19. <amp-{{ provider }}{{ attributes }}>
  20. {% if placeholder %}
  21. <blockquote placeholder>
  22. {{ placeholder }}
  23. </blockquote>
  24. {% endif %}
  25. </amp-{{ provider }}>