>
Download This Plugin | |
Download Elegant Themes | |
Name | MH Dispaly Prayer Times widget |
Version | 1.0 |
Author | Muhammad Haider |
Rating | 100 |
Last updated | 2012-03-18 01:18:00 |
Downloads |
1989
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
MH Dispaly Prayer Times widget plugin added 13 bytes of resources to the Home page and 25 bytes of resources to the sample Post page.
MH Dispaly Prayer Times widget plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
MH Dispaly Prayer Times widget plugins ads the following DB table(s) to your Wordpress blog database:Table name | Table size (in bytes) |
---|---|
wp_mh_dpt_daily_times | 16384 |
wp_mh_dpt_friday_times | 16384 |
This is a Simple widget that creates following tables if they don't already exist and loads sample data into
1) Daily Prayer Table
$wpdb->prefix . mh_dpt_daily_times
Structure of Table:
month int(2) NOT NULL, //values are 01,02...12
day int(2) NOT NULL, //values are 1...31
name varchar(10) NOT NULL, //values are Fajr, Dhuhur, Asr, Maghrib, Ishaa
hour varchar(2) NOT NULL DEFAULT '0', //values are 01,02..12
minutes varchar(2) NOT NULL DEFAULT '00', //values are 01..59
ampm varchar(2) NOT NULL, //values are AM or PM
disp_order decimal(1,0) NOT NULL, // 1..5 used for ordering values while displaying in html table.
PRIMARY KEY (month,day,name)
1) Daily Prayer Table
$wpdb->prefix . mh_dpt_friday_times
Structure of Table:
name varchar(10) NOT NULL,
hour varchar(2) NOT NULL DEFAULT '0',
minutes varchar(2) NOT NULL DEFAULT '00',
ampm varchar(2) NOT NULL,
PRIMARY KEY (name)