-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4.3.0 # gpg: Signature made Wed Sep 13 12:42:29 2023 PDT # gpg: using RSA key B6C810CBE206E036FB68F3CD5E86D0CED64C7093 # gpg: Good signature from "Brandon Kelly <[email protected]>" [ultimate]
- Loading branch information
Showing
109 changed files
with
4,994 additions
and
1,245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ on: | |
branches: | ||
- develop | ||
- v3 | ||
- '4.3' | ||
pull_request: | ||
permissions: | ||
contents: read | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
example-templates/dist/shop/_private/layouts/includes/header.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="bg-gray-900"> | ||
<div class="container mx-auto p-6 md:flex justify-content-between align-content-center"> | ||
<h1 class="text-3xl"> | ||
<a href="{{ siteUrl('/shop') }}" class="text-white"> | ||
{{- siteName ~ ' Shop' -}} | ||
</a> | ||
</h1> | ||
{% if craft.app.sites.getAllSites()|length > 1 %} | ||
<div class="ml-auto"> | ||
<select name="site" id="js-site-selector" class="mt-1 block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"> | ||
{% for site in craft.app.sites.getAllSites() %} | ||
<option value="{{ siteUrl(craft.app.request.absoluteUrl|replace(currentSite.getBaseUrl(), ''), null, null, site.id) }}" {% if site.handle == currentSite.handle %}selected{% endif %}>{{ site.name }}</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
example-templates/dist/shop/_private/layouts/includes/nav-customer.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!-- Template: {{ _self }}.twig --> | ||
{# | ||
Outputs the site’s global main navigation based on path and included `pages` array. | ||
@var cart \craft\commerce\elements\Order | ||
@var currentUser \craft\elements\User | ||
#} | ||
{% set pages = [ | ||
{ | ||
label: 'My Orders', | ||
url: 'shop/customer/orders' | ||
}, | ||
{ | ||
label: 'My Addresses', | ||
url: 'shop/customer/addresses' | ||
}, | ||
{ | ||
label: 'My Stored Cards', | ||
url: 'shop/customer/cards' | ||
} | ||
] %} | ||
{% set currentPath = craft.app.request.pathInfo %} | ||
{# Show the nav if we in a customers page #} | ||
{% if currentPath in pages|column('url') %} | ||
{% set activeClasses = 'bg-gray-200' %} | ||
<div class="bg-gray-50"> | ||
<div class="container mx-auto justify-between items-center p-6 relative"> | ||
<nav class="-ml-4" | ||
role="navigation" | ||
aria-label="Customer"> | ||
{% for page in pages %} | ||
<a href="{{ url(page.url) }}" | ||
class="mx-2 px-2 py-1 rounded{% if page.url in currentPath %} {{ activeClasses }}{% endif %}"> | ||
{{- page.label|t -}} | ||
</a> | ||
{% endfor %} | ||
</nav> | ||
</div> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
example-templates/dist/shop/checkout/_includes/base-payment-form-styles.twig
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.