From aab2aba40b6dac97e8d05a0bdd6ce0274699e94e Mon Sep 17 00:00:00 2001 From: John Faulds Date: Wed, 11 Jan 2012 06:43:33 +1000 Subject: [PATCH] Changed (window).width() to Math.max(screen.width,screen.height) in plugin Because it was reporting an incorrect size on iOS --- readme.md | 9 +++++++++ .../third_party/ress/ext.ress.php | 2 +- .../third_party/ress/pi.ress.php | 18 +++++++++++++++--- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index eee29c7..caef173 100644 --- a/readme.md +++ b/readme.md @@ -2,5 +2,14 @@ RESS (Responsive Design + Server Side Components) add-on for ExpressionEngine to detect screen resolution via javascript and then set a variable which you can then access in your templates. Useful for creating Responsive layouts that adapt to users’ screen size and can also conditionally show or hide content. +## Changelog + +1.0.0 +Initial public release + +1.0.1 - 11 Jan 2012 +In the plugin, changed (window).width() which requires jQuery to Math.max(screen.width,screen.height) because it was reporting an incorrect size on iOS. + ## Credit + This is an ExpressionEngine implementation of [Simple-RESS](https://github.com/jiolasa/Simple-RESS) by Matt Stauffer. \ No newline at end of file diff --git a/system/expressionengine/third_party/ress/ext.ress.php b/system/expressionengine/third_party/ress/ext.ress.php index eaae239..f8b82e0 100644 --- a/system/expressionengine/third_party/ress/ext.ress.php +++ b/system/expressionengine/third_party/ress/ext.ress.php @@ -6,7 +6,7 @@ * @package ExpressionEngine * @subpackage Addons * @category Extension - * @version 1.0 + * @version 1.0.0 * @author John Faulds ~ * @link https://github.com/tyssen/RESS-ee * @license http://creativecommons.org/licenses/by-sa/3.0/ diff --git a/system/expressionengine/third_party/ress/pi.ress.php b/system/expressionengine/third_party/ress/pi.ress.php index c2f1fc1..c148f4d 100644 --- a/system/expressionengine/third_party/ress/pi.ress.php +++ b/system/expressionengine/third_party/ress/pi.ress.php @@ -6,15 +6,27 @@ * @package ExpressionEngine * @subpackage Addons * @category Plugin - * @version 1.0 + * @version 1.0.1 * @author John Faulds ~ * @link https://github.com/tyssen/RESS-ee * @license http://creativecommons.org/licenses/by-sa/3.0/ */ + /** +* Changelog +* +* Version 1.0.0 20120109 +* -------------------- +* Initial public release +* +* Version 1.0.1 20120109 +* -------------------- +* Changed (window).width() which requires jQuery to Math.max(screen.width,screen.height) because it was reporting an incorrect size on iOS. +*/ + $plugin_info = array( 'pi_name' => 'RESS', - 'pi_version' =>'1.0.0', + 'pi_version' =>'1.0.1', 'pi_author' =>'John Faulds', 'pi_author_url' => 'https://github.com/tyssen/RESS-ee', 'pi_description' => 'RESS (Responsive Design + Server Side Components) plugin - detect screen resolution via javascript and then set a variable to access in your templates. Useful for creating Responsive layouts that adapt to users’ screen size. Based on https://github.com/jiolasa/Simple-RESS', @@ -32,7 +44,7 @@ public function cookie() { if(!isset($_COOKIE['screensize'])) { - return ""; + return ""; } }