merge des contributions mais surement pb avec les lignes de titres de parties
This commit is contained in:
+46
-25
@@ -65,33 +65,54 @@ collect(['setup', 'filters'])
|
|||||||
});
|
});
|
||||||
|
|
||||||
//ajout des champs personnalisés Minutage et Images; pour les afficher rdv dans le fichier content-single
|
//ajout des champs personnalisés Minutage et Images; pour les afficher rdv dans le fichier content-single
|
||||||
function ajout_champs() {
|
//le faire qu'une suele fois et après mettre en commentaire
|
||||||
add_post_meta(get_the_ID(), 'Index', true);
|
// function ajout_champs() {
|
||||||
add_post_meta(get_the_ID(), 'Minutage', true);
|
// add_post_meta(get_the_ID(), 'Index', true);
|
||||||
add_post_meta(get_the_ID(), 'Images', true);
|
// add_post_meta(get_the_ID(), 'Minutage', true);
|
||||||
add_post_meta(get_the_ID(), 'BandeSon', true);
|
// add_post_meta(get_the_ID(), 'Images', true);
|
||||||
add_post_meta(get_the_ID(), 'Ecrits', true);
|
// add_post_meta(get_the_ID(), 'BandeSon', true);
|
||||||
add_post_meta(get_the_ID(), 'VoixOffIn', true);
|
// add_post_meta(get_the_ID(), 'Ecrits', true);
|
||||||
add_post_meta(get_the_ID(), 'isMainPart', true);
|
// add_post_meta(get_the_ID(), 'VoixOffIn', true);
|
||||||
add_post_meta(get_the_ID(), 'isSubPart', true);
|
// add_post_meta(get_the_ID(), 'isMainPart', true);
|
||||||
|
// add_post_meta(get_the_ID(), 'isSubPart', true);
|
||||||
|
|
||||||
|
// }
|
||||||
|
// add_action('init', 'ajout_champs');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function cacher_bloc_head_admin() {
|
||||||
|
// Cache le bloc head du plugin de PublicPress
|
||||||
|
echo '<style>.pp-version-notice-bold-purple { display: none; }</style>';
|
||||||
|
echo '<style>.notice-warning { display: none; }</style>';
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action('init', 'ajout_champs');
|
add_action('admin_head', 'cacher_bloc_head_admin');
|
||||||
|
|
||||||
|
function cacher_bloc_foot_admin() {
|
||||||
|
// Cache le bloc foot du plugin de PublicPress
|
||||||
|
echo '<style>.pp-rating { display: none; }</style>';
|
||||||
|
echo '<style>.pp-pressshack-logo { display: none; }</style>';
|
||||||
|
echo '<style> footer nav{ display: none; }</style>';
|
||||||
|
echo '<style> ul.subsubsub li:nth-child(1) a { display: none;}</style>';
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
function supprimer_tous_les_articles() {
|
|
||||||
$args = array(
|
|
||||||
'post_type' => 'post',
|
|
||||||
'posts_per_page' => -1,
|
|
||||||
);
|
|
||||||
|
|
||||||
$posts = get_posts($args);
|
|
||||||
|
|
||||||
foreach ($posts as $post) {
|
|
||||||
wp_delete_post($post->ID, true);
|
|
||||||
}
|
}
|
||||||
}
|
add_action('admin_footer', 'cacher_bloc_foot_admin');
|
||||||
add_action('init', 'supprimer_tous_les_articles');
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
// function supprimer_tous_les_articles() {
|
||||||
|
// $args = array(
|
||||||
|
// 'post_type' => 'post',
|
||||||
|
// 'posts_per_page' => -1,
|
||||||
|
// );
|
||||||
|
|
||||||
|
// $posts = get_posts($args);
|
||||||
|
|
||||||
|
// foreach ($posts as $post) {
|
||||||
|
// wp_delete_post($post->ID, true);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// add_action('init', 'supprimer_tous_les_articles');
|
||||||
|
|||||||
@@ -2,6 +2,17 @@
|
|||||||
@import 'tailwindcss/components';
|
@import 'tailwindcss/components';
|
||||||
@import 'tailwindcss/utilities';
|
@import 'tailwindcss/utilities';
|
||||||
|
|
||||||
|
.pp-version-notice-bold-purple{
|
||||||
|
display: none; /*cacher les messages du plugin*/
|
||||||
|
}
|
||||||
|
.pp-version-notice-bold-purple-message{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.pp-version-notice-bold-purple-button{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@layer base{
|
@layer base{
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Authentic_Sans";
|
font-family: "Authentic_Sans";
|
||||||
@@ -9,7 +20,6 @@
|
|||||||
url("/assets/fonts/authentic-sans-90/AUTHENTICSans-90.woff2") format("woff2"),
|
url("/assets/fonts/authentic-sans-90/AUTHENTICSans-90.woff2") format("woff2"),
|
||||||
url("/assets/fonts/authentic-sans-90/AUTHENTICSans-90.otf") format("otf");
|
url("/assets/fonts/authentic-sans-90/AUTHENTICSans-90.otf") format("otf");
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
@@ -37,4 +47,5 @@
|
|||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody class="w-full mb-48 lg:w-2/3 block bg-jlg-dark-blue">
|
<tbody class="w-full mb-48 lg:w-2/3 block bg-jlg-dark-blue">
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$args = array(
|
$args = array(
|
||||||
'post_type' => 'post',
|
'post_type' => 'post',
|
||||||
'posts_per_page' => -1,
|
'posts_per_page' => -1,
|
||||||
@@ -32,33 +33,31 @@
|
|||||||
);
|
);
|
||||||
$query = new WP_Query($args);
|
$query = new WP_Query($args);
|
||||||
if ($query->have_posts()) :
|
if ($query->have_posts()) :
|
||||||
while ($query->have_posts()) : $query->the_post();
|
|
||||||
if (get_post_meta(get_the_ID(), 'Minutage', true)) : ?>
|
|
||||||
<tr class="border-jlg-light-white border-b font-authentic-60 w-full flex flex-row py-6 isContentPart">
|
|
||||||
<td class="block text-sm pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'Minutage', true) }}</td>
|
|
||||||
<td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'Images', true) }}</td>
|
|
||||||
<td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'VoixOffIn', true) }}</td>
|
|
||||||
<td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'BandeSon', true) }}</td>
|
|
||||||
<td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'Ecrits', true) }}</td>
|
|
||||||
</tr>
|
|
||||||
<?php elseif (get_post_meta(get_the_ID(), 'isMainPart', true)) : ?>
|
|
||||||
<tr class="border-jlg-white border-b font-authentic-90 uppercase w-full flex flex-row py-6 isMainPart">
|
|
||||||
<td class="pl-0 flex">
|
|
||||||
<div class="w-2 h-5 bg-jlg-white mr-3"></div>
|
|
||||||
<div>{{ get_post_meta(get_the_ID(), 'isMainPart', true) }}</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<? elseif (get_post_meta(get_the_ID(), 'isSubPart', true)) : ?>
|
|
||||||
<tr class="border-jlg-white border-b font-authentic-60 w-full flex flex-row py-6 isSubPart">
|
|
||||||
<td class="pl-0 flex">
|
|
||||||
<div class="w-2 h-5 bg-jlg-white mr-3"></div>
|
|
||||||
<div>{{ get_post_meta(get_the_ID(), 'isSubPart', true) }}</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
while ($query->have_posts()) : $query->the_post();
|
||||||
|
$contenu = get_the_content();
|
||||||
|
$infosArray = explode("---", $contenu); // Divise le contenu en fonction des séparateurs
|
||||||
|
|
||||||
|
// Initialisez des variables pour stocker les informations
|
||||||
|
$images = isset($infosArray[0]) ? $infosArray[0] : '';
|
||||||
|
$voixOffIn = isset($infosArray[1]) ? $infosArray[1] : '';
|
||||||
|
$bandeson = isset($infosArray[2]) ? $infosArray[2] : '';
|
||||||
|
$ecrits = isset($infosArray[3]) ? $infosArray[3] : '';
|
||||||
|
|
||||||
|
//lien pour le crayon
|
||||||
|
$edit_link = 'https://localhost/wp/wp-admin/admin.php?page=rvy-revisions&post='. get_the_ID() .'&action=revise';
|
||||||
|
?>
|
||||||
|
<tr class="border-jlg-light-white border-b font-authentic-60 w-full flex flex-row py-6 isContentPart">
|
||||||
|
<td class="block text-sm pl-0 pr-6">{{ the_title()}}</td>
|
||||||
|
<td class="block pl-0 pr-6"><?php echo $images; ?></td>
|
||||||
|
<td class="block pl-0 pr-6"><?php echo $voixOffIn; ?></td>
|
||||||
|
<td class="block pl-0 pr-6"><?php echo $bandeson; ?></td>
|
||||||
|
<td class="block pl-0 pr-6"><?php echo $ecrits; ?></td>
|
||||||
|
<td class="block text-sm pl-0 pr-6"><?php if(is_user_logged_in()){ echo '<a href="' . esc_url( $edit_link ) . '" class="edit-button">🖉</a>';} elseif (!is_user_logged_in()) { echo '<a href="' . esc_url( $edit_link ) . '" class="edit-button xoo-el-login-tgr ">🖉</a>';}?></td>
|
||||||
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
endwhile;
|
endwhile;
|
||||||
|
|
||||||
endif;
|
endif;
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
?>
|
?>
|
||||||
@@ -76,5 +75,3 @@
|
|||||||
|
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<header class="border-b border-jlg-light-white py-4 h-1/12 shadow-xlg fixed top-0 w-full bg-jlg-dark-blue flex flex-row justify-between items-center z-10">
|
<header class="border-b border-jlg-light-white py-4 h-1/12 shadow-xlg fixed top-0 w-full bg-jlg-dark-blue flex flex-row justify-between items-center z-10">
|
||||||
<div class="text-sm">
|
<div class="text-sm">
|
||||||
<button class="bg-jlg-xlight-white hover:bg-jlg-hxlight-white active:bg-jlg-axlight-white px-4 py-2 rounded-full border-jlg-hxlight-white border ml-6 transition-colors">MES CONTRIBUTIONS</button>
|
<button class="bg-jlg-xlight-white hover:bg-jlg-hxlight-white active:bg-jlg-axlight-white px-4 py-2 rounded-full border-jlg-hxlight-white border ml-6 transition-colors xoo-el-login-tgr">MES CONTRIBUTIONS</button>
|
||||||
<button class="bg-jlg-xlight-white hover:bg-jlg-hxlight-white active:bg-jlg-axlight-white px-4 py-2 rounded-full border-jlg-hxlight-white border ml-6 transition-colors">EXPORT</button>
|
<button class="bg-jlg-xlight-white hover:bg-jlg-hxlight-white active:bg-jlg-axlight-white px-4 py-2 rounded-full border-jlg-hxlight-white border ml-6 transition-colors">EXPORT</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -11,3 +11,14 @@ License URI: https://opensource.org/licenses/MIT
|
|||||||
Requires PHP: 8.0
|
Requires PHP: 8.0
|
||||||
Requires at least: 5.9
|
Requires at least: 5.9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
.pp-version-notice-bold-purple{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.pp-version-notice-bold-purple-message{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.pp-version-notice-bold-purple-button{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user