---
title: "Content plugin"
date: 2025-06-07
author: "Jeroen Moolenschot"
---

# Content plugin

**The Opening Hours Content plugin** is only available in the PRO version.  
Unlock this and other features by upgrading to **Joomill Opening Hours PRO**  
  
[Go PRO](https://www.joomill-kiosk.com/subscribe/order/product/openinghours-pro)

 **Opening Hours module v6.1.0 or later is required.**

 The Opening Hours content plugin lets you show, hide and insert live opening-hours information anywhere content plugins run: articles, custom HTML modules, and the module's own open/closed messages. Add the tags below to your content; the plugin replaces them when the page is displayed.

 Configuration is not applicable, just enable the plugin and you are good to go.

 When you use this in a custom HTML module, make sure you enable the Prepare Content option in the options tab of the custom HTML module.

 
### Conditional blocks

 Show or hide a block of content based on the current status:

 
- `...{/openinghours}` shown only when currently open
- `...{/openinghours}` shown only when currently closed
- `...{/opentoday}` shown when open at some point today
- `...{/closedtoday}` shown when closed all day today
- `...{/exceptionaltoday}` shown when today is an exceptional/holiday date
- `...{/closingsoon}` shown only when currently open and within the "closing soon" threshold

 Tokens placed inside these blocks are processed as well.

 
### Inline tokens

 
|  |  |
| --- | --- |
| `` | A short status word: **Open**, **Closed**, **Closing soon** or **On a break** |
| `` | The next change as a time (closing time when open; next opening time, with day if not today, when closed) |
| `` | A live countdown to the next change (for example in 30 min); updates automatically in the browser |
| `` | The reopening time during a lunch break; empty otherwise |
| `` / `` | Today's first opening / closing time |
| `` / `` | Today's second opening / closing time (lunch break) |
| `` / `` | The current date / time. Accepts an optional `format="..."` attribute |

 
### Multiple modules

 Optional: when you have multiple modules, you can target a specific module with `module="MODULE-ID"`.

 Example: ``

 
### Date and time format

 The date and time format used in this plugin is based on the settings of the module. You can override this with the format attribute inside the tag.

 Example: ``

 Example: ``

 
### Examples

 
- Urgency call to action: `Order now,  open!`
- A notice that shows and hides itself: ` Last orders, we close !{/closingsoon}`
- A status badge: `Status: `
- A smart closed notice: `We open again .{/openinghours}`
- Break communication: `On a break, back at .{/openinghours}`

 The `` token keeps ticking live inside articles too. The opening-hours logic accounts for regular hours, holiday/exceptional dates, overnight hours and lunch breaks, so the tokens are correct in every situation.
