Skip to content

Commit 660ff90

Browse files
committed
Some theme changes
1 parent 44dc7c1 commit 660ff90

File tree

1 file changed

+76
-36
lines changed

1 file changed

+76
-36
lines changed

smfinfo.php

Lines changed: 76 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
require_once(dirname(__FILE__) . '/SSI.php');
1919
error_reporting($old_error_reporting);
2020
}
21-
2221
// Hmm... no SSI.php and no SMF?
2322
elseif(!defined('SMF'))
2423
die('<b>Error:</b> Cannot start - please verify you put this in the same place as SMF\'s SSI.php.');
2524

26-
$smfinfo_version = '1.1';
25+
$smfinfo_version = '1.2';
2726

2827
initialize();
2928

@@ -238,40 +237,77 @@ function show_header()
238237
$smflogo = './Themes/default/images/smflogo.gif';
239238

240239
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
241-
<html xmlns="http://www.w3.org/1999/xhtml">
240+
<html xmlns="http://www.w3.org/1999/xhtml"', !empty($txt['lang_rtl']) ? ' dir="rtl"' : '', '>
242241
<head>
243-
244-
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
242+
<meta http-equiv="Content-Type" content="text/html; charset=', isset($txt['lang_character_set']) ? $txt['lang_character_set'] : 'UTF-8', '" />
245243
<title>', $txt['title'], '</title>
244+
246245
<style type="text/css">
247246
body
248247
{
249-
background-color: #E5E5E8;
250-
margin: 0px;
251-
padding: 0px;
248+
background: #e9eef2;
249+
font: 83.33%/150% "Segoe UI", "Helvetica Neue", "Nimbus Sans L", Arial, "Liberation Sans", sans-serif;
250+
color: #4d4d4d;
251+
display: flex;
252+
flex-direction: column;
253+
min-height: 100vh;
252254
}
253255
body, td
254256
{
255-
color: #000000;
256257
font-size: 11px;
257-
font-family: verdana, sans-serif;
258258
}
259259
div#header
260260
{
261-
background-image: url(Themes/default/images/catbg.jpg);
262-
background-repeat: repeat-x;
263-
background-color: #88A6C0;
264-
padding: 22px 4% 12px 4%;
265-
color: white;
266-
font-family: Georgia, serif;
267-
font-size: xx-large;
268-
border-bottom: 1px solid black;
269-
height: 40px;
261+
padding: 2px 2px 12px 2px;
262+
width: 90%;
263+
display: flex;
264+
align-items: flex-end;
265+
max-width: 1200px;
266+
margin: 0 auto;
270267
}
271-
div#content
268+
h1.forumtitle
272269
{
273-
padding: 20px 30px;
270+
color: #a85400;
271+
text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 #fff;
272+
font-size: 1.8em;
273+
font-family: "Tahoma", sans-serif;
274+
padding: 22px 12px 6px 10px;
275+
font-weight: normal;
276+
flex: 1 1 auto;
277+
}
278+
a#logo
279+
{
280+
float: right;
281+
margin: 16px 0 0 0;
282+
padding-right: 2px;
283+
font-size: 1.4em;
284+
}
285+
div#wrapper
286+
{
287+
max-width: 1200px;
288+
margin: 0 auto;
289+
width: 90%;
290+
clear: both;
291+
background: #fff;
292+
border: 1px solid #b8b8b8;
293+
border-radius: 8px;
294+
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.14);
274295
}
296+
div#footer
297+
{
298+
margin: 4em 0 0 0;
299+
padding: 10px 5%;
300+
background: #3e5a78;
301+
border-top: 3px solid #b2b6bd;
302+
flex: none;
303+
display: block;
304+
font-family: Verdana, sans-serif;
305+
}
306+
div#footer a
307+
{
308+
font-size: 0.9em;
309+
color: #fff;
310+
}
275311
div.panel
276312
{
277313
position: relative;
@@ -305,16 +341,12 @@ function show_header()
305341
}
306342
307343
.dynamic-tab-pane-control .tab-page{
308-
border:1px solid #919b9c;
309-
background:#f6f6f6;
310344
z-index:2;
311-
position:relative;
312345
top:-2px;
313346
font:11px Tahoma;
314347
color:#333;
315348
padding:5px;
316349
width:97%;
317-
float:left;
318350
}
319351
320352
/* This is for phpinfo */
@@ -381,7 +413,10 @@ function show_header()
381413
background-color:#fff;
382414
font-size:8px;
383415
}
384-
416+
ul
417+
{
418+
list-style: none;
419+
}
385420
</style>
386421
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
387422
var sections = new Array();
@@ -443,13 +478,14 @@ function addLoadEvent(func)
443478
}
444479
addLoadEvent(function() {swapSection(0);});
445480
// ]]></script>
446-
</head>
447-
<body>
481+
</head>
482+
<body>
483+
<div id="footerfix">
448484
<div id="header">
449-
<a href="https://www.simplemachines.org/" target="_blank"><img src="' . $smflogo . '" style="width: 258px; float: right;" alt="Simple Machines" border="0" /></a>
450-
<div>', $txt['title'], '</div>
485+
<h1 class="forumtitle">', $txt['title'], '</h1>
486+
<a id="logo" href="https://www.simplemachines.org/" target="_blank"><img src="' . $smflogo . '" alt="Simple Machines" border="0" /></a>
451487
</div>
452-
<div id="content">';
488+
<div id="wrapper">';
453489

454490
if (allowedTo('admin_forum'))
455491
echo '
@@ -1271,11 +1307,15 @@ function show_footer()
12711307

12721308
$t = sprintf($forum_copyright, $forum_version);
12731309
echo '
1274-
</div>
1275-
<div style="clear: left">
1276-
', sprintf($forum_copyright, $forum_version),' | <a href="https://validator.w3.org/check?uri=referer">XHTML</a> | <a href="https://jigsaw.w3.org/css-validator/">CSS</a>
1277-
</div>
1278-
</div>';
1310+
</div><!-- #smfinfo -->
1311+
</div><!-- #wrapper -->
1312+
</div><!-- #footerfix -->
1313+
1314+
<div id="footer">
1315+
<ul>
1316+
<li class="copyright"><a href="https://www.simplemachines.org/" title="Simple Machines Forum" target="_blank" rel="noopener">', $t, '</a></li>
1317+
</ul>
1318+
</div>';
12791319

12801320
/* Below is the hefty javascript for this. Upon opening the page it checks the current file versions with ones
12811321
held at simplemachines.org and works out if they are up to date. If they aren't it colors that files number

0 commit comments

Comments
 (0)