Commit 35704875 authored by Nathan Peraldi's avatar Nathan Peraldi

add: footer with links and contact infos

parent 99d06c2a
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
* @version 1.2
*/
</div><!-- #content -->
?>
<footer id="colophon" class="site-footer" role="contentinfo">
<div id="adullact-footer" class="wrap">
<ul>
<li><?php get_adullact_page("mentions-legales")?></li>
<li><?php get_adullact_page("accessibilite")?></li>
<li><?php get_adullact_page("contact")?></li>
<li><?php get_adullact_page("plan-du-site")?></li>
</ul>
</div><!-- #content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="wrap">
<?php
get_template_part( 'template-parts/footer/footer', 'widgets' );
if ( has_nav_menu( 'social' ) ) :
?>
<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>">
<?php
wp_nav_menu(
array(
'theme_location' => 'social',
'menu_class' => 'social-links-menu',
'depth' => 1,
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>' . twentyseventeen_get_svg( array( 'icon' => 'chain' ) ),
)
);
?>
</nav><!-- .social-navigation -->
<?php
endif;
get_template_part( 'template-parts/footer/site', 'info' );
?>
</div><!-- .wrap -->
</footer><!-- #colophon -->
</div><!-- .site-content-contain -->
<p id="adullact-contact-informations">
Association ADULLACT, 5 Rue du Plan du Palais, 34000 Montpellier<br>
contact[at]adullact.org<br>
04 67 65 05 88
</p>
</div><!-- .wrap -->
</footer><!-- #colophon -->
</div><!-- .site-content-contain -->
</div><!-- #page -->
<?php wp_footer(); ?>
......
......@@ -8,6 +8,20 @@ function my_theme_enqueue_styles()
$debug_functions = false;
function get_adullact_page($slug,$class="")
{
$args = array(
"post_type" => "page",
"orderby" => "title",
"name" => "$slug",
"posts_per_page" => -1);
$page = get_posts($args)[0];
//var_dump($page);
$result = "<a href='" . $page->guid . "' class='" . $class . "'>" . $page->post_title . "</a>";
echo $result;
}
function echo_debug($words)
{
//si mode debug activé, on affiche les informations demandées
......@@ -74,7 +88,7 @@ function childrens_of_member_category($category_to_select)
}
}
function sort_page($order, $page,$link)
function sort_page($order, $page, $link)
{
$for_asc_link = $link . "?page=" . $page . "&order=asc";
$for_desc_link = $link . "?page=" . $page . "&order=desc";
......
......@@ -270,10 +270,9 @@
text-align: justify;
}
article .entry-footer
{
border-top:none;
margin-top:0;
article .entry-footer {
border-top: none;
margin-top: 0;
}
/*
......@@ -285,7 +284,7 @@ que comme cela
float: none;
}
.entry-header a{
padding:3px;
padding-right:6px;
.entry-header a {
padding: 3px;
padding-right: 6px;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment