<?php
namespace Website\Widgets\Integrations; use Moto; class AcuityScheduling extends Moto\System\Widgets\AbstractWidget { protected $_name = 'integrations.acuity_scheduling'; protected static $_defaultProperties = array( 'spacing' => array( 'top' => 'auto', 'right' => 'auto', 'bottom' => 'auto', 'left' => 'auto' ), 'align' => array( 'desktop' => 'left', 'tablet' => '', 'mobile-v' => '', 'mobile-h' => '' ), 'visible_on' => 'mobile-v', 'url' => '', 'type' => 'iframe', 'templateType' => 'weekly', 'buttonProperties' => array( 'label' => 'Schedule Appointment', 'target' => 'popup', 'size' => 'medium', 'preset' => 'default' ) ); protected $_templateType = 'templates'; public function getTemplatePath($preset = null) { return '@websiteWidgets/integrations/templates/acuity_scheduling.twig.html'; } public function getUrl() { return $this->getPropertyValue('url') . '&template=' . $this->getPropertyValue('templateType'); } protected $_widgetId = true; } 