<?php
 namespace Website\Widgets\Actions; use Moto; class ScrollToWidget extends Moto\System\Widgets\AbstractWidget { protected $_name = 'actions.scroll_to'; protected static $_defaultProperties = array( 'target' => [ 'type' => 'anchor', 'value' => '', ], 'scrollTime' => 0.4, 'content' => [ 'selectedType' => 'icon', 'icon' => [ 'animateOn' => 'hover', 'value' => [ 'id' => 'angle-down', 'provider' => 'FontAwesome', 'unicode' => 'f107', ], 'styles' => [ 'desktop' => [ 'base' => [ 'color' => '#333333', 'font-size' => '40px', ], ], ], ], 'text' => [ 'value' => 'Scroll Down', 'style' => 'moto-text_normal', ], ], 'spacing' => [ 'top' => 'auto', 'right' => 'auto', 'bottom' => 'auto', 'left' => 'auto' ], 'visible_on' => 'mobile-v', 'animation' => '', 'align' => [ 'desktop' => 'center', 'tablet' => '', 'mobile-v' => '', 'mobile-h' => '' ], ); protected $_templateType = 'templates'; public function getTemplatePath($preset = null) { return '@websiteWidgets/actions/templates/scroll_to.twig.html'; } protected $_widgetId = true; } 