62 lines
1.6 KiB
PHP
62 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Gabarit de la liste paginée des actualités locales de l'UL (home.php).
|
|
*
|
|
* @package CGT_FHA
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
get_header();
|
|
$posts_page_id = (int) get_option( 'page_for_posts' );
|
|
$page_title = $posts_page_id > 0 ? get_the_title( $posts_page_id ) : 'Actualités locales — Foix & Haute-Ariège';
|
|
?>
|
|
|
|
<section class="cgt-page-hero">
|
|
<div class="cgt-container">
|
|
<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 echo esc_html( $page_title ); ?></span>
|
|
</nav>
|
|
<h1 class="cgt-page-hero__title"><?php echo esc_html( $page_title ); ?></h1>
|
|
<p class="cgt-page-hero__desc">
|
|
<?php esc_html_e( 'Retrouvez les communiqués, mobilisations, tracts et comptes-rendus des syndicats CGT de Foix et de la Haute-Ariège.', 'cgt-fha' ); ?>
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="cgt-section cgt-section--white">
|
|
<div class="cgt-container">
|
|
<?php if ( have_posts() ) : ?>
|
|
<div class="cgt-news-grid">
|
|
<?php
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
cgt_fha_render_local_post_card();
|
|
endwhile;
|
|
?>
|
|
</div>
|
|
|
|
<div class="cgt-pagination">
|
|
<?php
|
|
the_posts_pagination(
|
|
array(
|
|
'mid_size' => 2,
|
|
'prev_text' => '← Précédent',
|
|
'next_text' => 'Suivant →',
|
|
)
|
|
);
|
|
?>
|
|
</div>
|
|
<?php else : ?>
|
|
<p><?php esc_html_e( 'Aucun article local publié pour le moment.', 'cgt-fha' ); ?></p>
|
|
<?php endif; ?>
|
|
</div>
|
|
</section>
|
|
|
|
<?php
|
|
get_footer();
|