-
Notifications
You must be signed in to change notification settings - Fork 0
/
DcaVisitorsCategory.php
48 lines (44 loc) · 1.24 KB
/
DcaVisitorsCategory.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
45
46
47
48
<?php
/**
* Contao Open Source CMS, Copyright (C) 2005-2014 Leo Feyer
*
* Contao Module "Visitors" - DCA Helper Class DcaVisitorsCategory
*
* @copyright Glen Langer 2012..2014 <http://www.contao.glen-langer.de>
* @author Glen Langer (BugBuster)
* @package GLVisitors
* @license LGPL
* @filesource
* @see https://github.com/BugBuster1701/visitors
*/
/**
* Run in a custom namespace, so the class can be replaced
*/
namespace BugBuster\Visitors;
/**
* DCA Helper Class DcaVisitorsCategory
*
* @copyright Glen Langer 2012..2014 <http://www.contao.glen-langer.de>
* @author Glen Langer (BugBuster)
* @package GLVisitors
*
*/
class DcaVisitorsCategory extends \Backend
{
public function labelCallback($arrRow)
{
$label_1 = $arrRow['title'];
$label_2 = ' <span style="color: #B3B3B3;">[ID:'.$arrRow['id'].']</span>';
if (version_compare(VERSION , '2.99', '>'))
{
$version_warning = '';
} else {
$version_warning = '<br /><span style="color:#ff0000;">[ERROR: Visitors-Module requires at least Contao 3.0]</span>';
}
return $label_1 . $label_2 . $version_warning;//. '<br /><span style="color:#b3b3b3;">['.$label_2.']</span>';
}
public function getAdminCheckbox($varValue)
{
return '1';
}
}