/** 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');
 }
Example #2
0
 public function __construct()
 {
     $title = __('Opening Hours: Overview', I18n::TEXTDOMAIN);
     $description = __('Displays a Table with your Opening Hours. Alternatively use the op-overview Shortcode.', I18n::TEXTDOMAIN);
     parent::__construct('widget_op_overview', $title, $description, OverviewShortcode::getInstance());
 }