diff --git a/include/library/Crunchbutton/App.php b/include/library/Crunchbutton/App.php index 70223ba85..dab168b25 100755 --- a/include/library/Crunchbutton/App.php +++ b/include/library/Crunchbutton/App.php @@ -110,6 +110,14 @@ class Crunchbutton_App extends Cana_App { } + public function isCompat() { + if (preg_match('/(Firefox\/1\.)|(MSIE (1|2|3|4|5|6|7|8|9))/i',$_SERVER['HTTP_USER_AGENT'])) { + return false; + } else { + return true; + } + } + public function user() { return $this->auth()->user(); } @@ -168,6 +176,12 @@ class Crunchbutton_App extends Cana_App { foreach ($params['theme'] as $theme) { $this->controllerStack($theme); } + + if (!$this->isCompat()) { + $params['layout'] = 'layout/compat'; + } else { + $params['layout'] = $this->config()->defaults->layout; + } parent::buildView($params); diff --git a/include/views/default/crunchbutton/bundle/js.phtml b/include/views/default/crunchbutton/bundle/js.phtml index 4619b4f93..32363807e 100644 --- a/include/views/default/crunchbutton/bundle/js.phtml +++ b/include/views/default/crunchbutton/bundle/js.phtml @@ -35,7 +35,6 @@ $(function() { restaurant: 'name)?>' }; - }); diff --git a/include/views/default/crunchbutton/layout/compat.phtml b/include/views/default/crunchbutton/layout/compat.phtml new file mode 100644 index 000000000..0c7f028bc --- /dev/null +++ b/include/views/default/crunchbutton/layout/compat.phtml @@ -0,0 +1,74 @@ + + + +<?=$this->title ? $this->title : 'Crunchbutton'?> + + + + + + + + + + + + + + + + + +
+
+
+
+ +


+

+ We're sorry, but your web browser is not currently supported with our new version of Crunchbutton. +

+ We optimize our website for the latest and greatest, and are always making improvements. To properly view our site, you will need a newer web browser. We recommend Google Chrome, but we support other browsers for your Operating System as well: +

+
+
+
+
+
+

+
+
+
+ + + + + + + + + + + + + + + + + + + + +
+ + + +
ChromeSafariFirefoxOperaMSIE 10
+
+ +
+
+ + diff --git a/www/assets/css/landing.css b/www/assets/css/landing.css index faa8917c0..ea4642011 100644 --- a/www/assets/css/landing.css +++ b/www/assets/css/landing.css @@ -75,12 +75,12 @@ a { } body { - background: url(/assets/images/landing-bg-tile.gif) repeat-x; + background: white; } .wrapper { background: url(/assets/images/landing-bg.gif); - min-height: 922px; + border-bottom: 1px solid rgba(0,0,0,.1); } .content { @@ -88,7 +88,8 @@ body { background-position: top center; width: 1024px; margin: 0 auto; - min-height: 900px; + min-height: 200px; + padding-bottom: 40px; } p { @@ -218,4 +219,16 @@ and (max-width : 500px) { .info-block-icon { margin-right: 10px; +} + +.bottom { + background: white; +} + +.bottom a { + color: black !important; +} +td { + text-align: center; + margin-top: 10px; } \ No newline at end of file diff --git a/www/assets/images/compat/chrome.jpg b/www/assets/images/compat/chrome.jpg new file mode 100755 index 000000000..d31dfd260 Binary files /dev/null and b/www/assets/images/compat/chrome.jpg differ diff --git a/www/assets/images/compat/firefox.jpg b/www/assets/images/compat/firefox.jpg new file mode 100755 index 000000000..b18b79812 Binary files /dev/null and b/www/assets/images/compat/firefox.jpg differ diff --git a/www/assets/images/compat/msie.jpg b/www/assets/images/compat/msie.jpg new file mode 100755 index 000000000..4d73ee0a1 Binary files /dev/null and b/www/assets/images/compat/msie.jpg differ diff --git a/www/assets/images/compat/opera.jpg b/www/assets/images/compat/opera.jpg new file mode 100755 index 000000000..760a78761 Binary files /dev/null and b/www/assets/images/compat/opera.jpg differ diff --git a/www/assets/images/compat/safari.jpg b/www/assets/images/compat/safari.jpg new file mode 100755 index 000000000..9e3734951 Binary files /dev/null and b/www/assets/images/compat/safari.jpg differ