fini il reste juste les corrections sur la tl
This commit is contained in:
@@ -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