2012-03-09 12:15:27 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
2012-03-12 18:31:54 -04:00
|
|
|
* Name: Diabook-blue
|
|
|
|
* Description: Diabook-blue: report bugs and request here: http://pad.toktan.org/p/diabook or contact me : thomas_bierey@friendica.eu
|
2012-03-09 12:15:27 -05:00
|
|
|
* Version:
|
|
|
|
* Author:
|
|
|
|
*/
|
|
|
|
|
|
|
|
$a->theme_info = array(
|
|
|
|
'extends' => 'diabook',
|
|
|
|
);
|
|
|
|
|
|
|
|
$a->page['htmlhead'] .= <<< EOT
|
2012-03-12 16:09:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="view/theme/diabook/lightbox/js/jquery.lightbox-0.5.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="view/theme/diabook/lightbox/css/jquery.lightbox-0.5.css" media="screen" />
|
|
|
|
|
|
|
|
|
2012-03-09 12:15:27 -05:00
|
|
|
<script>
|
2012-03-12 16:09:16 -04:00
|
|
|
|
2012-03-09 12:15:27 -05:00
|
|
|
//contacts
|
|
|
|
$('html').click(function() {
|
|
|
|
$('#nav-contacts-linkmenu').removeClass('selected');
|
|
|
|
document.getElementById( "nav-contacts-menu" ).style.display = "none";
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#nav-contacts-linkmenu').click(function(event){
|
|
|
|
event.stopPropagation();
|
|
|
|
});
|
|
|
|
|
|
|
|
//messages
|
|
|
|
$('html').click(function() {
|
|
|
|
$('#nav-messages-linkmenu').removeClass('selected');
|
|
|
|
document.getElementById( "nav-messages-menu" ).style.display = "none";
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#nav-messages-linkmenu').click(function(event){
|
|
|
|
event.stopPropagation();
|
|
|
|
});
|
|
|
|
|
|
|
|
//notifications
|
|
|
|
$('html').click(function() {
|
|
|
|
$('#nav-notifications-linkmenu').removeClass('selected');
|
|
|
|
document.getElementById( "nav-notifications-menu" ).style.display = "none";
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#nav-notifications-linkmenu').click(function(event){
|
|
|
|
event.stopPropagation();
|
|
|
|
});
|
|
|
|
|
|
|
|
//usermenu
|
|
|
|
$('html').click(function() {
|
|
|
|
$('#nav-user-linkmenu').removeClass('selected');
|
|
|
|
document.getElementById( "nav-user-menu" ).style.display = "none";
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#nav-user-linkmenu').click(function(event){
|
|
|
|
event.stopPropagation();
|
|
|
|
});
|
|
|
|
|
|
|
|
//settingsmenu
|
|
|
|
$('html').click(function() {
|
|
|
|
$('#nav-site-linkmenu').removeClass('selected');
|
|
|
|
document.getElementById( "nav-site-menu" ).style.display = "none";
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#nav-site-linkmenu').click(function(event){
|
|
|
|
event.stopPropagation();
|
|
|
|
});
|
2012-03-12 16:09:16 -04:00
|
|
|
//appsmenu
|
|
|
|
$('html').click(function() {
|
|
|
|
$('#nav-apps-link').removeClass('selected');
|
|
|
|
document.getElementById( "nav-apps-menu" ).style.display = "none";
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#nav-apps-link').click(function(event){
|
|
|
|
event.stopPropagation();
|
|
|
|
});
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
$('a.lightbox').lightBox(); // Select all links with lightbox class
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
2012-03-09 12:15:27 -05:00
|
|
|
EOT;
|