diff --git a/webroot/widgets/TwitterWall/TwitterWall.php b/webroot/widgets/TwitterWall/TwitterWall.php index 01fdf2f4aca541a13f521f6bf52d4c859e40b64b..b4172cd0edb700c181b5621db0649987d64b0e46 100644 --- a/webroot/widgets/TwitterWall/TwitterWall.php +++ b/webroot/widgets/TwitterWall/TwitterWall.php @@ -4,9 +4,11 @@ require_once 'widgets/iWidget.php'; class TwitterWall implements iWidget { + private $lines; + public function __construct($width, $height) { - + $this->lines = $width*$height/40000; } @@ -19,7 +21,7 @@ class TwitterWall implements iWidget $(document).ready(function(){ $(".tweet").tweet({ avatar_size: 55, - count: 6, + count: '.$this->lines.', loading_text: "loading tweets...", query: "#warpzone", refresh_interval: 360