fix: fix header and footer

This commit is contained in:
Kazhnuz 2020-12-30 19:42:46 +01:00
parent ad5799743d
commit 4ba652bf17
7 changed files with 51 additions and 68 deletions

View file

@ -0,0 +1,29 @@
<footer>
<ul class="social">
<li class="social-li"><a class="social-link" href="https://twitter.com/kazhnuz" alt="Twitter"><i class="fa fa-fw fa-twitter"></i></a></li>
<li class="social-li"><a class="social-link" href="https://octodon.social/users/kazhnuz" alt="Mastodon"><i class="fa fa-fw fa-mastodon"></i></a></li>
<li class="social-li"><a class="social-link" href="https://framasphere.org/u/kazhnuz" alt="Diaspora"><i class="fa fa-fw fa-diaspora"></i></a></li>
<li class="social-li"><a class="social-link" href="https://deviantart.com/kazhnuz" alt="DeviantART"><i class="fa fa-fw fa-deviantart"></i></a></li>
<li class="social-li"><a class="social-link" href="https://github.com/kazhnuz" alt="Github"><i class="fa fa-fw fa-github"></i></a></li>
<li class="social-li"><a class="social-link" href="https://git.kobold.cafe/kazhnuz" alt="Gitlab"><i class="fa fa-fw fa-git"></i></a></li>
</ul>
<div class="footer-collumns">
<div>
<p>Ce site fait partie de <a href="https://kobold.city">kobold.city</a></p>
<p>Kobold City et les différents sites/services qui le composent sont fourni "tel-quel", sans garantie. Ce sont des sites fait pour le fun, et fourni en tant que tel sur un petit serveur random maintenue par une seule personne.</p>
<p>Cependant, toute critique, remarque, etc. est la bienvenue. Pour cela, vous pouvez me contacter à kazhnuz [at] kobold [point] cafe ou sur les réseaux sociaux visible plus haut</p>
</div>
<div>
<p>Ce site est propulsé par <a href="https://picturepan2.github.io/spectre/">Spectre</a> et <a href="https://forkawesome.github.io/Fork-Awesome/">Fork-Awesome</a> et <a href="https://wordpress.org">Wordpress</a></p>
<p>Le style utilisé est <a href="https://git.kobold.cafe/kazhnuz/kspace.css">kazhnuz.css</a>, sous licence CC BY-SA et GPL v3.</p>
<p>Le code source du theme wordpress est accessible à <a href="https://git.kobold.cafe/kazhnuz/kspace-wordpress-theme">l'adresse suivante</a>.</p>
</div>
<div>
<p>Les contenus sont diffusé sous licence Creative Common Attribution - Partage à l'Identique 4.0 - hors mention contraire.</p>
<p>Ces licences vous autorise à partager et copier mes travaux, tant que vous me citiez en source, et que vous autorisez la même chose pour les travaux qui en seraient dérivés. N'hésitez pas à partager ! <i class="color-red fa fa-heart"></i></p>
</div>
</div>
</footer>

View file

@ -0,0 +1,6 @@
<header id="page-header">
<div class="header-collumns">
<?php include(TEMPLATEPATH . '/components/logo.php'); ?>
<?php include(TEMPLATEPATH . '/components/navbar-pages.php'); ?>
</div>
</header>

View file

@ -1,3 +1,3 @@
<section class="container-fluid"> <div class="logo-area">
<h1><a href="<?php echo site_url(); ?>"><img src="<?php echo get_template_directory_uri();?>/img/logo.png"></a></h1> <h1><a href="<?php echo site_url(); ?>"><img src="<?php echo get_template_directory_uri();?>/img/logo.png" alt="Kazhnuz"/></a></h1>
</section> </div>

View file

@ -1,24 +0,0 @@
<footer class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#SecondNavbar" aria-controls="SecondNavbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="SecondNavbar">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
<li class="nav-item inactive">
CC BY-SA 2013-<?php print(date('Y')); ?> <strong><?php bloginfo('name'); ?></strong>
</li>
</ul>
<ul class="navbar-nav my-2 my-lg-0">
<li class="nav-item active">
<a class="nav-link" href="feed:<?php bloginfo('rss2_url'); ?>"><i class="fa fa-fw fa-rss"></i></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="https://twitter.com/qdouze_blog/"><i class="fa fa-fw fa-twitter"></i></a>
</li>
</ul>
</div>
</div>
</footer>

View file

@ -1,28 +1,6 @@
<nav class="navbar navbar-expand-lg navbar-dark bg-primary"> <div class="navbar-area">
<div class="container-fluid"> <!-- <a href="/blog.html" class="btn btn-navbar">Blog</a> -->
<a class="navbar-brand" href="<?php echo site_url(); ?>" id="" ><img src="<?php echo get_template_directory_uri();?>/img/brand-icon.png" alt="Quarante-Douze"></a> <!-- <a href="/crea.html" class="btn btn-navbar">Romans</a> -->
<!-- <a href="/apropos.html" class="btn btn-navbar">A propos</a> -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <a href="<?php bloginfo('rss2_url'); ?>" class="btn btn-navbar"><i class="fa fa-rss"></i></a>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<?php $pages = get_pages();
if ( $pages ) {
foreach( $pages as $page ) {
echo '<li class="nav-item">';
echo '<a class="nav-link" href="' . get_page_link( $page->ID ) . '">'. $page->post_title .'</a>';
echo '</li>';
}
}?>
</ul>
<ul class="navbar-nav my-2 my-lg-0">
<li class="form">
<?php include(TEMPLATEPATH . '/components/searchform.php'); ?>
</li>
</ul>
</div> </div>
</div>
</nav>

View file

@ -1,8 +1,7 @@
</div> </div>
</section>
<?php include(TEMPLATEPATH . '/components/navbar-footer.php'); ?>
</div> </div>
<?php include(TEMPLATEPATH . '/components/footer-content.php'); ?>
<?php wp_footer(); ?> <?php wp_footer(); ?>
<script src="<?php echo get_template_directory_uri();?>/dep/jquery/js/jquery.min.js"></script> <script src="<?php echo get_template_directory_uri();?>/dep/jquery/js/jquery.min.js"></script>
</body> </body>

View file

@ -12,23 +12,18 @@
<?php wp_head(); ?> <?php wp_head(); ?>
<?php include(TEMPLATEPATH . '/components/opengraph.php'); ?> <?php include(TEMPLATEPATH . '/components/opengraph.php'); ?>
<!-- mon icon -->
<link rel="shortcut icon" href="img/favicon.png"> <link rel="shortcut icon" href="img/favicon.png">
<!-- framework utilisés --> <!-- framework utilisés -->
<link href="<?php echo get_template_directory_uri() . "/dep/spectre/css/spectre.min.css"; ?>" rel="stylesheet"/> <link href="<?php echo get_template_directory_uri() . "/dep/spectre/css/spectre.min.css"; ?>" rel="stylesheet"/>
<link href="<?php echo get_template_directory_uri() . "/dep/fork-awesome/css/fork-awesome.min.css"; ?>" rel="stylesheet"/> <link href="<?php echo get_template_directory_uri() . "/dep/fork-awesome/css/fork-awesome.min.css"; ?>" rel="stylesheet"/>
<!-- CSS -->
<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet"/> <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet"/>
</head> </head>
<!-- Début du vrai HTML -->
<body> <body>
<div id="wrapper" class="card"> <div id="wrapper">
<header> <?php include(TEMPLATEPATH . '/components/header-content.php'); ?>
<?php include(TEMPLATEPATH . '/components/navbar-pages.php'); ?> <div class="container-blog">
<?php include(TEMPLATEPATH . '/components/logo.php'); ?>
<?php include(TEMPLATEPATH . '/components/navbar-category.php'); ?>
</header>
<section class="container-fluid">
<div class="row">