Skip to content

Commit

Permalink
MERC-3425 - Remove all legacy "snippet" locations
Browse files Browse the repository at this point in the history
  • Loading branch information
bookernath committed Apr 16, 2019
1 parent 39e07e1 commit ad0e8b2
Show file tree
Hide file tree
Showing 20 changed files with 2 additions and 21 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Draft
- Remove deprecated "snippet" locations [#1479](https://github.com/bigcommerce/cornerstone/pull/1479)

## 3.4.1 (2019-04-11)
- Sanitize faceted search item's title [#1426](https://github.com/bigcommerce/cornerstone/pull/1426)
Expand Down
1 change: 0 additions & 1 deletion templates/components/amp/products/ratings.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@
</span>
{{/if}}
{{/for}}
{{{snippet 'product_rating'}}}
1 change: 0 additions & 1 deletion templates/components/common/quick-search.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<div class="container">
{{{ snippet "forms_search"}}}
<form class="form" action="{{urls.search}}">
<fieldset class="form-fieldset">
<div class="form-field">
Expand Down
1 change: 0 additions & 1 deletion templates/components/common/search-box.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{{ snippet "forms_search"}}}
<form class="form" action="{{urls.search}}">
<fieldset class="form-fieldset">
<div class="form-field">
Expand Down
1 change: 0 additions & 1 deletion templates/components/products/add-to-cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@
<input id="form-action-addToCart" data-wait-message="{{lang 'products.adding_to_cart'}}" class="button button--primary" type="submit"
value="{{#if product.pre_order}}{{lang 'products.pre_order'}}{{else}}{{lang 'products.add_to_cart'}}{{/if}}">
</div>
{{{snippet 'product_addtocart'}}}
{{/or}}
1 change: 0 additions & 1 deletion templates/components/products/description-tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<div class="tabs-contents">
<div class="tab-content is-active" id="tab-description">
{{{product.description}}}
{{{snippet 'product_description'}}}
</div>
{{#if product.warranty}}
<div class="tab-content" id="tab-warranty">
Expand Down
1 change: 0 additions & 1 deletion templates/components/products/description.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<p class="productView-title">{{lang 'products.description'}}</p>
<div class="productView-description" {{#if settings.data_tag_enabled}} data-event-type="product" {{/if}}>
{{{product.description}}}
{{{snippet 'product_description'}}}
</div>

{{#if product.warranty}}
Expand Down
1 change: 0 additions & 1 deletion templates/components/products/product-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ <h2 class="productView-brand"{{#if schema}} itemprop="brand" itemscope itemtype=
{{/if}}
</div>
{{> components/common/share}}
{{{snippet 'product_details'}}}
</section>

<article class="productView-description"{{#if schema}} itemprop="description"{{/if}}>
Expand Down
1 change: 0 additions & 1 deletion templates/components/products/ratings.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@
</span>
{{/if}}
{{/for}}
{{{snippet 'product_rating'}}}
1 change: 0 additions & 1 deletion templates/components/products/reviews.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ <h5 itemprop="name" class="productReview-title">{{ title }}</h5>
</div>
</section>
{{/if}}
{{{snippet 'reviews'}}}
1 change: 0 additions & 1 deletion templates/components/search/advanced-search.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{{snippet 'forms_search'}}}
<div class="page">
<div class="page-content page-content--centered">
<form class="advancedSearch-form toggle-content" action="{{forms.search.action}}" data-advanced-search-form id="advanced-search-content" aria-hidden="true">
Expand Down
1 change: 0 additions & 1 deletion templates/layout/amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
{{inject 'genericError' (lang 'common.generic_error')}}
{{inject 'maintenanceMode' settings.maintenance}}
{{inject 'urls' urls}}
{{{snippet 'htmlhead'}}}
<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
<script async custom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"></script>
{{#if settings.amp_analytics_id}}
Expand Down
3 changes: 0 additions & 3 deletions templates/layout/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@
{{inject 'secureBaseUrl' settings.secure_base_url}}
{{inject 'cartId' cart_id}}
{{inject 'template' template}}
{{{snippet 'htmlhead'}}}
</head>
<body>
{{{snippet 'header'}}}
<svg data-src="{{cdn 'img/icon-sprite.svg'}}" class="icons-svg-sprite"></svg>

{{#and settings.privacy_cookie settings.is_eu_ip_address}}
Expand All @@ -50,6 +48,5 @@
</script>

{{{footer.scripts}}}
{{{snippet 'footer'}}}
</body>
</html>
1 change: 0 additions & 1 deletion templates/pages/account/orders/all.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ <h1 class="page-heading">{{lang 'account.orders.heading' }}</h1>
{{/if}}
</section>
</div>
{{{snippet 'account'}}}
</main>

{{/partial}}
Expand Down
2 changes: 1 addition & 1 deletion templates/pages/amp/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1 class="categoryView-title">
{{!-- Category descriptions should include valid AMP markup. Read more about what are valid components: https://www.ampproject.org/docs/reference/components

{{{category.description}}}
{{{snippet 'categories'}}} --}}
--}}
</div>
<main class="page-content" id="product-listing-container">
{{#if category.products}}
Expand Down
1 change: 0 additions & 1 deletion templates/pages/brand.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
</div>
{{/if}}
<h1 class="page-heading">{{brand.name}}</h1>
{{{snippet 'brand'}}}
<div class="page">
<aside class="page-sidebar" id="faceted-search-container">
{{> components/brand/sidebar}}
Expand Down
1 change: 0 additions & 1 deletion templates/pages/cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ <h3>{{lang 'cart.checkout.empty_cart'}}</h3>
{{{ remote_api_scripts }}}
{{/if}}

{{{snippet 'cart'}}}
</main>
</div>
{{/partial}}
Expand Down
1 change: 0 additions & 1 deletion templates/pages/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<h1 class="page-heading">{{category.name}}</h1>
{{/unless}}
{{{category.description}}}
{{{snippet 'categories'}}}
<div class="page">
{{#if category.faceted_search_enabled}}
<aside class="page-sidebar" id="faceted-search-container">
Expand Down
1 change: 0 additions & 1 deletion templates/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
{{#if carousel}}
{{> components/carousel arrows=theme_settings.homepage_show_carousel_arrows}}
{{/if}}
{{{snippet 'home_content'}}}
{{/partial}}

{{#partial "page"}}
Expand Down
1 change: 0 additions & 1 deletion templates/pages/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

{{#partial "page"}}
{{> components/common/breadcrumbs breadcrumbs=breadcrumbs}}
{{{snippet 'search'}}}
<section class="nav">
{{#if forms.search.query}}
<div id="search-results-heading">
Expand Down

0 comments on commit ad0e8b2

Please sign in to comment.