WordPress.org

Ready to get started?Download WordPress

Plugin Directory

MasjidNow

Widgets and shortcodes to display your daily and monthly adhan and iqamah timings from MasjidNow.com. Calculated adhan times available too!

This section describes how to install the plugin and get it working.

  1. Upload the masjidnow folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

Daily Timings Sidebar Widget

  1. Place the MasjidNow Daily Iqamah Timings widget in the correct area through the Appearance > Widgets menu in WordPress.
  2. Change the widget's settings to your preference, then press save.

Daily Timings Shortcode

A shortcode is a small piece of code that you can copy and paste on one of your WordPress pages; The shortcode will output something when it is viewed by a visitor to your website.

MasjidNow has shortcodes for both daily and monthly timings. When you put one of our shortcodes on your WordPress site, it will output our timings.

To show the daily timings table anywhere on your site:

  1. Place the shortcode [masjidnow_daily masjid_id=XXXX], replacing XXXX with your mosque's MasjidNow.com id. This can be found at the end of the MasjidNow.com url for your mosque. For example, http://masjidnow.com/masjids/5312 has a masjid_id of 5312. Simple!

You can customize the daily shortcode by adding more parameters. For example, to set the background color of the table, you can write:

[masjidnow_daily masjid_id=XXXX bg_color=#FF0000]

Or to show the monthly information at the bottom of the table:

[masjidnow_daily masjid_id=XXXX show_monthly_info=true]

Accepted Parameters for Daily Timings:

  • masjid_id - (integer) This is the masjid id that can be found from the MasjidNow.com masjid page url
  • show_adhan - (true or false) Whether to show the adhan timings from MasjidNow.com
  • show_monthly_info - (true or false) Whether to show the additional monthly info at the bottom of the table (ex. Jummah/Friday Prayer times)
  • show_name - (true or false) Whether to show the name of the mosque at the bottom of the table
  • bg_color - (color code like #FFFF00) What color to make the background of the table. Leave blank to make the background transparent.
  • primary_color - (color code like #FFFF00) What color to make the text.
  • secondary_color - (color code like #FFFF00) What color to make the alternating rows of the table.

Monthly Timings Table Shortcode

A shortcode is a small piece of code that you can copy and paste on one of your WordPress pages; The shortcode will output something when it is viewed by a visitor to your website.

MasjidNow has shortcodes for both daily and monthly timings. When you put one of our shortcodes on your WordPress site, it will output our timings.

To show the monthly timings table anywhere on your site:

  1. Place the shortcode [masjidnow_monthly masjid_id=XXXX], replacing XXXX with your mosque's MasjidNow.com id. This can be found at the end of the MasjidNow.com url for your mosque. For example, http://masjidnow.com/masjids/5312 has a masjid_id of 5312. Simple!

To show the adhan timings schedule instead of the iqamah timings schedule, simply change the short code to [masjidnow_monthly_adhan masjid_id=XXXX].

You can customize the monthly shortcodes by adding more parameters. For example, to set the title of the Monthly Timings (next to the month and year), you can write

[masjidnow_monthly masjid_id=XXXX title="Our Azan Timings"]

Accepted Parameters for Monthly Timings Table:

  • masjid_id - (integer) This is the masjid id that can be found from the MasjidNow.com masjid page url
  • title - The text that displays at the top of the timings table next to the month and year

Using the Widget in a Different Language

The default language for the widgets and shortcodes is English. However, you can change how the plugin displays the names of the prayers and the titles for "Adhan" and "Iqamah" by going to the MasjidNow Settings page, under Settings in your WordPress Installation.

For example, if you would prefer 'Isha' be spelled 'Ichaa', then you can change this on the MasjidNow Settings page.

Requires: 3.5.1 or higher
Compatible up to: 3.9.1
Last Updated: 2014-7-10
Downloads: 1,848

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0 100,1,1