mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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:
@@ -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):
|
||||
?>
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user