<?php ShortcodeParser::get()->register('FacebookFeed', function ($arguments, $caption = null, $parser = null) { $lb = new FacebookLikebox($arguments); return $lb->forTemplate(); });
public function getLikebox() { $lb = new FacebookLikebox(); $lb->setParameters(array('Href' => $this->Href, 'Width' => $this->Width, 'Height' => $this->Height, 'AdaptContainerWidth' => $this->AdaptContainerWidth, 'ShowPagePosts' => $this->ShowPagePosts, 'ShowFaces' => $this->ShowFaces, 'HideCoverPhoto' => $this->HideCoverPhoto, 'UseSmallHeader' => $this->UseSmallHeader)); return $lb; }