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()
1 theme call to amp-social-post-theme.html.twig
- AmpSocialPost::getInfo in src/
Element/ AmpSocialPost.php - Returns the element properties for this element.
File
templates/amp-social-post-theme.html.twigView source
- {#
- /**
- * @file
- * 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 template_preprocess_amp_social_post_theme()
- */
- #}
- <amp-{{ provider }}{{ attributes }}>
- {% if placeholder %}
- <blockquote placeholder>
- {{ placeholder }}
- </blockquote>
- {% endif %}
- </amp-{{ provider }}>