More CSS fixes
This commit is contained in:
parent
3f1708ea79
commit
88135762e6
11 changed files with 62 additions and 163 deletions
|
@ -184,11 +184,6 @@ class Core{
|
|||
$nav_content=preg_replace("/\{logged_in\}(.*?)\{\/logged_in\}/si","",$nav_content);
|
||||
$nav_content=preg_replace("/\{logged_out\}(.*?)\{\/logged_out\}/si","\\1",$nav_content);
|
||||
}
|
||||
if($session->userdata['allow_grimdark']!=0){
|
||||
$nav_content=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","\\1",$nav_content);
|
||||
}else{
|
||||
$nav_content=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","",$nav_content);
|
||||
}
|
||||
|
||||
if(trim($nav_content)!=''){
|
||||
$navtpl->assign('navtitle', $nav_title);
|
||||
|
@ -301,6 +296,7 @@ class Core{
|
|||
*
|
||||
*/
|
||||
function get_navbits(){
|
||||
$navs = "";
|
||||
foreach($this->navbits as $key => $nav){
|
||||
if(isset($this->navbits[$key+1])){
|
||||
if($nav['url']==''){
|
||||
|
@ -316,7 +312,7 @@ class Core{
|
|||
}
|
||||
}
|
||||
|
||||
if(!$navs){
|
||||
if(empty($navs)){
|
||||
$navs=$bit;
|
||||
}else{
|
||||
$navs.=' / '.$bit;
|
||||
|
@ -442,11 +438,6 @@ class Core{
|
|||
$row['content']=preg_replace("/\{logged_in\}(.*?)\{\/logged_in\}/si","",$row['content']);
|
||||
$row['content']=preg_replace("/\{logged_out\}(.*?)\{\/logged_out\}/si","\\1",$row['content']);
|
||||
}
|
||||
if($session->userdata['allow_grimdark']!=0){
|
||||
$row['content']=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","\\1",$row['content']);
|
||||
}else{
|
||||
$row['content']=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","",$row['content']);
|
||||
}
|
||||
$content.=$row['content'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue