-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnotifications.php
More file actions
43 lines (33 loc) · 804 Bytes
/
notifications.php
File metadata and controls
43 lines (33 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* notifications
*
* @package Delus
* @author Sorokin Dmitry Olegovich
*/
// fetch bootloader
require('bootloader.php');
// user access
user_access();
// page header
page_header(__("Notifications"));
try {
// reset real-time counters
$user->reset_realtime_counters('notifications');
// get ads campaigns
$ads_campaigns = $user->ads_campaigns();
/* assign variables */
$smarty->assign('ads_campaigns', $ads_campaigns);
// get ads
$ads = $user->ads('notifications');
/* assign variables */
$smarty->assign('ads', $ads);
// get widgets
$widgets = $user->widgets('notifications');
/* assign variables */
$smarty->assign('widgets', $widgets);
} catch (Exception $e) {
_error(__("Error"), $e->getMessage());
}
// page footer
page_footer('notifications');