-
- {% for item in accordion_items %}
-
-
- {% if item.title is not empty %}
-
- {% endif %}
- - {{ item.content }} --
- {% endfor %}
-
From 2c8706283eff27fd38cbb00f7c819e3a7fb9ee54 Mon Sep 17 00:00:00 2001 From: Joe Gilliland-Lloyd <6943710+joegl@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:34:59 -0500 Subject: [PATCH] SDSS-1281: Removed decanter from stanford_basic (#492) * SDSS-1281: Removed decanter from stanford_basic. --- ...d--layout--node--stanford-person.html.twig | 38 +-- ...layout--paragraph--stanford-card.html.twig | 34 +- ...--stanford-publications--related.html.twig | 34 +- .../block--stanford-basic-search.html.twig | 2 +- .../themes/stanford_basic/CHANGELOG.md | 306 ------------------ .../themes/stanford_basic/README.md | 83 +---- .../components/accordion/accordion.twig | 39 --- .../decanter/components/alert/alert.twig | 72 ----- .../components/brand-bar/brand-bar.twig | 25 -- .../decanter/components/button/button.twig | 19 -- .../decanter/components/card/card.twig | 198 ------------ .../decanter/components/cta/cta.twig | 31 -- .../components/date-stacked/date-stacked.twig | 25 -- .../global-footer/global-footer.twig | 54 ---- .../decanter/components/hero/hero.twig | 83 ----- .../decanter/components/link/link.twig | 22 -- .../components/local-footer/local-footer.twig | 210 ------------ .../decanter/components/lockup/lockup.twig | 91 ------ .../decanter/components/logo/logo.twig | 21 -- .../components/main-nav/main-nav.twig | 75 ----- .../components/masthead/masthead.twig | 137 -------- .../decanter/components/media/media.twig | 121 ------- .../components/nav-toggle/nav-toggle.twig | 18 -- .../decanter/components/quote/quote.twig | 39 --- .../secondary-nav/secondary-nav.twig | 26 -- .../components/signup-form/signup-form.twig | 32 -- .../components/site-search/site-search.twig | 36 --- .../decanter/components/skiplinks/link.twig | 17 - .../components/skiplinks/skiplinks.twig | 53 --- .../decanter/components/skiplinks/target.twig | 16 - .../decanter/core/flex-grid/flex-grid.twig | 90 ------ .../templates/decanter/core/fonts/fonts.twig | 63 ---- .../decanter/elements/embed/embed.twig | 3 - .../decanter/elements/input/input.twig | 41 --- .../decanter/elements/link/link.twig | 1 - .../decanter/elements/list/list.twig | 41 --- .../decanter/elements/table/table.twig | 22 -- .../elements/typography/typography.twig | 1 - .../example/aspect-ratio/aspect-ratio.twig | 17 - .../flex/four-column/molive/molive.twig | 58 ---- .../layout/flex/full-width/bricks/bricks.twig | 60 ---- .../layout/flex/full-width/ibeam/ibeam.twig | 46 --- .../layout/flex/one-column/basic/basic.twig | 40 --- .../centered-container.twig | 25 -- .../layout/flex/three-column/bars/bars.twig | 31 -- .../three-column/battleship/battleship.twig | 75 ----- .../flex/three-column/blastila/blastila.twig | 72 ----- .../layout/flex/three-column/chess/chess.twig | 79 ----- .../flex/three-column/cuttoner/cuttoner.twig | 62 ---- .../flex/three-column/percles/percles.twig | 57 ---- .../layout/flex/three-column/robot/robot.twig | 48 --- .../space-invader/space-invader.twig | 47 --- .../sunset-delorean/sunset-delorean.twig | 56 ---- .../flex/three-column/thions/thions.twig | 38 --- .../flex/three-column/valmer/valmer.twig | 47 --- .../layout/flex/two-column/donies/donies.twig | 46 --- .../flex/two-column/frogger/frogger.twig | 70 ---- .../layout/flex/two-column/pacman/pacman.twig | 46 --- .../layout/flex/two-column/plakes/plakes.twig | 40 --- .../layout/flex/two-column/toucan/toucan.twig | 23 -- .../layout/flex/two-column/trunks/trunks.twig | 27 -- .../layout/flex/two-column/wedge/wedge.twig | 30 -- .../decanter/utilities/macros/link-list.twig | 46 --- .../decanter/utilities/macros/menu-loop.twig | 41 --- .../stanford_basic/stanford_basic.info.yml | 4 +- .../block/block--search-form-block.html.twig | 2 +- .../block--system-branding-block.html.twig | 2 +- .../templates/core/status-messages.html.twig | 2 +- .../stanford_basic/templates/node.html.twig | 2 +- .../stanford_basic/templates/page.html.twig | 4 +- .../templates/rabbit-hole-message.html.twig | 2 +- .../themes/stanford_basic/webpack.config.js | 10 +- 72 files changed, 31 insertions(+), 3443 deletions(-) delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/CHANGELOG.md delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/accordion/accordion.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/alert/alert.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/brand-bar/brand-bar.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/button/button.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/card/card.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/cta/cta.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/date-stacked/date-stacked.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/global-footer/global-footer.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/hero/hero.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/link/link.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/local-footer/local-footer.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/lockup/lockup.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/logo/logo.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/main-nav/main-nav.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/masthead/masthead.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/media/media.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/nav-toggle/nav-toggle.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/quote/quote.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/secondary-nav/secondary-nav.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/signup-form/signup-form.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/site-search/site-search.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/skiplinks/link.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/skiplinks/skiplinks.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/components/skiplinks/target.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/core/flex-grid/flex-grid.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/core/fonts/fonts.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/elements/embed/embed.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/elements/input/input.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/elements/link/link.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/elements/list/list.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/elements/table/table.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/elements/typography/typography.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/example/aspect-ratio/aspect-ratio.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/four-column/molive/molive.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/full-width/bricks/bricks.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/full-width/ibeam/ibeam.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/one-column/basic/basic.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/one-column/centered-container/centered-container.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/three-column/bars/bars.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/three-column/battleship/battleship.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/three-column/blastila/blastila.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/three-column/chess/chess.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/three-column/cuttoner/cuttoner.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/three-column/percles/percles.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/three-column/robot/robot.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/three-column/space-invader/space-invader.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/three-column/sunset-delorean/sunset-delorean.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/three-column/thions/thions.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/three-column/valmer/valmer.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/two-column/donies/donies.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/two-column/frogger/frogger.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/two-column/pacman/pacman.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/two-column/plakes/plakes.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/two-column/toucan/toucan.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/two-column/trunks/trunks.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/layout/flex/two-column/wedge/wedge.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/utilities/macros/link-list.twig delete mode 100644 docroot/profiles/sdss/sdss_profile/themes/stanford_basic/dist/templates/decanter/utilities/macros/menu-loop.twig diff --git a/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--layout--node--stanford-person.html.twig b/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--layout--node--stanford-person.html.twig index 3aa5a8e93..eff4eea34 100644 --- a/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--layout--node--stanford-person.html.twig +++ b/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--layout--node--stanford-person.html.twig @@ -40,20 +40,6 @@ */ #} -{# - Template Include Paths - Override these if you want to include a different template. -#} - -{# - Person Card override - Override these if you want to include a different template. -#} - -{%- if template_path_link is empty -%} - {%- set template_path_link = "@decanter/components/link/link.twig" -%} -{%- endif -%} - {%- if template_path_media is empty -%} {%- set template_path_media = "@decanter/components/media/media.twig" -%} {%- endif -%} @@ -117,29 +103,17 @@ {%- block block_card_cta %} {# Card CTA Link #} {%- if card_cta_label is not empty and allow_links %} - {%- include template_path_link with - { - "link_href": card_link, - "link_content": card_cta_label, - "attributes": card_cta_attributes, - "modifier_class": "su-card__link su-link--action" - } - only - -%} + + {{ card_cta_label }} + {% endif -%} {# Big ol link button. Adds a BEM class for targeting. #} {%- if card_button_label is not empty and allow_links %}
{% endif -%} {% endblock -%} diff --git a/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--layout--paragraph--stanford-card.html.twig b/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--layout--paragraph--stanford-card.html.twig index 042c83e24..15e41aaa7 100644 --- a/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--layout--paragraph--stanford-card.html.twig +++ b/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--layout--paragraph--stanford-card.html.twig @@ -40,16 +40,6 @@ */ #} - - -{# - Template Include Paths - Override these if you want to include a different template. -#} -{%- if template_path_link is empty -%} - {%- set template_path_link = "@decanter/components/link/link.twig" -%} -{%- endif -%} - {%- if template_path_media is empty -%} {%- set template_path_media = "@decanter/components/media/media.twig" -%} {%- endif -%} @@ -109,29 +99,17 @@ {%- block block_card_cta %} {# Card CTA Link #} {%- if card_cta_label is not empty and allow_links %} - {%- include template_path_link with - { - "link_href": card_link, - "link_content": card_cta_label, - "attributes": card_cta_attributes, - "modifier_class": "su-card__link su-link--action" - } - only - -%} + + {{ card_cta_label }} + {% endif -%} {# Big ol link button. Adds a BEM class for targeting. #} {%- if card_button_label is not empty and allow_links %} {% endif -%} {% endblock -%} diff --git a/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--views-row--stanford-publications--related.html.twig b/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--views-row--stanford-publications--related.html.twig index 5339aae63..a25516848 100644 --- a/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--views-row--stanford-publications--related.html.twig +++ b/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/card/pattern-card--views-row--stanford-publications--related.html.twig @@ -40,16 +40,6 @@ */ #} - - -{# - Template Include Paths - Override these if you want to include a different template. -#} -{%- if template_path_link is empty -%} - {%- set template_path_link = "@decanter/components/link/link.twig" -%} -{%- endif -%} - {%- if template_path_media is empty -%} {%- set template_path_media = "@decanter/components/media/media.twig" -%} {%- endif -%} @@ -104,29 +94,17 @@ {%- block block_card_cta %} {# Card CTA Link #} {%- if card_cta_label is not empty and allow_links %} - {%- include template_path_link with - { - "link_href": card_link, - "link_content": card_cta_label, - "attributes": card_cta_attributes, - "modifier_class": "su-card__link su-link--action" - } - only - -%} + + {{ card_cta_label }} + {% endif -%} {# Big ol link button. Adds a BEM class for targeting. #} {%- if card_button_label is not empty and allow_links %} {% endif -%} {% endblock -%} diff --git a/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/search/block--stanford-basic-search.html.twig b/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/search/block--stanford-basic-search.html.twig index a95c2a8de..b95322a0e 100644 --- a/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/search/block--stanford-basic-search.html.twig +++ b/docroot/profiles/sdss/sdss_profile/themes/sdss_subtheme/templates/components/search/block--stanford-basic-search.html.twig @@ -1,6 +1,6 @@ {% set attributes = attributes.addClass('su-site-search') %} -{% include "@basic-dist/decanter/components/site-search/site-search.twig" with +{% include "@decanter/components/site-search/site-search.twig" with { "attributes": attributes|without('class', 'role'), "modifier_class": attributes.class, diff --git a/docroot/profiles/sdss/sdss_profile/themes/stanford_basic/CHANGELOG.md b/docroot/profiles/sdss/sdss_profile/themes/stanford_basic/CHANGELOG.md deleted file mode 100644 index 6a9326458..000000000 --- a/docroot/profiles/sdss/sdss_profile/themes/stanford_basic/CHANGELOG.md +++ /dev/null @@ -1,306 +0,0 @@ -# Stanford Basic Theme - - -8.x-5.15 --------------------------------------------------------------------------------- -_Release Date: 2022-03-17_ - -- D8CORE-5522 Adjust unpublished message on nodes that are scheduled (#263) -- D8CORE-5246: fixing the separator overhang on menus (#262) - - -8.x-5.14 --------------------------------------------------------------------------------- -_Release Date: 2022-01-27_ - -- Fix font awesome icons for far and fas sets (#259) - - -8.x-5.13 --------------------------------------------------------------------------------- -_Release Date: 2021-11-19_ - -- D8CORE-4234: change to how the onEsc.js works (#257) -- D8CORE-4246 Inherit font family when using font awesome classes (#256) -- Added core patch and some readme documentation (#255) - - -8.x-5.12 --------------------------------------------------------------------------------- -_Release Date: 2021-11-04_ - -- D8CORE-000: Add components module as a dependency (#252) -- D8CORE-4802 D8CORE-4823: Updating Decanter Version (#249) - - -8.x-5.11 --------------------------------------------------------------------------------- -_Release Date: 2021-10-08_ - -- removed plus-sign from toggleText (#247) -- D8CORE-2489 - add `aria-current` (#246) - - -8.x-5.10 --------------------------------------------------------------------------------- -_Release Date: 2021-09-09_ - -- D8CORE-4768: removing the conditional to put back into news module (#244) - - -8.x-5.9 --------------------------------------------------------------------------------- -_Release Date: 2021-09-03 - -- D8CORE-3161: moving pager css to theme (#242) -- D8CORE-4643: moving to a single filter by menu (#237) -- D8CORE-4714: adding the title description to the secondary menu links (#241) -- Updated font awesome library to 5.15.4 -- D8CORE-4359 Adding an underline to the action-link (#238) - -8.x-5.8 --------------------------------------------------------------------------------- -_Release Date: 2021-07-19_ - -- D8CORE-4525: changing how the skip link works for publications. (#235) (e8c99f9) - -8.x-5.7 --------------------------------------------------------------------------------- -_Release Date: 2021-07-09_ - -- D8CORE-4490: adding secondary skip links to secondary navigation (#232) (24e659c) -- D8CORE-4496 Prevent empty