62 lines
1.6 KiB
PHP
62 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Gabarit de page standard (page.php) : Contact, Calendrier, Syndiquez-vous, Mentions légales...
|
|
* Compatible avec les shortcodes et hooks des extensions sœurs cgt-wp-calendar et cgt-wp-forms.
|
|
*
|
|
* @package CGT_FHA
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<?php
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
?>
|
|
<section class="cgt-page-hero">
|
|
<div class="cgt-container--narrow">
|
|
<nav class="cgt-breadcrumb" aria-label="<?php esc_attr_e( 'Fil d\'Ariane', 'cgt-fha' ); ?>">
|
|
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'Accueil', 'cgt-fha' ); ?></a>
|
|
<span aria-hidden="true">/</span>
|
|
<span><?php the_title(); ?></span>
|
|
</nav>
|
|
<h1 class="cgt-page-hero__title"><?php the_title(); ?></h1>
|
|
</div>
|
|
</section>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class( 'cgt-article-wrap' ); ?>>
|
|
<div class="cgt-container--narrow">
|
|
<?php if ( has_post_thumbnail() ) : ?>
|
|
<div class="cgt-article__featured">
|
|
<?php the_post_thumbnail( 'cgt-featured', array( 'fetchpriority' => 'high' ) ); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="entry-content">
|
|
<?php
|
|
the_content();
|
|
|
|
wp_link_pages(
|
|
array(
|
|
'before' => '<div class="page-links">' . esc_html__( 'Pages :', 'cgt-fha' ),
|
|
'after' => '</div>',
|
|
)
|
|
);
|
|
?>
|
|
</div>
|
|
|
|
<?php
|
|
// Emplacement propre pour accueillir cgt-wp-calendar ou cgt-wp-forms selon le slug de page.
|
|
do_action( 'cgt_fha_after_page_content', get_post_field( 'post_name', get_the_ID() ) );
|
|
?>
|
|
</div>
|
|
</article>
|
|
<?php endwhile; ?>
|
|
|
|
<?php
|
|
get_footer();
|