forked from vibjerg/ding_groups
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ding_groups.views_default.inc
348 lines (342 loc) · 23.1 KB
/
ding_groups.views_default.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<?php
/**
* @file
* ding_groups.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function ding_groups_views_default_views() {
$export = array();
$view = new view();
$view->name = 'ding_groups';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Ding groups (temapages)';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Themes';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['style_options']['grouping'] = array(
0 => array(
'field' => 'field_ding_group_category',
'rendered' => 1,
'rendered_strip' => 0,
),
);
$handler->display->display_options['style_options']['row_class'] = 'groups-list-item';
$handler->display->display_options['style_options']['class'] = 'list groups-list';
$handler->display->display_options['style_options']['wrapper_class'] = '';
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
/* Relationship: Nodequeue: Queue */
$handler->display->display_options['relationships']['nodequeue_rel']['id'] = 'nodequeue_rel';
$handler->display->display_options['relationships']['nodequeue_rel']['table'] = 'node';
$handler->display->display_options['relationships']['nodequeue_rel']['field'] = 'nodequeue_rel';
$handler->display->display_options['relationships']['nodequeue_rel']['limit'] = 1;
$handler->display->display_options['relationships']['nodequeue_rel']['names'] = array(
'ding_groups_listning' => 'ding_groups_listning',
'ding_tabroll' => 0,
'ding_tabroll_for_libraries' => 0,
);
/* Field: Category (groups rows) */
$handler->display->display_options['fields']['field_ding_group_category']['id'] = 'field_ding_group_category';
$handler->display->display_options['fields']['field_ding_group_category']['table'] = 'field_data_field_ding_group_category';
$handler->display->display_options['fields']['field_ding_group_category']['field'] = 'field_ding_group_category';
$handler->display->display_options['fields']['field_ding_group_category']['ui_name'] = 'Category (groups rows)';
$handler->display->display_options['fields']['field_ding_group_category']['label'] = '';
$handler->display->display_options['fields']['field_ding_group_category']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_ding_group_category']['element_type'] = 'h3';
$handler->display->display_options['fields']['field_ding_group_category']['element_class'] = 'groups-list-group';
$handler->display->display_options['fields']['field_ding_group_category']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_category']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_category']['type'] = 'taxonomy_term_reference_plain';
/* Field: Content: List image */
$handler->display->display_options['fields']['field_ding_group_list_image']['id'] = 'field_ding_group_list_image';
$handler->display->display_options['fields']['field_ding_group_list_image']['table'] = 'field_data_field_ding_group_list_image';
$handler->display->display_options['fields']['field_ding_group_list_image']['field'] = 'field_ding_group_list_image';
$handler->display->display_options['fields']['field_ding_group_list_image']['label'] = '';
$handler->display->display_options['fields']['field_ding_group_list_image']['element_type'] = 'div';
$handler->display->display_options['fields']['field_ding_group_list_image']['element_class'] = 'groups-image-wrapper';
$handler->display->display_options['fields']['field_ding_group_list_image']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_list_image']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_list_image']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_ding_group_list_image']['type'] = 'cs_adaptive_image';
$handler->display->display_options['fields']['field_ding_group_list_image']['settings'] = array(
'image_link' => '',
'styles' => array(
'breakpoint_1' => '768',
'style_1' => 'ding_list_medium',
'breakpoint_2' => '500',
'style_2' => 'ding_list_small',
'max_style' => 'ding_list_medium',
'fallback_style' => 'ding_list_medium',
),
);
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_type'] = 'h3';
$handler->display->display_options['fields']['title']['element_class'] = 'groups-heading';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
/* Field: Content: Lead */
$handler->display->display_options['fields']['field_ding_group_lead']['id'] = 'field_ding_group_lead';
$handler->display->display_options['fields']['field_ding_group_lead']['table'] = 'field_data_field_ding_group_lead';
$handler->display->display_options['fields']['field_ding_group_lead']['field'] = 'field_ding_group_lead';
$handler->display->display_options['fields']['field_ding_group_lead']['label'] = '';
$handler->display->display_options['fields']['field_ding_group_lead']['element_type'] = 'div';
$handler->display->display_options['fields']['field_ding_group_lead']['element_class'] = 'groups-list-content';
$handler->display->display_options['fields']['field_ding_group_lead']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_lead']['element_default_classes'] = FALSE;
/* Field: Link (arrow) */
$handler->display->display_options['fields']['view_node']['id'] = 'view_node';
$handler->display->display_options['fields']['view_node']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['view_node']['field'] = 'view_node';
$handler->display->display_options['fields']['view_node']['ui_name'] = 'Link (arrow)';
$handler->display->display_options['fields']['view_node']['label'] = '';
$handler->display->display_options['fields']['view_node']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['view_node']['alter']['text'] = '<i class="icon-chevron-right"></i>';
$handler->display->display_options['fields']['view_node']['element_type'] = 'div';
$handler->display->display_options['fields']['view_node']['element_class'] = 'groups-arrow-link';
$handler->display->display_options['fields']['view_node']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['view_node']['element_default_classes'] = FALSE;
/* Sort criterion: Nodequeue: Position */
$handler->display->display_options['sorts']['position']['id'] = 'position';
$handler->display->display_options['sorts']['position']['table'] = 'nodequeue_nodes';
$handler->display->display_options['sorts']['position']['field'] = 'position';
$handler->display->display_options['sorts']['position']['relationship'] = 'nodequeue_rel';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'ding_group' => 'ding_group',
);
/* Display: Group overview (simple) */
$handler = $view->new_display('panel_pane', 'Group overview (simple)', 'ding_group_overview_simple');
$handler->display->display_options['display_description'] = 'Simply list all groups';
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Category (groups rows) */
$handler->display->display_options['fields']['field_ding_group_category']['id'] = 'field_ding_group_category';
$handler->display->display_options['fields']['field_ding_group_category']['table'] = 'field_data_field_ding_group_category';
$handler->display->display_options['fields']['field_ding_group_category']['field'] = 'field_ding_group_category';
$handler->display->display_options['fields']['field_ding_group_category']['ui_name'] = 'Category (groups rows)';
$handler->display->display_options['fields']['field_ding_group_category']['label'] = '';
$handler->display->display_options['fields']['field_ding_group_category']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_ding_group_category']['element_type'] = 'h3';
$handler->display->display_options['fields']['field_ding_group_category']['element_class'] = 'groups-list-group';
$handler->display->display_options['fields']['field_ding_group_category']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_category']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_category']['type'] = 'taxonomy_term_reference_plain';
/* Field: Content: List image */
$handler->display->display_options['fields']['field_ding_group_list_image']['id'] = 'field_ding_group_list_image';
$handler->display->display_options['fields']['field_ding_group_list_image']['table'] = 'field_data_field_ding_group_list_image';
$handler->display->display_options['fields']['field_ding_group_list_image']['field'] = 'field_ding_group_list_image';
$handler->display->display_options['fields']['field_ding_group_list_image']['label'] = '';
$handler->display->display_options['fields']['field_ding_group_list_image']['element_type'] = 'div';
$handler->display->display_options['fields']['field_ding_group_list_image']['element_class'] = 'groups-image-wrapper';
$handler->display->display_options['fields']['field_ding_group_list_image']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_list_image']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_list_image']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_ding_group_list_image']['type'] = 'cs_adaptive_image';
$handler->display->display_options['fields']['field_ding_group_list_image']['settings'] = array(
'image_link' => 'content',
'styles' => array(
'breakpoint_1' => '768',
'style_1' => 'ding_list_medium',
'breakpoint_2' => '500',
'style_2' => 'ding_list_small',
'max_style' => 'ding_list_medium',
'fallback_style' => 'ding_list_medium',
),
);
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_type'] = 'h3';
$handler->display->display_options['fields']['title']['element_class'] = 'groups-heading';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
/* Field: Content: Lead */
$handler->display->display_options['fields']['field_ding_group_lead']['id'] = 'field_ding_group_lead';
$handler->display->display_options['fields']['field_ding_group_lead']['table'] = 'field_data_field_ding_group_lead';
$handler->display->display_options['fields']['field_ding_group_lead']['field'] = 'field_ding_group_lead';
$handler->display->display_options['fields']['field_ding_group_lead']['label'] = '';
$handler->display->display_options['fields']['field_ding_group_lead']['element_type'] = 'div';
$handler->display->display_options['fields']['field_ding_group_lead']['element_class'] = 'groups-list-content';
$handler->display->display_options['fields']['field_ding_group_lead']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_lead']['element_default_classes'] = FALSE;
/* Field: Link (arrow) */
$handler->display->display_options['fields']['view_node']['id'] = 'view_node';
$handler->display->display_options['fields']['view_node']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['view_node']['field'] = 'view_node';
$handler->display->display_options['fields']['view_node']['ui_name'] = 'Link (arrow)';
$handler->display->display_options['fields']['view_node']['label'] = '';
$handler->display->display_options['fields']['view_node']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['view_node']['alter']['text'] = '<i class="icon-chevron-right"></i>';
$handler->display->display_options['fields']['view_node']['element_type'] = 'div';
$handler->display->display_options['fields']['view_node']['element_class'] = 'groups-arrow-link';
$handler->display->display_options['fields']['view_node']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['view_node']['element_default_classes'] = FALSE;
$handler->display->display_options['pane_category']['name'] = 'Groups panes';
$handler->display->display_options['pane_category']['weight'] = '0';
/* Display: Front page groups listing */
$handler = $view->new_display('panel_pane', 'Front page groups listing', 'panel_pane_1');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'responsive_grid';
$handler->display->display_options['style_options']['wrapper_classes'] = 'group-blocks--wrapper';
$handler->display->display_options['style_options']['column_classes'] = '';
$handler->display->display_options['style_options']['first_column_classes'] = '';
$handler->display->display_options['style_options']['last_column_classes'] = '';
$handler->display->display_options['style_options']['row_classes'] = 'group-blocks--inner';
$handler->display->display_options['style_options']['first_row_classes'] = '';
$handler->display->display_options['style_options']['last_row_classes'] = '';
$handler->display->display_options['style_options']['default_classes'] = 1;
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['relationships'] = FALSE;
/* Relationship: Nodequeue: Queue */
$handler->display->display_options['relationships']['nodequeue_rel']['id'] = 'nodequeue_rel';
$handler->display->display_options['relationships']['nodequeue_rel']['table'] = 'node';
$handler->display->display_options['relationships']['nodequeue_rel']['field'] = 'nodequeue_rel';
$handler->display->display_options['relationships']['nodequeue_rel']['label'] = 'Queue';
$handler->display->display_options['relationships']['nodequeue_rel']['required'] = TRUE;
$handler->display->display_options['relationships']['nodequeue_rel']['limit'] = 1;
$handler->display->display_options['relationships']['nodequeue_rel']['names'] = array(
'ding_groups_frontpage_listing' => 'ding_groups_frontpage_listing',
'ding_library_listing' => 0,
'ding_groups_listning' => 0,
'ding_tabroll_frontpage' => 0,
);
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_type'] = 'h2';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
/* Field: Content: Title image */
$handler->display->display_options['fields']['field_ding_group_title_image']['id'] = 'field_ding_group_title_image';
$handler->display->display_options['fields']['field_ding_group_title_image']['table'] = 'field_data_field_ding_group_title_image';
$handler->display->display_options['fields']['field_ding_group_title_image']['field'] = 'field_ding_group_title_image';
$handler->display->display_options['fields']['field_ding_group_title_image']['label'] = '';
$handler->display->display_options['fields']['field_ding_group_title_image']['element_type'] = '0';
$handler->display->display_options['fields']['field_ding_group_title_image']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_title_image']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_title_image']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_ding_group_title_image']['type'] = 'cs_adaptive_image';
$handler->display->display_options['fields']['field_ding_group_title_image']['settings'] = array(
'image_link' => 'content',
'styles' => array(
'breakpoint_1' => '768',
'style_1' => 'ding_panorama_primary_small',
'breakpoint_2' => '500',
'style_2' => 'ding_panorama_primary_small',
'max_style' => 'ding_panorama_primary_small',
'fallback_style' => 'ding_panorama_primary_small',
),
);
/* Field: Content: Lead */
$handler->display->display_options['fields']['field_ding_group_lead']['id'] = 'field_ding_group_lead';
$handler->display->display_options['fields']['field_ding_group_lead']['table'] = 'field_data_field_ding_group_lead';
$handler->display->display_options['fields']['field_ding_group_lead']['field'] = 'field_ding_group_lead';
$handler->display->display_options['fields']['field_ding_group_lead']['label'] = '';
$handler->display->display_options['fields']['field_ding_group_lead']['element_type'] = 'p';
$handler->display->display_options['fields']['field_ding_group_lead']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_group_lead']['element_default_classes'] = FALSE;
/* Field: Link to group */
$handler->display->display_options['fields']['title_1']['id'] = 'title_1';
$handler->display->display_options['fields']['title_1']['table'] = 'node';
$handler->display->display_options['fields']['title_1']['field'] = 'title';
$handler->display->display_options['fields']['title_1']['ui_name'] = 'Link to group';
$handler->display->display_options['fields']['title_1']['label'] = '';
$handler->display->display_options['fields']['title_1']['element_type'] = 'span';
$handler->display->display_options['fields']['title_1']['element_class'] = 'group-link';
$handler->display->display_options['fields']['title_1']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title_1']['element_default_classes'] = FALSE;
$handler->display->display_options['defaults']['sorts'] = FALSE;
/* Sort criterion: Nodequeue: Position */
$handler->display->display_options['sorts']['position']['id'] = 'position';
$handler->display->display_options['sorts']['position']['table'] = 'nodequeue_nodes';
$handler->display->display_options['sorts']['position']['field'] = 'position';
$handler->display->display_options['sorts']['position']['relationship'] = 'nodequeue_rel';
$handler->display->display_options['sorts']['position']['order'] = 'DESC';
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
$handler->display->display_options['defaults']['filters'] = FALSE;
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'ding_group' => 'ding_group',
);
$handler->display->display_options['pane_category']['name'] = 'Groups panes';
$handler->display->display_options['pane_category']['weight'] = '0';
$translatables['ding_groups'] = array(
t('Master'),
t('Themes'),
t('more'),
t('Apply'),
t('Reset'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('Items per page'),
t('- All -'),
t('Offset'),
t('« first'),
t('‹ previous'),
t('next ›'),
t('last »'),
t('queue'),
t('<i class="icon-chevron-right"></i>'),
t('Group overview (simple)'),
t('Simply list all groups'),
t('Groups panes'),
t('Front page groups listing'),
t('Queue'),
);
$export['ding_groups'] = $view;
return $export;
}