Skip to content
Snippets Groups Projects
Commit 7ce159ea authored by ands's avatar ands
Browse files

Stylesheet-fix

parent 822b214b
No related branches found
No related tags found
No related merge requests found
...@@ -4,9 +4,11 @@ require_once 'widgets/iWidget.php'; ...@@ -4,9 +4,11 @@ require_once 'widgets/iWidget.php';
class TwitterWall implements iWidget class TwitterWall implements iWidget
{ {
private $lines;
public function __construct($width, $height) public function __construct($width, $height)
{ {
$this->lines = $width*$height/40000;
} }
...@@ -19,7 +21,7 @@ class TwitterWall implements iWidget ...@@ -19,7 +21,7 @@ class TwitterWall implements iWidget
$(document).ready(function(){ $(document).ready(function(){
$(".tweet").tweet({ $(".tweet").tweet({
avatar_size: 55, avatar_size: 55,
count: 6, count: '.$this->lines.',
loading_text: "loading tweets...", loading_text: "loading tweets...",
query: "#warpzone", query: "#warpzone",
refresh_interval: 360 refresh_interval: 360
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment