working: footer widgets, searchform, search results
This commit is contained in:
parent
630e153253
commit
0c9de62831
17 changed files with 234 additions and 121 deletions
55
footer.php
55
footer.php
|
@ -6,18 +6,61 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||||
*
|
||||
* @package Freeshifter
|
||||
* @package AdamPion73k
|
||||
*/
|
||||
|
||||
namespace WP_73k;
|
||||
|
||||
?>
|
||||
|
||||
<footer class="footer73k footer bottom-0 end-0 bg-dark">
|
||||
<div class="px-2 px-sm-3">
|
||||
<span class="text-gray-300">© Copyright <?php echo date("Y") ?> Adam Piontek</span>
|
||||
</div>
|
||||
</footer>
|
||||
<?php
|
||||
// FIRST: if this is frontpage, we just do the sticky bottom right copyright footer
|
||||
if ($args && $args['frontpage']) {
|
||||
?>
|
||||
|
||||
<footer class="tek-fixed-footer">
|
||||
<div class="px-2 px-sm-3 text-gray-400">
|
||||
© Copyright <?php echo date("Y") ?> Adam Piontek
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<?php } else {
|
||||
// Not frontpage? Then show regular footer
|
||||
?>
|
||||
|
||||
<footer class="d-flex flex-column align-items-center mt-2 px-3 py-3">
|
||||
|
||||
<?php
|
||||
// widget content for blog content footers:
|
||||
if (!is_page()) :
|
||||
?>
|
||||
|
||||
<div id="footer-widgets" class="col-12 col-sm-9 col-md-11 col-lg-10 col-xl-9 col-xxl-8 d-flex flex-column align-items-center">
|
||||
<div class="px-3 pt-3 pb-1">
|
||||
<?php echo get_search_form(); ?>
|
||||
</div>
|
||||
<div class="d-flex flex-wrap flex-column flex-md-row justify-content-start justify-content-md-center align-items-start">
|
||||
|
||||
<?php
|
||||
if ( is_active_sidebar( 'footer-widgets' ) ) :
|
||||
dynamic_sidebar( 'footer-widgets' );
|
||||
endif;
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
endif;
|
||||
// Regular footer content for all but front page:
|
||||
?>
|
||||
|
||||
<span class="text-gray-400 mt-3">© Copyright <?php echo date("Y") ?> Adam Piontek</span>
|
||||
|
||||
|
||||
</footer>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue