From 59cd3341863fa2c2d848f55b5efd2b93b712e97d Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 2 Jul 2010 20:28:32 -0400 Subject: [PATCH] add a width parameter, similar to the twitter block --- horde/lib/Block/fb_stream.php | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/horde/lib/Block/fb_stream.php b/horde/lib/Block/fb_stream.php index 93bb17931..6efb094be 100644 --- a/horde/lib/Block/fb_stream.php +++ b/horde/lib/Block/fb_stream.php @@ -74,16 +74,22 @@ class Horde_Block_Horde_fb_stream extends Horde_Block { } catch (Horde_Service_Facebook_Exception $e) {} } - return array('filter' => array('type' => 'enum', - 'name' => _("Filter"), - 'default' => 'nf', - 'values' => $filters), - 'count' => array('type' => 'int', - 'name' => _("Maximum number of entries to display"), - 'default' => ''), - 'notifications' => array('type' => 'boolean', - 'name' => _("Show notifications"), - 'default' => true)); + return array( + 'filter' => array('type' => 'enum', + 'name' => _("Filter"), + 'default' => 'nf', + 'values' => $filters), + 'count' => array('type' => 'int', + 'name' => _("Maximum number of entries to display"), + 'default' => ''), + 'notifications' => array('type' => 'boolean', + 'name' => _("Show notifications"), + 'default' => true), + 'height' => array( + 'name' => _("Height of map (width automatically adjusts to block)"), + 'type' => 'int', + 'default' => 250), + ); } /** @@ -225,6 +231,7 @@ EOF; } $html .= ''; // Close the fbgreybox node that wraps the status // Build the stream feed. + $html .= '
'; foreach ($posts as $post) { $html .= '
'; $html .= '
'; @@ -294,7 +301,7 @@ EOF; $html .= '
'; // Close the fbstreambody, fbstreamstory nodes $html .= '
 
'; } - $html .= ''; // fbbody end + $html .= ''; // fbbody end return $html; } -- 2.11.0