
內容簡介
MasjidHub – Prayer Times & Mosque Widgets 是一款官方 WordPress 外掛,旨在將清真寺的 WordPress 網站與 MasjidHub 帳戶連接,透過響應式短碼顯示清真寺管理的信息,並保持 MasjidHub 為權威來源。
【主要功能】
• 顯示每日祈禱和 iqamah 時間
• 提供下一次祈禱和實時倒數顯示
• 月度祈禱時間表
• Jumu'ah 會議資訊
• Ramadan Sehri 和 Iftar 時間
• 可視化短碼生成器
外掛標籤
開發者團隊
② 後台搜尋「MasjidHub – Prayer Times & Mosque Widgets」→ 直接安裝(推薦)
原文外掛簡介
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 [email protected].
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.
