diff --git a/functions.php b/functions.php
index a21492f..87a6e99 100644
--- a/functions.php
+++ b/functions.php
@@ -99,8 +99,7 @@ collect(['setup', 'filters'])
}
add_action('admin_footer', 'cacher_bloc_foot_admin');
-
-
+
diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php
index 4ca5ca6..2686656 100644
--- a/resources/views/index.blade.php
+++ b/resources/views/index.blade.php
@@ -27,6 +27,7 @@
'post',
'posts_per_page' => -1,
@@ -37,37 +38,31 @@
);
$query = new WP_Query($args);
if ($query->have_posts()) :
- if(is_user_logged_in()){ // verifier si l'utilisateur est connecté
- while ($query->have_posts()) : $query->the_post();
- $edit_link = 'https://localhost/wp/wp-admin/admin.php?page=rvy-revisions&post='. get_the_ID() .'&action=revise';
- ?>
-
- | {{ get_post_meta(get_the_ID(), 'Minutage', true) }} |
- {{ get_post_meta(get_the_ID(), 'Images', true) }} |
- {{ get_post_meta(get_the_ID(), 'VoixOffIn', true) }} |
- {{ get_post_meta(get_the_ID(), 'BandeSon', true) }} |
- {{ get_post_meta(get_the_ID(), 'Ecrits', true) }} |
- 🖉';?> |
-
- have_posts()) : $query->the_post();
- $edit_link = $edit_link = 'https://localhost/wp/wp-admin/admin.php?page=rvy-revisions&post='. get_the_ID() .'&action=revise';
+ $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';
?>
-
- | {{ get_post_meta(get_the_ID(), 'Minutage', true) }} |
- {{ get_post_meta(get_the_ID(), 'Images', true) }} |
- {{ get_post_meta(get_the_ID(), 'VoixOffIn', true) }} |
- {{ get_post_meta(get_the_ID(), 'BandeSon', true) }} |
- {{ get_post_meta(get_the_ID(), 'Ecrits', true) }} |
- 🖉';?> |
-
-
+ {{ the_title()}} |
+ |
+ |
+ |
+ |
+ 🖉';} elseif (!is_user_logged_in()) { echo '🖉';}?> |
+
+