From b55dc3d7e05533edc7380004d43f039fecb88701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ianar=C3=A9=20s=C3=A9vi?= Date: Thu, 7 Jun 2012 15:27:38 +0200 Subject: [PATCH] fixes to renderTag functions --- ActivityFeed.php | 2 +- Comments.php | 2 +- EFaceplugsBase.php | 5 +++-- Facepile.php | 2 +- FanBox.php | 2 +- LikeBox.php | 2 +- LikeButton.php | 2 +- LiveStream.php | 2 +- LoginButton.php | 2 +- Recommendations.php | 2 +- Registration.php | 2 +- SendButton.php | 2 +- SubscribeButton.php | 2 +- 13 files changed, 15 insertions(+), 14 deletions(-) diff --git a/ActivityFeed.php b/ActivityFeed.php index b0f6ba6..3daf2ef 100644 --- a/ActivityFeed.php +++ b/ActivityFeed.php @@ -89,7 +89,7 @@ class ActivityFeed extends EFaceplugsBase public function run() { parent::run(); - $this->printTag('activity'); + $this->renderTag('activity'); } } diff --git a/Comments.php b/Comments.php index bdd5059..c5888ac 100644 --- a/Comments.php +++ b/Comments.php @@ -42,7 +42,7 @@ class Comments extends EFaceplugsBase public function run() { parent::run(); - $this->printTag('comments'); + $this->renderTag('comments'); } } diff --git a/EFaceplugsBase.php b/EFaceplugsBase.php index 5e45fd8..1ecea12 100644 --- a/EFaceplugsBase.php +++ b/EFaceplugsBase.php @@ -308,6 +308,7 @@ public function run() * Register an OpenGraph property. * @param string $property * @param string $data + * @return void */ public function registerOpenGraph($property, $data) { @@ -415,11 +416,11 @@ public function registerSDKScript($method, $args=array()) /** * @param $name the name of the Facebook Social Plugin - * @param $params the parameters for the Facebook Social Plugin * @return void */ - protected function renderTag($name, $params) + protected function renderTag($name) { + $params = $this->getParams(); if ($this->html5) $this->makeHtml5Tag('fb-'.$name,$params); else diff --git a/Facepile.php b/Facepile.php index abbf601..e6ff829 100644 --- a/Facepile.php +++ b/Facepile.php @@ -51,7 +51,7 @@ class Facepile extends EFaceplugsBase public function run() { parent::run(); - $this->printTag('facepile'); + $this->renderTag('facepile'); } } diff --git a/FanBox.php b/FanBox.php index 3bfdfea..6b29f43 100644 --- a/FanBox.php +++ b/FanBox.php @@ -60,6 +60,6 @@ public function run() if (!isset($this->profile_id)) { $this->profile_id = $this->app_id; } - $this->printTag('fan'); + $this->renderTag('fan'); } } diff --git a/LikeBox.php b/LikeBox.php index 69feb70..2a2e07f 100644 --- a/LikeBox.php +++ b/LikeBox.php @@ -73,6 +73,6 @@ public function run() if (!isset($this->profile_id)) { $this->profile_id = $this->app_id; } - $this->printTag('like-box'); + $this->renderTag('like-box'); } } diff --git a/LikeButton.php b/LikeButton.php index d051bfe..760f6ab 100644 --- a/LikeButton.php +++ b/LikeButton.php @@ -62,6 +62,6 @@ class LikeButton extends EFaceplugsBase public function run() { parent::run(); - $this->printTag('like'); + $this->renderTag('like'); } } diff --git a/LiveStream.php b/LiveStream.php index c5d4020..44b396e 100644 --- a/LiveStream.php +++ b/LiveStream.php @@ -38,7 +38,7 @@ class LiveStream extends EFaceplugsAppLink public function run() { parent::run(); - $this->printTag('live-stream'); + $this->renderTag('live-stream'); } } diff --git a/LoginButton.php b/LoginButton.php index e75c818..f781c61 100644 --- a/LoginButton.php +++ b/LoginButton.php @@ -48,7 +48,7 @@ class LoginButton extends EFaceplugsAppLink public function run() { parent::run(); - $this->printTag('login-button'); + $this->renderTag('login-button'); } } diff --git a/Recommendations.php b/Recommendations.php index d058dc3..54d952d 100644 --- a/Recommendations.php +++ b/Recommendations.php @@ -72,7 +72,7 @@ class Recommendations extends EFaceplugsBase public function run() { parent::run(); - $this->printTag('recommendations'); + $this->renderTag('recommendations'); } } diff --git a/Registration.php b/Registration.php index 985c06d..584f16b 100644 --- a/Registration.php +++ b/Registration.php @@ -59,7 +59,7 @@ public function run() { parent::run(); $this->client_id = $this->app_id; - $this->printTag('registration'); + $this->renderTag('registration'); } } diff --git a/SendButton.php b/SendButton.php index 911ff60..875a6fd 100644 --- a/SendButton.php +++ b/SendButton.php @@ -43,6 +43,6 @@ class SendButton extends EFaceplugsBase public function run() { parent::run(); - $this->printTag('send'); + $this->renderTag('send'); } } diff --git a/SubscribeButton.php b/SubscribeButton.php index 1cff04b..23b89e0 100644 --- a/SubscribeButton.php +++ b/SubscribeButton.php @@ -53,6 +53,6 @@ class SubscribeButton extends EFaceplugsBase public function run() { parent::run(); - $this->printTag('subscribe'); + $this->renderTag('subscribe'); } }