Skip to content

Commit

Permalink
Replace bootscore_container_class
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkruit committed Sep 15, 2023
1 parent 6d7e18a commit afb590d
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

get_header();
?>
<div id="content" class="site-content <?= bootscore_container_class(); ?> py-5 mt-5">
<div id="content" class="site-content <?= apply_filters('bootscore_container_class', 'container', '404'); ?> py-5 mt-5">
<div id="primary" class="content-area">

<main id="main" class="site-main">
Expand Down
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
get_header();
?>

<div id="content" class="site-content <?= bootscore_container_class(); ?> py-5 mt-5">
<div id="content" class="site-content <?= apply_filters('bootscore_container_class', 'container', 'archive'); ?> py-5 mt-5">
<div id="primary" class="content-area">

<?php bs_after_primary(); ?>
Expand Down
4 changes: 2 additions & 2 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<footer>

<div class="bootscore-footer bg-body-tertiary pt-5 pb-3">
<div class="<?= bootscore_container_class(); ?>">
<div class="<?= apply_filters('bootscore_container_class', 'container', 'footer'); ?>">

<!-- Top Footer Widget -->
<?php if (is_active_sidebar('top-footer')) : ?>
Expand Down Expand Up @@ -73,7 +73,7 @@
</div>

<div class="bootscore-info bg-body-tertiary text-body-tertiary border-top py-2 text-center">
<div class="<?= bootscore_container_class(); ?>">
<div class="<?= apply_filters('bootscore_container_class', 'container', 'footer-copyright'); ?>">
<?php if (is_active_sidebar('footer-info')) : ?>
<?php dynamic_sidebar('footer-info'); ?>
<?php endif; ?>
Expand Down
3 changes: 1 addition & 2 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@

<nav id="nav-main" class="navbar navbar-expand-lg">

<div class="<?= bootscore_container_class(); ?>">

<div class=" <?= apply_filters('bootscore_container_class', 'container', 'header'); ?>">
<!-- Navbar Brand -->
<a class="navbar-brand xs d-md-none" href="<?= esc_url(home_url()); ?>"><img src="<?= esc_url(get_stylesheet_directory_uri()); ?>/img/logo/logo-sm.svg" alt="logo" class="logo xs"></a>
<a class="navbar-brand md d-none d-md-block" href="<?= esc_url(home_url()); ?>"><img src="<?= esc_url(get_stylesheet_directory_uri()); ?>/img/logo/logo.svg" alt="logo" class="logo md"></a>
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

get_header();
?>
<div id="content" class="site-content <?= bootscore_container_class(); ?> py-5 mt-4">
<div id="content" class="site-content <?= apply_filters('bootscore_container_class', 'container', 'index'); ?> py-5 mt-4">
<div id="primary" class="content-area">

<!-- Hook to add something nice -->
Expand Down
2 changes: 1 addition & 1 deletion page.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
get_header();
?>

<div id="content" class="site-content <?= bootscore_container_class(); ?> py-5 mt-5">
<div id="content" class="site-content <?= apply_filters('bootscore_container_class', 'container', 'page'); ?> py-5 mt-5">
<div id="primary" class="content-area">

<!-- Hook to add something nice -->
Expand Down
2 changes: 1 addition & 1 deletion search.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

get_header();
?>
<div id="content" class="site-content <?= bootscore_container_class(); ?> py-5 mt-5">
<div id="content" class="site-content <?= apply_filters('bootscore_container_class', 'container', 'search'); ?> py-5 mt-5">
<div id="primary" class="content-area">

<!-- Hook to add something nice -->
Expand Down
2 changes: 1 addition & 1 deletion single.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
get_header();
?>

<div id="content" class="site-content <?= bootscore_container_class(); ?> py-5 mt-4">
<div id="content" class="site-content <?= apply_filters('bootscore_container_class', 'container', 'single'); ?> py-5 mt-4">
<div id="primary" class="content-area">

<!-- Hook to add something nice -->
Expand Down
2 changes: 1 addition & 1 deletion woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
get_header();
?>

<div id="content" class="site-content <?= bootscore_container_class(); ?> py-5 mt-4">
<div id="content" class="site-content <?= apply_filters('bootscore_container_class', 'container', 'woocommerce'); ?> py-5 mt-4">
<div id="primary" class="content-area">

<!-- Hook to add something nice -->
Expand Down

0 comments on commit afb590d

Please sign in to comment.