Skip to content

Commit

Permalink
Better menu_pre_folder_menu / menu_post_folder_menu hooks position
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed Jan 10, 2019
1 parent 5d6fba4 commit a1b4fc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
{function="Plugin::callJs()"}
</head>
<body data-anonymous-state="{$configurationManager->get('articleDisplayAnonymous')}">
{function="Plugin::callHook("menu_pre_folder_menu", array(&$myUser))"}
{if="($myUser!=false) || ($configurationManager->get('articleDisplayAnonymous')=='1')"}
<aside id="sidebar" class="sidebar">
{/if}
Expand Down Expand Up @@ -72,6 +71,7 @@ <h2 class="feed-add-title">{function="_t('ADD_FEED')"}</h2>
<input type="text" name="redirect" value="index" hidden />
<button class="feed-add-button">{function="_t('ADD')"}</button>
</form>
{function="Plugin::callHook("menu_pre_folder_menu", array(&$myUser))"}
{/if}
{if="($configurationManager->get('articleDisplayAnonymous')=='1') || ($myUser!=false)"}
{$currentItemsCount=$unread['total']}
Expand Down Expand Up @@ -128,9 +128,9 @@ <h2 class="feed-add-title">{function="_t('ADD_FEED')"}</h2>
<button class="shortcuts-toggle js-shortcuts-toggle" title="{function="_t('LEEDVIBES_SHORTCUTS_BUTTON_TITLE')"}" >
<img src="images/shortcuts.svg" alt="{function="_t('LEEDVIBES_SHORTCUTS')"}" />
</button>
{function="Plugin::callHook("menu_post_folder_menu", array(&$myUser))"}
</aside>
{/if}
{function="Plugin::callHook("menu_post_folder_menu", array(&$myUser))"}

{if="($configurationManager->get('articleDisplayAnonymous')=='1') || ($myUser!=false)"}
<div class="svg-list hidden">
Expand Down

0 comments on commit a1b4fc2

Please sign in to comment.