42 lines
1.8 KiB
PHP
42 lines
1.8 KiB
PHP
<?php
|
|
/**
|
|
* Gabarit de page d'erreur 404 utile avec recherche et liens directs vers l'UL (404.php).
|
|
*
|
|
* @package CGT_FHA
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
get_header();
|
|
$opts = cgt_fha_get_options();
|
|
?>
|
|
|
|
<section class="cgt-section cgt-section--white cgt-404">
|
|
<div class="cgt-container--narrow">
|
|
<span class="cgt-404__code">404</span>
|
|
<h1><?php esc_html_e( 'Cette page est introuvable', 'cgt-fha' ); ?></h1>
|
|
<p style="color:var(--text-muted); max-width:560px; margin-inline:auto;">
|
|
<?php esc_html_e( 'Le lien que vous avez suivi a peut-être été déplacé ou n\'existe plus. Effectuez une recherche ou accédez directement aux services de l\'Union Locale CGT Foix Haute-Ariège.', 'cgt-fha' ); ?>
|
|
</p>
|
|
|
|
<form role="search" method="get" class="cgt-search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
|
|
<label for="cgt-404-search" class="screen-reader-text"><?php esc_html_e( 'Rechercher sur le site', 'cgt-fha' ); ?></label>
|
|
<input type="search" id="cgt-404-search" name="s" placeholder="<?php esc_attr_e( 'Rechercher une actualité, un droit…', 'cgt-fha' ); ?>" />
|
|
<button type="submit" class="cgt-btn cgt-btn--primary"><?php esc_html_e( 'Rechercher', 'cgt-fha' ); ?></button>
|
|
</form>
|
|
|
|
<div class="cgt-network-strip">
|
|
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="cgt-network-link">Accueil</a>
|
|
<a href="<?php echo esc_url( cgt_fha_get_local_news_archive_url() ); ?>" class="cgt-network-link">Actualités locales</a>
|
|
<a href="<?php echo esc_url( (string) $opts['calendar_url'] ); ?>" class="cgt-network-link">Calendrier</a>
|
|
<a href="<?php echo esc_url( (string) $opts['contact_url'] ); ?>" class="cgt-network-link">Urgence salarié / Contact</a>
|
|
<a href="<?php echo esc_url( (string) $opts['join_url'] ); ?>" class="cgt-network-link">Rejoindre la CGT</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<?php
|
|
get_footer();
|