-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe_dashboard.php
44 lines (35 loc) · 1.27 KB
/
e_dashboard.php
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
<?php
if (!defined('e107_INIT')) { exit; }
class estate_dashboard // include plugin-folder in the name.
{
function chart(){
return false;
}
function status(){
return false;
}
function latest(){
if(EST_USERPERM == 0){return false;}
$i = 0;
$var[$i]['icon'] = '<i class="fas fa-envelope"></i>';
$var[$i]['title'] = EST_GEN_ESTATE.' '.EST_GEN_AGENT.' '.EST_MSG_INBOX;
$var[$i]['url'] = e_PLUGIN."estate/admin_config.php?mode=estate_agencies&action=inbox";
$var[$i]['total'] = EST_MGS_NEWMSGS;
$i++;
if(EST_USERPERM >= e107::pref('estate','public_mod')){
$var[$i]['icon'] = '<i class="fas fa-house"></i>';
$var[$i]['title'] = defset('EST_GEN_SUBMITTEDLIST');
$var[$i]['url'] = e_PLUGIN."estate/admin_config.php";
$var[$i]['total'] = EST_NEW_PROPSUBMITTED;
$i++;
}
$AID = defset(EST_AGENTID,-1);
$lkct = e107::getDb()->count("estate_likes","('like_aid')","WHERE like_aid='".EST_AGENTID."'");
$var[$i]['icon'] = '<i class="fas fa-heart"></i>';
$var[$i]['title'] = defset('EST_GEN_ESTATE').' '.defset('EST_GEN_SAVES');
$var[$i]['url'] = e_PLUGIN."estate/admin_config.php";
$var[$i]['total'] = $lkct;
unset($lkct,$i);
return $var;
}
}