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()); }
public function __construct() { $title = __('Opening Hours: Is Open Status', I18n::TEXTDOMAIN); $description = __('Shows a box saying whether a specific set is currently open or closed based on Periods.', I18n::TEXTDOMAIN); parent::__construct('widget_op_is_open', $title, $description, IsOpenShortcode::getInstance()); }
/** * Adds error notice and throws exception * * @param string $message The message to display * @param AbstractWidget $widget The widget object * * @throws InvalidArgumentException */ public static function terminate($message, AbstractWidget $widget) { $notice = '<b>' . $widget->getTitle() . ':</b>' . $message; throw new InvalidArgumentException($notice); }
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()); }
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()); }