forked from ding2/ding_library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ding_library.views_default.inc
332 lines (326 loc) · 23.3 KB
/
ding_library.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
<?php
/**
* @file
* ding_library.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function ding_library_views_default_views() {
$export = array();
$view = new view();
$view->name = 'ding_library';
$view->description = '';
$view->tag = 'ding_library';
$view->base_table = 'node';
$view->human_name = 'Ding library';
$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['use_more_always'] = FALSE;
$handler->display->display_options['use_more_text'] = 'mere';
$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['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Gendan';
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Sortér efter';
$handler->display->display_options['exposed_form']['options']['sort_asc_label'] = 'Stigende';
$handler->display->display_options['exposed_form']['options']['sort_desc_label'] = 'Faldende';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['style_options']['row_class'] = 'vcard clearfix library-[nid]';
$handler->display->display_options['style_options']['class'] = 'library-list';
$handler->display->display_options['style_options']['wrapper_class'] = '';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Content: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['label'] = '';
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nid']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['nid']['hide_alter_empty'] = FALSE;
/* Field: div class=libraries-content */
$handler->display->display_options['fields']['nothing_1']['id'] = 'nothing_1';
$handler->display->display_options['fields']['nothing_1']['table'] = 'views';
$handler->display->display_options['fields']['nothing_1']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing_1']['ui_name'] = 'div class=libraries-content';
$handler->display->display_options['fields']['nothing_1']['label'] = '';
$handler->display->display_options['fields']['nothing_1']['alter']['text'] = '<div class="libraries-content">';
$handler->display->display_options['fields']['nothing_1']['element_type'] = '0';
$handler->display->display_options['fields']['nothing_1']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nothing_1']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['nothing_1']['element_default_classes'] = 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_class'] = 'libraries-title org';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['title']['hide_alter_empty'] = FALSE;
/* Field: List image */
$handler->display->display_options['fields']['field_ding_library_list_image']['id'] = 'field_ding_library_list_image';
$handler->display->display_options['fields']['field_ding_library_list_image']['table'] = 'field_data_field_ding_library_list_image';
$handler->display->display_options['fields']['field_ding_library_list_image']['field'] = 'field_ding_library_list_image';
$handler->display->display_options['fields']['field_ding_library_list_image']['ui_name'] = 'List image';
$handler->display->display_options['fields']['field_ding_library_list_image']['label'] = '';
$handler->display->display_options['fields']['field_ding_library_list_image']['element_class'] = 'photo';
$handler->display->display_options['fields']['field_ding_library_list_image']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_library_list_image']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['field_ding_library_list_image']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_ding_library_list_image']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_ding_library_list_image']['settings'] = array(
'image_style' => '',
'image_link' => 'content',
);
/* Field: Content: Addresse */
$handler->display->display_options['fields']['field_ding_library_addresse']['id'] = 'field_ding_library_addresse';
$handler->display->display_options['fields']['field_ding_library_addresse']['table'] = 'field_data_field_ding_library_addresse';
$handler->display->display_options['fields']['field_ding_library_addresse']['field'] = 'field_ding_library_addresse';
$handler->display->display_options['fields']['field_ding_library_addresse']['label'] = 'Adresse';
$handler->display->display_options['fields']['field_ding_library_addresse']['element_type'] = 'div';
$handler->display->display_options['fields']['field_ding_library_addresse']['element_class'] = 'dd adr address';
$handler->display->display_options['fields']['field_ding_library_addresse']['element_label_type'] = 'div';
$handler->display->display_options['fields']['field_ding_library_addresse']['element_label_class'] = 'dt adr-label';
$handler->display->display_options['fields']['field_ding_library_addresse']['element_wrapper_class'] = 'dl address-content';
$handler->display->display_options['fields']['field_ding_library_addresse']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_ding_library_addresse']['hide_empty'] = TRUE;
$handler->display->display_options['fields']['field_ding_library_addresse']['click_sort_column'] = 'country';
$handler->display->display_options['fields']['field_ding_library_addresse']['settings'] = array(
'use_widget_handlers' => 1,
'format_handlers' => array(
'address' => 'address',
),
);
/* Field: Content: Phone number */
$handler->display->display_options['fields']['field_ding_library_phone_number']['id'] = 'field_ding_library_phone_number';
$handler->display->display_options['fields']['field_ding_library_phone_number']['table'] = 'field_data_field_ding_library_phone_number';
$handler->display->display_options['fields']['field_ding_library_phone_number']['field'] = 'field_ding_library_phone_number';
$handler->display->display_options['fields']['field_ding_library_phone_number']['label'] = 'Phone';
$handler->display->display_options['fields']['field_ding_library_phone_number']['element_type'] = 'div';
$handler->display->display_options['fields']['field_ding_library_phone_number']['element_class'] = 'dd phone tel';
$handler->display->display_options['fields']['field_ding_library_phone_number']['element_label_type'] = 'div';
$handler->display->display_options['fields']['field_ding_library_phone_number']['element_label_class'] = 'dt tel-label';
$handler->display->display_options['fields']['field_ding_library_phone_number']['element_wrapper_class'] = 'dl phone-content';
$handler->display->display_options['fields']['field_ding_library_phone_number']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_ding_library_phone_number']['hide_empty'] = TRUE;
/* Field: Content: Fax number */
$handler->display->display_options['fields']['field_ding_library_fax_number']['id'] = 'field_ding_library_fax_number';
$handler->display->display_options['fields']['field_ding_library_fax_number']['table'] = 'field_data_field_ding_library_fax_number';
$handler->display->display_options['fields']['field_ding_library_fax_number']['field'] = 'field_ding_library_fax_number';
$handler->display->display_options['fields']['field_ding_library_fax_number']['label'] = 'Fax';
$handler->display->display_options['fields']['field_ding_library_fax_number']['element_type'] = 'div';
$handler->display->display_options['fields']['field_ding_library_fax_number']['element_class'] = 'dd fax';
$handler->display->display_options['fields']['field_ding_library_fax_number']['element_label_type'] = 'div';
$handler->display->display_options['fields']['field_ding_library_fax_number']['element_label_class'] = 'dt fax-label';
$handler->display->display_options['fields']['field_ding_library_fax_number']['element_wrapper_class'] = 'dl fax-content';
$handler->display->display_options['fields']['field_ding_library_fax_number']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_ding_library_fax_number']['hide_empty'] = TRUE;
/* Field: Content: E-mail */
$handler->display->display_options['fields']['field_ding_library_mail']['id'] = 'field_ding_library_mail';
$handler->display->display_options['fields']['field_ding_library_mail']['table'] = 'field_data_field_ding_library_mail';
$handler->display->display_options['fields']['field_ding_library_mail']['field'] = 'field_ding_library_mail';
$handler->display->display_options['fields']['field_ding_library_mail']['element_type'] = 'div';
$handler->display->display_options['fields']['field_ding_library_mail']['element_class'] = 'dd email';
$handler->display->display_options['fields']['field_ding_library_mail']['element_label_type'] = 'div';
$handler->display->display_options['fields']['field_ding_library_mail']['element_label_class'] = 'dt email-label';
$handler->display->display_options['fields']['field_ding_library_mail']['element_wrapper_class'] = 'dl email-content';
$handler->display->display_options['fields']['field_ding_library_mail']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_ding_library_mail']['hide_empty'] = TRUE;
/* Field: Content: Title */
$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']['label'] = '';
$handler->display->display_options['fields']['title_1']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['title_1']['alter']['text'] = '<i class="icon-chevron-right"></i> [title_1]';
$handler->display->display_options['fields']['title_1']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['title_1']['alter']['path'] = '[title_1]';
$handler->display->display_options['fields']['title_1']['element_type'] = 'p';
$handler->display->display_options['fields']['title_1']['element_class'] = 'library-link';
$handler->display->display_options['fields']['title_1']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title_1']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['title_1']['element_default_classes'] = FALSE;
/* Field: /div */
$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
$handler->display->display_options['fields']['nothing']['table'] = 'views';
$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing']['ui_name'] = '/div';
$handler->display->display_options['fields']['nothing']['label'] = '';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '</div>';
$handler->display->display_options['fields']['nothing']['element_type'] = '0';
$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nothing']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['nothing']['element_default_classes'] = FALSE;
/* Field: Content: Opening hours */
$handler->display->display_options['fields']['field_ding_library_opening_hours']['id'] = 'field_ding_library_opening_hours';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['table'] = 'field_data_field_ding_library_opening_hours';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['field'] = 'field_ding_library_opening_hours';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['label'] = 'Opening Hours';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['element_type'] = 'div';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['element_class'] = 'opening-hours-content';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['element_label_type'] = 'h3';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['element_label_class'] = 'opening-hours-title';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_library_opening_hours']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['element_wrapper_class'] = 'opening-hours';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_ding_library_opening_hours']['type'] = 'text_plain';
/* Sort criterion: Content: Title */
$handler->display->display_options['sorts']['title']['id'] = 'title';
$handler->display->display_options['sorts']['title']['table'] = 'node';
$handler->display->display_options['sorts']['title']['field'] = 'title';
/* 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'] = 0;
$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_library' => 'ding_library',
);
/* Filter criterion: Content: Language */
$handler->display->display_options['filters']['language']['id'] = 'language';
$handler->display->display_options['filters']['language']['table'] = 'node';
$handler->display->display_options['filters']['language']['field'] = 'language';
$handler->display->display_options['filters']['language']['value'] = array(
'***CURRENT_LANGUAGE***' => '***CURRENT_LANGUAGE***',
'und' => 'und',
);
/* Display: Libraries list */
$handler = $view->new_display('panel_pane', 'Libraries list', 'ding_library_libraries_list');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['style_options']['row_class'] = 'vcard clearfix library-[nid]';
$handler->display->display_options['style_options']['class'] = 'library-list';
$handler->display->display_options['style_options']['wrapper_class'] = '';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'node';
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['pane_category']['name'] = 'Library panes';
$handler->display->display_options['pane_category']['weight'] = '0';
$handler->display->display_options['allow']['use_pager'] = 0;
$handler->display->display_options['allow']['items_per_page'] = 0;
$handler->display->display_options['allow']['offset'] = 0;
$handler->display->display_options['allow']['link_to_view'] = 0;
$handler->display->display_options['allow']['more_link'] = 0;
$handler->display->display_options['allow']['path_override'] = 0;
$handler->display->display_options['allow']['title_override'] = 'title_override';
$handler->display->display_options['allow']['exposed_form'] = 0;
$handler->display->display_options['allow']['fields_override'] = 0;
/* Display: OpenLayers Data Overlay */
$handler = $view->new_display('openlayers', 'OpenLayers Data Overlay', 'openlayers_1');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'openlayers_data';
$handler->display->display_options['style_options']['data_source'] = array(
'value' => 'wkt',
'other_lat' => 'nid',
'other_lon' => 'nid',
'wkt' => 'field_ding_library_geocode',
'other_top' => 'nid',
'other_right' => 'nid',
'other_bottom' => 'nid',
'other_left' => 'nid',
'name_field' => 'title',
'description_field' => '#row',
);
$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']['fields'] = FALSE;
/* Field: Content: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['label'] = '';
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nid']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['nid']['hide_alter_empty'] = 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']['exclude'] = TRUE;
$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_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['title']['hide_alter_empty'] = FALSE;
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
/* Field: Content: Geocode */
$handler->display->display_options['fields']['field_ding_library_geocode']['id'] = 'field_ding_library_geocode';
$handler->display->display_options['fields']['field_ding_library_geocode']['table'] = 'field_data_field_ding_library_geocode';
$handler->display->display_options['fields']['field_ding_library_geocode']['field'] = 'field_ding_library_geocode';
$handler->display->display_options['fields']['field_ding_library_geocode']['label'] = '';
$handler->display->display_options['fields']['field_ding_library_geocode']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_ding_library_geocode']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_library_geocode']['click_sort_column'] = 'wkt';
$handler->display->display_options['fields']['field_ding_library_geocode']['settings'] = array(
'data' => 'full',
);
/* Field: Content: Addresse */
$handler->display->display_options['fields']['field_ding_library_addresse']['id'] = 'field_ding_library_addresse';
$handler->display->display_options['fields']['field_ding_library_addresse']['table'] = 'field_data_field_ding_library_addresse';
$handler->display->display_options['fields']['field_ding_library_addresse']['field'] = 'field_ding_library_addresse';
$handler->display->display_options['fields']['field_ding_library_addresse']['label'] = '';
$handler->display->display_options['fields']['field_ding_library_addresse']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ding_library_addresse']['click_sort_column'] = 'country';
$handler->display->display_options['fields']['field_ding_library_addresse']['settings'] = array(
'use_widget_handlers' => 1,
'format_handlers' => array(
'address' => 'address',
),
);
/* Field: Content: Opening hours */
$handler->display->display_options['fields']['field_ding_library_opening_hours']['id'] = 'field_ding_library_opening_hours';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['table'] = 'field_data_field_ding_library_opening_hours';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['field'] = 'field_ding_library_opening_hours';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['label'] = '';
$handler->display->display_options['fields']['field_ding_library_opening_hours']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_ding_library_opening_hours']['element_label_colon'] = FALSE;
$translatables['ding_library'] = array(
t('Master'),
t('mere'),
t('Apply'),
t('Gendan'),
t('Sortér efter'),
t('Stigende'),
t('Faldende'),
t('<div class="libraries-content">'),
t('Adresse'),
t('Phone'),
t('Fax'),
t('E-mail'),
t('<i class="icon-chevron-right"></i> [title_1]'),
t('</div>'),
t('Opening Hours'),
t('Libraries list'),
t('more'),
t('Library panes'),
t('OpenLayers Data Overlay'),
);
$export['ding_library'] = $view;
return $export;
}