-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotification.php
More file actions
101 lines (93 loc) · 4.08 KB
/
notification.php
File metadata and controls
101 lines (93 loc) · 4.08 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
/*
* Property of Writale
* All rights reserved
* Writale © 2013
*/
require realpath(dirname(__FILE__) . "/class/init.php");
require realpath(dirname(__FILE__) . "/control/session/saved.php");
require realpath(dirname(__FILE__) . "/control/general/cache.php");
$_notif = 1;
if(isset($_SESSION['notif_pagin_stop']))
unset($_SESSION['notif_pagin_stop']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>All Notifications · Writale</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Writale is a simple, powerful way to read and build social stories." />
<link rel="shortcut icon" type="image/x-icon" href="//<?php echo $_SERVER['HTTP_HOST'] ?>/resource/image/icon/favicon.ico" />
<link rel="stylesheet" type="text/css" href="//<?php echo $_SERVER['HTTP_HOST'] . '/style/universal.css'; ?>" />
<link rel="stylesheet" type="text/css" href="//<?php echo $_SERVER['HTTP_HOST'] . '/style/strydlg.css'; ?>" />
<link rel="stylesheet" type="text/css" href="//<?php echo $_SERVER['HTTP_HOST'] . '/style/alrt-0240-21032014.css'; ?>" />
<script src="//<?php echo $_SERVER['HTTP_HOST'] ?>/script/common.js"></script>
</head>
<body class="invitation-body">
<?php
include realpath(dirname(__FILE__) . '/control/decorator/userpanel.php');
?>
<div id="general-outer-container">
<?php require realpath(dirname(__FILE__) . '/control/decorator/sidebar.php') ?>
<div id="general-middle-container">
<?php require realpath(dirname(__FILE__) . '/control/decorator/openstorypanel.php'); ?>
<div id="general-central-outline">
<div id="alrt-title" class="bold">
All notifications
</div>
<div id="content-holder">
<?php require realpath(dirname(__FILE__) . '/control/general/notificationfetch.php'); ?>
</div>
<div id="pagination-loader">
<img
src="<?php echo $_protocol . $_SERVER['HTTP_HOST'] . '/resource/image/misc/ajax-loader.gif'; ?>"
alt="" />
</div>
</div>
<?php require realpath(dirname(__FILE__) . '/control/decorator/pagefooter.php'); ?>
</div>
<div class="sidebar-right">
</div>
<span class="stretch"></span>
</div>
<?php
try {
FebQuery::seeAllNotification ();
} catch (Exception $ex) {
Util::__errorSummary(WRITALE_ERR_GEN, $ex);
}
include realpath(dirname(__FILE__) . '/control/decorator/openstory.php');
include realpath(dirname(__FILE__) . '/control/decorator/utilbottom.php');
include realpath(dirname(__FILE__) . '/control/decorator/savedutil.php');
?>
<script>
(function () {
var notification = (function () {
var
paginTrigger = _gAny('trigger-pagin'),
nLoader = _gAny('pagination-loader'),
nHolder = _gAny('content-holder');
function init () {
if(!paginTrigger) return;
var
param = '?nft=1',
target = '/general/notificationfetch';
common.paginate.init ({
type : 1,
loader : nLoader,
param : param,
tar : target,
holder : nHolder,
pageEndMsg : 'Sorry! No more notifications to show.'
});
}
return {
init : init
};
})();
notification.init ();
})();
</script>
</body>
</html>