Skip to content

Commit

Permalink
Only provide anon login link when sidebar is not open (cuz it has log…
Browse files Browse the repository at this point in the history
…in box)
  • Loading branch information
jegelstaff committed Oct 13, 2024
1 parent 42dfcc4 commit cea0638
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
/** Included to start page rendering */
include "header.php";
global $xoopsTpl;
$xoopsTpl->assign('openClass', 'site-layout__sidebar--open');
$xoopsTpl->assign('openMenuClass', 'site-layout__sidebar--open');
/** Included to complete page rendering */
include "footer.php";
}
Expand All @@ -83,7 +83,7 @@
/** Included to start page rendering */
include "header.php";
global $xoopsTpl;
$xoopsTpl->assign('openClass', 'site-layout__sidebar--open');
$xoopsTpl->assign('openMenuClass', 'site-layout__sidebar--open');
/** Included to complete page rendering */
include "footer.php";
}
6 changes: 3 additions & 3 deletions themes/Anari/theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

<!-- LAYOUT -> SIDEBAR -->
<{if $xoops_requesturi|strstr:'/modules/formulize/application.php'}>
<{assign var=openClass value='site-layout__sidebar--open'}>
<{assign var=openMenuClass value='site-layout__sidebar--open'}>
<script type='text/javascript'>
jQuery(document).ready(function() {
if (jQuery('.main-menu__item-link--active').length) {
Expand All @@ -77,7 +77,7 @@
});
</script>
<{/if}>
<div class="site-layout__sidebar js-flyout-menu <{$openClass}>">
<div class="site-layout__sidebar js-flyout-menu <{$openMenuClass}>">

<div class="sidebar">

Expand Down Expand Up @@ -145,7 +145,7 @@
<{if $xoops_isuser}>
<a class="user-actions__link" href="<{$icms_url}>/edituser.php" title="Edit Account">Edit Account</a>
<a class="user-actions__link" href="<{$icms_url}>/user.php?op=logout" title="Logout">Logout</a>
<{else}>
<{elseif !$openMenuClass }>
<a class="user-actions__link" href="<{$icms_url}>/user.php" title="Login">Login</a>
<{/if}>

Expand Down

0 comments on commit cea0638

Please sign in to comment.