Ticket 12:
- Necessite l'ajout d'un sous-champ ACF sur wp-admin/post.php?post=524&action=edit
(Nos engagements) Page: Engagements
Dans partie "Manifest: Groupe" -> Sous Champ -> Type image : photobio
- modifié style.css, page-engagments.php
This commit is contained in:
parent
caaf5c738f
commit
eda806ec69
2 changed files with 60 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ Template Name: Page Engagements
|
|||
global $mob;
|
||||
get_header();
|
||||
|
||||
/** @var Array */
|
||||
$manifest = get_field('manifest');
|
||||
$ecosystem = get_field('ecosystem');
|
||||
$governance = get_field('governance');
|
||||
|
|
@ -61,6 +62,17 @@ Template Name: Page Engagements
|
|||
<?php if(!empty($manifest['author'])) : ?>
|
||||
<div class="manifest__author quote__author"><?php echo $manifest['author']; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (array_key_exists('photobio', $manifest) && !empty($manifest['photobio'])) : ?>
|
||||
<div class="manifest__photo">
|
||||
<div class="quote__photobox">
|
||||
<div class="quote__photo_shadow"></div>
|
||||
<img src="<?php echo $manifest['photobio']['url']; ?>"
|
||||
alt="<?php echo $manifest['photobio']['alt']; ?>"
|
||||
title="<?php echo $manifest['photobio']['title']; ?>"
|
||||
class="quote__photo" />
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -781,6 +781,51 @@ textarea:focus {
|
|||
color: #ff4e4e;
|
||||
}
|
||||
|
||||
.quote__photo, .quote__photobox, .quote__photo_shadow {
|
||||
-moz-border-radius: 50% / 50%;
|
||||
-webkit-border-radius: 50% 50%;
|
||||
border-radius: 50% / 50%;
|
||||
}
|
||||
.quote__photobox {
|
||||
position: relative;
|
||||
top: 1em;
|
||||
right: -4em;
|
||||
display: table;
|
||||
box-sizing: border-box;
|
||||
border: 4px solid #ff4e4e;
|
||||
}
|
||||
.quote__photo {
|
||||
-moz-box-shadow: 10px 10px 12px rgba(0,0,0,0.4);
|
||||
-webkit-box-shadow: 10px 10px 12px rgba(0,0,0,0.4);
|
||||
box-shadow: 10px 10px 12px rgba(0,0,0,0.4);
|
||||
}
|
||||
.quote__photo_shadow {
|
||||
-moz-box-shadow: 10px 10px 12px rgba(0,0,0,0.4) inset;
|
||||
-webkit-box-shadow: 10px 10px 12px rgba(0,0,0,0.4) inset;
|
||||
box-shadow: 10px 10px 12px rgba(0,0,0,0.4) inset;
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
@media all and (min-width: 438px) {
|
||||
.quote__photobox {
|
||||
right: -16em;
|
||||
top: -1em;
|
||||
}
|
||||
}
|
||||
@media all and (min-width: 768px) {
|
||||
.quote__photobox {
|
||||
right: -12em;
|
||||
top: 1em;
|
||||
}
|
||||
}
|
||||
@media all and (min-width: 917px) {
|
||||
.quote__photobox {
|
||||
right: -17em;
|
||||
top: -1em;
|
||||
}
|
||||
}
|
||||
|
||||
.quote__text::before,
|
||||
.quote__text::after {
|
||||
content: '"';
|
||||
|
|
@ -3005,6 +3050,9 @@ body .pgntn-page-pagination-block .page-numbers.current {
|
|||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.manifest__photo {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* manifest END */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue