File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
application/front/controller/visitor Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ protected function render(string $template): string
61
61
$ this ->assignView ('template ' , $ template );
62
62
63
63
$ this ->assignView ('linkcount ' , $ this ->container ->bookmarkService ->count (BookmarkFilter::$ ALL ));
64
+ $ this ->assignView ('publicLinkcount ' , $ this ->container ->bookmarkService ->count (BookmarkFilter::$ PUBLIC ));
64
65
$ this ->assignView ('privateLinkcount ' , $ this ->container ->bookmarkService ->count (BookmarkFilter::$ PRIVATE ));
65
66
66
67
$ this ->executeDefaultHooks ($ template );
Original file line number Diff line number Diff line change 7
7
{include="page.header"}
8
8
9
9
< div class ="linkcount pure-u-0 pure-u-lg-visible ">
10
- {if="!empty($linkcount) "}
10
+ {if="$is_logged_in "}
11
11
< span class ="strong "> {$linkcount}</ span > {function="t('shaare', 'shaares', $linkcount)"}
12
- {if="$privateLinkcount> 0"}
13
12
< br > < span class ="strong "> {$privateLinkcount}</ span > {function="t('private link', 'private links', $privateLinkcount)"}
14
- {/if}
13
+ {else}
14
+ < span class ="strong "> {$publicLinkcount}</ span > {function="t('shaare', 'shaares', $publicLinkcount)"}
15
15
{/if}
16
16
</ div >
17
17
56
56
< div class ="pure-u-lg-2-24 pure-u-1-24 "> </ div >
57
57
< div id ="link-count-content " class ="pure-u-lg-20-24 pure-u-22-24 ">
58
58
< div class ="linkcount pure-u-lg-0 center ">
59
- {if="!empty($linkcount) "}
59
+ {if="$is_logged_in "}
60
60
< span class ="strong "> {$linkcount}</ span > {function="t('shaare', 'shaares', $linkcount)"}
61
- {if="$privateLinkcount> 0"}
62
61
· < span class ="strong "> {$privateLinkcount}</ span > {function="t('private link', 'private links', $privateLinkcount)"}
63
- {/if}
62
+ {else}
63
+ < span class ="strong "> {$publicLinkcount}</ span > {function="t('shaare', 'shaares', $publicLinkcount)"}
64
64
{/if}
65
65
</ div >
66
66
Original file line number Diff line number Diff line change 2
2
< div id ="logo " title ="Share your links ! " onclick ="document.location='{$titleLink}'; "> </ div >
3
3
4
4
< div id ="linkcount " class ="nomobile ">
5
- {if="!empty($linkcount)"}{$linkcount} links{/if}< br >
6
- {if="!empty($privateLinkcount)"}{$privateLinkcount} private links{/if}
5
+ {if="$is_logged_in"}
6
+ {$linkcount} links< br >
7
+ {$privateLinkcount} private links
8
+ {else}
9
+ {$publicLinkcount} links
10
+ {/if}
7
11
</ div >
8
12
9
13
< div id ="menu ">
You can’t perform that action at this time.
0 commit comments