$today) { return $date->getTimestamp(); } } } return 0; } /** * Defines the various smarty plugins handled by this class * * @return \TheliaSmarty\Template\SmartyPluginDescriptor[] smarty plugin descriptors */ public function getPluginDescriptors() { return array( new SmartyPluginDescriptor('function', 'slider_revolution_countdown', $this, 'getCountdownDate') ); } }