Compare commits

..

No commits in common. "d9383824aba8ac9e7dacb929ecb9944257b9eb61" and "2bbb9f3773c6d7ca90fa18ac890fbfc0600dd0cf" have entirely different histories.

8 changed files with 14 additions and 190 deletions

View file

@ -17,7 +17,7 @@
</a> </a>
</li> </li>
<li class="social-li"> <li class="social-li">
<a class="social-link" href="https://kazhnuz.space/about#social"> <a class="social-link" href="https://kazhnuz.space/links">
<i class="fa fa-fw fa-ellipsis-h" aria-hidden="true"></i> <i class="fa fa-fw fa-ellipsis-h" aria-hidden="true"></i>
<span class='sr-only'>Plus de liens</span> <span class='sr-only'>Plus de liens</span>
</a> </a>

View file

@ -1,60 +0,0 @@
<?php if(have_posts()) : ?>
<div class="preview-grid">
<?php
$max = 6;
$i = 0;
?>
<?php while(have_posts()) : the_post(); ?>
<article class="card card-preview head-primary">
<a href="<?php the_permalink(); ?>" class="preview-link">
<h1 class="card-header"><?php the_title(); ?></h1>
<div class="preview-content">
<?php if(!has_post_thumbnail( $post->ID )) {
?>
<div class="preview-exerpt" aria-hidden="true"><?php the_excerpt(); ?></div>
<?php
} else {
?>
<div class="preview-exerpt" aria-hidden="true"><p class="p-img"><img class="preview-img" src="<?php echo get_the_post_thumbnail_url(); ?>" /></p></div>
<?php
}
?>
<div class="preview-overlay">
<div class="preview-metadata">
<div class="metadata-pills">
<div><?php
if (!has_category('chapters')) {
$category = get_the_category();
echo"<span class='btn-small btn-info small-text'>" . $category[0]->cat_name . "</span>";
} else {
$romans = get_the_terms($post->ID, 'roman');
echo"<span class='btn-small btn-info small-text'>" . $romans[0]->name . "</span>";
}
?></div>
<div><time><span class="btn-small btn-info small-text"><?php the_time('d/m/Y') ?></span></time></div>
</div>
<div class="comment-text">
<?php $category = get_the_category();
$category_parent_id = $category[0]->category_parent;
if ( get_term( $category_parent_id, 'category' )->slug != "3-gallerie" ) {
echo reading_time();
} else {
echo image_number();
}
?>
</div>
</div>
</div>
</div>
</a>
</article>
<?php
$i++;
if ($i >= 6) {
break;
}
?>
<?php endwhile; ?>
</div>
<?php endif; ?>

View file

@ -1,68 +1,21 @@
<?php get_header(); ?> <?php get_header(); ?>
<div class="fullwidth" id="skip"> <main id="skip">
<?php include(TEMPLATEPATH . '/components/globalflag.php'); ?> <?php include(TEMPLATEPATH . '/components/globalflag.php'); ?>
<!-- Recuperation de la page de home --> <!-- Recuperation de la page de home -->
<?php if ( !is_paged() ) { <?php if ( !is_paged() ) {
$page = get_page_by_path( 'home' ); $page = get_page_by_path( 'home' );
if ($page != null) { if ($page != null) {
?> echo '<h1 class="page-title">' . get_the_title( $page ) . '</h1>';
<section class="columns p-0"> echo '<div>' . $page->post_content . '</div>';
<h1 class="col-12 page-title pb-0" id="desc-title"><?php echo get_the_title( $page ); ?></h1> }
<div class="col-xl-4 col-12"><img class="illustration" alt="Un kobold gris et violet binoclard, avec un manteau noir plein de cables" src="<?php echo get_template_directory_uri();?>/img/zerhjyj.png" /></div> echo '<h1 class="page-title">Dernier article</h1>';
<div class="col-xl-8 col-12"> include(TEMPLATEPATH . '/components/featured.php');
<div aria-libelledby="desc-title" class="mb-1"><?php echo $page->post_content; ?></div>
<div class="align-center d-none d-block-xl"><a href="/about" class="btn btn-primary">Plus d'info</a></div>
</div>
</section>
<section class="mb-2 d-none d-block-xl">
<h1 class="screen-reader-text">Mes sites web</h1>
<nav>
<ul class="no-pills f-row f-between mb-1">
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['link-menu']);
foreach ($menu as $menuElement) {
echo '<li class="m-0"><a href="' . $menuElement->url . '" class="btn btn-primary">'. $menuElement->title . '</a></li>';
}
?>
</ul>
</nav>
</section>
<?php
} }
}
?> ?>
<div class="container-blog"> <h1 class="page-title">Publications</h1>
<section> <?php include(TEMPLATEPATH . '/components/preview-list.php'); ?>
<div class="mb-1 d-none d-block-sm bg-light-2">
<?php include(TEMPLATEPATH . '/components/searchform.php'); ?>
</div>
<?php
echo '<h1 class="page-title">Dernier article</h1>';
include(TEMPLATEPATH . '/components/featured.php');
?>
<h1 class="page-title">Dernières publications</h1>
<?php include(TEMPLATEPATH . '/components/preview-list-home.php'); ?>
<div> </main>
<?php if ( !is_paged() ) { <?php get_sidebar(); ?>
$page = get_page_by_path( 'buttons' );
if ($page != null) {
?> <h1 class="sr-only" id="title-buttons">Boutons web</h1> <?php
echo '<div>' . $page->post_content . '</div>';
}
}
?>
</div>
</section>
<aside class="sidebar" aria-labelledby="title-sidebar">
<h1 class="sr-only" id="title-sidebar">Menu de navigation</h1>
<?php include(TEMPLATEPATH . '/components/sidebar/categories.php'); ?>
<?php include(TEMPLATEPATH . '/components/sidebar/tags.php'); ?>
<?php include(TEMPLATEPATH . '/components/sidebar/archives.php'); ?>
</aside>
</div>
</div>
<?php get_footer(); ?> <?php get_footer(); ?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

View file

@ -3,7 +3,7 @@
<main> <main>
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<article class="article-content container-article mb-1" id="post-<?php the_ID(); ?>"> <article class="article-content container-article" id="post-<?php the_ID(); ?>">
<h1 class="page-title"><?php the_title(); ?></h1> <h1 class="page-title"><?php the_title(); ?></h1>
<div class="article-body"> <div class="article-body">
@ -13,49 +13,6 @@
<?php endwhile; ?> <?php endwhile; ?>
<?php endif; ?> <?php endif; ?>
<div class="card head-primary" id="social">
<h2 class="card-header">Me retrouver sur les réseaux sociaux</h2>
<table class="head-info">
<thead>
<tr>
<th class="text-info">Réseau social</th>
<th class="text-right text-info">Lien</th>
</tr>
</thead>
<tbody>
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['social']);
if ($menu != null) {
foreach ($menu as $menuElement) {
?>
<tr>
<th><i class="fa fa-fw fa-<?php echo $menuElement->title; ?>" aria-hidden="true"></i> <span class="text-maj"><?php echo $menuElement->title; ?></span></th>
<td class="text-right"><a class="pretty-link" href="<?php echo $menuElement->url; ?>"><?php echo $menuElement->url; ?></td>
</tr>
<?php
}
}
?>
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['social-plus']);
if ($menu != null) {
foreach ($menu as $menuElement) {
?>
<tr>
<th><i class="fa fa-fw fa-<?php echo $menuElement->title; ?>" aria-hidden="true"></i> <span class="text-maj"><?php echo $menuElement->title; ?></span></th>
<td class="text-right"><a class="pretty-link" href="<?php echo $menuElement->url; ?>"><?php echo $menuElement->url; ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</main> </main>
<aside class="sidebar"> <aside class="sidebar">
<div class="card head-info"> <div class="card head-info">

View file

@ -28,20 +28,6 @@
&-right {text-align: right;} &-right {text-align: right;}
} }
.illustration {
width: 300px;
display:block;
margin:auto;
@include xl() {
width: 145%;
padding-bottom: 0;
margin-bottom: 1.5rem;
position: relative;
top: 0px;
right: 64px;
}
}
/* ------------------ HEADERS ------------------- */ /* ------------------ HEADERS ------------------- */
#page-header { #page-header {

View file

@ -2460,18 +2460,6 @@ textarea {
.align-right { .align-right {
text-align: right; } text-align: right; }
.illustration {
width: 300px;
display: block;
margin: auto; }
@media (min-width: 1200px) {
.illustration {
width: 145%;
padding-bottom: 0;
margin-bottom: 1.5rem;
position: relative;
top: 0px;
right: 64px; } }
/* ------------------ HEADERS ------------------- */ /* ------------------ HEADERS ------------------- */
#page-header { #page-header {
background: #0f7e84 url("img/background.png"); background: #0f7e84 url("img/background.png");