<?php
namespace Website\Widgets\GridGallery; use Moto; class Widget extends Moto\System\Widgets\AbstractWidget { protected $_name = 'grid_gallery'; protected static $_defaultProperties = array( 'preset' => 'default', 'spacing' => array( 'top' => 'auto', 'right' => 'auto', 'bottom' => 'auto', 'left' => 'auto', ), 'settings' => array( 'rowHeight' => 120, 'fixedHeight' => false, 'margins' => 10, 'lastRow' => 'nojustify', 'showCaptions' => true, 'enableLightbox' => true, 'showCounter' => true, ), 'htmlCaptionsClass' => '', 'animation' => '', 'items' => array(), ); protected $_templateType = 'templates'; protected $_widgetId = true; public function exportFrontendSettings() { return json_encode($this->properties['settings']); } } 