travail de contribution
This commit is contained in:
+47
-25
@@ -65,33 +65,55 @@ 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');
|
// add_action('init', 'ajout_champs');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function cacher_bloc_head_admin() {
|
||||||
/*
|
// Cache le bloc head du plugin de PublicPress
|
||||||
function supprimer_tous_les_articles() {
|
echo '<style>.pp-version-notice-bold-purple { display: none; }</style>';
|
||||||
$args = array(
|
echo '<style>.notice-warning { display: none; }</style>';
|
||||||
'post_type' => 'post',
|
|
||||||
'posts_per_page' => -1,
|
|
||||||
);
|
|
||||||
|
|
||||||
$posts = get_posts($args);
|
|
||||||
|
|
||||||
foreach ($posts as $post) {
|
|
||||||
wp_delete_post($post->ID, true);
|
|
||||||
}
|
}
|
||||||
}
|
add_action('admin_head', 'cacher_bloc_head_admin');
|
||||||
add_action('init', 'supprimer_tous_les_articles');
|
|
||||||
*/
|
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/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 {
|
||||||
@@ -36,5 +46,6 @@
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -14,22 +14,18 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="font-authentic">Ceci est du texte avec la police Authentic Sans 90</div>
|
<table class="w-full bg-jlg-dark-blue flex justify-center">
|
||||||
<div class="font-authentic-60">Ceci est du texte avec la police Authentic Sans 60</div>
|
|
||||||
<div class="font-caslon">Ceci est du texte avec la police Caslon normal</div>
|
|
||||||
<div class="font-caslon italic">Ceci est du texte avec la police Caslon italique</div>
|
|
||||||
|
|
||||||
<table class="table-fixed">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="border-jlg-white w-4/5 h-64 top-12 fixed flex items-stretch justify-around text-center text-lg uppercase">
|
<tr class="border-jlg-white h-64 top-0 w-full lg:w-2/3 fixed flex items-stretch justify-around text-left lg:text-xl uppercase bg-jlg-dark-blue">
|
||||||
<th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start"></th>
|
<th class="flex items-end justify-start"></th>
|
||||||
<th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Images</th>
|
<th class="flex items-end justify-start pb-4">Images</th>
|
||||||
<th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Voix Off et In</th>
|
<th class="flex items-end justify-start pb-4">Voix Off et In</th>
|
||||||
<th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Bande Son</th>
|
<th class="flex items-end justify-start pb-4">Bande Son</th>
|
||||||
<th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Ecrits</th>
|
<th class="flex items-end justify-start pb-4">Écrits</th>
|
||||||
|
<th class="flex items-end justify-start"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody class="w-full lg:w-2/3 block bg-jlg-dark-blue">
|
||||||
<?php
|
<?php
|
||||||
$args = array(
|
$args = array(
|
||||||
'post_type' => 'post',
|
'post_type' => 'post',
|
||||||
@@ -41,17 +37,37 @@
|
|||||||
);
|
);
|
||||||
$query = new WP_Query($args);
|
$query = new WP_Query($args);
|
||||||
if ($query->have_posts()) :
|
if ($query->have_posts()) :
|
||||||
|
if(is_user_logged_in()){ // verifier si l'utilisateur est connecté
|
||||||
while ($query->have_posts()) : $query->the_post();
|
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';
|
||||||
<tr class="border-jlg-white font-authentic-60">
|
?>
|
||||||
<td class="w-1/5 bg-red-400 pr-4 pt-1 pb-8 text-right">{{ get_post_meta(get_the_ID(), 'Minutage', true) }}</td>
|
<tr class="border-jlg-white font-authentic-60 w-full flex flex-row py-6">
|
||||||
<td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'Images', true) }}</td>
|
<td class="block text-sm pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'Minutage', true) }}</td>
|
||||||
<td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'VoixOffIn', true) }}</td>
|
<td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'Images', true) }}</td>
|
||||||
<td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'BandeSon', true) }}</td>
|
<td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'VoixOffIn', true) }}</td>
|
||||||
<td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'Ecrits', 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>
|
||||||
|
<td class="block text-sm pl-0 pr-6"><?php echo '<a href="' . esc_url( $edit_link ) . '" class="edit-button">🖉</a>';?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
endwhile;
|
endwhile;
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif (!is_user_logged_in()) { // si l'utilsateur n'est pas connecté alors le bouton edit a un shortcode qui appelle le plugin user Login
|
||||||
|
while ($query->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';
|
||||||
|
?>
|
||||||
|
<tr class="border-jlg-white font-authentic-60 w-full flex flex-row py-6">
|
||||||
|
<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>
|
||||||
|
<td class="block text-sm pl-0 pr-6"><?php echo '<a href="' . esc_url( $edit_link ) . '" class="edit-button xoo-el-login-tgr ">🖉</a>';?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
endwhile;
|
||||||
|
}
|
||||||
endif;
|
endif;
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
?>
|
?>
|
||||||
@@ -68,6 +84,4 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
|
||||||
@@ -1,10 +1,19 @@
|
|||||||
<header class="border-jlg-light-white py-8 shadow-xlg fixed top-0 h-1/12 w-full bg-jlg-dark-blue flex flex-row justify-center 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">
|
||||||
<a class="brand text-center text-xl" href="{{ home_url('/') }}">
|
<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 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>
|
||||||
|
|
||||||
|
<a class="brand text-center text-2xl leading-none" href="{{ home_url('/') }}">
|
||||||
<!-- {!! $siteName !!} -->
|
<!-- {!! $siteName !!} -->
|
||||||
<span class="font-caslon uppercase">Partition<br></span>
|
<span class="font-caslon uppercase">Partition<br></span>
|
||||||
<span class="font-caslon italic">Le Livre d'Image</span>
|
<span class="font-caslon italic">Le Livre d'Image</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<div class="mr-6">
|
||||||
|
<input type="search" class="px-4 py-2 rounded bg-jlg-xlight-white text-sm" placeholder="RECHERCHER">
|
||||||
|
</div>
|
||||||
|
|
||||||
@if (has_nav_menu('primary_navigation'))
|
@if (has_nav_menu('primary_navigation'))
|
||||||
<nav class="nav-primary" aria-label="{{ wp_get_nav_menu_name('primary_navigation') }}">
|
<nav class="nav-primary" aria-label="{{ wp_get_nav_menu_name('primary_navigation') }}">
|
||||||
{!! wp_nav_menu(['theme_location' => 'primary_navigation', 'menu_class' => 'nav', 'echo' => false]) !!}
|
{!! wp_nav_menu(['theme_location' => 'primary_navigation', 'menu_class' => 'nav', 'echo' => false]) !!}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
+10
-6
@@ -8,7 +8,10 @@ const config = {
|
|||||||
'jlg': {
|
'jlg': {
|
||||||
'dark-blue': '#010d19',
|
'dark-blue': '#010d19',
|
||||||
'white': '#f5fefe',
|
'white': '#f5fefe',
|
||||||
'light-white': '#f5fefeaa'
|
'light-white': '#f5fefeaa',
|
||||||
|
'xlight-white': 'rgba(245, 254, 254, 0.15)',
|
||||||
|
'hxlight-white': 'rgba(245, 254, 254, 0.35)',
|
||||||
|
'axlight-white': 'rgba(245, 254, 254, 0.20)'
|
||||||
}
|
}
|
||||||
}, // Extend Tailwind's default colors
|
}, // Extend Tailwind's default colors
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
@@ -17,14 +20,15 @@ const config = {
|
|||||||
'caslon': ['Libre_Caslon', 'serif'],
|
'caslon': ['Libre_Caslon', 'serif'],
|
||||||
},
|
},
|
||||||
fontSize: {
|
fontSize: {
|
||||||
sm: ['14px', '20px'],
|
sm: '13px',
|
||||||
base: '16px',
|
base: '15px',
|
||||||
lg: '24px',
|
lg: '18px',
|
||||||
xl: '35px',
|
xl: '21px',
|
||||||
|
'2xl': '35px'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [],
|
plugins: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
+25
-5
@@ -1261,6 +1261,21 @@
|
|||||||
"name": "Jlg Light-white",
|
"name": "Jlg Light-white",
|
||||||
"slug": "jlg-light-white",
|
"slug": "jlg-light-white",
|
||||||
"color": "#f5fefeaa"
|
"color": "#f5fefeaa"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Jlg Xlight-white",
|
||||||
|
"slug": "jlg-xlight-white",
|
||||||
|
"color": "rgba(245, 254, 254, 0.15)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Jlg Hxlight-white",
|
||||||
|
"slug": "jlg-hxlight-white",
|
||||||
|
"color": "rgba(245, 254, 254, 0.35)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Jlg Axlight-white",
|
||||||
|
"slug": "jlg-axlight-white",
|
||||||
|
"color": "rgba(245, 254, 254, 0.20)"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -1306,6 +1321,11 @@
|
|||||||
"slug": "authentic",
|
"slug": "authentic",
|
||||||
"fontFamily": "Authentic_Sans,sans-serif"
|
"fontFamily": "Authentic_Sans,sans-serif"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Authentic_Sans_60",
|
||||||
|
"slug": "authentic-60",
|
||||||
|
"fontFamily": "Authentic_Sans_60,sans-serif"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Libre_Caslon",
|
"name": "Libre_Caslon",
|
||||||
"slug": "caslon",
|
"slug": "caslon",
|
||||||
@@ -1321,27 +1341,27 @@
|
|||||||
{
|
{
|
||||||
"name": "sm",
|
"name": "sm",
|
||||||
"slug": "sm",
|
"slug": "sm",
|
||||||
"size": "14px"
|
"size": "13px"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "base",
|
"name": "base",
|
||||||
"slug": "base",
|
"slug": "base",
|
||||||
"size": "16px"
|
"size": "15px"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lg",
|
"name": "lg",
|
||||||
"slug": "lg",
|
"slug": "lg",
|
||||||
"size": "20px"
|
"size": "18px"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "xl",
|
"name": "xl",
|
||||||
"slug": "xl",
|
"slug": "xl",
|
||||||
"size": "35px"
|
"size": "21px"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "2xl",
|
"name": "2xl",
|
||||||
"slug": "2xl",
|
"slug": "2xl",
|
||||||
"size": "1.5rem"
|
"size": "35px"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "3xl",
|
"name": "3xl",
|
||||||
|
|||||||
Reference in New Issue
Block a user