File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
false ,
5
5
" BNETDocs has to take a brief moment to do some system maintenance. We'll be back shortly."
6
6
],
7
+ "mobile_site_enabled" : false ,
7
8
"user_login_disabled" : false ,
8
9
"user_password_pepper" : " bnetdocs-INSERTRANDOMVALUEHERE" ,
9
10
"user_register_disabled" : false ,
Original file line number Diff line number Diff line change @@ -24,9 +24,13 @@ if (isset($this->getContext()->user_session)) {
24
24
<?php echo Logger::getTimingHeader (); ?>
25
25
<title><?php echo $ title ; ?> - BNETDocs</title>
26
26
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
27
+ <?php if (Common::$ config ->bnetdocs ->mobile_site_enabled ) { ?>
27
28
<link rel="stylesheet" href="<?php echo Common::relativeUrlToAbsolute ("/a/main.css " ); ?> " type="text/css" media="(min-width:1000px)"/>
28
29
<link rel="stylesheet" href="<?php echo Common::relativeUrlToAbsolute ("/a/main-mobile.css " ); ?> " type="text/css" media="(max-width:999px)"/>
29
- <?php foreach ($ this ->additional_css as $ path ) { ?>
30
+ <?php } else { ?>
31
+ <link rel="stylesheet" href="<?php echo Common::relativeUrlToAbsolute ("/a/main.css " ); ?> " type="text/css" media="all"/>
32
+ <?php }
33
+ foreach ($ this ->additional_css as $ path ) { ?>
30
34
<link rel="stylesheet" type="text/css" href="<?php echo Common::relativeUrlToAbsolute ($ path ); ?> " media="all"/>
31
35
<?php } ?>
32
36
<link rel="icon" href="<?php echo Common::relativeUrlToAbsolute ("/favicon.png " ); ?> " type="image/png" sizes="48x48"/>
You can’t perform that action at this time.
0 commit comments