Wiki Prayer Times Widget
A responsive prayer times widget that displays Islamic prayer times with a countdown timer. This plugin is compatible with all WordPress page builders and can be used via shortcode or widget.
by Arnel Go · github.com/wikiwyrhead/wiki-islamic-prayer-times · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wikiwyrhead/wiki-islamic-prayer-times/archive/refs/heads/master.zipA responsive prayer times widget that displays Islamic prayer times with a countdown timer. This plugin is compatible with all WordPress page builders and can be used via shortcode or widget.
Table of Contents
- Features
- Installation
- Usage
- Calculation Methods
- Features in Detail
- Caching System
- Responsive Design
- Requirements
- Support
- License
- Credits
- Changelog
Features
- Displays prayer times for any city and country
- Shows Hijri date
- Highlights the next prayer
- Countdown timer to next prayer
- Responsive design
- Caching for better performance
- Multiple calculation methods
- Customizable through WordPress admin
- Compatible with all page builders
- Local storage caching for faster loading
- Mobile-friendly design
- Real-time countdown updates
Installation
- Download the plugin zip file.
- Go to WordPress admin panel > Plugins > Add New.
- Click "Upload Plugin" and select the downloaded zip file.
- Click "Install Now" and then "Activate".
Usage
Using Shortcode
Add the prayer times widget to any page or post using the shortcode:
[wiki_prayer_times]
Customize the city, country, and calculation method:
[wiki_prayer_times city="London" country="United Kingdom" method="5"]
Using in Page Builders
The shortcode can be used in any page builder's shortcode element or HTML widget. The widget is fully responsive and will adapt to any container size.
Default Settings
Set default values for city, country, and calculation method in: WordPress Admin > Settings > Prayer Times Widget.
Calculation Methods
The plugin supports various calculation methods:
- Egyptian General Authority
- Islamic Society of North America
- Muslim World League
- University of Islamic Sciences, Karachi
- Islamic University of Karachi
- Institute of Geophysics, University of Tehran
- Shia Ithna-Ashari, Leva Institute, Qum
- Gulf Region
- Kuwait
- Qatar
- Singapore
- Tehran
- Custom
Features in Detail
Prayer Times Display
- Shows all five daily prayers (Fajr, Dhuhr, Asr, Maghrib, Isha)
- Includes sunrise time
- Displays Hijri date
- Highlights the next prayer
- Shows countdown timer to next prayer
Caching System
- Uses browser's localStorage for caching prayer times
- Cache duration: 1 hour
- Automatically updates when cache expires
- Reduces API calls for better performance
Responsive Design
- Adapts to all screen sizes
- Mobile-first approach
- Optimized for readability on small devices
- Maintains functionality across all devices
Requirements
- WordPress 5.0 or higher
- PHP 7.0 or higher
- Modern web browser with JavaScript enabled
- Active internet connection for API calls
Support
For support, please create an issue or contact the plugin author.
License
This plugin is licensed under the GPL v2 or later.
Credits
Created by Arnel Go
Changelog
1.1.1
- Initial release
- Added responsive design
- Implemented caching system
- Added multiple calculation methods
- Added shortcode support
- Added admin settings page