Skip to content

Commit

Permalink
Misc changes (read description)
Browse files Browse the repository at this point in the history
- Added browserconfig.xml for Microsoft live tile support.
- Move inline CSS from index.php to style.css
- Update jQuery to 2.2.0 and use a minified version to reduce weight of
overhead javascript.
- Update modernizr.js to custom build that excludes unnecessary
functions, and use a minified version.
- Add message that encourages users of old browsers to upgrade.
- Various cleanups
- Changed some wording in .gitignore
  • Loading branch information
mescon committed Jan 14, 2016
1 parent a558a07 commit 1fc5f3e
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 10,608 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Do not submit configuration settings to GitHub.
# Do not submit or pull configuration settings when interacting with GitHub.
config.ini.php
test.php
tmp/*
12 changes: 12 additions & 0 deletions browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Please read: http://msdn.microsoft.com/en-us/library/ie/dn455106.aspx -->
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="images/tile.png"/>
<square150x150logo src="images/tile.png"/>
<wide310x150logo src="images/tile-wide.png"/>
<square310x310logo src="images/tile.png"/>
</tile>
</msapplication>
</browserconfig>
12 changes: 9 additions & 3 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* --------------------------------
/* --------------------------------
Primary style
Expand Down Expand Up @@ -27,9 +27,14 @@ a:hover, a:visited, a:link, a:active
text-decoration: none;
}

/* --------------------------------
iframe {
width: 100%;
height: 926px;
}

/* --------------------------------
Main components
Main components
-------------------------------- */

Expand All @@ -48,6 +53,7 @@ Main components
}
}


.cd-tabs-navigation {
width: 360px;
}
Expand Down
Binary file added images/tile-wide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 16 additions & 8 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ function frameContent($config) {

if(!empty($section["enabled"]) && !($section["enabled"]=="false") && ($section["enabled"]=="true")) {
if(!empty($section["default"]) && !($section["default"]=="false") && ($section["default"]=="true")) {
$item .= "<li data-content=\"". $keyname . "\" class=\"selected\"><iframe scrolling=\"auto\" src=\"". $section["url"] . "\" style=\"width:100%; height:926px\"></iframe></li>\n";
$item .= "<li data-content=\"". $keyname . "\" class=\"selected\"><iframe scrolling=\"auto\" src=\"". $section["url"] . "\"></iframe></li>\n";
} else {
$item .= "<li data-content=\"". $keyname . "\"><iframe scrolling=\"auto\" src=\"". $section["url"] . "\" style=\"width:100%; height:926px\"></iframe></li>\n";
$item .= "<li data-content=\"". $keyname . "\"><iframe scrolling=\"auto\" src=\"". $section["url"] . "\"></iframe></li>\n";
}
}
}
Expand Down Expand Up @@ -64,23 +64,31 @@ function landingPage($config, $keyname) {
die();
}
?>
<html lang="en" class="no-js">
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/ico" href="favicon.ico" />
<meta name="description" content="MTPHP - Application Management Console">
<link rel="shortcut icon" href="favicon.ico" type="image/ico" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" /> <!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" /> <!--FontAwesome-->

<link href='//fonts.googleapis.com/css?family=PT+Sans:400' rel='stylesheet' type='text/css'> <!-- Font -->
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=PT+Sans:400" type="text/css"> <!-- Font -->
<link rel="stylesheet" href="css/reset.css"> <!-- CSS reset -->
<link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
<script src="js/modernizr.js"></script> <!-- Modernizr -->
<script src="js/modernizr-2.8.3-respond-1.4.2.min.js"></script> <!-- Modernizr -->

<title>MTPHP - Application Management Console</title>
</head>

<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<div class="cd-tabs">
<nav>
<ul class="cd-tabs-navigation">
Expand All @@ -93,7 +101,7 @@ function landingPage($config, $keyname) {
</ul>
</div>

<script src="js/jquery-2.1.1.js"></script>
<script src="js/jquery-2.2.0.min.js"></script>
<script src="js/main.js"></script> <!-- Resource jQuery -->
</body>
</html>
Loading

1 comment on commit 1fc5f3e

@mescon
Copy link
Owner Author

@mescon mescon commented on 1fc5f3e Jan 14, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, added robots.txt to disallow indexing by search engines in case the user failed in securing MTPHP with .htpasswd or by other means.

Please sign in to comment.