Merge branch 'develop' of https://github.com/pandorafms/pandorafms into develop

This commit is contained in:
Junichi Satoh 2014-09-16 19:41:34 +09:00
commit 1977fb1c37
2 changed files with 19 additions and 3 deletions

View File

@ -325,7 +325,14 @@ config_check();
<script type="text/javascript"> <script type="text/javascript">
/* <![CDATA[ */ /* <![CDATA[ */
var fixed_header = <?php echo json_encode((bool)$config['fixed_header']); ?>; <?php
$config_fixed_header = false;
if (isset($config['fixed_header'])) {
$config_fixed_header = $config['fixed_header'];
}
?>
var fixed_header = <?php echo json_encode((bool)$config_fixed_header); ?>;
var new_chat = <?php echo (int)$_SESSION['new_chat'];?>; var new_chat = <?php echo (int)$_SESSION['new_chat'];?>;
$(document).ready (function () { $(document).ready (function () {

View File

@ -57,13 +57,22 @@ require ("links_menu.php");
echo '</div>'; //menu_container echo '</div>'; //menu_container
ui_require_jquery_file ('cookie'); ui_require_jquery_file ('cookie');
$config_fixed_menu = false;
if (isset($config['fixed_menu'])) {
$config_fixed_menu = $config['fixed_menu'];
}
$config_fixed_header = false;
if (isset($config['fixed_header'])) {
$config_fixed_header = $config['fixed_header'];
}
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript" language="javascript">
/* <![CDATA[ */ /* <![CDATA[ */
var autohidden_menu = <?php echo $autohidden_menu; ?>; var autohidden_menu = <?php echo $autohidden_menu; ?>;
var fixed_menu = <?php echo json_encode((bool)$config['fixed_menu']); ?>; var fixed_menu = <?php echo json_encode((bool)$config_fixed_menu); ?>;
var fixed_header = <?php echo json_encode((bool)$config['fixed_header']); ?>; var fixed_header = <?php echo json_encode((bool)$config_fixed_header); ?>;
var id_user = "<?php echo $config['id_user']; ?>"; var id_user = "<?php echo $config['id_user']; ?>";
var cookie_name = id_user + '-pandora_menu_state'; var cookie_name = id_user + '-pandora_menu_state';
var cookie_name_encoded = btoa(cookie_name); var cookie_name_encoded = btoa(cookie_name);