travail de contribution
This commit is contained in:
@@ -14,22 +14,18 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="font-authentic">Ceci est du texte avec la police Authentic Sans 90</div>
|
||||
<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">
|
||||
<table class="w-full bg-jlg-dark-blue flex justify-center">
|
||||
<thead>
|
||||
<tr class="border-jlg-white w-4/5 h-64 top-12 fixed flex items-stretch justify-around text-center text-lg uppercase">
|
||||
<th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start"></th>
|
||||
<th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Images</th>
|
||||
<th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Voix Off et In</th>
|
||||
<th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Bande Son</th>
|
||||
<th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Ecrits</th>
|
||||
<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="flex items-end justify-start"></th>
|
||||
<th class="flex items-end justify-start pb-4">Images</th>
|
||||
<th class="flex items-end justify-start pb-4">Voix Off et In</th>
|
||||
<th class="flex items-end justify-start pb-4">Bande Son</th>
|
||||
<th class="flex items-end justify-start pb-4">Écrits</th>
|
||||
<th class="flex items-end justify-start"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tbody class="w-full lg:w-2/3 block bg-jlg-dark-blue">
|
||||
<?php
|
||||
$args = array(
|
||||
'post_type' => '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();
|
||||
?>
|
||||
<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>
|
||||
<td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'Images', true) }}</td>
|
||||
<td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'VoixOffIn', true) }}</td>
|
||||
<td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'BandeSon', true) }}</td>
|
||||
<td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'Ecrits', true) }}</td>
|
||||
$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">🖉</a>';?></td>
|
||||
</tr>
|
||||
<?php
|
||||
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;
|
||||
wp_reset_postdata();
|
||||
?>
|
||||
@@ -68,6 +84,4 @@
|
||||
@endif
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user