|
|
@ -33,7 +33,7 @@ function vier_init(&$a) { |
|
|
|
$a->page['htmlhead'] .= '<meta name=viewport content="width=device-width, initial-scale=1">'."\n"; |
|
|
|
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="view/theme/vier/mobile.css" media="screen"/>'."\n"; |
|
|
|
} |
|
|
|
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="view/theme/vier/mobile.css" media="screen and (max-width: 1000px)"/>'."\n"; |
|
|
|
#$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="view/theme/vier/mobile.css" media="screen and (max-width: 1000px)"/>'."\n";
|
|
|
|
|
|
|
|
$a->page['htmlhead'] .= <<< EOT |
|
|
|
<link rel='stylesheet' type='text/css' href='view/theme/vier/narrow.css' media='screen and (max-width: 1100px)' /> |
|
|
@ -87,16 +87,29 @@ function cmtBbClose(id) { |
|
|
|
$("#comment-edit-bb-" + id).hide(); |
|
|
|
} |
|
|
|
|
|
|
|
$(document).ready(function() { |
|
|
|
$(".mobile-aside-toggle a").click(function(e){ |
|
|
|
e.preventDefault(); |
|
|
|
$("aside").toggleClass("show"); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
EOT; |
|
|
|
|
|
|
|
|
|
|
|
if ($a->is_mobile || $a->is_tablet){ |
|
|
|
$a->page['htmlhead'] .= <<< EOT |
|
|
|
<script> |
|
|
|
$(document).ready(function() { |
|
|
|
$(".mobile-aside-toggle a").click(function(e){ |
|
|
|
e.preventDefault(); |
|
|
|
$("aside").toggleClass("show"); |
|
|
|
}); |
|
|
|
$(".tabs").click(function(e){ |
|
|
|
$(this).toggleClass("show"); |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
EOT; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Hide the left menu bar
|
|
|
|
if (($a->page['aside'] == "") AND in_array($a->argv[0], array("community", "events", "help", "manage", "notifications", |
|
|
|
"probe", "webfinger", "login", "invite", "credits"))) |
|
|
|