Compare commits
No commits in common. "04817a1d15784b02d4fee3923706f201253d6663" and "655f9721ff587b7ce0e3d378d32ac537ddc9133c" have entirely different histories.
04817a1d15
...
655f9721ff
7
css/admin-style.css
Normal file
7
css/admin-style.css
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/* body {
|
||||
background: red !important;
|
||||
} */
|
||||
|
||||
#menu-posts {
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
|
||||
}
|
||||
|
|
@ -75,6 +75,7 @@ function dynamiques_enqueue_scripts()
|
|||
// Enqueue child theme styles
|
||||
wp_enqueue_style('dynamiques-main-css', get_stylesheet_directory_uri() . '/css/app.css', array('parent-style'), $theme->get('Version'));
|
||||
wp_enqueue_script('dynamiques-main-js', get_stylesheet_directory_uri() . '/js/app.js', array(), $theme->get('Version'));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -89,8 +90,7 @@ function dynamiques_enqueue_gutenberg_back_styles()
|
|||
if (file_exists(get_template_directory() . '/css/app.css')) {
|
||||
wp_enqueue_style('parent-style', $parent_style, array(), $theme->get('Version'));
|
||||
}
|
||||
wp_enqueue_style('dynamiques-main-css', get_stylesheet_directory_uri() . '/css/app.css', array('parent-style'));
|
||||
wp_enqueue_style('dynamiques-admin-css', get_stylesheet_directory_uri() . '/css/admin-style.css');
|
||||
wp_enqueue_style('tailpress_back', dynamiques_asset('css/app.css'), array('parent-style'));
|
||||
}
|
||||
add_action('enqueue_block_editor_assets', 'dynamiques_enqueue_gutenberg_back_styles');
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
function getRevueAuthors($revueID)
|
||||
{
|
||||
|
||||
|
||||
$revueRelatedArticles = new WP_Query(array(
|
||||
'post_type' => 'articles',
|
||||
'posts_per_page' => -1,
|
||||
|
|
@ -28,40 +30,6 @@ function getRevueAuthors($revueID)
|
|||
return array_unique($authors);
|
||||
}
|
||||
|
||||
function get_revue_terms($revueID, $taxonomy)
|
||||
{
|
||||
$revueRelatedArticles = new WP_Query(array(
|
||||
'post_type' => 'articles',
|
||||
'posts_per_page' => -1,
|
||||
'post_status' => 'publish',
|
||||
'meta_query' => array(
|
||||
array(
|
||||
'key' => 'related_revue',
|
||||
'value' => $revueID,
|
||||
'compare' => '=',
|
||||
),
|
||||
),
|
||||
));
|
||||
$terms = array();
|
||||
|
||||
foreach ($revueRelatedArticles->posts as $article) {
|
||||
$currentArticleTerms = get_the_terms($article->ID, $taxonomy);
|
||||
|
||||
if (empty($currentArticleTerms) || !is_array($currentArticleTerms)) continue;
|
||||
|
||||
foreach ($currentArticleTerms as $term) {
|
||||
$terms[] = $term->term_id;
|
||||
}
|
||||
}
|
||||
|
||||
foreach (array_unique($terms) as $term) {
|
||||
$termObject = get_term($term, $taxonomy);
|
||||
$uniquesTermsArray[] = $termObject;
|
||||
}
|
||||
|
||||
return $uniquesTermsArray;
|
||||
}
|
||||
|
||||
|
||||
function count_user_articles($userID, $postType)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,22 +1,6 @@
|
|||
#acf-field-685be6e5065e3 {
|
||||
height: 100px !important;
|
||||
@apply bg-red-300;
|
||||
|
||||
iframe {
|
||||
@apply bg-red-300;
|
||||
}
|
||||
}
|
||||
/* body {
|
||||
background: red !important;
|
||||
} */
|
||||
#menu-posts {
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
|
||||
}
|
||||
|
||||
.acf-field-685be98a48142 {
|
||||
.acf-label {
|
||||
@apply hidden;
|
||||
}
|
||||
iframe {
|
||||
min-height: unset !important;
|
||||
height: 70px !important;
|
||||
@apply bg-blue-300;
|
||||
}
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,8 +33,6 @@
|
|||
@import './components/article-toolbar.css';
|
||||
@import './components/post-card--article.css';
|
||||
@import './components/authors-last-publications.css';
|
||||
@import './components/article-references.css';
|
||||
@import './components/article-informations.css';
|
||||
|
||||
/* ########### PAGES ############ */
|
||||
@import './pages/singles.css';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,43 @@
|
|||
/* @import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap'); */
|
||||
|
||||
/* body {
|
||||
font-family: 'Nunito Sans', sans-serif;
|
||||
@apply text-primary text-xl;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: 'Fjalla One', sans-serif;
|
||||
@apply text-primary;
|
||||
}
|
||||
|
||||
h1 {
|
||||
@apply text-6xl;
|
||||
}
|
||||
|
||||
h2 {
|
||||
@apply text-5xl;
|
||||
}
|
||||
|
||||
body.wp-admin h1:not(.editor-visual-editor h1),
|
||||
body.wp-admin h2:not(.editor-visual-editor h2),
|
||||
body.wp-admin h3:not(.editor-visual-editor h3),
|
||||
body.wp-admin h4:not(.editor-visual-editor h4),
|
||||
body.wp-admin h5:not(.editor-visual-editor h5),
|
||||
body.wp-admin h6:not(.editor-visual-editor h6) {
|
||||
font-family: unset !important;
|
||||
font-style: unset !important;
|
||||
font-size: unset !important;
|
||||
line-height: unset !important;
|
||||
letter-spacing: unset !important;
|
||||
text-transform: unset !important;
|
||||
text-align: unset !important;
|
||||
} */
|
||||
|
||||
.nunito {
|
||||
font-family: 'Nunito Sans', sans-serif;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,26 +0,0 @@
|
|||
.article-informations {
|
||||
@apply flex flex-col gap-y-28;
|
||||
.issue-informations {
|
||||
@apply flex gap-x-20 gap-y-8 flex-wrap;
|
||||
|
||||
.content-tab__title {
|
||||
@apply w-full shrink-0 mb-3;
|
||||
}
|
||||
}
|
||||
.issue-number,
|
||||
.issue-parution-date,
|
||||
.issue-updated-date {
|
||||
&__label {
|
||||
@apply mb-3 tracking-widest font-bold;
|
||||
}
|
||||
&__value {
|
||||
@apply !text-primary mb-2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.coordination-numero {
|
||||
.author-card {
|
||||
@apply mb-6;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
.article-references {
|
||||
@apply mb-8;
|
||||
.references-list {
|
||||
@apply flex flex-col gap-4;
|
||||
|
||||
.reference-item {
|
||||
@apply pl-6 relative;
|
||||
a {
|
||||
@apply underline underline-offset-4 decoration-1;
|
||||
}
|
||||
&:before {
|
||||
@apply content-[''] absolute top-3 left-0 w-3 h-3 bg-black rounded-full inline-block filter-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4,9 +4,7 @@
|
|||
@apply container mx-auto grid grid-cols-12 gap-12 py-12 items-start;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
&[data-active-tab='article'] {
|
||||
#article-tags,
|
||||
#article-authors,
|
||||
#article-references,
|
||||
.article-informations,
|
||||
.sidebar .search-field,
|
||||
.table-matieres {
|
||||
|
|
@ -15,7 +13,6 @@
|
|||
}
|
||||
&[data-active-tab='authors'] {
|
||||
.article-informations,
|
||||
#article-references,
|
||||
.article-content,
|
||||
.sidebar .index-panel,
|
||||
.table-matieres {
|
||||
|
|
@ -33,7 +30,6 @@
|
|||
}
|
||||
&[data-active-tab='table-of-contents'] {
|
||||
#article-authors,
|
||||
#article-references,
|
||||
.article-informations,
|
||||
.article-content,
|
||||
.sidebar .index-panel {
|
||||
|
|
@ -42,7 +38,6 @@
|
|||
}
|
||||
&[data-active-tab='informations'] {
|
||||
#article-authors,
|
||||
#article-references,
|
||||
.article-content,
|
||||
.table-matieres,
|
||||
.sidebar .index-panel {
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="15" cy="15" r="15" fill="#136F63"/>
|
||||
<g clip-path="url(#clip0_29_1368)">
|
||||
<path d="M20.3663 9.65656L10.0381 21.0939" stroke="white" stroke-width="2"/>
|
||||
<path d="M20.3668 22V9.65656H9" stroke="white" stroke-width="2"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_29_1368">
|
||||
<rect width="12" height="13" fill="white" transform="translate(9 9)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 463 B |
|
|
@ -16,15 +16,10 @@ $revueID = get_field('related_revue', get_the_ID());
|
|||
<input type="text" placeholder="Rechercher">
|
||||
</div>
|
||||
|
||||
|
||||
<?php get_template_part('template-parts/articles/article-tags'); ?>
|
||||
<?php get_template_part('template-parts/articles/index-panel'); ?>
|
||||
</aside>
|
||||
|
||||
<div class="content-area">
|
||||
<?php get_template_part('template-parts/articles/article-references', null, array(
|
||||
'postId' => get_the_ID()
|
||||
)); ?>
|
||||
<?php get_template_part('template-parts/articles/article-authors', null, array(
|
||||
'postId' => get_the_ID()
|
||||
)); ?>
|
||||
|
|
|
|||
|
|
@ -2,53 +2,27 @@
|
|||
$revueID = $args['revueID'];
|
||||
|
||||
$issue_number = get_field('issue_number', $revueID);
|
||||
$issue_parution_date = get_the_date('Y-m-d', $revueID);
|
||||
$issue_updated_date = get_the_modified_date('Y-m-d', $revueID);
|
||||
$issue_parution_date = get_field('issue_parution_date', $revueID);
|
||||
$issue_updated_date = get_field('issue_updated_date', $revueID);
|
||||
|
||||
|
||||
$coordinations_authors = get_field('coordinations_authors', $revueID);
|
||||
?>
|
||||
|
||||
|
||||
<div class="article-informations">
|
||||
<div class="issue-informations">
|
||||
<h3 class="content-tab__title">Informations</h3>
|
||||
<?php if ($issue_number) : ?>
|
||||
<div class="issue-number">
|
||||
<h5 class="issue-number__label title-small">Numéro</h5>
|
||||
<span class="issue-number__value"><?php echo $issue_number; ?></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($issue_parution_date) : ?>
|
||||
<div class="issue-parution-date">
|
||||
<h5 class="issue-parution-date__label title-small">Parution</h5>
|
||||
<time class="issue-parution-date__value" datetime="<?php echo $issue_parution_date; ?>"><?php echo $issue_parution_date ?></time>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($issue_updated_date) : ?>
|
||||
<div class="issue-updated-date">
|
||||
<h5 class="issue-updated-date__label title-small">Mise à jour</h5>
|
||||
<time class="issue-updated-date__value" datetime="<?php echo $issue_updated_date; ?>"><?php echo $issue_updated_date; ?></time>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h3 class="content-tab__title">Informations</h2>
|
||||
<div class="issue-number">
|
||||
<span class="issue-number__label">Numéro</span>
|
||||
<span class="issue-number__value"><?php echo $issue_number; ?></span>
|
||||
</div>
|
||||
<div class="issue-parution-date">
|
||||
<span class="issue-parution-date__label">Parution</span>
|
||||
<time class="post-details__value" datetime="<?php echo get_the_date('Y-m-d', $revueID); ?>"><?php echo get_the_date('d F Y', $revueID); ?></time>
|
||||
|
||||
<div class="coordination-numero">
|
||||
<h3 class="content-tab__title">Coordination du Numéro</h3>
|
||||
|
||||
<div class="coordination-numero__content">
|
||||
<?php foreach ($coordinations_authors as $author) : ?>
|
||||
<?php get_template_part(
|
||||
'template-parts/authors/card-author',
|
||||
null,
|
||||
array(
|
||||
'ID' => $author->ID,
|
||||
)
|
||||
); ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="issue-updated-date">
|
||||
<span class="issue-updated-date__label">Mise à jour</span>
|
||||
<time class="post-details__value" datetime="<?php echo get_the_modified_date('Y-m-d', $revueID); ?>"><?php echo get_the_modified_date('d F Y', $revueID); ?></time>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
$postId = $args['postId'];
|
||||
$references = get_field('references', $postId);
|
||||
?>
|
||||
|
||||
|
||||
<div id="article-references" class="article-references">
|
||||
<h3 class="content-tab__title">Références</h2>
|
||||
<?php if ($references) : ?>
|
||||
<ul class="references-list">
|
||||
<?php foreach ($references as $reference) : ?>
|
||||
<li class="reference-item">
|
||||
<?php echo $reference['content']; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?php else : ?>
|
||||
<p class="references-list__empty">Aucune référence trouvée</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
$revueID = get_field('related_revue', get_the_ID());
|
||||
$etiquettes = get_revue_terms($revueID, 'etiquettes');
|
||||
|
||||
if (empty($etiquettes)) return;
|
||||
?>
|
||||
|
||||
<div id="article-tags" class="article-tags">
|
||||
<div class="tags">
|
||||
<h3 class="tags__title">Tags</h3>
|
||||
<ul class="tags-list">
|
||||
<?php foreach ($etiquettes as $etiquette) : ?>
|
||||
<li>
|
||||
<a class="article-tag" href="<?php echo get_term_link($etiquette); ?>"><?php echo $etiquette->name; ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user