<?php
namespace Website\Widgets\Instagram; use Moto; class PostWidget extends Moto\System\Widgets\AbstractWidget { protected $_name = 'instagram.post'; protected static $_defaultProperties = array( 'spacing' => array( 'top' => 'auto', 'right' => 'auto', 'bottom' => 'auto', 'left' => 'auto' ), 'align' => array( 'desktop' => 'center', 'tablet' => '', 'mobile-v' => '', 'mobile-h' => '' ), 'visible_on' => 'mobile-v', 'encodedHtml' => '', 'params' => array( 'href' => '', 'hideCaption' => false, ), ); protected $_widgetId = true; public function getTemplatePath($preset = null) { return '@websiteWidgets/instagram/templates/post.twig.html'; } public function getDecodedHtml() { return new \Twig_Markup(base64_decode($this->properties['encodedHtml']), 'UTF-8'); } } 