public function render()
{
if ($this->list) {
return $this->renderList();
}
if (!$this->contents) {
throw new MediaObjectException("You need to give the object some contents");
}
return $this->renderItem($this->contents, 'div');
}
/** * Renders the media object * * @return string * @throws MediaObjectException if there is no contents * @static */ public static function render() { return \Bootstrapper\MediaObject::render(); }