Hijri
3 years ago
Processors
1 year ago
QuranADay
1 year ago
StartTime
1 year ago
design
1 year ago
AdminMenu.php
2 years ago
AssetsLoader.php
1 year ago
CustomPluginSettings.php
4 years ago
DPTAjaxHandler.php
4 years ago
DPTHelper.php
1 year ago
DSTemplateLoader.php
2 years ago
DailyShortCode.php
1 year ago
DigitalScreen.php
1 year ago
HijriDate.php
3 years ago
Init.php
4 years ago
MonthlyShortCode.php
2 years ago
MonthlyTimeTable.php
3 years ago
Shortcodes.php
2 years ago
Translator.php
4 years ago
UpdateStyles.php
1 year ago
Validator.php
3 years ago
db.php
1 year ago
dptWidget.php
4 years ago
AdminMenu.php
62 lines
| 1 | <?php |
| 2 | class AdminMenu |
| 3 | { |
| 4 | public function __construct() |
| 5 | { |
| 6 | add_action( 'admin_menu', array( &$this, 'addMenuPages' ) ); |
| 7 | } |
| 8 | |
| 9 | public function addMenuPages() |
| 10 | { |
| 11 | add_menu_page( |
| 12 | 'Daily Prayer Time', |
| 13 | 'Prayer time', |
| 14 | 'publish_pages', |
| 15 | 'dpt', |
| 16 | array(&$this, 'renderMainPage'), |
| 17 | plugins_url('../Assets/images/icon19.png', __FILE__) |
| 18 | ); |
| 19 | |
| 20 | add_submenu_page('dpt', |
| 21 | 'Settings', |
| 22 | 'Settings', |
| 23 | 'publish_pages', |
| 24 | 'dpt', |
| 25 | array(&$this, 'renderMainPage') |
| 26 | ); |
| 27 | |
| 28 | add_submenu_page( |
| 29 | 'dpt', |
| 30 | 'API Doc', |
| 31 | 'API Doc', |
| 32 | 'publish_pages', |
| 33 | 'dpt-api-doc', |
| 34 | array(&$this, 'dpt_api_doc') |
| 35 | ); |
| 36 | |
| 37 | add_submenu_page( |
| 38 | 'dpt', |
| 39 | 'Helps and Tips', |
| 40 | 'Helps and Tips', |
| 41 | 'publish_pages', |
| 42 | 'helps-and-tips', |
| 43 | array(&$this, 'helps_and_tips') |
| 44 | ); |
| 45 | } |
| 46 | |
| 47 | public function renderMainPage() |
| 48 | { |
| 49 | include __DIR__ . '/../Views/widget-admin.php'; |
| 50 | } |
| 51 | |
| 52 | public function helps_and_tips() |
| 53 | { |
| 54 | include __DIR__ . '/../Views/HelpsAndTips.php'; |
| 55 | } |
| 56 | |
| 57 | public function dpt_api_doc() |
| 58 | { |
| 59 | include __DIR__ . '/../Views/DptApiDoc.php'; |
| 60 | } |
| 61 | |
| 62 | } |