This commit is contained in:
parent
8487b210a8
commit
b5fe9586a8
|
@ -24,43 +24,35 @@
|
||||||
|
|
||||||
<h1 class="single-title">{{title}}</h1>
|
<h1 class="single-title">{{title}}</h1>
|
||||||
|
|
||||||
|
<div id="total-rose-ash-shop" hx-get="shop/orders/total"
|
||||||
|
hx-trigger="load delay:1ms, configured from:body, ordered from:body delay:1ms, paid from:body"
|
||||||
|
hx-swap="innerHTML">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="order-rose-ash-shop" hx-get="order"
|
||||||
|
hx-trigger="load delay:1ms, configured from:body, paid from:body, ordered from:body delay:1ms"
|
||||||
|
hx-on::config-request="event.detail.path = !(new URLSearchParams(window.location.search).get('order')) ? 'shop/order/?embed=true' : 'shop/order/?embed=true&orderId=' + new URLSearchParams(window.location.search).get('order');"
|
||||||
|
hx-swap="innerHTML">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{#if custom_excerpt}}
|
{{#if custom_excerpt}}
|
||||||
<div class="single-excerpt">
|
<div class="single-excerpt">
|
||||||
{{custom_excerpt}}
|
{{custom_excerpt}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div
|
<div id="order-detail-rose-ash-shop" hx-get="order" hx-trigger="load delay:1ms, paid from:body"
|
||||||
id="total-rose-ash-shop"
|
|
||||||
hx-get="shop/orders/total"
|
|
||||||
hx-trigger="load delay:1ms, configured from:body, ordered from:body delay:1ms, paid from:body"
|
|
||||||
hx-swap="innerHTML"
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
|
||||||
id="order-rose-ash-shop"
|
|
||||||
hx-get="order"
|
|
||||||
hx-trigger="load delay:1ms, configured from:body, paid from:body, ordered from:body delay:1ms"
|
|
||||||
hx-on::config-request = "event.detail.path = !(new URLSearchParams(window.location.search).get('order')) ? 'shop/order/?embed=true' : 'shop/order/?embed=true&orderId=' + new URLSearchParams(window.location.search).get('order');"
|
|
||||||
hx-swap="innerHTML"
|
|
||||||
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
id="order-detail-rose-ash-shop"
|
|
||||||
hx-get="order"
|
|
||||||
hx-trigger="load delay:1ms, paid from:body"
|
|
||||||
hx-on::config-request="event.detail.path = new URLSearchParams(window.location.search).get('order') ? 'shop/order/' + new URLSearchParams(window.location.search).get('order')+ '/?embed=true' : null; //6a919002-94eb-467d-a226-5dd05b7f44a3 '"
|
hx-on::config-request="event.detail.path = new URLSearchParams(window.location.search).get('order') ? 'shop/order/' + new URLSearchParams(window.location.search).get('order')+ '/?embed=true' : null; //6a919002-94eb-467d-a226-5dd05b7f44a3 '"
|
||||||
hx-on::confirm = " if (!new URLSearchParams(window.location.search).get('order')) { event.preventDefault(); }"
|
hx-on::confirm=" if (!new URLSearchParams(window.location.search).get('order')) { event.preventDefault(); }"
|
||||||
hx-swap="innerHTML"
|
hx-swap="innerHTML">
|
||||||
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if feature_image}}
|
{{#if feature_image}}
|
||||||
{{#unless no_image}}
|
{{#unless no_image}}
|
||||||
<figure class="single-media kg-width-{{width}}">
|
<figure class="single-media kg-width-{{width}}">
|
||||||
<img srcset="{{> "srcset"}}" sizes="(min-width: 1023px) 920px, calc(90vw)" src="{{img_url feature_image size="l"}}" alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}">
|
<img srcset="{{> " srcset"}}" sizes="(min-width: 1023px) 920px, calc(90vw)"
|
||||||
|
src="{{img_url feature_image size=" l"}}"
|
||||||
|
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}">
|
||||||
{{#if feature_image_caption}}
|
{{#if feature_image_caption}}
|
||||||
<figcaption>{{feature_image_caption}}</figcaption>
|
<figcaption>{{feature_image_caption}}</figcaption>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -97,7 +89,8 @@
|
||||||
<div class="author-image-placeholder u-placeholder square">
|
<div class="author-image-placeholder u-placeholder square">
|
||||||
<a href="{{url}}" title="{{name}}">
|
<a href="{{url}}" title="{{name}}">
|
||||||
{{#if profile_image}}
|
{{#if profile_image}}
|
||||||
<img class="author-image u-object-fit" src="{{img_url profile_image size="xs"}}" alt="{{name}}" loading="lazy">
|
<img class="author-image u-object-fit" src="{{img_url profile_image size=" xs"}}"
|
||||||
|
alt="{{name}}" loading="lazy">
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="u-object-fit">{{> "icons/avatar"}}</span>
|
<span class="u-object-fit">{{> "icons/avatar"}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -121,12 +114,8 @@
|
||||||
</footer>
|
</footer>
|
||||||
<div id="configure-product" name="configure-product" hx-get="shop/configure?embed" hx-trigger="load">
|
<div id="configure-product" name="configure-product" hx-get="shop/configure?embed" hx-trigger="load">
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div id="orders-rose-ash-shop" hx-get="shop/orders" hx-trigger="load, paid from:body, configured from:body"
|
||||||
id="orders-rose-ash-shop"
|
hx-swap="innerHTML">
|
||||||
hx-get="shop/orders"
|
|
||||||
hx-trigger="load, paid from:body, configured from:body"
|
|
||||||
hx-swap="innerHTML"
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/is}}
|
{{/is}}
|
||||||
|
|
Loading…
Reference in New Issue