DB/Favorites

* implement favorites for DB entries
 * click on the star besides the name of the entry to add it to a new quick menu
This commit is contained in:
Sarjuuk
2018-03-30 19:14:46 +02:00
parent d848d316fe
commit e50333a518
15 changed files with 401 additions and 16 deletions

View File

@@ -52,7 +52,13 @@ endforeach;
?>
<script type="text/javascript">
var g_user = <?=Util::toJSON($this->gUser, JSON_UNESCAPED_UNICODE); ?>;
<?php
if ($this->gFavorites):
echo " g_favorites = ".Util::toJSON($this->gFavorites).";\n";
endif;
?>
</script>
<?php
if (CFG_ANALYTICS_USER):
?>

View File

@@ -1,5 +1,6 @@
<?php
if (User::$id):
echo '<span id="toplinks-favorites"><a class="hassubmenu"></a>|</span>';
echo '<a id="toplinks-user">'.User::$displayName.'</a>';
echo '<span id="toplinks-rep" title="'.Lang::main('reputationTip').'">(<a href="?reputation">'.User::getReputation().'</a>)</span>';
else: