Skip to content

Commit

Permalink
bs5 display utils migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Oct 6, 2023
1 parent a775b69 commit 74ce0ff
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions modules/ps_facetedsearch/ps_facetedsearch.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}
{if isset($listing.rendered_facets)}
<div id="search_filters_wrapper" class="hidden-sm-down">
<div id="search_filter_controls" class="hidden-md-up">
<div id="search_filters_wrapper" class="d-none d-md-block">
<div id="search_filter_controls" class="d-md-none">
<span id="_mobile_search_filters_clear_all"></span>
<button class="btn btn-secondary ok">
<i class="material-icons rtl-no-flip">&#xE876;</i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
*}

<div class="col-md-2 links wrapper">
<h3 class="hidden-sm-down">{l s='Information' d='Modules.Legalcompliance.Shop'}</h3>
<div class="title clearfix hidden-md-up" data-target="#footer_eu_about_us_list" data-bs-toggle="collapse">
<h3 class="d-none d-md-block">{l s='Information' d='Modules.Legalcompliance.Shop'}</h3>
<div class="title clearfix d-md-none" data-target="#footer_eu_about_us_list" data-bs-toggle="collapse">
<span class="h3">{l s='Information' d='Modules.Legalcompliance.Shop'}</span>
<span class="float-end">
<span class="navbar-toggler collapse-icons">
Expand Down
2 changes: 1 addition & 1 deletion modules/ps_rssfeed/views/templates/hook/ps_rssfeed.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*}

<div class="block-contact col-md-2 links wrapper">
<h3 class="h3 hidden-sm-down">{$title}</h3>
<h3 class="h3 d-none d-md-block">{$title}</h3>
<div>
{if $rss_links}
<ul>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="product-miniature__information {if !$product.main_variants} product-miniature__information--no-variants{/if} hidden-sm-down">
<div class="product-miniature__information {if !$product.main_variants} product-miniature__information--no-variants{/if} d-none d-md-block">
{block name='product_variants'}
{if $product.main_variants}
{include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants}
Expand Down
2 changes: 1 addition & 1 deletion templates/catalog/_partials/product-cover-thumbnails.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
{/images_block}
{/if}

<a class="product-main-images__modal-trigger-layer btn btn-light shadow rounded-circle hidden-sm-down" data-bs-toggle="modal" data-target="#product-modal">
<a class="product-main-images__modal-trigger-layer btn btn-light shadow rounded-circle d-none d-md-block" data-bs-toggle="modal" data-target="#product-modal">
<span class="material-icons font-reset line-height-reset">zoom_in</span>
</a>

Expand Down
2 changes: 1 addition & 1 deletion templates/catalog/_partials/products.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{include file='_partials/pagination.tpl' pagination=$listing.pagination}
{/block}

<div class="hidden-md-up text-end up">
<div class="d-md-none text-end up">
<a href="#header" class="btn btn-secondary">
{l s='Back to top' d='Shop.Theme.Actions'}
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/catalog/listing/product-list.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</div>

{block name='product_list_active_filters'}
<div id="" class="hidden-sm-down">
<div id="" class="d-none d-md-block">
{$listing.rendered_active_filters nofilter}
</div>
{/block}
Expand Down
2 changes: 1 addition & 1 deletion templates/cms/stores.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<article id="store-{$store.id}" class="store-item card mb-4">
<div class="card-body">
<div class="row align-items-center">
<div class="col-auto store-picture hidden-sm-down">
<div class="col-auto store-picture d-none d-md-block">
<img
src="{$store.image.bySize.stores_default.url}"
{if !empty($store.image.legend)}
Expand Down
4 changes: 2 additions & 2 deletions templates/customer/discount.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

{block name='page_content'}
{if $cart_rules}
<table class="table table-striped table-bordered hidden-sm-down">
<table class="table table-striped table-bordered d-none d-md-block">
<thead class="thead-default">
<tr>
<th>{l s='Code' d='Shop.Theme.Checkout'}</th>
Expand Down Expand Up @@ -64,7 +64,7 @@
{/foreach}
</tbody>
</table>
<div class="cart-rules hidden-md-up">
<div class="cart-rules d-md-none">
{foreach from=$cart_rules item=cart_rule}
<div class="card mb-5">
<div class="card-header">
Expand Down
8 changes: 4 additions & 4 deletions templates/customer/history.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
<h6>{l s='Here are the orders you\'ve placed since your account was created.' d='Shop.Theme.Customeraccount'}</h6>

{if $orders}
<table class="table table-striped table-bordered hidden-sm-down">
<table class="table table-striped table-bordered d-none d-md-block">
<thead class="thead-default">
<tr>
<th>{l s='Order reference' d='Shop.Theme.Checkout'}</th>
<th>{l s='Date' d='Shop.Theme.Checkout'}</th>
<th>{l s='Total price' d='Shop.Theme.Checkout'}</th>
<th class="hidden-md-down">{l s='Payment' d='Shop.Theme.Checkout'}</th>
<th class="hidden-md-down">{l s='Status' d='Shop.Theme.Checkout'}</th>
<th>{l s='Payment' d='Shop.Theme.Checkout'}</th>
<th>{l s='Status' d='Shop.Theme.Checkout'}</th>
<th>&nbsp;</th>
</tr>
</thead>
Expand All @@ -57,7 +57,7 @@
{$order.totals.total.value}
</span>
</td>
<td class="hidden-md-down align-middle">{$order.details.payment}</td>
<td class="align-middle">{$order.details.payment}</td>
<td class="align-middle">
<span
class="label label-pill badge {if Tools::getBrightness($order.history.current.color) < 128}text-white{/if}"
Expand Down
6 changes: 3 additions & 3 deletions templates/customer/order-detail.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<section id="order-history" class="my-4">
<div class="d-none d-md-block">
<h3 class="h4">{l s='Follow your order\'s status step-by-step' d='Shop.Theme.Customeraccount'}</h3>
<table class="table table-striped table-bordered hidden-xs-down">
<table class="table table-striped table-bordered">
<thead class="thead-default">
<tr>
<th>{l s='Date' d='Shop.Theme.Global'}</th>
Expand Down Expand Up @@ -170,7 +170,7 @@
{block name='order_carriers'}
{if $order.shipping}
<div class="mb-4">
<table class="table table-striped table-bordered hidden-sm-down">
<table class="table table-striped table-bordered d-none d-md-block">
<thead class="thead-default">
<tr>
<th>{l s='Date' d='Shop.Theme.Global'}</th>
Expand All @@ -192,7 +192,7 @@
{/foreach}
</tbody>
</table>
<div class="hidden-md-up shipping-lines">
<div class="d-md-none shipping-lines">
<div class="card">
<div class="card-header">
<h4 class="h5 mb-0 card-title">
Expand Down
4 changes: 2 additions & 2 deletions templates/customer/order-follow.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

{if $ordersReturn && count($ordersReturn)}

<table class="table table-striped table-bordered hidden-sm-down">
<table class="table table-striped table-bordered d-none d-md-block">
<thead class="thead-default">
<tr>
<th>{l s='Order' d='Shop.Theme.Customeraccount'}</th>
Expand Down Expand Up @@ -68,7 +68,7 @@
{/foreach}
</tbody>
</table>
<div class="order-returns hidden-md-up">
<div class="order-returns d-md-none">
{foreach from=$ordersReturn item=return}
<div class="card">

Expand Down
4 changes: 2 additions & 2 deletions templates/customer/order-slip.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<h6>{l s='Credit slips you have received after canceled orders.' d='Shop.Theme.Customeraccount'}</h6>

{if $credit_slips}
<table class="table table-striped table-bordered hidden-sm-down">
<table class="table table-striped table-bordered d-none d-md-block">
<thead class="thead-default">
<tr>
<th>{l s='Order' d='Shop.Theme.Customeraccount'}</th>
Expand All @@ -57,7 +57,7 @@
{/foreach}
</tbody>
</table>
<div class="credit-slips hidden-md-up">
<div class="credit-slips d-md-none">
{foreach from=$credit_slips item=slip}
<div class="card mb-5">
<div class="card-header">
Expand Down

0 comments on commit 74ce0ff

Please sign in to comment.