diff --git a/css/style.css b/css/style.css index 47db9a9..7be3660 100644 --- a/css/style.css +++ b/css/style.css @@ -143,11 +143,6 @@ button#maintenance{ margin: 5px; } -img.logo { - width: 200px; - height: 55px; -} - #status-container{ width: 294px; height: 125px; @@ -691,14 +686,19 @@ img.logo { display: block; margin-left: 4px; margin-top: 5px; - width: 250px; + width: 260px; text-align: left; -} - -#logo-container{ margin-top: 0px; } +img.logo{ + display: block; + max-width:250px; + max-height:70px; + width: auto; + height: auto; + } + span.beer-name-container{ font-size: 0.8em; } diff --git a/top-bar.php b/top-bar.php index cbd3640..b348fd6 100644 --- a/top-bar.php +++ b/top-bar.php @@ -16,19 +16,142 @@ * You should have received a copy of the GNU General Public License * along with BrewPi WWW RMX. If not, see . */ + +$mimetypes = array( + "image/bmp", + "image/cmu-raster", + "image/fif", + "image/florian", + "image/g3fax", + "image/gif", + "image/ief", + "image/jpeg", + "image/jutvision", + "image/naplps", + "image/pict", + "image/pjpeg", + "image/png", + "image/tiff", + "image/vasa", + "image/vnd.dwg", + "image/vnd.fpx", + "image/vnd.net-fpx", + "image/vnd.rn-realflash", + "image/vnd.rn-realpix", + "image/vnd.wap.wbmp", + "image/vnd.xiff", + "image/xbm", + "image/x-cmu-raster", + "image/x-dwg", + "image/x-icon", + "image/x-jg", + "image/x-jps", + "image/x-niff", + "image/x-pcx", + "image/x-pict", + "image/xpm", + "image/x-portable-anymap", + "image/x-portable-bitmap", + "image/x-portable-graymap", + "image/x-portable-greymap", + "image/x-portable-pixmap", + "image/x-quicktime", + "image/x-rgb", + "image/x-tiff", + "image/x-windows-bmp", + "image/x-xbitmap", + "image/x-xbm", + "image/x-xpixmap", + "image/x-xwd", + "image/x-xwindowdump" +); + +$mimeexts = array( + ".art", + ".bm", + ".bmp", + ".dwg", + ".dxf", + ".fif", + ".flo", + ".fpx", + ".g3", + ".gif", + ".ico", + ".ief", + ".iefs", + ".jfif", + ".jfif-tbnl", + ".jpe", + ".jpeg", + ".jpg", + ".jps", + ".jut", + ".mcf", + ".nap", + ".naplps", + ".nif", + ".niff", + ".pbm", + ".pct", + ".pcx", + ".pgm", + ".pic", + ".pict", + ".pm", + ".png", + ".pnm", + ".ppm", + ".qif", + ".qti", + ".qtif", + ".ras", + ".rast", + ".rf", + ".rgb", + ".rp", + ".svf", + ".tif", + ".tiff", + ".turbot", + ".wbmp", + ".xbm", + ".xif", + ".xpm", + ".x-png", + ".xwd" +); + +// Grab the custom logo if it exists, otherwise use the stock one +$custom_logo = glob('images/custom_logo.*'); +$logo = (count($custom_logo) ? $custom_logo[0] : 'images/brewpi_logo.png'); +// Get site root url +$root = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . '/'; + ?>