MasjidHub – Prayer Times & Mosque Widgets
Display responsive prayer times, iqamah, Jumu'ah, Ramadan and Eid widgets from your mosque's MasjidHub account.
Install in
MasjidHub – Prayer Times & Mosque Widgets is the official WordPress plugin for the MasjidHub service at masjidhub.se. It connects a mosque’s WordPress site to its MasjidHub account and displays mosque-managed information through responsive shortcodes while keeping MasjidHub as the authoritative source.
Features include:
- Daily prayer and iqamah times.
- Next-prayer and live countdown displays.
- Monthly prayer timetables.
- Jumu’ah sessions.
- Ramadan Sehri and Iftar times.
- Taraweeh and Eid information.
- English and Swedish interfaces with optional Arabic prayer names.
- Responsive designs, colour themes and layout controls.
- A visual shortcode builder for administrators.
- Local caching with an administrator-defined cache duration.
A MasjidHub account and a WordPress connection token are required. The plugin does not load remote JavaScript, CSS, fonts or executable code.
External Service
This plugin connects to the MasjidHub service to retrieve the mosque information shown by its shortcodes. The service is necessary for the plugin’s main functionality.
The plugin makes a request when an administrator tests the connection, manually clears the cache and reloads a widget, or when a shortcode needs a timetable that is missing from the local cache. Prayer boards also use the dated monthly timetable to obtain the next day’s Fajr. A visible board requests the new timetable from WordPress at the mosque’s local midnight. A cached page opened after that time requests the current date on load.
Each request may send:
- The connection token entered by a WordPress administrator.
- The WordPress site’s home URL.
- The requested resource, language, year and month, when applicable.
- The connector version in the request headers.
- The site’s server IP address as part of normal internet communication.
MasjidHub uses this information to authenticate the mosque and return its configured prayer times, iqamah rules, Jumu’ah sessions, Ramadan times, Eid information and related display data. The plugin does not add analytics or visitor-tracking cookies.
When a monthly widget offers printing, the visitor’s browser also requests the configured mosque logo from its image host. The host receives the visitor’s IP address. The logo request omits the page referrer.
MasjidHub service information: https://masjidhub.se/
MasjidHub Terms of Service: https://masjidhub.se/terms
MasjidHub Privacy Policy: https://masjidhub.se/privacy
Widget settings
Every shortcode supports lang=”auto”, lang=”en” and lang=”sv”. With auto, the widget follows the current WPML or Polylang page language, or the WordPress site locale. MasjidHub supports English and Swedish. An unsupported page language uses the saved widget language, or English if the saved language is also automatic.
To apply automatic switching to existing shortcodes that omit lang, open MasjidHub > Connection, choose Follow page language under Default widget language, and select Save connection. A shortcode with lang=”en” or lang=”sv” uses that specific language even when the default is automatic.
For a six-card Signature Luxury timetable with the page’s own heading:
[masjidhub_prayer_board design=”luxury_board” layout=”grid” columns=”2″ cards_only=”yes” theme=”gilded_emerald” color_source=”preset” show_jumuah=”no” show_ramadan_times=”no” show_sunrise=”yes” show_iqama=”yes” show_icons=”yes” show_prayer_labels=”yes” show_arabic_names=”yes” arabic_name_position=”inline” width=”100%” max_width=”600px” density=”compact” gap=”18″ icon_size=”38″ font_scale=”1″ lang=”auto”]
To show the date, Hijri date, next prayer and countdown above the cards, use cards_only=”no” with show_weekday=”yes” show_gregorian_date=”yes” show_hijri=”yes” show_next_prayer=”yes” show_next_label=”yes” show_countdown=”yes”. Use bare=”no” for an outer frame or bare=”yes” to place the board directly on the page. Cards only takes precedence over header settings. Available colour sources are preset, wp_theme and custom.
For a monthly timetable that fits its page, with a transparent background and an indicator for today:
[masjidhub_monthly lang=”auto” theme=”gilded_emerald” width=”100%” max_width=”1100px” bare=”yes” show_weekday=”yes” show_hijri=”yes” show_sunrise=”yes” show_iqama=”yes” navigation=”yes” pdf=”yes” highlight_today=”yes”]
Each row includes its Gregorian date. Set show_weekday=”yes” for the day name or show_hijri=”yes” for the Hijri date when supplied by the mosque. Change max_width to suit the page. The parent WordPress block or Elementor container determines the available space. The Today or Idag marker follows the mosque’s time zone.
Select the displayed month and choose Print / PDF. The print sheet fits a full month on A4 or US Letter in portrait at 100% scale. It uses the mosque name and logo from MasjidHub, with the WordPress site logo as a fallback. The printed table follows the same language, hours, weekday, Hijri, sunrise and iqamah settings. Disable browser headers and footers in the print dialog for a clean handout. Set both print=”no” and pdf=”no” to disable the widget print controls.
For two Friday session cards with separate sizes for the time and language:
[masjidhub_jumuah layout=”cards” per_row=”2″ cards_only=”yes” theme=”gilded_emerald” align=”center” lang=”auto” card_width=”260px” time_font_size=”36px” language_font_size=”15px” gap=”12″ show_languages=”yes”]
The card_width option caps each Friday card. width and max_width control the whole widget. time_font_size sets the session time in whole pixels from 16 to 80. Omit it to let the time scale with the card. language_font_size sets the session language text. These controls are also in MasjidHub > Shortcode Builder.
Use lang=”auto” to follow the page language in WPML, Polylang or WordPress. Use lang=”sv” or lang=”en” to fix these cards to Swedish or English. Friday session cards also follow active WPML or Polylang pages when lang is omitted. The mosque sets the spoken languages for each session. The widget displays standard session headings and recognized language names in the selected language and preserves custom descriptions.
Privacy
The plugin stores its API URL, connection token, display defaults and cache duration in the WordPress database. API responses are stored as temporary WordPress transients. These settings and tracked cache entries are removed when the plugin is deleted through WordPress.
The plugin also supplies suggested privacy-policy text under Settings > Privacy so site administrators can describe the MasjidHub integration on their own site.
Support
Use the support forum on the plugin’s WordPress.org page for installation, shortcode and compatibility questions. For MasjidHub account, mosque verification or hosted-service questions, contact team@masjidhub.se.
Source Code
The plugin includes the complete, human-readable PHP, JavaScript and CSS source used at runtime. No files are minified or obfuscated, and no compilation or build process is required to modify or regenerate the distributed assets.
Written by Joobi from the project's own listing. See the source page
1.0.13
- Redesigns the monthly timetable with a themed month header, compact dates and clearer prayer and iqama times.
- Reflows each day into a labelled prayer grid in narrow responsive widgets and accents Fridays and the current date.
1.0.12
- Prints the selected month as a branded, single-page timetable with the mosque logo, dates, and enabled prayer and iqamah times.
- Loads the monthly timetable styling in the WordPress Shortcode Builder preview.
- Restores month navigation and automatic month changes when a cached page’s request token has expired.
1.0.11
- Shows the full Gregorian date and optional weekday on every monthly timetable row.
- Marks today using the mosque’s time zone. Use highlight_today=”no” to hide the marker.
- Supports a transparent monthly table with a configurable maximum width.
1.0.10
- Adds Follow page language to all nine widgets, the visual shortcode builder and the global default widget language setting.
- Keeps page language across month navigation, countdown updates and mosque-midnight refreshes. Localizes standard Friday session titles on the prayer board and recognized spoken-language names in Eid sessions.
1.0.9
- Makes Friday session cards follow the selected English or Swedish page in WPML and Polylang. Adds a page-language choice to the Jumu’ah shortcode builder.
- Localizes standard Jumu’ah session headings and recognized spoken-language names in Swedish and English.
1.0.8
- Adds an optional time_font_size setting to the Jumu’ah shortcode and builder for independent control of the session time digits.
1.0.7
- Refines the Signature Luxury and Canonical Premium prayer boards with a readable, bilingual prayer grid and live Next/Now status. Cards-only shortcodes start directly with the timetable.
- Uses the mosque’s timetable for the following day’s Fajr. Refreshes an open prayer board when the mosque’s local date changes and retries temporary connection failures.
- Refines Friday session cards and adds independent card_width and language_font_size shortcode and visual-builder settings.
- Corrects colour-source serialization in the visual builder and explains which date and frame settings apply to a cards-only board.
1.0.6
- Loads administration CSS and JavaScript through the WordPress enqueue APIs.
- Removes the unsupported Tested up to field from the main plugin header.
- Documents that all distributed source is human-readable and requires no build process.
- Aligns the text domain and package directory with the reserved WordPress.org slug.
- Clarifies that public MasjidHub attribution is disabled by default and requires explicit administrator opt-in.
- Adds submission-focused security and compatibility validation.
1.0.5
- Adds WordPress.org directory screenshot captions and support guidance.
- Adds the official MasjidHub plugin homepage metadata.
- Includes a complete branded WordPress.org submission asset pack using the original MasjidHub logo.
1.0.4
- Adds a contextual Open MasjidHub link to the administrator-only connection screen.
- Opens the MasjidHub service in a new tab without referral or tracking parameters.
- Keeps public-facing MasjidHub attribution optional and disabled by default.
1.0.3
- Balances spacing above and below the optional Powered by MasjidHub footer.
- Removes duplicated vertical margins before the Jumu’ah and Ramadan sections.
1.0.2
- Reduces excess space around the optional Powered by MasjidHub footer in the Canonical Premium design.
1.0.1
- Keeps the Canonical Premium prayer cards in two columns when the widget is configured with a 450px maximum width.
- Retains single-column stacking for genuinely narrow phone containers.
1.0.0
- Initial WordPress.org release.
- Adds responsive prayer-board, next-prayer, monthly, Jumu’ah, Ramadan, Taraweeh and Eid shortcodes.
- Adds an administrator-only connection screen and visual shortcode builder.
- Adds HTTPS validation, safe outbound requests, bounded API responses and local cache tracking.
- Adds clear external-service and privacy disclosures.
- Makes public-facing attribution optional and disabled by default.
- Removes stored settings and tracked cache entries on uninstall.
Follow this listing's changes (Atom feed)