diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php old mode 100644 new mode 100755 index 179c4820..c7fe7f71 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -178,7 +178,7 @@ if (@$_SESSION['USERDATA']['id']) { if ($setting->getValue('maintenance')) $_SESSION['POPUP'][] = array('CONTENT' => 'This pool is currently in maintenance mode.', 'TYPE' => 'alert alert-warning'); if ($motd = $setting->getValue('system_motd')) - $_SESSION['POPUP'][] = array('CONTENT' => $motd, 'TYPE' => 'alert alert-info'); + $_SESSION['POPUP'][] = array('CONTENT' => $motd, 'DISMISS' => 'yes', 'ID' => 'motd', 'TYPE' => 'alert alert-info'); // So we can display additional info $smarty->assign('DEBUG', $config['DEBUG']); @@ -213,7 +213,7 @@ foreach ($aMonitorCrons as $strCron) { } } if ($bMessage) - $_SESSION['POPUP'][] = array('CONTENT' => implode($aCronMessage, '')); + $_SESSION['POPUP'][] = array('CONTENT' => implode($aCronMessage, ''), 'DISMISS' => 'yes', 'ID' => 'backend', 'TYPE' => 'alert alert-warning'); // Make it available in Smarty $smarty->assign('PATH', 'site_assets/' . THEME); diff --git a/public/site_assets/bootstrap/js/mpos.js b/public/site_assets/bootstrap/js/mpos.js index 1232ec13..da87eed8 100755 --- a/public/site_assets/bootstrap/js/mpos.js +++ b/public/site_assets/bootstrap/js/mpos.js @@ -31,12 +31,26 @@ $(function() { if( $.cookie('lastlogin-box') === 'closed' ){ $('#lastlogin').hide(); } + if( $.cookie('motd-box') === 'closed' ){ + $('#motd').hide(); + } + if( $.cookie('backend-box') === 'closed' ){ + $('#backend').hide(); + } // Grab your button (based on your posted html) $('.close').click(function( e ){ e.preventDefault(); //alert($(this).attr("id")); - $.cookie('lastlogin-box', 'closed', { path: '/' }); + if ($(this).attr("id") === 'motd') { + $.cookie('motd-box', 'closed', { path: '/' }); + } else if ($(this).attr("id") === 'lastlogin') { + $.cookie('lastlogin-box', 'closed', { path: '/' }); + } else if ($(this).attr("id") === 'backend') { + $.cookie('backend-box', 'closed', { path: '/' }); + } else { + //alert($(this).attr("id")); + } }); }); \ No newline at end of file diff --git a/public/templates/bootstrap/global/header.tpl b/public/templates/bootstrap/global/header.tpl old mode 100644 new mode 100755 index a461a336..d04537ca --- a/public/templates/bootstrap/global/header.tpl +++ b/public/templates/bootstrap/global/header.tpl @@ -8,7 +8,6 @@ {$GLOBAL.website.name} - - {/if} - {/if} - - - - - diff --git a/public/templates/bootstrap/global/pagination.tpl b/public/templates/bootstrap/global/pagination.tpl deleted file mode 100644 index e69de29b..00000000