diff options
author | Arun Persaud <arun@nubati.net> | 2014-03-08 22:02:34 -0800 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2014-03-08 22:26:07 -0800 |
commit | 72bdb543759b5ffbdf5c2cc71294ad4f1f2996b2 (patch) | |
tree | af2457b688e17c1709b5d2d45826a8379393abf1 /include/output.php | |
parent | 742ba18eaf36386d2d0e0936975b3f2545afc59e (diff) | |
download | e-DoKo-72bdb543759b5ffbdf5c2cc71294ad4f1f2996b2.tar.gz e-DoKo-72bdb543759b5ffbdf5c2cc71294ad4f1f2996b2.tar.bz2 e-DoKo-72bdb543759b5ffbdf5c2cc71294ad4f1f2996b2.zip |
updated css/js libraries
* bootstrap 3.1.1
* jquery 2.1.0
* less 1.7.0
mostly bootstrap had to be adjusted, e.g. different names like hero-unit->jumbotron, etc.
Diffstat (limited to 'include/output.php')
-rw-r--r-- | include/output.php | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/include/output.php b/include/output.php index f467558..5157a90 100644 --- a/include/output.php +++ b/include/output.php @@ -489,25 +489,33 @@ function output_navbar() $token = get_user_token($myid); /* logout info */ - echo "\n<div class=\"navigation\">\n"; - echo " <span class=\"brand\" href=\"#\">E-DoKo</span>\n"; - echo " <ul class=\"nav\">"; - echo " <li>\n"; - echo " <img title=\"$name\" "; + echo "\n<nav class=\"navbar navbar-default navbar-fixed-top\" role=\"navigation\">\n"; + echo " <div class=\"container-fluid\">\n"; + echo " <div class=\"navbar-header\">"; + echo " <img class=\"grav navbar-right\" title=\""._('last login').": ".date("r",$unixtime)."\" "; echo "src=\"http://www.gravatar.com/avatar/".md5(strtolower(trim($email)))."?d=identicon\" />\n"; - echo " </li>\n"; - echo " <li> <a href=\"".$INDEX."\"><i class=\"icon-home\"></i><span class=\"navhide\">"._('Home')."</span></a></li>\n"; - echo " <li> <a href=\"".$INDEX."?action=prefs\"><i class=\"icon-cog\"></i><span class=\"navhide\">". - _('settings')."</span></a></li>\n"; - echo " <li> <a href=\"".$INDEX."?action=new\">"._('new game')."</a></li>\n"; - echo " <li> <a href=\"".$INDEX."?action=stats\">"._('statistics')."</a></li>\n"; - echo " <li> <a href=\"".$WIKI."\">"._('wiki/bugs')."</a></li>\n"; - echo " <li> <a href=\"".$RSS."?uid=".$myid."&token=".$token."\">"._('atom')."</a></li>\n"; - echo " <li> <a href=\"".$INDEX."?action=logout\"><i class=\"icon-off\"></i><span class=\"navhide\">"._('logout')."</span></a></li>\n"; - echo " </ul>\n"; - echo "</div>\n"; - - echo "<div class=\"lastlogin\"><span>"._('last login').": ".date("r",$unixtime)."</span></div>\n\n"; + echo ' <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-elements"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button>'; + echo " <a class=\"navbar-brand\" href=\"#\">E-DoKo</a>\n"; + echo " </div>"; + echo ' <div class="collapse navbar-collapse" id="navbar-collapse-elements">'; + echo " <ul class=\"nav navbar-nav\">"; + echo " <li> <a href=\"".$INDEX."\"><span class=\"glyphicon glyphicon-home\"></span>"._('Home')."</a></li>\n"; + echo " <li> <a href=\"".$INDEX."?action=prefs\"><span class=\"glyphicon glyphicon-cog\"></span>". + _('settings')."</a></li>\n"; + echo " <li> <a href=\"".$INDEX."?action=new\">"._('new game')."</a></li>\n"; + echo " <li> <a href=\"".$INDEX."?action=stats\">"._('statistics')."</a></li>\n"; + echo " <li> <a href=\"".$WIKI."\">"._('wiki/bugs')."</a></li>\n"; + echo " <li> <a href=\"".$RSS."?uid=".$myid."&token=".$token."\">"._('atom')."</a></li>\n"; + echo " <li> <a href=\"".$INDEX."?action=logout\"><span class=\"glyphicon glyphicon-off\"></span>"._('logout')."</a></li>\n"; + echo " </ul>\n"; + echo " </div>\n"; + echo " </div>\n"; + echo "</nav>\n"; } return; } |