Permalink
Browse files

Add Message for users with JavaScript turned off.

  • Loading branch information...
1 parent 9bed54b commit fab43cfac037add9a3d02227d3239177220e2d26 @gburton committed Aug 2, 2012
Showing with 33 additions and 0 deletions.
  1. +3 −0 catalog/includes/languages/english.php
  2. +9 −0 catalog/includes/template_top.php
  3. +21 −0 catalog/stylesheet.css
@@ -246,4 +246,7 @@ function tep_date_raw($date, $reverse = false) {
define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s. If that number is correct, we do not accept that type of credit card. If it is wrong, please try again.');
define('FOOTER_TEXT_BODY', 'Copyright &copy; ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a><br />Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>');
+
+define('NO_SCRIPT_TEXT', '<p><strong>JavaScript seems to be disabled in your browser.</strong></p><p>You must have JavaScript enabled in your browser to utilize the functionality of this website.</p>');
+
?>
@@ -47,6 +47,15 @@
<link rel="stylesheet" type="text/css" href="ext/960gs/<?php echo ((stripos(HTML_PARAMS, 'dir="rtl"') !== false) ? 'rtl_' : ''); ?>960_24_col.css" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<?php echo $oscTemplate->getBlocks('header_tags'); ?>
+
+<noscript>
+ <div class="no-script">
+ <div class="no-script-inner">
+ <?php echo NO_SCRIPT_TEXT; ?>
+ </div>
+ </div>
+</noscript>
+
</head>
<body>
View
@@ -414,3 +414,24 @@ SPAN.errorText {
float: left;
margin-right: 5px;
}
+
+/* No Javascript Message */
+
+.no-script {
+ border: 1px solid #ddd;
+ border-width: 0 0 1px;
+ background: #ffff90;
+ font: 14px verdana;
+ line-height: 1.25;
+ text-align: center;
+ color: #2f2f2f;
+}
+.no-script .no-script-inner {
+ width: 950px;
+ margin: 0 auto;
+ padding: 5px;
+}
+
+.no-script p {
+ margin: 0;
+}

0 comments on commit fab43cf

Please sign in to comment.