<?php
namespace Website\Widgets\Actions; use Moto; class OpenPopupWidget extends Moto\System\Widgets\AbstractWidget { protected $_name = 'actions.open_popup'; protected static $_defaultProperties = array( 'actionId' => '', 'popupId' => null, 'triggerType' => 'timer', 'delayTime' => 0, 'recurrenceCondition' => 'session', 'recurrenceOptions' => array( 'shows' => 1, 'overtime' => 86400 ), ); protected $_templateType = 'templates'; public function getTemplatePath($preset = null) { return '@websiteWidgets/actions/templates/open_popup.twig.html'; } public function exportFrontendSettings() { return json_encode($this->getProperties()); } protected $_widgetId = true; } 