/** Constructor for OpeningHours module */ protected function __construct() { $this->registerHookCallbacks(); $this->modules = array('OpeningHours' => Module\OpeningHours::getInstance(), 'I18n' => Module\I18n::getInstance(), 'Ajax' => Module\Ajax::getInstance(), 'CustomPostType\\Set' => Module\CustomPostType\Set::getInstance(), 'Shortcode\\IsOpen' => Module\Shortcode\IsOpen::getInstance(), 'Shortcode\\Overview' => Module\Shortcode\Overview::getInstance(), 'Shortcode\\Holidays' => Module\Shortcode\Holidays::getInstance(), 'Shortcode\\IrregularOpenings' => Module\Shortcode\IrregularOpenings::getInstance()); $this->widgets = array('OpeningHours\\Module\\Widget\\Overview', 'OpeningHours\\Module\\Widget\\IsOpen', 'OpeningHours\\Module\\Widget\\Holidays', 'OpeningHours\\Module\\Widget\\IrregularOpenings'); }
public function __construct() { $title = __('Opening Hours: Irregular Openings', I18n::TEXTDOMAIN); $description = __('Lists up all Irregular Openings in the selected Set.', I18n::TEXTDOMAIN); parent::__construct('widget_op_irregular_openings', $title, $description, IrregularOpeningsShortcode::getInstance()); }