<?php
namespace Website\Widgets\Counter; use Moto; class Widget extends Moto\System\Widgets\AbstractWidget { protected $_name = 'counter'; protected static $_defaultProperties = array( 'preset' => 'default', 'textStyle' => 'moto-text_normal', 'options' => array( 'countFrom' => 0, 'countTo' => 100, 'duration' => 3 ), 'align' => array( 'desktop' => 'center', 'tablet' => '', 'mobile-v' => '', 'mobile-h' => '', ), 'animation' => '', 'visible_on' => 'mobile-v', 'spacing' => array( 'top' => 'auto', 'right' => 'auto', 'bottom' => 'auto', 'left' => 'auto', ), ); protected $_templateType = 'templates'; protected $_widgetId = true; public function exportFrontendSettings() { return json_encode($this->properties['options']); } } 