MAJ du site
12
.htaccess
|
|
@ -378,20 +378,10 @@ RewriteRule ^.* - [F,L]
|
|||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
|
||||
# protect wp-login (allow LDC et localhost)
|
||||
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
|
||||
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
|
||||
RewriteCond %{HTTP:X-FORWARDED-FOR} !^86\.65\.205\.242$
|
||||
RewriteCond %{HTTP:X-FORWARDED-FOR} !^217\.15\.92\.67$
|
||||
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$
|
||||
RewriteRule ^(.*)$ - [R=404,L]
|
||||
|
||||
RewriteRule ^index\.php$ - [L]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /index.php [L]
|
||||
|
||||
|
||||
</IfModule>
|
||||
|
||||
# END WordPress
|
||||
|
|
|
|||
|
|
@ -1050,3 +1050,98 @@ p {
|
|||
font-weight:600;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*------------------Nos métiers ---------------------*/
|
||||
.btn-beige{
|
||||
background-color: #d0ae88;
|
||||
font-size: 1.2em;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
padding: 5px 15px;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
transition: all ease-in-out 0.2s;
|
||||
}
|
||||
.btn-beige:hover, .btn-beige.selected{
|
||||
background-color: #A3896B;
|
||||
}
|
||||
|
||||
.ourjobs-header .btn-beige{
|
||||
margin: 0 auto;
|
||||
width: 170px;
|
||||
display: block;
|
||||
}
|
||||
.ourjobs-type .accelerators-holder{
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.ourjobs-type .accelerators-holder .accelerator{
|
||||
width: 23%;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.ourjobs-type .acc-title-holder .acc-title span, .accelerators-block .acc-title-holder .acc-title strong{
|
||||
font-size: 36px;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px){
|
||||
.ourjobs-type .accelerators-holder .accelerator{
|
||||
width: 30%;
|
||||
}
|
||||
}
|
||||
@media (max-width: 768px){
|
||||
.ourjobs-type .accelerators-holder .accelerator{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.jobpage .listPost {text-align: center;}
|
||||
.jobpage .listPost a {display: inline-block; margin-bottom: 10px;}
|
||||
.jobpage .listPost .selectwrapper{
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 265px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.jobpage .listPost .selectwrapper:after{
|
||||
content: "▼";
|
||||
font-size: 1em;
|
||||
height: 1em;
|
||||
line-height: 1;
|
||||
top: 19px;
|
||||
right: 19px;
|
||||
position: absolute;
|
||||
color: #ffffff;
|
||||
pointer-events: none;
|
||||
|
||||
}
|
||||
.jobpage .listPost .selectChangePost{display: none; width: 100%; border:0; border-radius:5px; padding: 15px 20px; background-color: #d0ae88; color: #ffffff; -webkit-appearance : none; -moz-appearance: none; overflow: hidden; cursor: pointer;}
|
||||
@media (max-width: 768px){
|
||||
.jobpage .listPost a {display: none;}
|
||||
.jobpage .listPost .selectChangePost{display: block;}
|
||||
}
|
||||
.jobpage .onePost{ opacity: 0;}
|
||||
.jobpage .onePost header{margin: 30px 0 60px 0; text-align: center; position: relative;}
|
||||
.jobpage .onePost header .owl-next, .jobpage .onePost header .owl-prev{-webkit-transition: opacity .3s ease-in-out;-o-transition: opacity .3s ease-in-out;transition: opacity .3s ease-in-out;display: block;position: absolute;width: 40px;height: 54px;right: 55px;left: auto;top: 128px;font-size: 0;background: url('../images/owl-nav-arrow-brown.svg');cursor: pointer;cursor: hand;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}
|
||||
.jobpage .onePost header .owl-prev{left: 55px;;right: auto;-webkit-transform: rotate(180deg);-ms-transform: rotate(180deg);transform: rotate(180deg);}
|
||||
.jobpage .onePost iframe {width: 100%;}
|
||||
.jobpage .onePost .descPost .row {display: flex; flex-direction: row;}
|
||||
.jobpage .onePost .descPost .row > div {margin: 0 1%; margin: 60px 0; width: 50%;}
|
||||
.jobpage .onePost .descPost .btn-beige{margin: 0 auto;width: 170px;display: block;}
|
||||
|
||||
@media (max-width: 768px){
|
||||
.jobpage .onePost .descPost .row {flex-direction: column;}
|
||||
.jobpage .onePost .descPost .row > div {margin: 0; width: 100%;}
|
||||
.jobpage .onePost header .owl-next, .jobpage .onePost header .owl-prev{display:none;}
|
||||
}
|
||||
|
||||
.jobpage h4{color: #d0ae88;font-weight: 900;position: relative;margin-bottom: 32px; border-bottom: 1px solid #d0ae88;}
|
||||
@media (max-width: 768px){
|
||||
.jobpage h4{font-size: 19px; margin-bottom: 10px;}
|
||||
}
|
||||
|
||||
.jobpage .social_share{border: 1px solid #a7a7a7; width: 194px; background-color: #eeeeee; padding: 10px 20px; margin: 20px auto 0 auto;}
|
||||
|
||||
.jobpage .social_share p {font-size: 13px; margin-bottom: 6px;}
|
||||
.jobpage .social_share ul {list-style: none; margin: 0; padding: 0;}
|
||||
.jobpage .social_share li {display: inline-block; cursor: pointer;}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ get_header(); ?>
|
|||
</span>
|
||||
</h3>
|
||||
<div>
|
||||
<p>Our three subsidiaries, with 11 sites, employ 2 500 people within the LDC Group.<br/>
|
||||
<p>Our three subsidiaries, with 11 sites, employ 3 600 people within the LDC Group.<br/>
|
||||
Our production sites are located near poultry farmers so that all stakeholders can benefit from an exchange of expertise.</p>
|
||||
</div>
|
||||
<div class="bretagneMap">
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ get_header(); ?>
|
|||
</span>
|
||||
</h3>
|
||||
<div>
|
||||
<p>Nos 3 filières, comptant 11 sites, emploient 2 500 personnes au sein du groupe LDC.<br/>
|
||||
<p>Nos 3 filières, comptant 11 sites, emploient 3 600 personnes au sein du groupe LDC.<br/>
|
||||
Nos sites de production évoluent à proximité des éleveurs<br/>
|
||||
ainsi nous encourageons et bénéficions d'un partage d'expérience fort.</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ if (is_admin()){
|
|||
}
|
||||
// ---- Custom post type
|
||||
get_template_part( 'inc/functs', 'custompicto' );
|
||||
get_template_part( 'inc/functs', 'metiers' );
|
||||
|
||||
|
||||
// ------ Upload dans dossier spécifique
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<title><?php wp_title(''); ?></title>
|
||||
<title><?php the_title(); ?></title>
|
||||
|
||||
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
|
||||
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
<script src="js/html5shiv.js"></script>
|
||||
<script src="js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/images/LDCR-favicons_16x16.png">
|
||||
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicon/favicon-16x16.png">
|
||||
|
||||
<?php wp_head(); ?>
|
||||
</head><!--/head-->
|
||||
|
|
@ -63,6 +63,7 @@
|
|||
<li class="savoir"><a href="<?=custom_get_page_link(338);?>"><?php pll_e("Une histoire de <br> savoir-faire"); ?></a></li>
|
||||
<li class="solutions"> <a href="<?=custom_get_page_link(407);?>"><?php pll_e("Nos solutions au <br> service de nos clients"); ?></a></li>
|
||||
<li class="ourbrands"> <a href="<?=custom_get_page_link(405);?>"><?php pll_e("Nos marques"); ?></a></li>
|
||||
<li class="ourjobs"> <a href="<?=custom_get_page_link(772);?>"><?php pll_e("Nos métiers"); ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 73 KiB |
BIN
pole-sbv-content/themes/pole-sbv/images/doux.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
pole-sbv-content/themes/pole-sbv/images/fb.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
pole-sbv-content/themes/pole-sbv/images/linkedin.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 34 KiB |
BIN
pole-sbv-content/themes/pole-sbv/images/twitter.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
pole-sbv-content/themes/pole-sbv/images/viadeo.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
53
pole-sbv-content/themes/pole-sbv/inc/functs-metiers.php
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?php
|
||||
|
||||
// ---- CPT Métiers
|
||||
function wp_cpt_metiers() {
|
||||
$labels = array(
|
||||
'name' => _x( 'Métiers', 'Post Type General Name'),
|
||||
'singular_name' => _x( 'Métier', 'Post Type Singular Name'),
|
||||
'menu_name' => __( 'Métiers'),
|
||||
'all_items' => __( 'Toutes les métiers'),
|
||||
'view_item' => __( 'Voir les métiers'),
|
||||
'add_new_item' => __( 'Ajouter un métier'),
|
||||
'add_new' => __( 'Ajouter'),
|
||||
'edit_item' => __( 'Editer le métier'),
|
||||
'update_item' => __( 'Modifier le métier'),
|
||||
'search_items' => __( 'Rechercher un métier'),
|
||||
'not_found' => __( 'Non trouvé'),
|
||||
'not_found_in_trash' => __( 'Non trouvé dans la corbeille'),
|
||||
);
|
||||
|
||||
$args = array(
|
||||
'label' => __( 'Métiers'),
|
||||
'labels' => $labels,
|
||||
'supports' => array( 'title', 'editor'),
|
||||
'hierarchical' => false,
|
||||
'public' => true,
|
||||
'has_archive' => false,
|
||||
'rewrite' => array( 'slug' => 'nos-metiers'),
|
||||
'menu_icon' => 'dashicons-businessman'
|
||||
);
|
||||
|
||||
register_post_type( 'cpt_metiers', $args );
|
||||
}
|
||||
add_action( 'init', 'wp_cpt_metiers', 0 );
|
||||
|
||||
// ---- Taxo : Catégories de métier
|
||||
function taxo_familles_metiers() {
|
||||
$args = array(
|
||||
'label' => __( 'Familles' ),
|
||||
'hierarchical' => true,
|
||||
'rewrite' => array( 'slug' => 'metiers'),
|
||||
'show_admin_column' => true,
|
||||
'meta_box_cb' => false
|
||||
);
|
||||
register_taxonomy( 'familles_metiers',array( 'cpt_metiers'), $args );
|
||||
}
|
||||
add_action( 'init', 'taxo_familles_metiers');
|
||||
|
||||
// ---- Supprime Yoast du CPT
|
||||
function remove_yoast_cpt() {
|
||||
remove_meta_box('wpseo_meta', "cpt_metiers", 'normal');
|
||||
}
|
||||
add_action('add_meta_boxes', 'remove_yoast_cpt', 100);
|
||||
?>
|
||||
|
|
@ -125,6 +125,15 @@ get_header(); ?>
|
|||
</div>
|
||||
</div>
|
||||
<p class="international" style="margin-bottom:0;"><span class='bold'>International : </span></p>
|
||||
<div class="brand">
|
||||
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/doux.png" alt="Doux" class="specImg" />
|
||||
<div class=" fixMargin">
|
||||
<p>
|
||||
Doux, expert des produits de volaille pour le grand export.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/prims-150x150.png" alt="Prim's" class="specImg" />
|
||||
<div class=" fixMargin">
|
||||
|
|
|
|||
|
|
@ -76,7 +76,8 @@ get_header(); ?>
|
|||
</h3>
|
||||
<div>
|
||||
<p>Nous accompagnons chaque acteur à tous les niveaux dans ses missions et ses responsabilités. <br/>Nous formons nos salariés et développons leurs compétences.</p>
|
||||
</div>
|
||||
<p>Nous encourageons nos collaborateurs dans leurs perspectives de carrière en privilégiant l’évolution interne. Découvrez tous <a href="<?=custom_get_page_link(772);?>">nos métiers</a> et <a target="_blank" href="https://recrutement.ldc.fr/fr/annonces?localisation=28751">offres d’emploi</a> sur l’espace nous rejoindre.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="text-content">
|
||||
|
|
|
|||
72
pole-sbv-content/themes/pole-sbv/metier_part.php
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
|
||||
<section class="text-content">
|
||||
<div class="container">
|
||||
<div class="listPost">
|
||||
<?php
|
||||
while ($query->have_posts()) : $query->the_post(); ?>
|
||||
<a href="#" class="changePost btn-beige" attr-id="<?php echo get_the_ID(); ?>"><?php echo get_the_title(); ?></a>
|
||||
<?php endwhile; ?>
|
||||
<div class="selectwrapper"><select class="selectChangePost" >
|
||||
<?php rewind_posts();
|
||||
while ($query->have_posts()) : $query->the_post(); ?>
|
||||
<option value="<?php echo get_the_ID(); ?>" ><?php echo get_the_title(); ?></option>
|
||||
<?php endwhile; ?>
|
||||
</select></div>
|
||||
</div>
|
||||
<div class="contentPost">
|
||||
<?php rewind_posts();
|
||||
while ($query->have_posts()) : $query->the_post(); ?>
|
||||
<div class="onePost" attr-id="<?php echo get_the_ID(); ?>" style="display:none;">
|
||||
<header>
|
||||
<?php if( get_field('metier_type_presentation') ): ?>
|
||||
<?php if( get_field('metier_video_link') != ""): ?>
|
||||
<iframe src="<?php the_field("metier_video_link"); ?>" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php if( get_field('metier_visuel') != ""): ?>
|
||||
<img src="<?php the_field("metier_visuel"); ?>" alt="" />
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( get_field('metier_video_link') != "" || get_field('metier_visuel') != ""): ?>
|
||||
<div class="owl-prev">Précédent</div>
|
||||
<div class="owl-next">Suivant</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="social_share">
|
||||
<p>PARTAGEZ CE JOB :</p>
|
||||
<ul>
|
||||
<li class="social-share linkedin"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/linkedin.jpg" alt="LinkedIn" /></li>
|
||||
<li class="social-share viadeo"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/viadeo.jpg" alt="Viadeo" /></li>
|
||||
<li class="social-share facebook"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/fb.jpg" alt="Facebook" /></li>
|
||||
<li class="social-share twitter"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/twitter.jpg" alt="Twitter" /></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="descPost">
|
||||
<h3 class="heading-decoration">
|
||||
<span class="text">Missions principales</span>
|
||||
</h3>
|
||||
<?php the_field("metier_mission"); ?>
|
||||
<div class="row">
|
||||
<div>
|
||||
<h3 class="heading-decoration">
|
||||
<span class="text">Connaissances</span>
|
||||
</h3>
|
||||
<?php the_field("metier_connaissances"); ?>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="heading-decoration">
|
||||
<span class="text">Compétences</span>
|
||||
</h3>
|
||||
<?php the_field("metier_competences"); ?>
|
||||
</div>
|
||||
</div>
|
||||
<a class="btn-beige" target="_blank" href="https://recrutement.ldc.fr/fr/annonces?localisation=28751">Rejoignez-nous</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
76
pole-sbv-content/themes/pole-sbv/metiers_template.php
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
<?php
|
||||
/**
|
||||
* Template Name: Nos Métiers Template
|
||||
* @package WordPress
|
||||
*/
|
||||
get_header(); ?>
|
||||
|
||||
<div class="banner banner-decor" style="background-image:url(<?php the_field('page_banner') ?>)">
|
||||
<div class="container">
|
||||
<ul class="breadcrumbs">
|
||||
<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Accueil</a></li>
|
||||
<li><?php the_title(); ?></li>
|
||||
</ul>
|
||||
<div class="caption-title">
|
||||
<h1>
|
||||
<span class="bold"><?php the_title(); ?></span>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<main id="main">
|
||||
<div id="content">
|
||||
<section class="text-content">
|
||||
<div class="container ourjobs-header">
|
||||
<?php
|
||||
while ( have_posts() ) : the_post();
|
||||
the_content();
|
||||
endwhile;
|
||||
?>
|
||||
<a class="btn-beige" target="_blank" href="https://recrutement.ldc.fr/fr/annonces?localisation=28751">Rejoignez-nous</a>
|
||||
</div>
|
||||
</section>
|
||||
<section class="text-content accelerators-block">
|
||||
<div class="container ourjobs-type">
|
||||
<h3 class="heading-decoration">
|
||||
<span class="text">
|
||||
Nos familles de métiers
|
||||
</span>
|
||||
</h3>
|
||||
<div class="accelerators-holder">
|
||||
<?php
|
||||
$termList = get_terms( array(
|
||||
'taxonomy' => 'familles_metiers',
|
||||
'hide_empty' => false,
|
||||
'orderby' => 'id',
|
||||
'order' => 'DESC',
|
||||
'parent' => 0
|
||||
) );
|
||||
if(!empty($termList)):
|
||||
foreach ($termList as $term):
|
||||
?>
|
||||
<a href="<?php echo get_term_link($term->term_id); ?>" class="accelerator" >
|
||||
<img src="<?php the_field('fammet_vignette', "familles_metiers_".$term->term_id) ?>" class="grayscale grayscale-fade" alt="">
|
||||
<div class="acc-title-holder">
|
||||
<div class="acc-title">
|
||||
<span><?php echo $term->name; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
<?php get_footer(); ?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('.ourjobs').addClass('current-menu-item');
|
||||
});
|
||||
</script>
|
||||
169
pole-sbv-content/themes/pole-sbv/taxonomy-familles_metiers.php
Normal file
|
|
@ -0,0 +1,169 @@
|
|||
<?php
|
||||
/**
|
||||
* @package WordPress
|
||||
*/
|
||||
get_header();
|
||||
|
||||
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
|
||||
|
||||
?>
|
||||
|
||||
<div class="banner banner-decor" style="background-image:url(<?php the_field('fammet_banniere', "familles_metiers_".$term->term_id) ?>)">
|
||||
<div class="container">
|
||||
<ul class="breadcrumbs">
|
||||
<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Accueil</a></li>
|
||||
<li><a href="<?php echo custom_get_page_link(772); ?>">Nos métiers</a></li>
|
||||
<li><?php echo $term->name; ?></li>
|
||||
</ul>
|
||||
<div class="caption-title">
|
||||
<h1>
|
||||
<span class="bold"><?php echo $term->name; ?></span>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<main id="main">
|
||||
<div id="content" class="jobpage">
|
||||
<section class="text-content">
|
||||
<div class="container">
|
||||
<?php echo term_description(); ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
$children = get_term_children($term->term_id, get_query_var('taxonomy')); // get children
|
||||
if(sizeof($children)==0){
|
||||
// ---- query
|
||||
$args = array(
|
||||
'post_type' => 'cpt_metiers',
|
||||
'posts_per_page' => -1,
|
||||
'post_status' => 'publish',
|
||||
'tax_query' => array(
|
||||
'relation' => 'AND',
|
||||
array(
|
||||
'taxonomy' => 'familles_metiers',
|
||||
'field' => 'term_id',
|
||||
'terms' => array( $term->term_id),
|
||||
),
|
||||
),
|
||||
);
|
||||
$query = new WP_Query( $args );
|
||||
if ($query->have_posts()) :
|
||||
include(locate_template('metier_part.php'));
|
||||
?>
|
||||
<?php endif;
|
||||
|
||||
}else{
|
||||
foreach ($children as $child) {
|
||||
$childTerm = get_term_by( 'id', $child, 'familles_metiers' );
|
||||
?>
|
||||
<section class="text-content">
|
||||
<div class="container">
|
||||
<h4 class="heading-decoration2"><?php echo $childTerm->name ?></h4>
|
||||
<?php echo term_description($childTerm->term_id); ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
// ---- query
|
||||
$args = array(
|
||||
'post_type' => 'cpt_metiers',
|
||||
'posts_per_page' => -1,
|
||||
'post_status' => 'publish',
|
||||
'tax_query' => array(
|
||||
'relation' => 'AND',
|
||||
array(
|
||||
'taxonomy' => 'familles_metiers',
|
||||
'field' => 'term_id',
|
||||
'terms' => array( $childTerm->term_id),
|
||||
),
|
||||
),
|
||||
);
|
||||
$query = new WP_Query( $args );
|
||||
if ($query->have_posts()) :
|
||||
include(locate_template('metier_part.php'));
|
||||
endif;
|
||||
wp_reset_query();
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
<?php get_footer(); ?>
|
||||
<script type="text/javascript">
|
||||
|
||||
function socialWindow(url) {
|
||||
var left = (screen.width - 570) / 2;
|
||||
var top = (screen.height - 570) / 2;
|
||||
var params = "menubar=no,toolbar=no,status=no,width=570,height=570,top=" + top + ",left=" + left;
|
||||
window.open(url,"NewWindow",params);
|
||||
}
|
||||
|
||||
function setShareLinks() {
|
||||
var pageUrl = encodeURIComponent(document.URL);
|
||||
var tweet = encodeURIComponent($("meta[property='og:description']").attr("content"));
|
||||
|
||||
$(".social-share.facebook").on("click", function() {
|
||||
url = "https://www.facebook.com/sharer.php?u=" + pageUrl;
|
||||
socialWindow(url);
|
||||
});
|
||||
|
||||
$(".social-share.twitter").on("click", function() {
|
||||
url = "https://twitter.com/intent/tweet?url=" + pageUrl + "&text=" + tweet;
|
||||
socialWindow(url);
|
||||
});
|
||||
|
||||
$(".social-share.linkedin").on("click", function() {
|
||||
url = "https://www.linkedin.com/shareArticle?mini=true&url=" + pageUrl;
|
||||
socialWindow(url);
|
||||
})
|
||||
|
||||
$(".social-share.viadeo").on("click", function() {
|
||||
url = "https://www.viadeo.com/fr/widgets/share/preview?url=" + pageUrl;
|
||||
socialWindow(url);
|
||||
})
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.ourjobs').addClass('current-menu-item');
|
||||
|
||||
|
||||
$(".changePost").on('click', function(event) {
|
||||
event.preventDefault();
|
||||
var IdPost = $(this).attr("attr-id");
|
||||
$(".onePost[attr-id='"+IdPost+"']").parent().find('.onePost').hide();
|
||||
$(".onePost[attr-id='"+IdPost+"']").parent().find('.onePost').css('opacity', 0);
|
||||
$(".onePost[attr-id='"+IdPost+"']").show().animate({ opacity: 1 });
|
||||
$(this).parent().find('.changePost').removeClass('selected');
|
||||
$(this).addClass('selected');
|
||||
$(this).parent().find(".selectChangePost").val(IdPost);
|
||||
});
|
||||
|
||||
$(".selectChangePost").on('change', function(event) {
|
||||
var IdPost = $(this).val();
|
||||
$(".onePost[attr-id='"+IdPost+"']").parent().find('.onePost').hide();
|
||||
$(".onePost[attr-id='"+IdPost+"']").parent().find('.onePost').css('opacity', 0);
|
||||
$(".onePost[attr-id='"+IdPost+"']").show().animate({ opacity: 1 });
|
||||
$(this).parent().parent().find('.changePost').removeClass('selected');
|
||||
$(".changePost[attr-id='"+IdPost+"']").addClass('selected');
|
||||
});
|
||||
|
||||
$(".owl-next").on('click', function(event) {
|
||||
var selectedLink = $(this).closest(".container").find(".selected");
|
||||
console.log(selectedLink.attr("attr-id"));
|
||||
selectedLink.next().trigger("click");
|
||||
});
|
||||
$(".owl-prev").on('click', function(event) {
|
||||
var selectedLink = $(this).closest(".container").find(".selected");
|
||||
console.log(selectedLink.attr("attr-id"));
|
||||
selectedLink.prev().trigger("click");
|
||||
});
|
||||
|
||||
$(".listPost").each(function(){
|
||||
$(this).find(".changePost:first").trigger("click");
|
||||
});
|
||||
|
||||
setShareLinks();
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
define( 'WP_CONTENT_DIR', 'D:/sources/www/pole-sbv/pole-sbv-content'); // Do not remove. Removing this line could break your site. Added by Security > Settings > Change Content Directory.
|
||||
define( 'WP_CONTENT_URL', 'http://pole-sbv.dev/pole-sbv-content'); // Do not remove. Removing this line could break your site. Added by Security > Settings > Change Content Directory.
|
||||
define( 'WP_CONTENT_URL', 'http://dev.societebretonnedevolaille.test/pole-sbv-content'); // Do not remove. Removing this line could break your site. Added by Security > Settings > Change Content Directory.
|
||||
|
||||
|
||||
/** PATH GIT */
|
||||
|
|
@ -45,3 +45,6 @@ define('WP_DEBUG_LOG', true);
|
|||
|
||||
/** Stop du cron WordPress **/
|
||||
define('DISABLE_WP_CRON', true);
|
||||
|
||||
/** Empêche wordpress de contacter l'extèrieur */
|
||||
define('WP_HTTP_BLOCK_EXTERNAL', true);
|
||||
|
|
|
|||