forked from backdrop-contrib/views_bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
views_bootstrap.views.inc
161 lines (159 loc) · 6.36 KB
/
views_bootstrap.views.inc
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php
/**
* @file
* Provide views data and handlers.
*/
/**
* Implements hook_views_plugins().
*/
function views_bootstrap_views_plugins() {
$module_path = backdrop_get_path('module', 'views_bootstrap');
return array(
'style' => array(
'views_bootstrap_carousel_plugin_style' => array(
'title' => t('Bootstrap Carousel'),
'help' => t('Bootstrap Carousel Style'),
'handler' => 'views_bootstrap_carousel_plugin_style',
'theme' => 'views_bootstrap_carousel_plugin_style',
'path' => $module_path . '/plugins/carousel',
'theme path' => $module_path . '/templates/carousel',
'theme file' => '../../theme.inc',
'type' => 'normal',
'parent' => 'default',
'uses row plugin' => TRUE,
'uses grouping' => TRUE,
'uses options' => TRUE,
//@TODO: 'uses row plugin' => FALSE, 'uses fields' => TRUE,
),
'views_bootstrap_thumbnail_plugin_style' => array(
'title' => t('Bootstrap Thumbnails'),
'help' => t('Bootstrap Thumbnails Style'),
'handler' => 'views_bootstrap_thumbnail_plugin_style',
'theme' => 'views_bootstrap_thumbnail_plugin_style',
'path' => $module_path . '/plugins/thumbnail',
'theme path' => $module_path . '/templates/thumbnail',
'theme file' => '../../theme.inc',
'type' => 'normal',
'parent' => 'default',
'uses row plugin' => TRUE,
'uses grouping' => TRUE,
'uses options' => TRUE,
),
'views_bootstrap_grid_plugin_style' => array(
'title' => t('Bootstrap Grid'),
'help' => t('Bootstrap Grid Style'),
'handler' => 'views_bootstrap_grid_plugin_style',
'theme' => 'views_bootstrap_grid_plugin_style',
'path' => $module_path . '/plugins/grid',
'theme path' => $module_path . '/templates/grid',
'theme file' => '../../theme.inc',
'type' => 'normal',
'parent' => 'default',
'uses row plugin' => TRUE,
'uses grouping' => TRUE,
'uses options' => TRUE,
),
'views_bootstrap_accordion_plugin_style' => array(
'title' => t('Bootstrap Accordion'),
'help' => t('Bootstrap Accordion Style'),
'handler' => 'views_bootstrap_accordion_plugin_style',
'theme' => 'views_bootstrap_accordion_plugin_style',
'path' => $module_path . '/plugins/accordion',
'theme path' => $module_path . '/templates/accordion',
'theme file' => '../../theme.inc',
'type' => 'normal',
'parent' => 'default',
'uses row plugin' => TRUE,
'uses grouping' => TRUE,
'uses options' => TRUE,
//@TODO: 'uses row plugin' => FALSE, 'uses fields' => TRUE,
),
'views_bootstrap_tab_plugin_style' => array(
'title' => t('Bootstrap Tab'),
'help' => t('Bootstrap Tab Style'),
'handler' => 'views_bootstrap_tab_plugin_style',
'theme' => 'views_bootstrap_tab_plugin_style',
'path' => $module_path . '/plugins/tab',
'theme path' => $module_path . '/templates/tab',
'theme file' => '../../theme.inc',
'type' => 'normal',
'parent' => 'default',
'uses row plugin' => TRUE,
'uses grouping' => TRUE,
'uses options' => TRUE,
//@TODO: 'uses row plugin' => FALSE, 'uses fields' => TRUE,
),
'views_bootstrap_media_plugin_style' => array(
'title' => t('Bootstrap Media Object'),
'help' => t('Bootstrap Media Object Style'),
'handler' => 'views_bootstrap_media_plugin_style',
'theme' => 'views_bootstrap_media_plugin_style',
'path' => $module_path . '/plugins/media',
'theme path' => $module_path . '/templates/media',
'theme file' => '../../theme.inc',
'type' => 'normal',
'parent' => 'default',
'uses row plugin' => TRUE,
'uses grouping' => TRUE,
'uses options' => TRUE,
),
'views_bootstrap_table_plugin_style' => array(
'title' => t('Bootstrap Table'),
'help' => t('Displays rows in Bootstrap Table Style'),
'handler' => 'views_bootstrap_table_plugin_style',
'theme' => 'views_bootstrap_table_plugin_style',
'path' => $module_path . '/plugins/table',
'theme path' => $module_path . '/templates/table',
'theme file' => '../../theme.inc',
'type' => 'normal',
'parent' => 'table',
'uses row plugin' => TRUE,
'uses grouping' => TRUE,
'uses options' => TRUE,
),
'views_bootstrap_list_group_plugin_style' => array(
'title' => t('Bootstrap List Group'),
'help' => t('Bootstrap List Group Style'),
'handler' => 'views_bootstrap_list_group_plugin_style',
'theme' => 'views_bootstrap_list_group_plugin_style',
'path' => $module_path . '/plugins/list_group',
'theme path' => $module_path . '/templates/list_group',
'theme file' => '../../theme.inc',
'type' => 'normal',
'parent' => 'default',
'uses row plugin' => TRUE,
'uses grouping' => TRUE,
'uses options' => TRUE,
//@TODO: 'uses row plugin' => FALSE, 'uses fields' => TRUE,
),
),
'row' => array(
'views_bootstrap_carousel_plugin_rows' => array(
'title' => t('Bootstrap Carousel'),
'help' => t('Choose the fields to display in Bootstrap Carousel Style.'),
'handler' => 'views_bootstrap_carousel_plugin_rows',
'theme' => 'views_bootstrap_carousel_plugin_rows',
'path' => $module_path . '/plugins/carousel',
'theme path' => $module_path . '/templates/carousel',
'theme file' => '../../theme.inc',
'type' => 'normal',
'uses row plugin' => TRUE,
'uses grouping' => TRUE,
'uses options' => TRUE,
),
'views_bootstrap_thumbnail_plugin_rows' => array(
'title' => t('Bootstrap Thumbnail'),
'help' => t('Choose the fields to display in Bootstrap Thumbnail Style.'),
'handler' => 'views_bootstrap_thumbnail_plugin_rows',
'theme' => 'views_bootstrap_thumbnail_plugin_rows',
'path' => $module_path . '/plugins/thumbnail',
'theme path' => $module_path . '/templates/thumbnail',
'theme file' => '../../theme.inc',
'type' => 'normal',
'uses row plugin' => TRUE,
'uses grouping' => TRUE,
'uses options' => TRUE,
),
),
);
}