Skip to content

Commit

Permalink
Update from Shopify for theme New Theme Who Dis?
Browse files Browse the repository at this point in the history
Committed from shop: Misha & Puff
  • Loading branch information
shopify[bot] committed Aug 5, 2024
1 parent 058b7dd commit abff8dc
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 2 deletions.
5 changes: 4 additions & 1 deletion layout/password.liquid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% include 'shogun-content-handler' %}

Check warning on line 1 in layout/password.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

layout/password.liquid#L1

[ConvertIncludeToRender] `include` is deprecated - convert it to `render`
<!doctype html>
<html class="js full-height" lang="{{ request.locale.iso_code }}">
<head>
Expand Down Expand Up @@ -192,7 +193,9 @@
<script src="{{ 'global.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'details-modal.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'password-modal.js' | asset_url }}" defer="defer"></script>
</head>

{% render 'shogun-head' %}
</head>

<body class="password gradient">
<a class="skip-to-content-link button visually-hidden" href="#MainContent">
Expand Down
5 changes: 4 additions & 1 deletion layout/theme.liquid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% include 'shogun-content-handler' %}

Check warning on line 1 in layout/theme.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

layout/theme.liquid#L1

[ConvertIncludeToRender] `include` is deprecated - convert it to `render`
<!doctype html>
{% render 'signature' %}
<html class="js" lang="{{ request.locale.iso_code }}">
Expand Down Expand Up @@ -314,7 +315,9 @@
gtag('config', 'G-DLJ3XBN6Q9');
</script>
</head>

{% render 'shogun-head' %}
</head>

<body class="gradient{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %}">
<a class="skip-to-content-link button visually-hidden" href="#MainContent">
Expand Down
3 changes: 3 additions & 0 deletions layout/theme.shogun.landing.liquid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% include 'shogun-content-handler' %}

Check warning on line 1 in layout/theme.shogun.landing.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

layout/theme.shogun.landing.liquid#L1

[ConvertIncludeToRender] `include` is deprecated - convert it to `render`
{% comment %}
Auto-generated by Shogun.
This file can be re-written at any time.
Expand Down Expand Up @@ -322,6 +323,8 @@ This file can be re-written at any time.
gtag('config', 'G-DLJ3XBN6Q9');
</script>


{% render 'shogun-head' %}
</head>


Expand Down
62 changes: 62 additions & 0 deletions snippets/shogun-content-handler.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{% comment %}
Auto-generated by Shogun.
This file can be re-written at any time.
{% endcomment %}

{% assign template_suffix = template.suffix %}

Check warning on line 6 in snippets/shogun-content-handler.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-content-handler.liquid#L6

[LiquidTag] Use {% liquid ... %} to write multiple tags

{% if article %}
{% assign content = article %}
{% elsif page %}
{% assign content = page %}
{% elsif product %}
{% assign content = product %}
{% elsif collection %}
{% assign content = collection %}

{% endif %}

{% capture content_for_header %}
{{ content_for_header }}

Check failure on line 20 in snippets/shogun-content-handler.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-content-handler.liquid#L20

[ContentForHeaderModification] Do not rely on the content of `content_for_header`
{% render 'shogun-products', content: content %}
{% endcapture %}

{% if content.metafields.shogun.json_template_snippets %}
{% capture content_for_header %}
{{ content_for_header }}

Check failure on line 26 in snippets/shogun-content-handler.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-content-handler.liquid#L26

[ContentForHeaderModification] Do not rely on the content of `content_for_header`
{{ content.metafields.shogun.json_template_snippets.value['head'][template_suffix] }}
{% endcapture %}

{% capture content_for_body %}
{{ content_for_layout }}
{{ content.metafields.shogun.json_template_snippets.value['body'][template_suffix] }}
{% endcapture %}
{% endif %}

{% if content.metafields.shogun.json_template_html_wrapper %}
{% assign json_template_config = content.metafields.shogun.json_template_html_wrapper.value %}
{% capture content_for_layout %}
{{
json_template_config.html
| replace: json_template_config.content_for_layout_placeholder, content_for_layout
| replace: json_template_config.page_variant_id_placeholder, json_template_config.template_suffix_to_variant_id_map[template_suffix]
}}
{% endcapture %}
{% endif %}

{% if content.metafields.shogun.json_template_optimizer %}
{% capture content_for_header %}
<template id="shogun-variant-head">
{{ content_for_header }}

Check failure on line 50 in snippets/shogun-content-handler.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-content-handler.liquid#L50

[ContentForHeaderModification] Do not rely on the content of `content_for_header`
</template>
{{ content.metafields.shogun.json_template_optimizer.value['head'] }}
{% endcapture %}

{% capture content_for_layout %}
<template id="shogun-variant-body">
{{ content_for_layout }}
</template>
{{ content.metafields.shogun.json_template_optimizer.value['body'] }}
{% endcapture %}
{% endif %}

21 changes: 21 additions & 0 deletions snippets/shogun-head.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{% comment %}
Auto-generated by Shogun.
This file can be re-written at any time.
{% endcomment %}

{% if product and product.metafields.shogun.head %}
{{product.metafields.shogun.head}}

Check notice on line 7 in snippets/shogun-head.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-head.liquid#L7

[SpaceInsideBraces] Space missing after '{{'

Check notice on line 7 in snippets/shogun-head.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-head.liquid#L7

[SpaceInsideBraces] Space missing before '}}'
{% endif %}

{% if collection and collection.metafields.shogun.head %}
{{collection.metafields.shogun.head}}

Check notice on line 11 in snippets/shogun-head.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-head.liquid#L11

[SpaceInsideBraces] Space missing after '{{'

Check notice on line 11 in snippets/shogun-head.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-head.liquid#L11

[SpaceInsideBraces] Space missing before '}}'
{% endif %}

{% if page and page.metafields.shogun.head %}
{{page.metafields.shogun.head}}

Check notice on line 15 in snippets/shogun-head.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-head.liquid#L15

[SpaceInsideBraces] Space missing after '{{'

Check notice on line 15 in snippets/shogun-head.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-head.liquid#L15

[SpaceInsideBraces] Space missing before '}}'
{% endif %}

{% if article and article.metafields.shogun.head %}
{{article.metafields.shogun.head}}

Check notice on line 19 in snippets/shogun-head.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-head.liquid#L19

[SpaceInsideBraces] Space missing after '{{'

Check notice on line 19 in snippets/shogun-head.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-head.liquid#L19

[SpaceInsideBraces] Space missing before '}}'
{% endif %}

0 comments on commit abff8dc

Please sign in to comment.