From 509945a4aa676daf72046ab1c8b78e252525bff1 Mon Sep 17 00:00:00 2001 From: philippelin Date: Tue, 22 Aug 2023 00:18:41 +0200 Subject: [PATCH] travail de contribution --- functions.php | 72 +++++++++++++++-------- resources/styles/app.css | 15 ++++- resources/views/index.blade.php | 60 +++++++++++-------- resources/views/sections/header.blade.php | 13 +++- style.css | 11 ++++ tailwind.config.js | 16 +++-- theme.json | 30 ++++++++-- 7 files changed, 154 insertions(+), 63 deletions(-) diff --git a/functions.php b/functions.php index f0e2cf0..a21492f 100644 --- a/functions.php +++ b/functions.php @@ -65,33 +65,55 @@ 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 ''; + echo ''; - $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 ''; + echo ''; + echo ''; + echo ''; + + } + 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'); diff --git a/resources/styles/app.css b/resources/styles/app.css index 9c8b521..6b814c2 100644 --- a/resources/styles/app.css +++ b/resources/styles/app.css @@ -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; } - + + } \ No newline at end of file diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index d41c538..4ca5ca6 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -14,22 +14,18 @@ } -
Ceci est du texte avec la police Authentic Sans 90
-
Ceci est du texte avec la police Authentic Sans 60
-
Ceci est du texte avec la police Caslon normal
-
Ceci est du texte avec la police Caslon italique
- - +
- - - - - - + + + + + + + - + 'post', @@ -41,17 +37,37 @@ ); $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'; + ?> + + + + + + + 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'; + ?> + + + + + + + + + @@ -68,6 +84,4 @@ @endif -@endsection - - +@endsection \ No newline at end of file diff --git a/resources/views/sections/header.blade.php b/resources/views/sections/header.blade.php index b32ebef..d85770d 100644 --- a/resources/views/sections/header.blade.php +++ b/resources/views/sections/header.blade.php @@ -1,10 +1,19 @@ -
- +
+
+ + +
+ +
Partition
Le Livre d'Image
+
+ +
+ @if (has_nav_menu('primary_navigation'))
ImagesVoix Off et InBande SonEcrits
ImagesVoix Off et InBande SonÉcrits
{{ 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) }}
{{ 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) }}🖉';?>
{{ 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) }}🖉';?>