<?php
namespace Website\Widgets\Broken; use Moto; class Widget extends Moto\System\Widgets\AbstractWidget { protected $_widgetId = true; protected $_templateType = 'templates'; protected $_defaultOptions = array(); protected static $_defaultProperties = array(); public function __construct($options = array()) { $this->_name = Moto\Util::getValue($options, 'name', true); parent::__construct($options); $this->properties = array( 'content' => $options ); $this->_name = 'broken'; $this->_widgetId = true; } public function getRenderTemplate($twig) { if ($this->isPreviewMode()) { return parent::getRenderTemplate($twig); } return $twig->createTemplate(''); } public function getTemplatePath($preset = null) { return '@websiteWidgets/broken/templates/default.twig.html'; } } 