Commentaires sur : Des consultants RH spécialisés dans le recrutement logistique et supply chain à Lyon https://www.solverecrutement.com/blog/des-consultants-rh-specialises-dans-le-recrutement-logistique/ |||TEMP_OFFRES_FILE|||<?php /** * Template Name: Offres d'emploi */ get_header(); ?> <article role="main"> <?php get_template_part('templates/parts/content-hdp'); ?> <?php get_template_part('content','flexible'); ?> <?php $site = get_current_blog_id(); // Correspondance secteurs Hellowork + site (blog ID) $site_sectors = [ 3 => [ // Industrie "Agriculture/Pêche", "Industrie Agro-alimentaire", "Industrie Auto/Meca/Navale", "Industrie Aéronautique/Aérospatial", "Industrie Pétrolière/Pétrochimie", "Industrie Manufacturière", "Transport / Manutention / Logistique", "Industrie Textile / Métallurgie", "Industrie Chimique / Pharmaceutique", "Industrie Automobile / Aéronautique", "Industrie Agroalimentaire", ], 4 => [ // Digital "Média/Internet/Communication", "Secteur Informatique/ESN", "Informatique / Télécom / Multimédia", ], 5 => [ // Cadres & Dirigeants "Activités artisanales / culturelles / sportives", "Service public des collectivités territoriales", "Service public d'État", "Service public (autres)", "Education / Formation", ], 6 => [ // Distribution "Distribution/Commerce de gros", ], 7 => [ // Construction "BTP", "Immobilier", "Secteur Énergie/Environnement", "Banque / Assurance / Immobilier", ], 8 => [ // Finance & Comptabilité "Banque/Assurance/Finance", "Services aux entreprises", ], 9 => [ // Commerce "Services aux entreprises", "Commerce / Distribution", ], 10 => [ // Hôtellerie & Restauration "Restauration", "Tourisme/Hôtellerie/Loisirs", ], 11 => [ // Santé "Santé/Social/Association", "Services aux personnes", "Service public hospitalier", ], 12 => [ // Transport & Logistique "Transport/Logistique", ], ]; $matching_offers = []; $feed_url = 'https://www.hw-recruteur.com/flux/v1/share/HFJ8idB1qVvsru8Ek0L8Dg=='; $feed_json = file_get_contents( $feed_url ); $feed_data = json_decode( $feed_json ); if ( $feed_data && ! empty( $feed_data->Results ) ) { if ( $site === 1 ) { // Site principal : afficher toutes les offres $matching_offers = $feed_data->Results; } elseif ( isset( $site_sectors[ $site ] ) ) { $allowed_sectors = $site_sectors[ $site ]; foreach ( $feed_data->Results as $offer ) { $offer_sectors = isset( $offer->Criteria->Sector ) ? (array) $offer->Criteria->Sector : []; // Afficher l'offre si au moins un secteur correspond au site courant if ( array_intersect( $allowed_sectors, $offer_sectors ) ) { $matching_offers[] = $offer; } } } } if ( ! empty( $matching_offers ) ) : ?> <section class="offres"> <div class="container"> <h2>Offres d'emploi</h2> <div class="offre__list"> <?php foreach ( $matching_offers as $offer ) : $title = esc_html( $offer->NameAdvertise ); $contract_type = esc_html( $offer->JobContract ); $city = esc_html( $offer->City ); $country = esc_html( $offer->Country ); $url = esc_url( $offer->LinkPage ); $remun = ''; if ( ! $offer->RemunerationIsNotVisible && ( $offer->MinRemuneration > 0 || $offer->MaxRemuneration > 0 ) ) { if ( $offer->MinRemuneration > 0 && $offer->MaxRemuneration > 0 ) { $remun = number_format( $offer->MinRemuneration, 0, ',', ' ' ) . ' – ' . number_format( $offer->MaxRemuneration, 0, ',', ' ' ) . ' €/an'; } elseif ( $offer->MinRemuneration > 0 ) { $remun = 'À partir de ' . number_format( $offer->MinRemuneration, 0, ',', ' ' ) . ' €/an'; } } ?> <div class="offre__item"> <div class="offre__infos"> <h3 class="offre__title"><?php echo $title; ?></h3> <p class="offre__excerpt"><b>Contrat :</b> <?php echo $contract_type; ?></p> <?php if ( $remun ) : ?> <p class="offre__remun"><b>Rémunération :</b> <?php echo esc_html( $remun ); ?></p> <?php endif; ?> <span class="offre__localisation"><?php echo $country; ?> - <?php echo $city; ?></span> </div> <a href="<?php echo $url; ?>" target="_blank" class="offre__link">Voir l'offre</a> </div> <?php endforeach; ?> </div> </div> </section> <?php endif; ?> </article> <?php get_footer(); ?> |||END||| Thu, 30 May 2024 13:05:38 +0000 hourly 1 https://wordpress.org/?v=7.0.4