fini il reste juste les corrections sur la tl
This commit is contained in:
@@ -25,9 +25,9 @@
|
||||
</svg>
|
||||
|
||||
|
||||
<table class="w-full bg-jlg-dark-blue flex justify-center mt-[70px] z-0 pl-10 lg:pl-[10px]">
|
||||
<table class="w-full bg-jlg-dark-blue flex justify-center mt-[70px] z-0 pl-10 lg:pl-[10px] pr-[96px] lg:pr-0">
|
||||
<thead>
|
||||
<tr class="border-jlg-white border-b h-64 top-0 lg:w-2/3 fixed z-0 flex items-stretch justify-around text-left uppercase bg-jlg-dark-blue">
|
||||
<tr class="border-jlg-white border-b h-64 top-0 w-full lg:w-2/3 fixed z-0 flex items-stretch justify-around text-left uppercase bg-jlg-dark-blue pr-[130px] lg:pr-0">
|
||||
<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>
|
||||
@@ -78,7 +78,8 @@
|
||||
$ecrits = isset($infosArray[4]) ? $infosArray[4] : '';
|
||||
|
||||
//lien pour le crayon
|
||||
$edit_link = 'https://localhost/wp/wp-admin/admin.php?page=rvy-revisions&post='. get_the_ID() .'&action=revise';
|
||||
$edit_link = site_url('/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>
|
||||
@@ -88,9 +89,11 @@
|
||||
<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 title="Contribution" 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>';
|
||||
echo '<a title="Contribution" href="' . esc_url( $edit_link ) . '" class="edit-button">'; ?>
|
||||
<img src="<?= get_template_directory_uri(); ?>/resources/assets/icons/pen_icon.svg" alt="icon pen" /></a>
|
||||
<?php } elseif (!is_user_logged_in()) {
|
||||
echo '<img src="' . get_template_directory_uri() . '/resources/assets/icons/pen_icon.svg" alt="icon pen" />';
|
||||
echo do_shortcode('[xoo_el_action type="login" text="Connexion" redirect_to="' . $edit_link . '"]');
|
||||
}?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -54,7 +54,8 @@
|
||||
event.target != document.querySelector('#about_button') &&
|
||||
event.target != document.querySelector('#about_title') &&
|
||||
event.target != document.querySelector('#about_content') &&
|
||||
event.target.parentElement != document.querySelector('#about_content')
|
||||
event.target.parentElement != document.querySelector('#about_content') &&
|
||||
(event.target.tagName != "EM" && event.target.parentElement.parentElement != document.querySelector('#about_content'))
|
||||
) {
|
||||
closeAboutPopup();
|
||||
}
|
||||
|
||||
@@ -1,26 +1,32 @@
|
||||
<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">
|
||||
<?php
|
||||
$current_user = wp_get_current_user();
|
||||
$author_id = $current_user->ID;
|
||||
$revisionary_page = admin_url('admin.php?page=revisionary-q&author=' . $author_id);
|
||||
<div class="flex flex-col">
|
||||
<div class="text-sm mt-[-10px] mb-[15px] pl-5 text-center">
|
||||
<?php if (is_user_logged_in()) {
|
||||
$current_user = wp_get_current_user();
|
||||
$logout_url = wp_logout_url();
|
||||
echo "Connecté en tant que " . $current_user->display_name . " | <span class='underline decoration-dotted'><a href='" . esc_url($logout_url) . "'>Se déconnecter</a></span>";
|
||||
} ?>
|
||||
</div>
|
||||
<div class="text-sm flex flex-row flex-nowrap">
|
||||
<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 whitespace-nowrap">
|
||||
<?php
|
||||
$current_user = wp_get_current_user();
|
||||
$author_id = $current_user->ID;
|
||||
$revisionary_page = admin_url('admin.php?page=revisionary-q&author=' . $author_id);
|
||||
|
||||
$link = sprintf(
|
||||
'<a href="%s">MES CONTRIBUTIONS</a>',
|
||||
esc_url($revisionary_page)
|
||||
);
|
||||
echo do_shortcode('[xoo_el_action type="login" change_to="' . $revisionary_page . '" change_to_text="MES CONTRIBUTIONS" text="CONTRIBUER" redirect_to="' . $revisionary_page . '"]');
|
||||
|
||||
echo do_shortcode('[xoo_el_action type="login" change_to="' . $revisionary_page . '" change_to_text="MES CONTRIBUTIONS" text="CONTRIBUER" redirect_to="' . $revisionary_page . '"]');
|
||||
?>
|
||||
</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"><a href="<?php echo esc_url(home_url('/?format=csv')); ?>">EXPORT</a></button>
|
||||
?>
|
||||
</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"><a href="<?php echo esc_url(home_url('/?format=csv')); ?>">EXPORT</a></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="brand text-center text-2xl leading-none" href="{{ home_url('/') }}">
|
||||
<a class="brand text-center leading-7 whitespace-nowrap" href="{{ home_url('/') }}">
|
||||
<!-- {!! $siteName !!} -->
|
||||
<span class="font-caslon uppercase">Partition<br></span>
|
||||
<span class="font-caslon italic">Le Livre d'Image</span>
|
||||
<span class="font-caslon uppercase text-2xl">Partition<br></span>
|
||||
<span class="font-caslon italic text-3xl">Le Livre d'Image<br></span>
|
||||
<span class="font-caslon text-xl pr-1">de </span><span class="font-caslon text-2xl">Jean-Luc Godard</span>
|
||||
</a>
|
||||
|
||||
<div class="mr-6 w-52">
|
||||
@@ -48,11 +54,3 @@
|
||||
@endif
|
||||
</header>
|
||||
|
||||
<script>
|
||||
setTimeout(() => {
|
||||
const privacyLink = document.querySelector('.xoo-aff-checkbox_single a');
|
||||
privacyLink.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
}, 1000);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user