Skip to content

Commit

Permalink
Remove deprcated link template.
Browse files Browse the repository at this point in the history
  • Loading branch information
joegl committed Sep 13, 2024
1 parent c3e3333 commit 40c3dab
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 88 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

0 comments on commit 40c3dab

Please sign in to comment.