39 $this->
widget = new \YAWK\widget();
50 public function init()
53 echo $this->
getHeading($this->fbPostHeading, $this->fbPostSubtext);
64 if (isset($this->fbPostEmbedCode) && (!empty($this->fbPostEmbedCode)))
66 $this->fbPostEmbedCode = str_replace(
"width=\"500\"",
"width=\"$this->fbPostWidth\"", $this->fbPostEmbedCode);
67 $this->fbPostEmbedCode = str_replace(
"height=\"625\"",
"height=\"$this->fbPostHeight\"", $this->fbPostEmbedCode);
74 echo
"Unable to load Facebook Posting: Embed html code is not set or empty.";
Facebook Like Page - embed like my facebook page.
__construct($db)
Load all widget settings from database and fill object.
embedPosting()
Embed any public facebook posting on your page.
init()
Init facebook posting.
if(isset($_POST['save'])) $settings