Merge branch 'ticket-845_sh01' into 'develop'

See merge request service-web-lab/regalette!5
This commit is contained in:
Vincent BRIDIER 2022-06-29 09:22:40 +00:00
commit 8bcbc66fc2
9 changed files with 2535 additions and 127 deletions

View file

@ -18,9 +18,10 @@ SMTP_AUTH=
SMTP_USER=
SMTP_PASS=
SMTP_SECURE=
CONTACT_RECIPIENT=regalette@regalette.com
#CRM
CRM_PLATOS_WSDL=
WS_SERVCE_LOGIN=
WS_SERVCE_PASSWORD=
# GOOGLE ANALYTICS
GOOGLE_ANALYTICS=
GOOGLE_ANALYTICS=

3
.gitignore vendored
View file

@ -13,4 +13,5 @@ node_modules/
content/uploads/*
!content/uploads/.htaccess
vendor/
vendor/
auth.json

22
.vscode/settings.json vendored
View file

@ -1,21 +1,21 @@
{
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#1d164699",
"activityBar.activeBorder": "#1d1646",
"activityBar.background": "#f6be00",
"activityBar.activeBackground": "#f6be0099",
"activityBar.activeBorder": "#f6be00",
"activityBar.background": "#1d1646",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#1d1646",
"activityBarBadge.background": "#f6be00",
"activityBarBadge.foreground": "#ffffff",
"sash.hoverBorder": "#f6be00",
"statusBar.background": "#f6be00",
"sash.hoverBorder": "#1d1646",
"statusBar.background": "#1d1646",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#f6be00",
"statusBarItem.remoteBackground": "#f6be00",
"statusBarItem.hoverBackground": "#1d1646",
"statusBarItem.remoteBackground": "#1d1646",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#f6be00",
"titleBar.activeBackground": "#1d1646",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#f6be0099",
"titleBar.inactiveBackground": "#1d164699",
"titleBar.inactiveForeground": "#e7e7e799"
}
}
}

4
README.md Normal file
View file

@ -0,0 +1,4 @@
# Regalette
## Installation
TODO

File diff suppressed because one or more lines are too long

View file

@ -10,7 +10,6 @@ const gulp = require("gulp"),
imagemin = require("gulp-imagemin"), // Minimification des images
cache = require("gulp-cache"), // Mise en cache des images
del = require("del"), // Suppression de fichiers
browserSync = require("browser-sync").create(), // Synchronisation des modifs avec un navigateur
fs = require("file-system");
const src = "./src",
@ -31,18 +30,15 @@ var paths = {
gulp.task("default", gulp.series(gulp.parallel(scss, concatjs), watch));
// Concaténation + Copie des JS dans le dossier de Prd
// MAJ automatique du navigateur lorsque le "main.js" est modifié
function concatjs() {
return gulp
.src(paths.srcJS + "/**/*.js")
.pipe(concat("main.js"))
.pipe(gulp.dest(paths.destJS))
.pipe(browserSync.stream());
.pipe(gulp.dest(paths.destJS));
}
exports.concatjs = concatjs;
// Concaténation + Copie des SCSS dans le dossier de Prd
// MAJ automatique du navigateur lorsque le "style.css" est modifié
function scss() {
return gulp
.src(paths.srcStyle + "/style.scss")
@ -51,12 +47,7 @@ function scss() {
.on("error", sass.logError)
.pipe(postcss([autoprefixer()]))
.pipe(sourcemaps.write())
.pipe(gulp.dest(paths.destStyle))
.pipe(
browserSync.reload({
stream: true,
})
);
.pipe(gulp.dest(paths.destStyle));
}
exports.scss = scss;
@ -142,19 +133,8 @@ gulp.task(
gulp.series(cleanAssets, gulp.parallel(scss, concatjs, images), fonts)
);
// Initialisation de l'utilitaire de SYNCHRONISATION
// Ecoute de modifications dans les fichiers, SCCS, PHP et JS
function watch() {
browserSync.init({
browser: "chrome",
// browser: ["chrome", "firefox"],
proxy: {
target: "http://regalette.test",
ws: true,
},
// host: '10.120.18.133'
host: "127.0.0.1",
});
gulp.watch(paths.srcStyle + "/**/*.scss", gulp.series("scss"));
gulp.watch(paths.srcJS + "/**/*.js", gulp.series("concatjs"));
gulp.watch(
@ -165,6 +145,5 @@ function watch() {
paths.srcFonts + "/**/*.+(eot|otf|svg|ttf|woff|woff2)",
gulp.series("fonts")
);
gulp.watch("./**/*.php").on("change", browserSync.reload);
}
exports.watch = watch;

View file

@ -165,6 +165,9 @@ body {
}
}
}
.img-bloc2 {
margin-top: 20px;
}
}
}

View file

@ -12,6 +12,9 @@
get_header();
$hero_format = get_field('img-hero');
$title_bloc2 = get_field('title_bloc2');
$text_bloc2 = get_field('text_bloc2');
$picture_bloc2 = get_field('picture_bloc2');
?>
@ -138,20 +141,21 @@ $hero_format = get_field('img-hero');
<h3>Découvrir nos offres</h3>
</a>
</div>
<div class="iep">
<p class="title">Index de l'égalité professionnelle chez REGALETTE - 2020</p>
<p class="infos">
Depuis le 1er mars 2020, toutes les entreprises d’au moins 50 salariés doivent calculer et publier leur Index de l’égalité professionnelle entre les hommes et les femmes.
<br><br>
L’Index, sur 100 points, se calcule à partir de 4 indicateurs  : <br><br>
- L’écart de rémunération femmes-hommes,<br>
- L’écart de répartition des augmentations individuelles,<br>
- Le nombre de salariées augmentées à leur retour de congé de maternité,<br>
- La parité parmi les 10 plus hautes rémunérations. <br><br>
Pour l’année 2020, REGALETTE obtient la note de 79/100 selon le détail ci-dessous : <br><br>
<img src='<?= get_template_directory_uri(); ?>/assets/images/iep-2020.png' alt="Index de l'égalité professionnelle chez REGALETTE - 2020">
</p>
</div>
<?php if (!empty($title_bloc2) || !empty($text_bloc2) || !empty($picture_bloc2)) : ?>
<div class="iep">
<?php if (!empty($title_bloc2)) : ?>
<p class="title"><?php echo $title_bloc2 ?></p>
<?php endif; ?>
<?php if (!empty($text_bloc2)) : ?>
<?php echo $text_bloc2 ?>
<?php endif; ?>
<?php if (!empty($picture_bloc2)) : ?>
<div class="img-bloc2">
<img src='<?php echo $picture_bloc2['url'] ?>' alt="<?php echo $picture_bloc2['alt'] ?>">
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php get_footer(); ?>

File diff suppressed because one or more lines are too long