示例#1
0
 public function __construct()
 {
     $title = __('Opening Hours: Holidays', I18n::TEXTDOMAIN);
     $description = __('Lists up all Holidays in the selected Set.', I18n::TEXTDOMAIN);
     parent::__construct('widget_op_holidays', $title, $description, HolidaysShortcode::getInstance());
 }
 /** 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');
 }