/
Bootstrap4.php
108 lines (90 loc) · 2.27 KB
/
Bootstrap4.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
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
102
103
104
105
106
107
108
<?php
namespace Concrete\Core\Page\Theme\GridFramework\Type;
use Concrete\Core\Page\Theme\GridFramework\GridFramework;
class Bootstrap4 extends GridFramework
{
public function supportsNesting()
{
return true;
}
public function getPageThemeGridFrameworkName()
{
return t('Bootstrap 4');
}
public function getPageThemeGridFrameworkRowStartHTML()
{
return '<div class="row">';
}
public function getPageThemeGridFrameworkRowEndHTML()
{
return '</div>';
}
public function getPageThemeGridFrameworkContainerStartHTML()
{
return '<div class="container">';
}
public function getPageThemeGridFrameworkContainerEndHTML()
{
return '</div>';
}
public function getPageThemeGridFrameworkColumnClasses()
{
$columns = array(
'col-md-1',
'col-md-2',
'col-md-3',
'col-md-4',
'col-md-5',
'col-md-6',
'col-md-7',
'col-md-8',
'col-md-9',
'col-md-10',
'col-md-11',
'col-md-12',
);
return $columns;
}
public function getPageThemeGridFrameworkColumnOffsetClasses()
{
$offsets = array(
'offset-md-1',
'offset-md-2',
'offset-md-3',
'offset-md-4',
'offset-md-5',
'offset-md-6',
'offset-md-7',
'offset-md-8',
'offset-md-9',
'offset-md-10',
'offset-md-11',
'offset-md-12',
);
return $offsets;
}
public function getPageThemeGridFrameworkColumnAdditionalClasses()
{
return '';
}
public function getPageThemeGridFrameworkColumnOffsetAdditionalClasses()
{
return '';
}
public function getPageThemeGridFrameworkHideOnExtraSmallDeviceClass()
{
return 'hidden-xs';
}
public function getPageThemeGridFrameworkHideOnSmallDeviceClass()
{
return 'hidden-sm';
}
public function getPageThemeGridFrameworkHideOnMediumDeviceClass()
{
return 'hidden-md';
}
public function getPageThemeGridFrameworkHideOnLargeDeviceClass()
{
return 'hidden-lg';
}
}