File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,14 @@ function show_header()
213213{
214214 global $ txt , $ smfInfo , $ context , $ smfinfo_version ;
215215
216+ // Find logo image...
217+ if (file_exists ('./Themes/default/images/smflogo.svg ' ))
218+ $ smflogo = './Themes/default/images/smflogo.svg ' ;
219+ elseif (file_exists ('./Themes/default/images/smflogo.png ' ))
220+ $ smflogo = './Themes/default/images/smflogo.png ' ;
221+ else
222+ $ smflogo = './Themes/default/images/smflogo.gif ' ;
223+
216224echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
217225<html xmlns="http://www.w3.org/1999/xhtml">
218226 <head>
@@ -422,7 +430,7 @@ function addLoadEvent(func)
422430 </head>
423431 <body>
424432 <div id="header">
425- <a href="http://www.simplemachines.org/" target="_blank"><img src="./Themes/default/images/ smflogo.gif " style="width: 258px; float: right;" alt="Simple Machines" border="0" /></a>
433+ <a href="http://www.simplemachines.org/" target="_blank"><img src=" ' . $ smflogo . ' " style="width: 258px; float: right;" alt="Simple Machines" border="0" /></a>
426434 <div> ' , $ txt ['title ' ], '</div>
427435 </div>
428436 <div id="content"> ' ;
You can’t perform that action at this time.
0 commit comments