improvement: fusion about et links

This commit is contained in:
Kazhnuz Klappsthul 2023-05-20 15:13:02 +02:00
parent 2bbb9f3773
commit 4a304b7640
2 changed files with 45 additions and 2 deletions

View File

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

View File

@ -3,7 +3,7 @@
<main>
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<article class="article-content container-article" id="post-<?php the_ID(); ?>">
<article class="article-content container-article mb-1" id="post-<?php the_ID(); ?>">
<h1 class="page-title"><?php the_title(); ?></h1>
<div class="article-body">
@ -13,6 +13,49 @@
<?php endwhile; ?>
<?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>
<aside class="sidebar">
<div class="card head-info">