diff --git a/modules/jumpstart_ui/dist/templates/decanter/components/card/card.twig b/modules/jumpstart_ui/dist/templates/decanter/components/card/card.twig index cf7b6592..fc2ff4f8 100644 --- a/modules/jumpstart_ui/dist/templates/decanter/components/card/card.twig +++ b/modules/jumpstart_ui/dist/templates/decanter/components/card/card.twig @@ -54,7 +54,7 @@ {%- endif -%} {%- endif -%} -
+<{{ is_article or card_headline is not empty ? "article" : "div" }} {{ attributes }} class="su-card {{ modifier_class }}"> {# For variant where whole card is a link, add an within the outer wrapper
#} {%- if allow_links == false %} @@ -125,7 +125,7 @@ {% endif %} {% endblock block_card_media -%} -
+
{# Card Super Headline #} {%- block block_card_super_headline %} {% if card_super_headline is not empty %} @@ -171,8 +171,10 @@
{% endif -%} {% endblock -%} -
{# end of .su-card__contents #} +
{# end of .su-card__contents #} + {%- if allow_links == false %} {%- endif -%} -
+ + diff --git a/modules/stanford_basic_page_types/stanford_basic_page_types.module b/modules/stanford_basic_page_types/stanford_basic_page_types.module index 62d2ed4c..3b4e3ba9 100644 --- a/modules/stanford_basic_page_types/stanford_basic_page_types.module +++ b/modules/stanford_basic_page_types/stanford_basic_page_types.module @@ -8,6 +8,14 @@ use Drupal\node\NodeInterface; use Symfony\Component\Finder\Finder; + +/** + * Implements hook_preprocess_HOOK(). + */ +function stanford_basic_page_types_preprocess_pattern_card__layout__node__stanford_page(&$variables) { + $variables['is_article'] = true; +} + /** * Implements hook_page_attachments(). */ diff --git a/modules/stanford_events/templates/components/list/list.html.twig b/modules/stanford_events/templates/components/list/list.html.twig index 89486e1d..4945b7e8 100644 --- a/modules/stanford_events/templates/components/list/list.html.twig +++ b/modules/stanford_events/templates/components/list/list.html.twig @@ -38,7 +38,7 @@ {%- endif -%} {% set header_tag = variant == 'h3_header' ? 'h3' : 'h2' %} -
+
-{# {% endif %}#} - - {# Edit this Event #} -
{{- edit -}}
- +
- + diff --git a/modules/stanford_person/stanford_person.module b/modules/stanford_person/stanford_person.module index f6679948..b1116e7d 100755 --- a/modules/stanford_person/stanford_person.module +++ b/modules/stanford_person/stanford_person.module @@ -17,6 +17,13 @@ use Drupal\taxonomy\TermInterface; use Drupal\views\Plugin\views\cache\CachePluginBase; use Drupal\views\ViewExecutable; +/** + * Implements hook_preprocess_HOOK(). + */ +function stanford_person_preprocess_pattern_card__layout__node__stanford_person(&$variables) { + $variables['is_article'] = true; +} + /** * Implements hook_preprocess_node(). */ diff --git a/modules/stanford_policy/stanford_policy.module b/modules/stanford_policy/stanford_policy.module new file mode 100644 index 00000000..e391978a --- /dev/null +++ b/modules/stanford_policy/stanford_policy.module @@ -0,0 +1,13 @@ +