nav .nav-notify.show {
display: block;
}
+
nav #nav-help-link,
nav #nav-search-link,
nav #nav-directory-link,
nav #nav-apps-link,
nav #nav-site-linkmenu,
nav #nav-home-link,
+nav #nav-login-link,
nav #nav-user-linkmenu
{
float: right;
nav #nav-user-linkmenu{
margin-right: 0px;
}
-nav #nav-home-link, #nav-directory-link, #nav-apps-link{
+nav #nav-home-link, #nav-directory-link, #nav-login-link, #nav-apps-link{
margin-left: 0px;
margin-right: 0px;
font-weight: bold;
margin: 3px 5px;
- font-size: 14px;
}
nav #nav-directory-link{
- margin-right: 0px;
+ margin-right: 10px;
}
+
+li#nav-site-linkmenu.nav-menu-icon{
+ display: none;
+}
+
nav #nav-home-link{
- margin-left: 0px;
+ margin-left: 0px;
+ display: none;
}
nav #nav-help-link .menu-popup,
nav #nav-search-link .menu-popup,
left: auto;
}
+
nav #nav-messages-linkmenu.on .icon.messages, nav #nav-messages-linkmenu.selected .icon.messages{
background-image: url("../../../view/theme/diabook/diabook-aerith/icons/messages.png");
}
nav #nav-apps-link,
nav #nav-site-linkmenu,
nav #nav-home-link,
+nav #nav-login-link,
nav #nav-user-linkmenu
{
float: right;
nav #nav-user-linkmenu{
margin-right: 0px;
}
-nav #nav-home-link, #nav-directory-link, #nav-apps-link{
+nav #nav-home-link, #nav-directory-link, #nav-login-link, #nav-apps-link{
margin-left: 0px;
margin-right: 0px;
font-weight: bold;
margin: 3px 5px;
}
nav #nav-directory-link{
- margin-right: 0px;
+ margin-right: 10px;
}
+
+li#nav-site-linkmenu.nav-menu-icon{
+ display: none;
+}
+
nav #nav-home-link{
- margin-left: 0px;
+ margin-left: 0px;
+ display: none;
}
nav #nav-help-link .menu-popup,
nav #nav-search-link .menu-popup,
nav #nav-apps-link,
nav #nav-site-linkmenu,
nav #nav-home-link,
+nav #nav-login-link,
nav #nav-user-linkmenu
{
float: right;
nav #nav-user-linkmenu{
margin-right: 0px;
}
-nav #nav-home-link, #nav-directory-link, #nav-apps-link{
+nav #nav-home-link, #nav-directory-link, #nav-login-link, #nav-apps-link{
margin-left: 0px;
margin-right: 0px;
font-weight: bold;
margin: 3px 5px;
}
nav #nav-directory-link{
- margin-right: 0px;
+ margin-right: 10px;
}
+
+li#nav-site-linkmenu.nav-menu-icon{
+ display: none;
+}
+
nav #nav-home-link{
- margin-left: 0px;
+ margin-left: 0px;
+ display: none;
}
nav #nav-help-link .menu-popup,
nav #nav-search-link .menu-popup,
left: auto;
}
+
nav #nav-messages-linkmenu.on .icon.messages, nav #nav-messages-linkmenu.selected .icon.messages{
background-image: url("../../../view/theme/diabook/diabook-dark/icons/messages2.png");
}
nav #nav-apps-link,
nav #nav-site-linkmenu,
nav #nav-home-link,
+nav #nav-login-link,
nav #nav-user-linkmenu
{
float: right;
nav #nav-user-linkmenu{
margin-right: 0px;
}
-nav #nav-home-link, #nav-directory-link, #nav-apps-link{
+nav #nav-home-link, #nav-directory-link, #nav-login-link, #nav-apps-link{
margin-left: 0px;
margin-right: 0px;
font-weight: bold;
margin: 3px 5px;
- font-size: 14px;
}
nav #nav-directory-link{
- margin-right: 0px;
+ margin-right: 10px;
}
+
+li#nav-site-linkmenu.nav-menu-icon{
+ display: none;
+}
+
nav #nav-home-link{
- margin-left: 0px;
+ margin-left: 0px;
+ display: none;
}
nav #nav-help-link .menu-popup,
nav #nav-search-link .menu-popup,
left: auto;
}
+
nav #nav-messages-linkmenu.on .icon.messages, nav #nav-messages-linkmenu.selected .icon.messages{
background-image: url("../../../view/theme/diabook/diabook-green/icons/messages.png");
}
nav #nav-apps-link,
nav #nav-site-linkmenu,
nav #nav-home-link,
+nav #nav-login-link,
nav #nav-user-linkmenu
{
float: right;
nav #nav-user-linkmenu{
margin-right: 0px;
}
-nav #nav-home-link, #nav-directory-link, #nav-apps-link{
+nav #nav-home-link, #nav-directory-link, #nav-login-link, #nav-apps-link{
margin-left: 0px;
margin-right: 0px;
font-weight: bold;
margin: 3px 5px;
- font-size: 14px;
}
nav #nav-directory-link{
- margin-right: 0px;
+ margin-right: 10px;
}
+
+li#nav-site-linkmenu.nav-menu-icon{
+ display: none;
+}
+
nav #nav-home-link{
- margin-left: 0px;
+ margin-left: 0px;
+ display: none;
}
nav #nav-help-link .menu-popup,
nav #nav-search-link .menu-popup,
left: auto;
}
+
nav #nav-messages-linkmenu.on .icon.messages, nav #nav-messages-linkmenu.selected .icon.messages{
background-image: url("../../../view/theme/diabook/diabook-pink/icons/messages.png");
}
nav #nav-apps-link,
nav #nav-site-linkmenu,
nav #nav-home-link,
+nav #nav-login-link,
nav #nav-user-linkmenu
{
float: right;
nav #nav-user-linkmenu{
margin-right: 0px;
}
-nav #nav-home-link, #nav-directory-link, #nav-apps-link{
+nav #nav-home-link, #nav-directory-link, #nav-login-link, #nav-apps-link{
margin-left: 0px;
margin-right: 0px;
font-weight: bold;
margin: 3px 5px;
- font-size: 15px;
}
nav #nav-directory-link{
- margin-right: 0px;
+ margin-right: 10px;
}
+
+li#nav-site-linkmenu.nav-menu-icon{
+ display: none;
+}
+
nav #nav-home-link{
- margin-left: 0px;
+ margin-left: 0px;
+ display: none;
}
nav #nav-help-link .menu-popup,
nav #nav-search-link .menu-popup,
left: auto;
}
+
nav #nav-messages-linkmenu.on .icon.messages, nav #nav-messages-linkmenu.selected .icon.messages{
background-image: url("../../../view/theme/diabook/diabook-red/icons/messages2.png");
}
nav #nav-apps-link,
nav #nav-site-linkmenu,
nav #nav-home-link,
+nav #nav-login-link,
nav #nav-user-linkmenu
{
float: right;
nav #nav-user-linkmenu{
margin-right: 0px;
}
-nav #nav-home-link, #nav-directory-link, #nav-apps-link{
+nav #nav-home-link, #nav-directory-link, #nav-login-link, #nav-apps-link{
margin-left: 0px;
margin-right: 0px;
font-weight: bold;
margin: 3px 5px;
}
nav #nav-directory-link{
- margin-right: 0px;
+ margin-right: 10px;
}
+
+li#nav-site-linkmenu.nav-menu-icon{
+ display: none;
+}
+
nav #nav-home-link{
- margin-left: 0px;
+ margin-left: 0px;
+ display: none;
}
nav #nav-help-link .menu-popup,
nav #nav-search-link .menu-popup,
left: auto;
}
+
+
nav #nav-messages-linkmenu.on .icon.messages, nav #nav-messages-linkmenu.selected .icon.messages{
background-image: url("../../../view/theme/diabook/icons/messages2.png");
}
{{if $nav.home}}
<li id="nav-home-link" class="nav-menu {{$sel.home}}">
- <a class="{{$nav.home.2}}" href="{{$nav.home.0}}" title="{{$nav.home.3}}" >{{$nav.home.1}}
+ <a class="{{$nav.home.2}}" href="{{$nav.home.0}}" title="{{$nav.home.3}}" >{{$userinfo.name}}
<span id="home-update" class="nav-notify"></span></a>
</li>
{{/if}}
{{/if}}
{{if $nav.login}}
- <li id="nav-home-link" class="nav-menu {{$sel.home}}">
+ <li id="nav-login-link" class="nav-menu {{$sel.home}}">
<a class="{{$nav.login.2}}" href="{{$nav.login.0}}" title="{{$nav.login.3}}" >{{$nav.login.1}}</a>
<li>
{{/if}}
/*
* Name: Diabook
* Description: Diabook: report bugs and request here: http://pad.toktan.org/p/diabook or http://bugs.friendica.com/view_all_bug_page.php
- * Version: (Version: 1.027)
+ * Version: (Version: 1.028)
* Author:
*/
set_template_engine($a, 'smarty3');
//print diabook-version for debugging
-$diabook_version = "Diabook (Version: 1.027)";
+$diabook_version = "Diabook (Version: 1.028)";
$a->page['htmlhead'] .= sprintf('<META NAME=generator CONTENT="%s"/>', $diabook_version);
//init css on network and profilepages
load_config("diabook");
load_pconfig(local_user(), "diabook");
+
+// adjust nav-bar, depending state of user
+if (local_user() ) {
+ $a->page['htmlhead'] .= '
+ <script>
+ $(document).ready(function() {
+ $("li#nav-site-linkmenu.nav-menu-icon").attr("style","display: block;");
+ $("li#nav-directory-link.nav-menu").attr("style","margin-right: 0px;");
+ $("li#nav-home-link.nav-menu").attr("style","display: block;margin-right: 8px;");
+ });
+ </script>';
+ }
+
+if ($a->argv[0] == "profile" && $a->argv[1] != $a->user['nickname'] ) {
+ $a->page['htmlhead'] .= '
+ <script>
+ $(document).ready(function() {
+ $("li#nav-site-linkmenu.nav-menu-icon").attr("style","display: block;");
+ $("li#nav-directory-link.nav-menu").attr("style","margin-right: 0px;");
+ $("li#nav-home-link.nav-menu").attr("style","display: block;margin-right: 8px;");
+ });
+ </script>';
+ }
+
+
//get statuses of boxes at right-hand-column
$close_pages = get_diabook_config( "close_pages", 1 );
$close_profiles = get_diabook_config( "close_profiles", 0 );
$(document).ready(function() {
$("span.group_unselected").attr("style","display: none;");
$("span.group_selected").attr("style","display: none;");
- $("input.unticked.action").attr("style","float: left; margin-top: 5px;");
+ $("input.unticked.action").attr("style","float: left; margin-top: 5px;-moz-appearance: none;");
$("li.menu-profile-list").attr("style","min-height: 22px;");
});
</script>';