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
|
||||
function ajout_champs() {
|
||||
add_post_meta(get_the_ID(), 'Index', true);
|
||||
add_post_meta(get_the_ID(), 'Minutage', true);
|
||||
add_post_meta(get_the_ID(), 'Images', true);
|
||||
add_post_meta(get_the_ID(), 'BandeSon', true);
|
||||
add_post_meta(get_the_ID(), 'Ecrits', true);
|
||||
add_post_meta(get_the_ID(), 'VoixOffIn', true);
|
||||
add_post_meta(get_the_ID(), 'isMainPart', true);
|
||||
add_post_meta(get_the_ID(), 'isSubPart', true);
|
||||
//le faire qu'une suele fois et après mettre en commentaire
|
||||
// function ajout_champs() {
|
||||
// add_post_meta(get_the_ID(), 'Index', true);
|
||||
// add_post_meta(get_the_ID(), 'Minutage', true);
|
||||
// add_post_meta(get_the_ID(), 'Images', true);
|
||||
// add_post_meta(get_the_ID(), 'BandeSon', true);
|
||||
// add_post_meta(get_the_ID(), 'Ecrits', true);
|
||||
// add_post_meta(get_the_ID(), 'VoixOffIn', true);
|
||||
// add_post_meta(get_the_ID(), 'isMainPart', true);
|
||||
// add_post_meta(get_the_ID(), 'isSubPart', true);
|
||||
|
||||
}
|
||||
add_action('init', 'ajout_champs');
|
||||
// }
|
||||
// add_action('init', 'ajout_champs');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
function supprimer_tous_les_articles() {
|
||||
$args = array(
|
||||
'post_type' => 'post',
|
||||
'posts_per_page' => -1,
|
||||
);
|
||||
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>';
|
||||
|
||||
$posts = get_posts($args);
|
||||
|
||||
foreach ($posts as $post) {
|
||||
wp_delete_post($post->ID, true);
|
||||
}
|
||||
}
|
||||
add_action('init', 'supprimer_tous_les_articles');
|
||||
*/
|
||||
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>';
|
||||
|
||||
}
|
||||
add_action('admin_footer', 'cacher_bloc_foot_admin');
|
||||
|
||||
|
||||
|
||||
|
||||
// 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/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{
|
||||
@font-face {
|
||||
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.otf") format("otf");
|
||||
font-style: normal;
|
||||
|
||||
}
|
||||
|
||||
@font-face {
|
||||
@@ -36,5 +46,6 @@
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -22,6 +22,7 @@
|
||||
</thead>
|
||||
<tbody class="w-full mb-48 lg:w-2/3 block bg-jlg-dark-blue">
|
||||
<?php
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'post',
|
||||
'posts_per_page' => -1,
|
||||
@@ -32,33 +33,31 @@
|
||||
);
|
||||
$query = new WP_Query($args);
|
||||
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; ?>
|
||||
|
||||
$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
|
||||
endwhile;
|
||||
|
||||
endif;
|
||||
wp_reset_postdata();
|
||||
?>
|
||||
@@ -75,6 +74,4 @@
|
||||
@endif
|
||||
|
||||
|
||||
@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">
|
||||
<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>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -11,3 +11,14 @@ License URI: https://opensource.org/licenses/MIT
|
||||
Requires PHP: 8.0
|
||||
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;
|
||||
}
|
||||
|
||||
+1
-1
@@ -31,4 +31,4 @@ const config = {
|
||||
plugins: [],
|
||||
};
|
||||
|
||||
export default config;
|
||||
export default config;
|
||||
Reference in New Issue
Block a user