@appdirect/sfb-theme-plaza 0.0.57 → 0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/content/layout/base.html
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
{% from "/macros/sfb-components-bundles.html" import componentsBundles %}
|
|
2
|
+
{% from "/macros/sfb-custom-components-bundles.html" import customComponentsBundles %}
|
|
1
3
|
<!doctype html>
|
|
2
4
|
|
|
3
5
|
<html lang="{{ config.locale.code }}">
|
|
@@ -31,16 +33,10 @@
|
|
|
31
33
|
{% endblock %}
|
|
32
34
|
|
|
33
35
|
<link rel="shortcut icon" href="{{ config.channelSettings.customFavicon }}" type="image/x-icon">
|
|
34
|
-
<!-- test custom components orchard <link rel="stylesheet" type="text/css" href="{{ r("/assets/js/components/sfb-components.css") }}"> -->
|
|
35
|
-
<!-- local testing <link rel="stylesheet" type="text/css" href="/sfb-theme-components/sfb-components.css"> -->
|
|
36
|
-
<!-- local testing custom components <link rel="stylesheet" type="text/css" href="/sfb-toolkit-assets/js/components/sfb-components.css"> -->
|
|
37
36
|
<link rel="preload" as="font" href="{{ r("/assets/fonts/slick/slick.woff") }}" type="font/woff2" crossorigin="anonymous">
|
|
38
|
-
<link rel="stylesheet" type="text/css" href="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components.css">
|
|
39
37
|
<link rel="stylesheet" type="text/css" href="{{ r("/assets/css/theme/theme-index.css") }}">
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<!-- test custom components orchard <script src="{{ r("/assets/js/components/sfb-components.js") }}"></script> -->
|
|
43
|
-
<script src="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components.js"></script>
|
|
38
|
+
|
|
39
|
+
{{ componentsBundles(config) }}
|
|
44
40
|
</head>
|
|
45
41
|
|
|
46
42
|
<body data-page="{% block dataPage %}{% endblock %}">
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{% macro componentsBundles(config) %}
|
|
2
|
+
|
|
3
|
+
{% if config.pageId == "home" %}
|
|
4
|
+
<script src="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-home.js"></script>
|
|
5
|
+
<link rel="stylesheet" type="text/css" href="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-home.css">
|
|
6
|
+
{% elif config.pageId == "profile" %}
|
|
7
|
+
<script src="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-profile.js"></script>
|
|
8
|
+
<link rel="stylesheet" type="text/css" href="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-profile.css">
|
|
9
|
+
{% elif config.pageId == "listing" %}
|
|
10
|
+
<script src="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-listing.js"></script>
|
|
11
|
+
<link rel="stylesheet" type="text/css" href="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-listing.css">
|
|
12
|
+
{% elif config.pageId == "help" %}
|
|
13
|
+
<script src="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-help.js"></script>
|
|
14
|
+
<link rel="stylesheet" type="text/css" href="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-help.css">
|
|
15
|
+
{% elif config.pageId == "compare" %}
|
|
16
|
+
<script src="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-compare.js"></script>
|
|
17
|
+
<link rel="stylesheet" type="text/css" href="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-compare.css">
|
|
18
|
+
{% elif config.pageId == "bundle" %}
|
|
19
|
+
<script src="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-bundle.js"></script>
|
|
20
|
+
<link rel="stylesheet" type="text/css" href="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components-bundle.css">
|
|
21
|
+
{% else %}
|
|
22
|
+
<script src="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components.js"></script>
|
|
23
|
+
<link rel="stylesheet" type="text/css" href="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components.css">
|
|
24
|
+
{% endif %}
|
|
25
|
+
|
|
26
|
+
{% endmacro %}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{% macro customComponentsBundles(config) %}
|
|
2
|
+
|
|
3
|
+
{% if config.pageId == "home" %}
|
|
4
|
+
<script src="{{ r("/assets/js/components/sfb-components-home.js") }}"></script>
|
|
5
|
+
<link rel="stylesheet" type="text/css" href="{{ r("/assets/js/components/sfb-components-home.css") }}">
|
|
6
|
+
{% elif config.pageId == "profile" %}
|
|
7
|
+
<script src="{{ r("/assets/js/components/sfb-components-profile.js") }}"></script>
|
|
8
|
+
<link rel="stylesheet" type="text/css" href="{{ r("/assets/js/components/sfb-components-profile.css") }}">
|
|
9
|
+
{% elif config.pageId == "listing" %}
|
|
10
|
+
<script src="{{ r("/assets/js/components/sfb-components-listing.js") }}"></script>
|
|
11
|
+
<link rel="stylesheet" type="text/css" href="{{ r("/assets/js/components/sfb-components-listing.css") }}">
|
|
12
|
+
{% elif config.pageId == "help" %}
|
|
13
|
+
<script src="{{ r("/assets/js/components/sfb-components-help.js") }}"></script>
|
|
14
|
+
<link rel="stylesheet" type="text/css" href="{{ r("/assets/js/components/sfb-components-help.css") }}">
|
|
15
|
+
{% elif config.pageId == "compare" %}
|
|
16
|
+
<script src="{{ r("/assets/js/components/sfb-components-compare.js") }}"></script>
|
|
17
|
+
<link rel="stylesheet" type="text/css" href="{{ r("/assets/js/components/sfb-components-compare.css") }}">
|
|
18
|
+
{% elif config.pageId == "bundle" %}
|
|
19
|
+
<script src="{{ r("/assets/js/components/sfb-components-bundle.js") }}"></script>
|
|
20
|
+
<link rel="stylesheet" type="text/css" href="{{ r("/assets/js/components/sfb-components-bundle.css") }}">
|
|
21
|
+
{% else %}
|
|
22
|
+
<script src="{{ r("/assets/js/components/sfb-components.js") }}"></script>
|
|
23
|
+
<link rel="stylesheet" type="text/css" href="{{ r("/assets/js/components/sfb-components.css") }}">
|
|
24
|
+
{% endif %}
|
|
25
|
+
|
|
26
|
+
{% endmacro %}
|
|
@@ -11,5 +11,7 @@
|
|
|
11
11
|
{% endblock %}
|
|
12
12
|
|
|
13
13
|
{% block profileContent %}
|
|
14
|
+
<component name="GraphQLAdapter" id="GraphQLAdapter"></component>
|
|
15
|
+
<component name="VolumeDiscountCard" id="VolumeDiscountCard"></component>
|
|
14
16
|
<component name="ProductPricing" id="ProductPricing1"></component>
|
|
15
17
|
{% endblock %}
|