2021-01-03 11:40:57 +01:00
|
|
|
<?php /* Template Name: page-about */ ?>
|
|
|
|
<?php get_header(); ?> <!-- ouvrir header,php -->
|
|
|
|
<main>
|
|
|
|
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
|
|
|
|
|
2023-05-20 15:13:02 +02:00
|
|
|
<article class="article-content container-article mb-1" id="post-<?php the_ID(); ?>">
|
2021-01-03 11:40:57 +01:00
|
|
|
<h1 class="page-title"><?php the_title(); ?></h1>
|
|
|
|
|
|
|
|
<div class="article-body">
|
|
|
|
<?php the_content(); ?>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
<?php endwhile; ?>
|
|
|
|
<?php endif; ?>
|
2023-05-20 15:13:02 +02:00
|
|
|
|
|
|
|
<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>
|
2023-10-04 13:36:05 +02:00
|
|
|
<th><i class="icon icon-fw icon-<?php echo $menuElement->title; ?>" aria-hidden="true"></i> <span class="text-maj"><?php echo $menuElement->title; ?></span></th>
|
2023-05-20 15:13:02 +02:00
|
|
|
<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>
|
2023-10-04 13:36:05 +02:00
|
|
|
<th><i class="icon icon-fw icon-<?php echo $menuElement->title; ?>" aria-hidden="true"></i> <span class="text-maj"><?php echo $menuElement->title; ?></span></th>
|
2023-05-20 15:13:02 +02:00
|
|
|
<td class="text-right"><a class="pretty-link" href="<?php echo $menuElement->url; ?>"><?php echo $menuElement->url; ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2021-01-03 11:40:57 +01:00
|
|
|
</main>
|
|
|
|
<aside class="sidebar">
|
2023-05-20 10:02:10 +02:00
|
|
|
<div class="card head-info">
|
2021-01-03 11:40:57 +01:00
|
|
|
<?php $desc = explode(";", get_the_author_meta( 'infodata' )) ?>
|
2023-10-04 13:36:05 +02:00
|
|
|
<div class="card-header"><i class="icon icon-info" aria-hidden="true"></i> <?php
|
2021-01-03 11:40:57 +01:00
|
|
|
if (!empty($desc[1])) {
|
|
|
|
echo $desc[1];
|
|
|
|
} else {
|
|
|
|
the_author();
|
|
|
|
}
|
|
|
|
?></div>
|
2021-01-25 13:47:24 +01:00
|
|
|
<p class="mwarea"><?php echo get_avatar( get_the_author_meta('user_email'), $size = '500'); ?></p>
|
2023-05-20 10:02:10 +02:00
|
|
|
<table style="width:100%" class="head-primary">
|
2021-01-03 11:40:57 +01:00
|
|
|
<tr>
|
|
|
|
<th>Pseudo</th>
|
|
|
|
<td><?php the_author() ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php $user_description = $desc[0];
|
|
|
|
$array_tr = explode ( ",", $user_description);
|
|
|
|
foreach ($array_tr as $tr) {
|
|
|
|
echo "<tr>";
|
|
|
|
$array_td = explode(':', $tr);
|
|
|
|
echo "<th>" . $array_td[0] . "</th>";
|
|
|
|
echo "<td>" . $array_td[1] . "</td>";
|
|
|
|
echo "</tr>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php include(TEMPLATEPATH . '/components/sidebar-content.php'); ?>
|
|
|
|
</aside>
|
|
|
|
<?php get_footer(); ?>
|