Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
2516ebb
Update version
crftwrk Sep 20, 2024
308783f
Added a filter to sidebar offcanvas title
crftwrk Sep 20, 2024
3c0b94f
Added filter to change search breakpoint if WC is not installed
crftwrk Sep 20, 2024
226806c
Add filters to icons
crftwrk Sep 20, 2024
6c4929f
Update version actions-woocommerce.php
crftwrk Sep 20, 2024
eba4efc
Add filters to searchform.php
crftwrk Sep 20, 2024
db709e1
Merge branch 'Add-more-filters' of https://github.com/bootscore/boots…
crftwrk Sep 20, 2024
cd4b903
Added filter to header buttons spacer
crftwrk Sep 20, 2024
f1c4afd
Add filters no navbar widgets
crftwrk Sep 20, 2024
4573c85
Improved filters for icons
crftwrk Sep 22, 2024
48cb981
Add filter to navbar-brand
crftwrk Sep 24, 2024
bb50877
Added a filter to header-actions
crftwrk Sep 24, 2024
3bca100
Renamed the spacing filter for the back-to-cart button
crftwrk Sep 24, 2024
845b1dc
Added a filter to sidebar title
crftwrk Sep 25, 2024
b730459
Added a filter to star icon
crftwrk Sep 25, 2024
3bc56db
Add filter to comments icon
crftwrk Sep 25, 2024
527abe5
Added a filter to home icon
crftwrk Sep 25, 2024
5fdcaf8
Added filter to default breadcrumb
crftwrk Sep 25, 2024
7e187ef
Added a filter to breadcrumb-item link
crftwrk Sep 25, 2024
eba3200
Update version in breadcrumb.php
crftwrk Sep 25, 2024
6daa176
Added filters to WC breadcrumb
crftwrk Sep 26, 2024
236355f
Commented wc-breadcrumb scss
crftwrk Sep 26, 2024
8e8f74b
Added home icon and filter to icon and a class
crftwrk Sep 26, 2024
9453498
Added visually hidden Home span to home icon
crftwrk Sep 26, 2024
bfd3257
Added class wc-breadcrumb and styled active item via SCSS
crftwrk Sep 26, 2024
d361379
Update widgets.php
crftwrk Sep 27, 2024
20fc292
Merge pull request #848 from bootscore/main
crftwrk Sep 27, 2024
9c6a2ea
Update widgets.php version
crftwrk Sep 27, 2024
ffa53ce
Update widgets.php version
crftwrk Sep 27, 2024
167e53f
Merge pull request #849 from bootscore/main
crftwrk Sep 27, 2024
f53a49f
Update widgets.php
crftwrk Sep 27, 2024
2683834
Revert "Upstream main"
crftwrk Sep 27, 2024
e630778
Merge pull request #850 from bootscore/revert-849-main
crftwrk Sep 27, 2024
50b0b76
Revert "Upstream main"
crftwrk Sep 27, 2024
37bb2ef
Merge pull request #851 from bootscore/revert-848-main
crftwrk Sep 27, 2024
9e61a68
Update languages
crftwrk Sep 27, 2024
e9c1a75
Update widgets.php
crftwrk Sep 27, 2024
5724afe
Update widgets.php
crftwrk Sep 27, 2024
9ddabd7
Update widgets.php
crftwrk Sep 27, 2024
14314f7
Added `woocommerce/global/breadcrumb.php` to get filter for link clas…
crftwrk Sep 27, 2024
1d0d73e
Merge pull request #844 from bootscore/Refactor-breadcrumbs-and-add-f…
crftwrk Sep 27, 2024
9c7e8a8
downgraded versions
crftwrk Sep 27, 2024
b586a05
Added hooks to header and renamed classic widget search form button
crftwrk Sep 29, 2024
4080475
Removed `me-2` class from site logo
crftwrk Sep 29, 2024
307fc23
Added filters to offcanvas directions
crftwrk Oct 4, 2024
c74f888
Moved account offcanvas direction to end
crftwrk Oct 4, 2024
01f94a7
Added filter to WC mini-cart footer
crftwrk Oct 4, 2024
4afbae7
Added a filter to navbar-nav
crftwrk Oct 4, 2024
67e3185
Changed back-to-cart button location
crftwrk Oct 4, 2024
e66be34
Added a filter to mini-cart badge
crftwrk Oct 4, 2024
06271d4
Changed filter name for cart footer
crftwrk Oct 4, 2024
88fa1c0
Added a filter to mini-cart total
crftwrk Oct 4, 2024
d8db289
Added hooks to footer
crftwrk Oct 4, 2024
af94217
Renamed `bootscore/class/header/button/spacer` into `bootscore/class/…
crftwrk Oct 12, 2024
2c334aa
Updated top-nav-widget spacer class
crftwrk Oct 12, 2024
51d8278
Added hook `bootscore_before_footer`
crftwrk Oct 13, 2024
c075120
Added hooks to sidebar.php
crftwrk Oct 13, 2024
2bb7a2e
Added hook `bootscore_before_breadcrumb`
crftwrk Oct 15, 2024
012a191
Merge pull request #861 from bootscore/main
crftwrk Oct 15, 2024
c9512ef
Added hook `bootscore_before_breadcrumb` to woocommerce.php
crftwrk Oct 15, 2024
be3aeb2
Added filters to read-more
crftwrk Oct 15, 2024
23255c7
Add filters to loop cards
crftwrk Oct 15, 2024
ea2def1
Rename `bootscore_before_breadcrumb` into `bootscore_after_primary_open`
crftwrk Oct 16, 2024
ef29247
Added hooks to loop
crftwrk Oct 16, 2024
54be1aa
Added filter to card-body and hooks to sticky post loop
crftwrk Oct 16, 2024
2d6202c
Hide `Tagged` heading in loop by function instead using SCSS
crftwrk Oct 16, 2024
d16e211
Added a filter to hide tags badge in loop
crftwrk Oct 16, 2024
8654c56
Added hook `bootscore_loop_item_after_card_body`
crftwrk Oct 16, 2024
c070a66
Added more hooks and added location to existing ones
crftwrk Oct 17, 2024
70ed039
Added locations to loop actions
crftwrk Oct 18, 2024
9aa99fd
Moved card to article in content-search
crftwrk Oct 18, 2024
6f11909
Moved the card to the article in index.php
crftwrk Oct 18, 2024
691082a
Moved the card to the article in archive.php
crftwrk Oct 18, 2024
5223f9e
Added hook `bootscore_before_entry_footer`
crftwrk Oct 18, 2024
cb920a1
Fix mini-cart text-bg badge class
crftwrk Oct 20, 2024
9e45101
Added a filter to comments avatar classes
crftwrk Oct 20, 2024
a9b4101
Replace comments CSS with class
crftwrk Oct 20, 2024
7eca001
Fix WC product comment avatar
crftwrk Oct 20, 2024
14c5ad4
Revert filter to hide tags in loop
crftwrk Oct 29, 2024
392a921
Added the filter to hide badges in loop to the template files
crftwrk Oct 29, 2024
ef970f0
Added a filter to hide read-more in loop
crftwrk Oct 29, 2024
1a634e2
Added a filter to hide excerpt in loop
crftwrk Oct 29, 2024
3d7cdd6
Added a filter to hide entire meta in loop
crftwrk Oct 29, 2024
2813c09
Renamed the filters to hide elements in loop
crftwrk Oct 29, 2024
363724e
Added classes to loop card inner row and col
crftwrk Oct 29, 2024
bbdbbf4
Added filters to loop card-texts
crftwrk Oct 29, 2024
9f8dcf9
Added hook `bootscore_after_title`
crftwrk Oct 30, 2024
93b0136
Added more actions and filters to loop templates
crftwrk Oct 30, 2024
e38524c
Update mini-cart.php
crftwrk Nov 1, 2024
936ce6d
Merge pull request #867 from bootscore/main
crftwrk Nov 1, 2024
cca5e68
Added filters to mini-cart.php
crftwrk Nov 1, 2024
83c341d
Added filters to search block btn and icon
crftwrk Nov 11, 2024
69142fc
Merge pull request #873 from bootscore/main
crftwrk Nov 12, 2024
9310293
Add filters to enhance WooCommerce header and offcanvas user account …
hsankala Nov 25, 2024
dfb2a57
Merge pull request #882 from hsankala/Add-more-filters
crftwrk Nov 26, 2024
1ad77ea
Adds filters to customize product title classes, control product exce…
hsankala Dec 6, 2024
1beaa48
Action mini-cart.php code review changes
hsankala Dec 9, 2024
d95dc05
Revert "Action mini-cart.php code review changes"
hsankala Dec 9, 2024
72733a6
Update mini-cart.php
hsankala Dec 9, 2024
18a3936
Merge pull request #887 from hsankala/Add-more-filters
crftwrk Dec 10, 2024
b980628
Merge pull request #895 from bootscore/main
crftwrk Dec 13, 2024
5ef3c72
Added `bootscore_after_nav_toggler` action
crftwrk Dec 14, 2024
9882c05
Added filters to footer widgets
crftwrk Dec 15, 2024
4cd42d4
Added filters to offcanvas header and body
crftwrk Dec 15, 2024
8e092fa
Added filters to entry-header h1
crftwrk Dec 15, 2024
0c15919
Merge pull request #903 from bootscore/main
crftwrk Dec 17, 2024
d98ef6b
Update offcanvas-woocommerce.php
crftwrk Dec 23, 2024
6d58052
Update comments.php
crftwrk Jan 3, 2025
a719b92
Added filter bootscore/class/featured-full-width-img
crftwrk Jan 4, 2025
607f1c1
Added filter full-width-img-title-wrapper
crftwrk Jan 4, 2025
42a9183
Added action bootscore_before_title
crftwrk Jan 4, 2025
bb00bf2
Fix archive.php title and description
crftwrk Jan 6, 2025
5594979
Update index.php
crftwrk Jan 6, 2025
f067d20
Revert _comments.scss changes
crftwrk Jan 6, 2025
afb077b
Revert inc/comments.php and woocommerce/single-product/review.php
crftwrk Jan 6, 2025
3f57013
Merge pull request #920 from bootscore/main
crftwrk Jan 14, 2025
5fd9baf
Added missing actions to 404
crftwrk Jan 14, 2025
9c133f5
Update 404.php
crftwrk Jan 14, 2025
b36887e
Update footer.php
crftwrk Jan 17, 2025
1a5ab67
Update footer.php
crftwrk Jan 17, 2025
51d8be0
Update footer.php
crftwrk Jan 17, 2025
e19162d
Update footer.php
crftwrk Jan 17, 2025
5508938
Update header.php
crftwrk Jan 17, 2025
bb10547
Merge pull request #928 from bootscore/main
crftwrk Jan 17, 2025
3e27274
Update header.php
crftwrk Jan 17, 2025
53aae1a
Readd bootscore_before_footer action
crftwrk Jan 17, 2025
bfe58a9
Readd filter for to-top-button icon
crftwrk Jan 17, 2025
cb5ed51
Merge pull request #932 from bootscore/main
crftwrk Jan 20, 2025
cc83014
Update footer.php
crftwrk Jan 29, 2025
1af68d1
Update footer.php
crftwrk Jan 29, 2025
ea18a62
Update footer.php
crftwrk Jan 29, 2025
48f15ec
Update header.php
crftwrk Jan 29, 2025
f584747
Update header.php
crftwrk Jan 29, 2025
9613d6d
Update header.php
crftwrk Jan 29, 2025
6d4c206
Update searchform.php
crftwrk Jan 29, 2025
e0c27ee
Update searchform.php
crftwrk Jan 29, 2025
d817ba8
Update actions-woocommerce.php
crftwrk Jan 29, 2025
6abad1b
Update actions-woocommerce.php
crftwrk Jan 29, 2025
1e53cfa
Update actions.php
crftwrk Jan 29, 2025
91a3087
Update actions.php
crftwrk Jan 29, 2025
c5e6f32
Update offcanvas-woocommerce.php
crftwrk Jan 29, 2025
947dfc7
Update offcanvas-woocommerce.php
crftwrk Jan 29, 2025
5911413
Merge pull request #942 from bootscore/main
crftwrk Jan 29, 2025
7378948
Readd filters and actions that got lost by https://github.com/bootsco…
crftwrk Jan 29, 2025
a5d8612
Update searchform.php for accessibility
canyonwebworks Feb 8, 2025
6fb30e7
Merge pull request #946 from littlepackage/patch-1
crftwrk Feb 10, 2025
30d351a
Merge pull request #949 from bootscore/main
crftwrk Feb 11, 2025
5139864
Merge pull request #958 from bootscore/main
crftwrk Feb 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Bootscore
* @version 6.0.0
* @version 6.1.0
*/

// Exit if accessed directly
Expand All @@ -16,13 +16,19 @@
?>
<div id="content" class="site-content <?= apply_filters('bootscore/class/container', 'container', '404'); ?> <?= apply_filters('bootscore/class/content/spacer', 'pt-4 pb-5', '404'); ?>">
<div id="primary" class="content-area">

<?php do_action( 'bootscore_after_primary_open', '404' ); ?>

<main id="main" class="site-main">

<section class="error-404 not-found">
<div class="page-404">

<h1 class="mb-3">404</h1>
<div class="entry-header">
<?php do_action( 'bootscore_before_title', '404' ); ?>
<h1 class="entry-title <?= apply_filters('bootscore/class/entry/title', '', '404'); ?>">404</h1>
<?php do_action( 'bootscore_after_title', '404' ); ?>
</div>
<!-- Remove this line and place some widgets -->
<p class="alert alert-info mb-4"><?php esc_html_e('Page not found.', 'bootscore'); ?></p>
<!-- 404 Widget -->
Expand Down
96 changes: 63 additions & 33 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Bootscore
* @version 6.0.0
* @version 6.1.0
*/

// Exit if accessed directly
Expand All @@ -17,72 +17,102 @@

<div id="content" class="site-content <?= apply_filters('bootscore/class/container', 'container', 'archive'); ?> <?= apply_filters('bootscore/class/content/spacer', 'pt-4 pb-5', 'archive'); ?>">
<div id="primary" class="content-area">

<?php do_action('bootscore_after_primary_open', 'archive'); ?>

<div class="row">
<div class="<?= apply_filters('bootscore/class/main/col', 'col') ?>">

<main id="main" class="site-main">

<div class="page-header mb-4">
<?php the_archive_title('<h1>', '</h1>'); ?>
<?php the_archive_description('<div class="archive-description">', '</div>'); ?>
<div class="entry-header">
<?php do_action( 'bootscore_before_title', 'archive' ); ?>
<?php the_archive_title('<h1 class="entry-title ' . apply_filters('bootscore/class/entry/title', '', 'archive') . '">', '</h1>'); ?>
<?php do_action( 'bootscore_after_title', 'archive' ); ?>
<?php the_archive_description('<p class="archive-description">', '</p>'); ?>
</div>

<?php do_action( 'bootscore_before_loop', 'archive' ); ?>

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>

<?php do_action('bootscore_before_loop_item', 'archive'); ?>

<div class="card horizontal mb-4">
<div class="row g-0">
<article id="post-<?php the_ID(); ?>" <?php post_class( apply_filters('bootscore/class/loop/card', 'card horizontal mb-4', 'archive') ); ?>>

<div class="<?= apply_filters('bootscore/class/loop/card/row', 'row g-0', 'archive'); ?>">

<?php if (has_post_thumbnail()) : ?>
<div class="col-lg-6 col-xl-5 col-xxl-4">
<div class="<?= apply_filters('bootscore/class/loop/card/image/col', 'col-lg-6 col-xl-5 col-xxl-4', 'archive'); ?>">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('medium', array('class' => 'card-img-lg-start')); ?>
<?php the_post_thumbnail('medium', array('class' => apply_filters('bootscore/class/loop/card/image', 'card-img-lg-start', 'archive'))); ?>
</a>
</div>
<?php endif; ?>

<div class="col">
<div class="card-body">
<div class="<?= apply_filters('bootscore/class/loop/card/content/col', 'col', 'archive'); ?>">
<div class="<?= apply_filters('bootscore/class/loop/card/body', 'card-body', 'archive'); ?>">

<?php bootscore_category_badge(); ?>
<?php if (apply_filters('bootscore/loop/category', true, 'archive')) : ?>
<?php bootscore_category_badge(); ?>
<?php endif; ?>

<?php do_action('bootscore_before_loop_title', 'archive'); ?>

<a class="text-body text-decoration-none" href="<?php the_permalink(); ?>">
<?php the_title('<h2 class="blog-post-title h5">', '</h2>'); ?>
<?php the_title('<h2 class="' . apply_filters('bootscore/class/loop/card/title', 'blog-post-title h5', 'archive') . '">', '</h2>'); ?>
</a>

<?php if ('post' === get_post_type()) : ?>
<p class="meta small mb-2 text-body-secondary">
<?php
bootscore_date();
bootscore_author();
bootscore_comments();
bootscore_edit();
?>
</p>
<?php if (apply_filters('bootscore/loop/meta', true, 'archive')) : ?>
<?php if ('post' === get_post_type()) : ?>
<p class="meta small mb-2 text-body-secondary">
<?php
bootscore_date();
bootscore_author();
bootscore_comments();
bootscore_edit();
?>
</p>
<?php endif; ?>
<?php endif; ?>

<p class="card-text">
<a class="text-body text-decoration-none" href="<?php the_permalink(); ?>">
<?= strip_tags(get_the_excerpt()); ?>
</a>
</p>
<?php if (apply_filters('bootscore/loop/excerpt', true, 'archive')) : ?>
<p class="<?= apply_filters('bootscore/class/loop/card-text/excerpt', 'card-text', 'archive'); ?>">
<a class="text-body text-decoration-none" href="<?php the_permalink(); ?>">
<?= strip_tags(get_the_excerpt()); ?>
</a>
</p>
<?php endif; ?>

<p class="card-text">
<a class="read-more" href="<?php the_permalink(); ?>">
<?php _e('Read more »', 'bootscore'); ?>
</a>
</p>
<?php if (apply_filters('bootscore/loop/read-more', true, 'archive')) : ?>
<p class="<?= apply_filters('bootscore/class/loop/card-text/read-more', 'card-text', 'archive'); ?>">
<a class="<?= apply_filters('bootscore/class/loop/read-more', 'read-more', 'archive'); ?>" href="<?php the_permalink(); ?>">
<?= apply_filters('bootscore/loop/read-more/text', __('Read more »', 'bootscore', 'archive')); ?>
</a>
</p>
<?php endif; ?>

<?php bootscore_tags(); ?>
<?php if (apply_filters('bootscore/loop/tags', true, 'archive')) : ?>
<?php bootscore_tags(); ?>
<?php endif; ?>

</div>

<?php do_action('bootscore_loop_item_after_card_body', 'archive'); ?>

</div>

</div>
</div>

</article>

<?php do_action('bootscore_after_loop_item', 'archive'); ?>

<?php endwhile; ?>
<?php endif; ?>

<?php do_action('bootscore_after_loop', 'archive'); ?>

<div class="entry-footer">
<?php bootscore_pagination(); ?>
Expand Down
33 changes: 2 additions & 31 deletions assets/scss/bootscore-woocommerce/_wc-breadcrumb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,8 @@ WooCommerce Breadcrumb

.wc-breadcrumb {

// Move `Home` out of the screen instead using empty value
// See https://github.com/orgs/bootscore/discussions/775
.breadcrumb-item:first-child a {
position: relative;
text-indent: -9999px;
display: inline-block;
padding-right: $breadcrumb-item-padding-x *2;

// Add Fontawesome house icon
&::after {
content: '';
position: absolute;
left: 0;
width: $font-size-base;
height: 100%;
background-color: var(--#{$prefix}link-color);
mask-position: center;
mask-repeat: no-repeat;
mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 576 512'%3e%3c!--! Font Awesome Free 6.4.0 by %40fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons%2c Inc. --%3e%3cpath d='M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z'/%3e%3c/svg%3e");
-webkit-mask-position: center;
-webkit-mask-repeat: no-repeat;
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 576 512'%3e%3c!--! Font Awesome Free 6.4.0 by %40fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons%2c Inc. --%3e%3cpath d='M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z'/%3e%3c/svg%3e");
}

&:hover::after {
background-color: var(--#{$prefix}link-hover-color);
}
}

// Additional code for wc breadcrumbs,
// as the wc breadcrumb function does not allow for custom
// Additional code for WC breadcrumbs,
// as the WC breadcrumb function does not allow for custom
// class for last child
.breadcrumb-item:last-child {
color: var(--#{$prefix}breadcrumb-item-active-color);
Expand Down
8 changes: 0 additions & 8 deletions assets/scss/bootscore/_loop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@ Loop
height: 100%;
}
}

// Hide "Tagged" in loop
.card,
.tags-heading-none {
.tags-heading {
display: none;
}
}
21 changes: 19 additions & 2 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Bootscore
* @version 6.0.5
* @version 6.1.0
*/

// Exit if accessed directly
Expand All @@ -17,6 +17,8 @@
?>


<?php do_action( 'bootscore_before_footer' ); ?>

<footer id="footer" class="bootscore-footer">

<?php if (is_active_sidebar('footer-top')) : ?>
Expand All @@ -28,7 +30,12 @@
<?php endif; ?>

<div class="<?= apply_filters('bootscore/class/footer/columns', 'bg-body-tertiary pt-5 pb-4'); ?> bootscore-footer-columns">

<?php do_action( 'bootscore_footer_columns_before_container' ); ?>

<div class="<?= apply_filters('bootscore/class/container', 'container', 'footer-columns'); ?>">

<?php do_action( 'bootscore_footer_columns_after_container_open' ); ?>

<div class="row">

Expand Down Expand Up @@ -57,15 +64,25 @@
</div>

</div>

<?php do_action( 'bootscore_footer_columns_before_footer_menu' ); ?>

<!-- Bootstrap 5 Nav Walker Footer Menu -->
<?php get_template_part('template-parts/footer/footer-menu'); ?>

<?php do_action( 'bootscore_footer_columns_before_container_close' ); ?>

</div>

<?php do_action( 'bootscore_footer_columns_after_container' ); ?>

</div>

<div class="<?= apply_filters('bootscore/class/footer/info', 'bg-body-tertiary text-body-secondary border-top py-2 text-center'); ?> bootscore-footer-info">
<div class="<?= apply_filters('bootscore/class/container', 'container', 'footer-info'); ?>">

<?php do_action( 'bootscore_footer_info_after_container_open' ); ?>

<?php if (is_active_sidebar('footer-info')) : ?>
<?php dynamic_sidebar('footer-info'); ?>
<?php endif; ?>
Expand All @@ -76,7 +93,7 @@
</footer>

<!-- To top button -->
<a href="#" class="<?= apply_filters('bootscore/class/footer/to_top_button', 'btn btn-primary shadow'); ?> position-fixed zi-1000 top-button" aria-label="<?php esc_attr_e('Return to top', 'bootscore' ); ?>"><i class="fa-solid fa-chevron-up"></i><span class="visually-hidden-focusable">To top</span></a>
<a href="#" class="<?= apply_filters('bootscore/class/footer/to_top_button', 'btn btn-primary shadow'); ?> position-fixed zi-1000 top-button" aria-label="<?php esc_attr_e('Return to top', 'bootscore' ); ?>"><?= apply_filters('bootscore/icon/chevron-up', '<i class="fa-solid fa-chevron-up"></i>'); ?><span class="visually-hidden-focusable">To top</span></a>

</div><!-- #page -->

Expand Down
34 changes: 23 additions & 11 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Bootscore
* @version 6.0.5
* @version 6.1.0
*/

// Exit if accessed directly
Expand Down Expand Up @@ -38,27 +38,33 @@
<!-- Top Bar Widget -->
<?php if (is_active_sidebar('top-bar')) : ?>
<?php dynamic_sidebar('top-bar'); ?>
<?php endif; ?>
<?php endif; ?>

<?php do_action( 'bootscore_before_masthead' ); ?>

<header id="masthead" class="<?= apply_filters('bootscore/class/header', 'sticky-top bg-body-tertiary'); ?> site-header">

<?php do_action( 'bootscore_after_masthead_open' ); ?>

<nav id="nav-main" class="navbar <?= apply_filters('bootscore/class/header/navbar/breakpoint', 'navbar-expand-lg'); ?>">

<div class="<?= apply_filters('bootscore/class/container', 'container', 'header'); ?>">

<?php do_action( 'bootscore_before_navbar_brand' ); ?>

<!-- Navbar Brand -->
<a class="navbar-brand" href="<?= esc_url(home_url()); ?>">
<img src="<?= esc_url(apply_filters('bootscore/logo', get_stylesheet_directory_uri() . '/assets/img/logo/logo.svg', 'default')); ?>" alt="<?php bloginfo('name'); ?> Logo" class="d-td-none me-2">
<img src="<?= esc_url(apply_filters('bootscore/logo', get_stylesheet_directory_uri() . '/assets/img/logo/logo-theme-dark.svg', 'theme-dark')); ?>" alt="<?php bloginfo('name'); ?> Logo" class="d-tl-none me-2">
<a class="<?= apply_filters('bootscore/class/header/navbar-brand', 'navbar-brand'); ?>" href="<?= esc_url(home_url()); ?>">
<img src="<?= esc_url(apply_filters('bootscore/logo', get_stylesheet_directory_uri() . '/assets/img/logo/logo.svg', 'default')); ?>" alt="<?php bloginfo('name'); ?> Logo" class="d-td-none">
<img src="<?= esc_url(apply_filters('bootscore/logo', get_stylesheet_directory_uri() . '/assets/img/logo/logo-theme-dark.svg', 'theme-dark')); ?>" alt="<?php bloginfo('name'); ?> Logo" class="d-tl-none">
</a>

<!-- Offcanvas Navbar -->
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvas-navbar">
<div class="offcanvas-header">
<div class="offcanvas offcanvas-<?= apply_filters('bootscore/class/header/offcanvas/direction', 'end', 'menu'); ?>" tabindex="-1" id="offcanvas-navbar">
<div class="offcanvas-header <?= apply_filters('bootscore/class/offcanvas/header', '', 'menu'); ?>">
<span class="h5 offcanvas-title"><?= apply_filters('bootscore/offcanvas/navbar/title', __('Menu', 'bootscore')); ?></span>
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<div class="offcanvas-body <?= apply_filters('bootscore/class/offcanvas/body', '', 'menu'); ?>">

<!-- Bootstrap 5 Nav Walker Main Menu -->
<?php get_template_part('template-parts/header/main-menu'); ?>
Expand All @@ -71,7 +77,7 @@
</div>
</div>

<div class="header-actions d-flex align-items-center">
<div class="header-actions <?= apply_filters('bootscore/class/header-actions', 'd-flex align-items-center'); ?>">

<!-- Top Nav Widget -->
<?php if (is_active_sidebar('top-nav')) : ?>
Expand All @@ -87,9 +93,11 @@
?>

<!-- Navbar Toggler -->
<button class="<?= apply_filters('bootscore/class/header/button', 'btn btn-outline-secondary', 'nav-toggler'); ?> <?= apply_filters('bootscore/class/header/navbar/toggler/breakpoint', 'd-lg-none'); ?> ms-1 ms-md-2 nav-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvas-navbar" aria-controls="offcanvas-navbar" aria-label="<?php esc_attr_e( 'Toggle main menu', 'bootscore' ); ?>">
<i class="fa-solid fa-bars"></i><span class="visually-hidden-focusable">Menu</span>
<button class="<?= apply_filters('bootscore/class/header/button', 'btn btn-outline-secondary', 'nav-toggler'); ?> <?= apply_filters('bootscore/class/header/navbar/toggler/breakpoint', 'd-lg-none'); ?> <?= apply_filters('bootscore/class/header/action/spacer', 'ms-1 ms-md-2', 'nav-toggler'); ?> nav-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvas-navbar" aria-controls="offcanvas-navbar" aria-label="<?php esc_attr_e( 'Toggle main menu', 'bootscore' ); ?>">
<?= apply_filters('bootscore/icon/menu', '<i class="fa-solid fa-bars"></i>'); ?> <span class="visually-hidden-focusable">Menu</span>
</button>

<?php do_action( 'bootscore_after_nav_toggler' ); ?>

</div><!-- .header-actions -->

Expand All @@ -112,4 +120,8 @@
endif;
?>

<?php do_action( 'bootscore_before_masthead_close' ); ?>

</header><!-- #masthead -->

<?php do_action( 'bootscore_after_masthead' ); ?>
4 changes: 2 additions & 2 deletions inc/blocks/block-widget-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ function bootscore_block_widget_search_classes($block_content, $block) {
'<form novalidate="novalidate" ',
'wp-block-search__input form-control ',
'wp-block-search__input form-control"',
'wp-block-search__button btn btn-outline-secondary ',
'<i class="fa-solid fa-magnifying-glass"></i>'
'wp-block-search__button ' . apply_filters('bootscore/class/widget/search/button', 'btn btn-outline-secondary') . ' ',
apply_filters('bootscore/icon/search', '<i class="fa-solid fa-magnifying-glass"></i>')
);

if (isset($block['attrs']['buttonPosition']) && 'button-inside' === $block['attrs']['buttonPosition']) {
Expand Down
Loading