From dfe866ddbbcd5935a73cdb4e6fb13b68d15164cf Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Thu, 8 Feb 2024 16:51:40 -0800 Subject: [PATCH] Added oembed placeholder template --- .../oembed-lazyload-placeholder.html.twig | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 themes/stanford_basic/templates/contrib/oembed-lazyload-placeholder.html.twig diff --git a/themes/stanford_basic/templates/contrib/oembed-lazyload-placeholder.html.twig b/themes/stanford_basic/templates/contrib/oembed-lazyload-placeholder.html.twig new file mode 100644 index 000000000..7b1497433 --- /dev/null +++ b/themes/stanford_basic/templates/contrib/oembed-lazyload-placeholder.html.twig @@ -0,0 +1,35 @@ +{# +/** + * @file + * Default theme implementation of a an oembed lazyload placeholder. + * + * Available variables: + * - title: The oembed resource title. + * - url: The oembed resource url. + * - provider: The provider of the oembed content. + * - settings: The configured formatter settings. + * - third_party_settings: Any third party settings passed on by a specific provider. + * + * @see template_preprocess_oembed_lazyload_placeholder() + * + * @ingroup themeable + */ +#} +{% apply spaceless %} + {% if title is empty %} + {% set title = '' %} + {% endif %} + {% if settings['strategy'] == 'onclick' %} + + {% else %} + + + + {% endif %} +{% endapply %}