/* -------------------------------------------------------------------------
* Pages commerciales (casino / paris sportifs) — 2026-09-14
*
* A stylesheet, a body class, an fr-CA locale for the two Canadian pages and
* one reciprocal hreflang pair. Scoped to a fixed ID list: the archive runs to
* ~1 500 posts and none of them need any of it.
* ------------------------------------------------------------------------- */
function g4e_commercial_page_ids() {
return array(
567036, // /casino-en-ligne/
567037, // /site-de-paris-sportifs/
567038, // /nouveau-site-de-paris-sportif/
567039, // /nouveau-casino-en-ligne/
567040, // /casino-en-ligne-canada/ (fr-CA)
567041, // /interac-casino-en-ligne/ (fr-CA)
567042, // /casino-avec-retrait-immediat/
567043, // /crypto-casino-sans-kyc/
);
}
function g4e_fr_ca_page_ids() {
return array( 567040, 567041 );
}
add_action( 'wp_enqueue_scripts', function () {
if ( ! is_page( g4e_commercial_page_ids() ) ) {
return;
}
$rel = '/assets/css/g4e-commercial.css';
$file = get_stylesheet_directory() . $rel;
wp_enqueue_style(
'g4e-commercial',
get_stylesheet_directory_uri() . $rel,
array( 'parent-style' ),
file_exists( $file ) ? (string) filemtime( $file ) : null
);
}, 33 );
add_filter( 'body_class', function ( $classes ) {
if ( is_page( g4e_commercial_page_ids() ) ) {
$classes[] = 'g4e-com';
}
return $classes;
} );
/**
* The Canadian pages address a Quebec reader: provincial regulators, Canadian
* helplines, Interac. Serving them as fr-FR tells a search engine they compete
* with the France pages, which is the opposite of what they do.
*/
add_filter( 'language_attributes', function ( $output ) {
if ( ! is_page( g4e_fr_ca_page_ids() ) ) {
return $output;
}
return preg_replace( '/lang="[^"]*"/', 'lang="fr-CA"', $output, 1 );
} );
/**
* hreflang pair. Both sides list both URLs plus x-default: a one-way
* annotation is ignored.
*/
add_action( 'wp_head', function () {
$pair = array(
'fr-FR' => 567036, // /casino-en-ligne/
'fr-CA' => 567040, // /casino-en-ligne-canada/
);
if ( ! is_page( array_values( $pair ) ) ) {
return;
}
foreach ( $pair as $locale => $id ) {
printf( '' . "\n",
esc_attr( $locale ), esc_url( get_permalink( $id ) ) );
}
printf( '' . "\n",
esc_url( get_permalink( $pair['fr-FR'] ) ) );
}, 3 );
Girondins4Ever - Rio Mavuba, pour le titre ?
Romain
Romain
Rio Mavuba, pour le titre ?
Il est fort probable que Rio Mavuba ait donné le titre de Champion de France au LOSC ce soir. En effet, l’ex bordelais, d’une frappe des 30 mètres déviée, a offert la victoire à son équipe sur Saint-Etienne (1-2). Les Dogues possèdent 7 points d’avance sur l’OM, qui reçoit un Brest au complet demain soir.