File tree Expand file tree Collapse file tree 8 files changed +70
-32
lines changed
application/front/controller/visitor Expand file tree Collapse file tree 8 files changed +70
-32
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 @@ -1483,18 +1483,25 @@ msgstr "Server-Anforderungen"
1483
1483
1484
1484
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:14
1485
1485
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:79
1486
- msgid "shaare"
1487
- msgid_plural "shaares"
1488
- msgstr[ 0 ] "Shaare"
1489
- msgstr[ 1 ] "Shaares"
1486
+ msgid "total shaare"
1487
+ msgid_plural "total shaares"
1488
+ msgstr[ 0 ] "Shaare insgesamt "
1489
+ msgstr[ 1 ] "Shaares insgesamt "
1490
1490
1491
- #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:18
1492
- #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:83
1491
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:16
1492
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:81
1493
1493
msgid "private link"
1494
1494
msgid_plural "private links"
1495
1495
msgstr[ 0 ] "Privater Link"
1496
1496
msgstr[ 1 ] "Private Links"
1497
1497
1498
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:20
1499
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:85
1500
+ msgid "shaare"
1501
+ msgid_plural "shaares"
1502
+ msgstr[ 0 ] "Shaare"
1503
+ msgstr[ 1 ] "Shaares"
1504
+
1498
1505
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:30
1499
1506
#: tmp/page.header.b91ef64efc3688266305ea9b42e5017e.rtpl.php:123
1500
1507
#: tmp/page.header.cedf684561d925457130839629000a81.rtpl.php:123
Original file line number Diff line number Diff line change @@ -1409,18 +1409,25 @@ msgstr "Pré-requis serveur"
1409
1409
1410
1410
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:14
1411
1411
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:79
1412
- msgid "shaare"
1413
- msgid_plural "shaares"
1414
- msgstr[ 0 ] "shaare"
1415
- msgstr[ 1 ] "shaares"
1412
+ msgid "total shaare"
1413
+ msgid_plural "total shaares"
1414
+ msgstr[ 0 ] "shaare au total "
1415
+ msgstr[ 1 ] "shaares au total "
1416
1416
1417
- #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:18
1418
- #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:83
1417
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:16
1418
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:81
1419
1419
msgid "private link"
1420
1420
msgid_plural "private links"
1421
1421
msgstr[ 0 ] "lien privé"
1422
1422
msgstr[ 1 ] "liens privés"
1423
1423
1424
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:20
1425
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:85
1426
+ msgid "shaare"
1427
+ msgid_plural "shaares"
1428
+ msgstr[ 0 ] "shaare"
1429
+ msgstr[ 1 ] "shaares"
1430
+
1424
1431
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:30
1425
1432
#: tmp/page.header.b91ef64efc3688266305ea9b42e5017e.rtpl.php:123
1426
1433
#: tmp/page.header.cedf684561d925457130839629000a81.rtpl.php:123
Original file line number Diff line number Diff line change @@ -1181,8 +1181,8 @@ msgstr[1] "検索"
1181
1181
#~ msgid "Install"
1182
1182
#~ msgstr "インストール"
1183
1183
1184
- #~ msgid "shaare"
1185
- #~ msgid_plural "shaares"
1184
+ #~ msgid "total shaare"
1185
+ #~ msgid_plural "total shaares"
1186
1186
#~ msgstr[0] "共有"
1187
1187
#~ msgstr[1] "共有"
1188
1188
@@ -1191,6 +1191,11 @@ msgstr[1] "検索"
1191
1191
#~ msgstr[0] "プライベートリンク"
1192
1192
#~ msgstr[1] "プライベートリンク"
1193
1193
1194
+ #~ msgid "shaare"
1195
+ #~ msgid_plural "shaares"
1196
+ #~ msgstr[0] "共有"
1197
+ #~ msgstr[1] "共有"
1198
+
1194
1199
#~ msgid "Search text"
1195
1200
#~ msgstr "文字列で検索"
1196
1201
Original file line number Diff line number Diff line change @@ -1391,20 +1391,28 @@ msgstr "Системные требования"
1391
1391
1392
1392
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:14
1393
1393
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:79
1394
- msgid "shaare"
1395
- msgid_plural "shaares"
1394
+ msgid "total shaare"
1395
+ msgid_plural "total shaares"
1396
1396
msgstr[ 0 ] "закладка"
1397
1397
msgstr[ 1 ] "закладки"
1398
1398
msgstr[ 2 ] "закладок"
1399
1399
1400
- #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:18
1401
- #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:83
1400
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:16
1401
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:81
1402
1402
msgid "private link"
1403
1403
msgid_plural "private links"
1404
1404
msgstr[ 0 ] "личная ссылка"
1405
1405
msgstr[ 1 ] "личные ссылки"
1406
1406
msgstr[ 2 ] "личных ссылок"
1407
1407
1408
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:20
1409
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:85
1410
+ msgid "shaare"
1411
+ msgid_plural "shaares"
1412
+ msgstr[ 0 ] "закладка"
1413
+ msgstr[ 1 ] "закладки"
1414
+ msgstr[ 2 ] "закладок"
1415
+
1408
1416
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:30
1409
1417
#: tmp/page.header.b91ef64efc3688266305ea9b42e5017e.rtpl.php:123
1410
1418
#: tmp/page.header.cedf684561d925457130839629000a81.rtpl.php:123
Original file line number Diff line number Diff line change @@ -1214,16 +1214,22 @@ msgstr "添加默认标签"
1214
1214
1215
1215
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:14
1216
1216
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:79
1217
- msgid "shaare"
1218
- msgid_plural "shaares"
1217
+ msgid "total shaare"
1218
+ msgid_plural "total shaares"
1219
1219
msgstr[ 0 ] "条记录"
1220
1220
1221
- #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:18
1222
- #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:83
1221
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:16
1222
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:81
1223
1223
msgid "private link"
1224
1224
msgid_plural "private links"
1225
1225
msgstr[ 0 ] "私有链接"
1226
1226
1227
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:20
1228
+ #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:85
1229
+ msgid "shaare"
1230
+ msgid_plural "shaares"
1231
+ msgstr[ 0 ] "条记录"
1232
+
1227
1233
#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:30
1228
1234
#: tmp/page.header.cedf684561d925457130839629000a81.rtpl.php:123
1229
1235
msgid "Search text"
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)"}
11
- < span class ="strong "> {$linkcount}</ span > {function="t('shaare', 'shaares', $linkcount)"}
12
- {if="$privateLinkcount> 0"}
10
+ {if="$is_logged_in"}
11
+ < span class ="strong "> {$linkcount}</ span > {function="t('total shaare', 'total shaares', $linkcount)"}
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)"}
60
- < span class ="strong "> {$linkcount}</ span > {function="t('shaare', 'shaares', $linkcount)"}
61
- {if="$privateLinkcount> 0"}
59
+ {if="$is_logged_in"}
60
+ < span class ="strong "> {$linkcount}</ span > total {function="t('shaare', 'shaares', $linkcount)"}
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} total 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