Skip to content

Commit

Permalink
SDSS-1281: Removed decanter from stanford_basic (#492)
Browse files Browse the repository at this point in the history
* SDSS-1281: Removed decanter from stanford_basic.
  • Loading branch information
joegl authored Sep 13, 2024
1 parent ff978a4 commit 2c87062
Show file tree
Hide file tree
Showing 72 changed files with 31 additions and 3,443 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down Expand Up @@ -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
-%}
<a{{card_cta_attributes}} href="{{ card_link }}" class="su-link su-card__link su-link--action">
{{ card_cta_label }}
</a>
{% endif -%}

{# Big ol link button. Adds a BEM class for targeting. #}
{%- if card_button_label is not empty and allow_links %}
<div class="su-card__button">
{%- include template_path_link with
{
"link_href": card_link,
"link_content": card_button_label,
"attributes": card_cta_attributes,
"modifier_class": "su-button"
}
only
-%}
<a{{card_cta_attributes}} href="{{ card_link }}" class="su-link su-button">
{{ card_button_label }}
</a>
</div>
{% endif -%}
{% endblock -%}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down Expand Up @@ -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
-%}
<a{{card_cta_attributes}} href="{{ card_link }}" class="su-link su-card__link su-link--action">
{{ card_cta_label }}
</a>
{% endif -%}

{# Big ol link button. Adds a BEM class for targeting. #}
{%- if card_button_label is not empty and allow_links %}
<div class="su-card__button">
{%- include template_path_link with
{
"link_href": card_link,
"link_content": card_button_label,
"attributes": card_cta_attributes,
"modifier_class": "su-button"
}
only
-%}
<a{{card_cta_attributes}} href="{{ card_link }}" class="su-link su-button">
{{ card_button_label }}
</a>
</div>
{% endif -%}
{% endblock -%}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down Expand Up @@ -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
-%}
<a{{card_cta_attributes}} href="{{ card_link }}" class="su-link su-card__link su-link--action">
{{ card_cta_label }}
</a>
{% endif -%}

{# Big ol link button. Adds a BEM class for targeting. #}
{%- if card_button_label is not empty and allow_links %}
<div class="su-card__button">
{%- include template_path_link with
{
"link_href": card_link,
"link_content": card_button_label,
"attributes": card_cta_attributes,
"modifier_class": "su-button"
}
only
-%}
<a{{card_cta_attributes}} href="{{ card_link }}" class="su-link su-button">
{{ card_button_label }}
</a>
</div>
{% endif -%}
{% endblock -%}
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Loading

0 comments on commit 2c87062

Please sign in to comment.