uw_ct_event.views_default.inc 205 KB
Newer Older
1
2
3
<?php
/**
 * @file
4
 * uw_ct_event.views_default.inc
5
6
7
 */

/**
8
 * Implements hook_views_default_views().
9
10
11
12
 */
function uw_ct_event_views_default_views() {
  $export = array();

13
  $view = new view();
14
15
  $view->name = 'event_type_block';
  $view->description = 'Displays event item by audience.';
16
17
  $view->tag = 'events';
  $view->base_table = 'taxonomy_term_data';
18
  $view->human_name = 'Event type block';
19
  $view->core = 7;
kolafson's avatar
kolafson committed
20
  $view->api_version = '3.0';
21
22
23
24
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

  /* Display: Master */
  $handler = $view->new_display('default', 'Master', 'default');
25
  $handler->display->display_options['title'] = 'Events by type';
kpaxman's avatar
kpaxman committed
26
  $handler->display->display_options['use_more_always'] = FALSE;
27
28
29
30
31
32
33
34
35
  $handler->display->display_options['group_by'] = TRUE;
  $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['pager']['type'] = 'none';
  $handler->display->display_options['style_plugin'] = 'list';
  $handler->display->display_options['row_plugin'] = 'fields';
36
  $handler->display->display_options['row_options']['default_field_elements'] = FALSE;
mnshantz's avatar
mnshantz committed
37
  /* Relationship: Taxonomy term: Content using Type */
38
39
40
  $handler->display->display_options['relationships']['reverse_field_uw_event_type_node']['id'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['relationships']['reverse_field_uw_event_type_node']['table'] = 'taxonomy_term_data';
  $handler->display->display_options['relationships']['reverse_field_uw_event_type_node']['field'] = 'reverse_field_uw_event_type_node';
41
42
43
44
45
46
47
  /* Field: Taxonomy term: Term ID */
  $handler->display->display_options['fields']['tid']['id'] = 'tid';
  $handler->display->display_options['fields']['tid']['table'] = 'taxonomy_term_data';
  $handler->display->display_options['fields']['tid']['field'] = 'tid';
  $handler->display->display_options['fields']['tid']['label'] = '';
  $handler->display->display_options['fields']['tid']['exclude'] = TRUE;
  $handler->display->display_options['fields']['tid']['element_label_colon'] = FALSE;
48
  $handler->display->display_options['fields']['tid']['hide_alter_empty'] = FALSE;
49
50
51
52
53
54
  /* Field: Taxonomy term: Name */
  $handler->display->display_options['fields']['name']['id'] = 'name';
  $handler->display->display_options['fields']['name']['table'] = 'taxonomy_term_data';
  $handler->display->display_options['fields']['name']['field'] = 'name';
  $handler->display->display_options['fields']['name']['label'] = '';
  $handler->display->display_options['fields']['name']['exclude'] = TRUE;
55
  $handler->display->display_options['fields']['name']['alter']['make_link'] = TRUE;
56
  $handler->display->display_options['fields']['name']['alter']['path'] = 'events/type/[tid]';
57
58
  $handler->display->display_options['fields']['name']['alter']['word_boundary'] = FALSE;
  $handler->display->display_options['fields']['name']['alter']['ellipsis'] = FALSE;
59
  $handler->display->display_options['fields']['name']['element_label_colon'] = FALSE;
60
  $handler->display->display_options['fields']['name']['hide_alter_empty'] = FALSE;
61
62
63
64
  /* Field: COUNT(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';
65
  $handler->display->display_options['fields']['nid']['relationship'] = 'reverse_field_uw_event_type_node';
66
67
  $handler->display->display_options['fields']['nid']['group_type'] = 'count';
  $handler->display->display_options['fields']['nid']['label'] = '';
68
  $handler->display->display_options['fields']['nid']['alter']['alter_text'] = TRUE;
69
70
  $handler->display->display_options['fields']['nid']['alter']['text'] = '[name] [nid]';
  $handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
71
  $handler->display->display_options['fields']['nid']['hide_alter_empty'] = FALSE;
72
73
  $handler->display->display_options['fields']['nid']['prefix'] = '(';
  $handler->display->display_options['fields']['nid']['suffix'] = ')';
74
75
76
77
78
  $handler->display->display_options['filter_groups']['operator'] = 'OR';
  $handler->display->display_options['filter_groups']['groups'] = array(
    1 => 'AND',
    2 => 'AND',
  );
79
80
81
82
83
  /* Filter criterion: Taxonomy vocabulary: Machine name */
  $handler->display->display_options['filters']['machine_name']['id'] = 'machine_name';
  $handler->display->display_options['filters']['machine_name']['table'] = 'taxonomy_vocabulary';
  $handler->display->display_options['filters']['machine_name']['field'] = 'machine_name';
  $handler->display->display_options['filters']['machine_name']['value'] = array(
84
    'uw_event_type' => 'uw_event_type',
85
  );
86
  $handler->display->display_options['filters']['machine_name']['group'] = 1;
87
88
89
90
  /* 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';
91
  $handler->display->display_options['filters']['type']['relationship'] = 'reverse_field_uw_event_type_node';
92
93
94
  $handler->display->display_options['filters']['type']['value'] = array(
    'uw_event' => 'uw_event',
  );
95
  $handler->display->display_options['filters']['type']['group'] = 1;
96
97
98
99
  /* 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';
100
  $handler->display->display_options['filters']['status']['relationship'] = 'reverse_field_uw_event_type_node';
101
  $handler->display->display_options['filters']['status']['value'] = '1';
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
  $handler->display->display_options['filters']['status']['group'] = 1;
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['filters']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['relationship'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['filters']['field_event_date_value']['operator'] = '<=';
  $handler->display->display_options['filters']['field_event_date_value']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value']['default_date'] = 'today';
  /* Filter criterion: Content: Date and time - end date (field_event_date:value2) */
  $handler->display->display_options['filters']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value2']['field'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['relationship'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['filters']['field_event_date_value2']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value2']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value2']['default_date'] = 'today';
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type_1']['id'] = 'type_1';
  $handler->display->display_options['filters']['type_1']['table'] = 'node';
  $handler->display->display_options['filters']['type_1']['field'] = 'type';
  $handler->display->display_options['filters']['type_1']['relationship'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['filters']['type_1']['value'] = array(
    'uw_event' => 'uw_event',
  );
  $handler->display->display_options['filters']['type_1']['group'] = 2;
  /* Filter criterion: Taxonomy vocabulary: Machine name */
  $handler->display->display_options['filters']['machine_name_1']['id'] = 'machine_name_1';
  $handler->display->display_options['filters']['machine_name_1']['table'] = 'taxonomy_vocabulary';
  $handler->display->display_options['filters']['machine_name_1']['field'] = 'machine_name';
  $handler->display->display_options['filters']['machine_name_1']['value'] = array(
    'uw_event_type' => 'uw_event_type',
  );
  $handler->display->display_options['filters']['machine_name_1']['group'] = 2;
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status_1']['id'] = 'status_1';
  $handler->display->display_options['filters']['status_1']['table'] = 'node';
  $handler->display->display_options['filters']['status_1']['field'] = 'status';
  $handler->display->display_options['filters']['status_1']['relationship'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['filters']['status_1']['value'] = '1';
  $handler->display->display_options['filters']['status_1']['group'] = 2;
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['filters']['field_event_date_value_1']['id'] = 'field_event_date_value_1';
  $handler->display->display_options['filters']['field_event_date_value_1']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value_1']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value_1']['relationship'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['filters']['field_event_date_value_1']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value_1']['group'] = 2;
  $handler->display->display_options['filters']['field_event_date_value_1']['default_date'] = 'today';
151

152
  /* Display: Block - Events by Type */
153
  $handler = $view->new_display('block', 'Block - Events by Type', 'events_by_type');
kpaxman's avatar
kpaxman committed
154
  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
155
  $handler->display->display_options['block_caching'] = '8';
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
  $translatables['event_type_block'] = array(
    t('Master'),
    t('Events by type'),
    t('more'),
    t('Apply'),
    t('Reset'),
    t('Sort by'),
    t('Asc'),
    t('Desc'),
    t('field_uw_event_type'),
    t('.'),
    t(','),
    t('[name] [nid]'),
    t('Block - Events by Type'),
  );
171
  $export['event_type_block'] = $view;
172

173
  $view = new view();
174
175
  $view->name = 'events';
  $view->description = '';
176
  $view->tag = 'events';
177
178
179
  $view->base_table = 'node';
  $view->human_name = 'Events';
  $view->core = 7;
kolafson's avatar
kolafson committed
180
  $view->api_version = '3.0';
181
182
183
184
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

  /* Display: Master */
  $handler = $view->new_display('default', 'Master', 'default');
185
  $handler->display->display_options['title'] = 'Events';
kpaxman's avatar
kpaxman committed
186
  $handler->display->display_options['use_more_always'] = FALSE;
187
188
189
190
191
  $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';
ccarigna's avatar
ccarigna committed
192
193
  $handler->display->display_options['pager']['type'] = 'date_views_pager';
  $handler->display->display_options['pager']['options']['link_format'] = 'clean';
194
195
  $handler->display->display_options['style_plugin'] = 'default';
  $handler->display->display_options['row_plugin'] = 'fields';
196
  $handler->display->display_options['row_options']['default_field_elements'] = FALSE;
197
198
199
200
201
  /* 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'] = '';
202
203
  $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
204
205
  $handler->display->display_options['fields']['title']['element_type'] = 'h3';
  $handler->display->display_options['fields']['title']['element_class'] = 'event-title';
ccarigna's avatar
ccarigna committed
206
  $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
207
208
  $handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['title']['hide_alter_empty'] = FALSE;
209
210
211
212
213
  /* Field: Content: Date and time */
  $handler->display->display_options['fields']['field_event_date']['id'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['fields']['field_event_date']['field'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['label'] = '';
ccarigna's avatar
ccarigna committed
214
215
  $handler->display->display_options['fields']['field_event_date']['element_type'] = 'div';
  $handler->display->display_options['fields']['field_event_date']['element_class'] = 'event-date';
216
  $handler->display->display_options['fields']['field_event_date']['element_label_colon'] = FALSE;
217
218
  $handler->display->display_options['fields']['field_event_date']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['hide_alter_empty'] = FALSE;
219
  $handler->display->display_options['fields']['field_event_date']['settings'] = array(
lkmorlan's avatar
lkmorlan committed
220
    'format_type' => 'long',
ccarigna's avatar
ccarigna committed
221
    'fromto' => 'both',
222
223
224
225
226
    'multiple_number' => '1',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_repeat_rule' => 'hide',
  );
227
  $handler->display->display_options['fields']['field_event_date']['group_rows'] = FALSE;
228
229
  $handler->display->display_options['fields']['field_event_date']['delta_offset'] = '0';
  $handler->display->display_options['fields']['field_event_date']['multi_type'] = 'ul';
230
  /* Field: Content: Listing page image for social media */
ccarigna's avatar
ccarigna committed
231
232
233
234
235
  $handler->display->display_options['fields']['field_event_image']['id'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['table'] = 'field_data_field_event_image';
  $handler->display->display_options['fields']['field_event_image']['field'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['label'] = '';
  $handler->display->display_options['fields']['field_event_image']['element_label_colon'] = FALSE;
236
237
  $handler->display->display_options['fields']['field_event_image']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['hide_alter_empty'] = FALSE;
ccarigna's avatar
ccarigna committed
238
239
240
241
242
  $handler->display->display_options['fields']['field_event_image']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_event_image']['settings'] = array(
    'image_style' => 'thumbnail',
    'image_link' => '',
  );
l26yan's avatar
l26yan committed
243
  $handler->display->display_options['fields']['field_event_image']['group_column'] = 'entity_id';
244
  /* Field: Content: Body */
245
246
247
248
  $handler->display->display_options['fields']['body']['id'] = 'body';
  $handler->display->display_options['fields']['body']['table'] = 'field_data_body';
  $handler->display->display_options['fields']['body']['field'] = 'body';
  $handler->display->display_options['fields']['body']['label'] = '';
249
  $handler->display->display_options['fields']['body']['exclude'] = TRUE;
kolafson's avatar
kolafson committed
250
  $handler->display->display_options['fields']['body']['alter']['preserve_tags'] = '<p> <strong> <em> <a> <br>';
ccarigna's avatar
ccarigna committed
251
252
  $handler->display->display_options['fields']['body']['element_type'] = 'div';
  $handler->display->display_options['fields']['body']['element_class'] = 'event-summary';
253
  $handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
254
255
  $handler->display->display_options['fields']['body']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['body']['hide_alter_empty'] = FALSE;
ccarigna's avatar
ccarigna committed
256
  $handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
257
  $handler->display->display_options['fields']['body']['settings'] = array(
258
    'trim_length' => '600',
259
  );
260
261
262
263
264
  $handler->display->display_options['fields']['body']['group_columns'] = array(
    'entity_id' => 'entity_id',
    'value' => 'value',
    'format' => 'format',
  );
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
  /* Field: Headers-Replaced Body */
  $handler->display->display_options['fields']['php']['id'] = 'php';
  $handler->display->display_options['fields']['php']['table'] = 'views';
  $handler->display->display_options['fields']['php']['field'] = 'php';
  $handler->display->display_options['fields']['php']['ui_name'] = 'Headers-Replaced Body';
  $handler->display->display_options['fields']['php']['label'] = '';
  $handler->display->display_options['fields']['php']['alter']['trim_whitespace'] = TRUE;
  $handler->display->display_options['fields']['php']['alter']['strip_tags'] = TRUE;
  $handler->display->display_options['fields']['php']['alter']['preserve_tags'] = '<p> <strong> <em> <a> <br> <b> <i>';
  $handler->display->display_options['fields']['php']['element_type'] = 'div';
  $handler->display->display_options['fields']['php']['element_class'] = 'event-summary';
  $handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['php']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['php']['use_php_setup'] = 0;
  $handler->display->display_options['fields']['php']['php_output'] = '<?php
280
echo uw_ct_web_page_filter_summary($data->field_body);
281
282
283
?>';
  $handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
  $handler->display->display_options['fields']['php']['php_click_sortable'] = '';
284
285
286
287
  /* Sort criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['sorts']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['sorts']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['sorts']['field_event_date_value']['field'] = 'field_event_date_value';
kpaxman's avatar
kpaxman committed
288
289
290
291
292
293
294
295
296
297
298
299
  /* Sort criterion: Content: Date and time - end date (field_event_date:value2) */
  $handler->display->display_options['sorts']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['sorts']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['sorts']['field_event_date_value2']['field'] = 'field_event_date_value2';
  /* 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';
  /* Sort criterion: Content: Nid */
  $handler->display->display_options['sorts']['nid']['id'] = 'nid';
  $handler->display->display_options['sorts']['nid']['table'] = 'node';
  $handler->display->display_options['sorts']['nid']['field'] = 'nid';
300
301
302
303
304
305
306
307
  /* Contextual filter: Content: Nid */
  $handler->display->display_options['arguments']['nid']['id'] = 'nid';
  $handler->display->display_options['arguments']['nid']['table'] = 'node';
  $handler->display->display_options['arguments']['nid']['field'] = 'nid';
  $handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
  $handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
  $handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
  $handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
308
309
310
311
  /* Contextual filter: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['arguments']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['arguments']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['arguments']['field_event_date_value']['field'] = 'field_event_date_value';
312
  $handler->display->display_options['arguments']['field_event_date_value']['default_argument_type'] = 'date';
313
  $handler->display->display_options['arguments']['field_event_date_value']['summary']['format'] = 'default_summary';
314
315
316
317
318
  $handler->display->display_options['filter_groups']['operator'] = 'OR';
  $handler->display->display_options['filter_groups']['groups'] = array(
    1 => 'AND',
    2 => 'AND',
  );
319
320
321
322
323
  /* 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;
324
  $handler->display->display_options['filters']['status']['group'] = 1;
325
326
327
328
329
330
331
332
  $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(
    'uw_event' => 'uw_event',
  );
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
  $handler->display->display_options['filters']['type']['group'] = 1;
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['filters']['field_event_date_value_1']['id'] = 'field_event_date_value_1';
  $handler->display->display_options['filters']['field_event_date_value_1']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value_1']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value_1']['operator'] = '<=';
  $handler->display->display_options['filters']['field_event_date_value_1']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value_1']['default_date'] = 'today';
  /* Filter criterion: Content: Date and time - end date (field_event_date:value2) */
  $handler->display->display_options['filters']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value2']['field'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value2']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value2']['default_date'] = 'today';
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status_1']['id'] = 'status_1';
  $handler->display->display_options['filters']['status_1']['table'] = 'node';
  $handler->display->display_options['filters']['status_1']['field'] = 'status';
  $handler->display->display_options['filters']['status_1']['value'] = '1';
  $handler->display->display_options['filters']['status_1']['group'] = 2;
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type_1']['id'] = 'type_1';
  $handler->display->display_options['filters']['type_1']['table'] = 'node';
  $handler->display->display_options['filters']['type_1']['field'] = 'type';
  $handler->display->display_options['filters']['type_1']['value'] = array(
    'uw_event' => 'uw_event',
  );
  $handler->display->display_options['filters']['type_1']['group'] = 2;
362
363
364
365
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['filters']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value']['field'] = 'field_event_date_value';
366
367
368
  $handler->display->display_options['filters']['field_event_date_value']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value']['group'] = 2;
  $handler->display->display_options['filters']['field_event_date_value']['default_date'] = 'today';
369
370
371

  /* Display: Events - List */
  $handler = $view->new_display('page', 'Events - List', 'page');
ccarigna's avatar
ccarigna committed
372
373
  $handler->display->display_options['defaults']['title'] = FALSE;
  $handler->display->display_options['title'] = 'Events';
kpaxman's avatar
kpaxman committed
374
  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
kolafson's avatar
kolafson committed
375
  $handler->display->display_options['defaults']['group_by'] = FALSE;
376
  $handler->display->display_options['defaults']['pager'] = FALSE;
ccarigna's avatar
ccarigna committed
377
378
  $handler->display->display_options['pager']['type'] = 'full';
  $handler->display->display_options['pager']['options']['items_per_page'] = '25';
ccarigna's avatar
ccarigna committed
379
  $handler->display->display_options['pager']['options']['offset'] = '0';
ccarigna's avatar
ccarigna committed
380
  $handler->display->display_options['pager']['options']['id'] = '0';
381
382
383
384
385
386
  $handler->display->display_options['defaults']['footer'] = FALSE;
  $handler->display->display_options['defaults']['empty'] = FALSE;
  /* No results behavior: Global: Text area */
  $handler->display->display_options['empty']['area']['id'] = 'area';
  $handler->display->display_options['empty']['area']['table'] = 'views';
  $handler->display->display_options['empty']['area']['field'] = 'area';
kpaxman's avatar
kpaxman committed
387
388
  $handler->display->display_options['empty']['area']['empty'] = TRUE;
  $handler->display->display_options['empty']['area']['content'] = '<p>No events found.</p>';
389
  $handler->display->display_options['empty']['area']['format'] = 'uw_tf_standard';
390
391
392
393
394
395
  $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'] = '';
396
397
  $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
  $handler->display->display_options['fields']['title']['element_type'] = 'h3';
  $handler->display->display_options['fields']['title']['element_class'] = 'event-title';
  $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;
  /* Field: Content: Date and time */
  $handler->display->display_options['fields']['field_event_date']['id'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['fields']['field_event_date']['field'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['label'] = '';
  $handler->display->display_options['fields']['field_event_date']['element_type'] = 'div';
  $handler->display->display_options['fields']['field_event_date']['element_class'] = 'event-date';
  $handler->display->display_options['fields']['field_event_date']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['settings'] = array(
    'format_type' => 'long',
415
    'fromto' => 'value',
416
417
418
    'multiple_number' => '1',
    'multiple_from' => '',
    'multiple_to' => '',
419
    'show_remaining_days' => 0,
420
421
422
423
424
    'show_repeat_rule' => 'hide',
  );
  $handler->display->display_options['fields']['field_event_date']['group_rows'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['delta_offset'] = '0';
  $handler->display->display_options['fields']['field_event_date']['multi_type'] = 'ul';
425
  /* Field: Content: Listing page image for social media */
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
  $handler->display->display_options['fields']['field_event_image']['id'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['table'] = 'field_data_field_event_image';
  $handler->display->display_options['fields']['field_event_image']['field'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['label'] = '';
  $handler->display->display_options['fields']['field_event_image']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_event_image']['settings'] = array(
    'image_style' => 'thumbnail',
    'image_link' => '',
  );
  $handler->display->display_options['fields']['field_event_image']['group_column'] = 'entity_id';
  /* Field: Content: Body */
  $handler->display->display_options['fields']['body']['id'] = 'body';
  $handler->display->display_options['fields']['body']['table'] = 'field_data_body';
  $handler->display->display_options['fields']['body']['field'] = 'body';
  $handler->display->display_options['fields']['body']['label'] = '';
  $handler->display->display_options['fields']['body']['exclude'] = TRUE;
  $handler->display->display_options['fields']['body']['alter']['preserve_tags'] = '<p> <strong> <em> <a> <br>';
  $handler->display->display_options['fields']['body']['element_type'] = 'div';
  $handler->display->display_options['fields']['body']['element_class'] = 'event-summary';
  $handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['body']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['body']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
  $handler->display->display_options['fields']['body']['settings'] = array(
    'trim_length' => '600',
  );
  $handler->display->display_options['fields']['body']['group_columns'] = array(
    'entity_id' => 'entity_id',
    'value' => 'value',
    'format' => 'format',
  );
  /* Field: Headers-Replaced Body */
  $handler->display->display_options['fields']['php']['id'] = 'php';
  $handler->display->display_options['fields']['php']['table'] = 'views';
  $handler->display->display_options['fields']['php']['field'] = 'php';
  $handler->display->display_options['fields']['php']['ui_name'] = 'Headers-Replaced Body';
  $handler->display->display_options['fields']['php']['label'] = '';
  $handler->display->display_options['fields']['php']['alter']['trim_whitespace'] = TRUE;
  $handler->display->display_options['fields']['php']['alter']['strip_tags'] = TRUE;
  $handler->display->display_options['fields']['php']['alter']['preserve_tags'] = '<p> <strong> <em> <a> <br> <b> <i>';
  $handler->display->display_options['fields']['php']['element_type'] = 'div';
  $handler->display->display_options['fields']['php']['element_class'] = 'event-summary';
  $handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['php']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['php']['use_php_setup'] = 0;
  $handler->display->display_options['fields']['php']['php_output'] = '<?php
475
echo uw_ct_web_page_filter_summary($data->field_body);
476
477
478
?>';
  $handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
  $handler->display->display_options['fields']['php']['php_click_sortable'] = '';
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
  $handler->display->display_options['defaults']['sorts'] = FALSE;
  /* Sort criterion: Content: Sticky */
  $handler->display->display_options['sorts']['sticky']['id'] = 'sticky';
  $handler->display->display_options['sorts']['sticky']['table'] = 'node';
  $handler->display->display_options['sorts']['sticky']['field'] = 'sticky';
  $handler->display->display_options['sorts']['sticky']['order'] = 'DESC';
  /* Sort criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['sorts']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['sorts']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['sorts']['field_event_date_value']['field'] = 'field_event_date_value';
  /* Sort criterion: Content: Date and time - end date (field_event_date:value2) */
  $handler->display->display_options['sorts']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['sorts']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['sorts']['field_event_date_value2']['field'] = 'field_event_date_value2';
  /* 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';
  /* Sort criterion: Content: Nid */
  $handler->display->display_options['sorts']['nid']['id'] = 'nid';
  $handler->display->display_options['sorts']['nid']['table'] = 'node';
  $handler->display->display_options['sorts']['nid']['field'] = 'nid';
ccarigna's avatar
ccarigna committed
501
  $handler->display->display_options['defaults']['arguments'] = FALSE;
502
503
504
505
506
507
  $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  $handler->display->display_options['filter_groups']['operator'] = 'OR';
  $handler->display->display_options['filter_groups']['groups'] = array(
    1 => 'AND',
    2 => 'AND',
  );
508
509
510
511
512
513
  $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;
514
  $handler->display->display_options['filters']['status']['group'] = 1;
515
516
517
518
519
520
521
522
  $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(
    'uw_event' => 'uw_event',
  );
523
  $handler->display->display_options['filters']['type']['group'] = 1;
l26yan's avatar
l26yan committed
524
525
526
527
528
529
530
  /* Filter criterion: Global: Composite Filter */
  $handler->display->display_options['filters']['composite_views_filter']['id'] = 'composite_views_filter';
  $handler->display->display_options['filters']['composite_views_filter']['table'] = 'views';
  $handler->display->display_options['filters']['composite_views_filter']['field'] = 'composite_views_filter';
  $handler->display->display_options['filters']['composite_views_filter']['expose']['operator_id'] = '';
  $handler->display->display_options['filters']['composite_views_filter']['expose']['label'] = 'Dates';
  $handler->display->display_options['filters']['composite_views_filter']['expose']['operator'] = 'composite_views_filter_op';
l26yan's avatar
l26yan committed
531
  $handler->display->display_options['filters']['composite_views_filter']['expose']['identifier'] = 'date';
l26yan's avatar
l26yan committed
532
533
534
535
  $handler->display->display_options['filters']['composite_views_filter']['expose']['required'] = TRUE;
  $handler->display->display_options['filters']['composite_views_filter']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
536
    16 => 0,
l26yan's avatar
l26yan committed
537
538
539
540
541
542
543
544
545
546
547
548
549
    13 => 0,
    14 => 0,
    15 => 0,
    3 => 0,
    6 => 0,
    12 => 0,
    5 => 0,
    4 => 0,
    7 => 0,
    8 => 0,
    9 => 0,
    11 => 0,
    10 => 0,
550
    17 => 0,
l26yan's avatar
l26yan committed
551
  );
552
553
554
  $handler->display->display_options['filters']['composite_views_filter']['composite_views_filter']['groups'] = 'Current|Current and upcoming
Today|Today
Past|Past';
l26yan's avatar
l26yan committed
555
556
557
558
559
  $handler->display->display_options['filters']['composite_views_filter']['composite_views_filter']['default_group'] = 'Current';
  $handler->display->display_options['filters']['composite_views_filter']['composite_views_filter']['classification'] = array(
    'field_event_date_value' => 'Current',
    'field_event_date_value_1' => 'All',
    'field_event_date_value2' => 'Past',
560
561
    'field_event_date_value_2' => 'Today',
    'field_event_date_value2_1' => 'Today',
l26yan's avatar
l26yan committed
562
  );
mnshantz's avatar
mnshantz committed
563
  /* Filter criterion: Content: Type (field_uw_event_type) */
l26yan's avatar
l26yan committed
564
565
566
567
568
  $handler->display->display_options['filters']['field_uw_event_type_tid']['id'] = 'field_uw_event_type_tid';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['table'] = 'field_data_field_uw_event_type';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['field'] = 'field_uw_event_type_tid';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['exposed'] = TRUE;
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['operator_id'] = 'field_uw_event_type_tid_op';
kpaxman's avatar
kpaxman committed
569
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['label'] = 'Type';
l26yan's avatar
l26yan committed
570
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['operator'] = 'field_uw_event_type_tid_op';
l26yan's avatar
l26yan committed
571
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['identifier'] = 'type';
l26yan's avatar
l26yan committed
572
573
574
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
kpaxman's avatar
kpaxman committed
575
    16 => 0,
l26yan's avatar
l26yan committed
576
577
578
579
580
581
582
583
584
585
586
587
588
    13 => 0,
    14 => 0,
    15 => 0,
    3 => 0,
    6 => 0,
    12 => 0,
    5 => 0,
    4 => 0,
    7 => 0,
    8 => 0,
    9 => 0,
    11 => 0,
    10 => 0,
l26yan's avatar
l26yan committed
589
    17 => 0,
l26yan's avatar
l26yan committed
590
591
592
593
594
595
596
597
598
599
  );
  $handler->display->display_options['filters']['field_uw_event_type_tid']['type'] = 'select';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['vocabulary'] = 'uw_event_type';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['hierarchy'] = 1;
  /* Filter criterion: Content: Audience (field_audience) */
  $handler->display->display_options['filters']['field_audience_tid']['id'] = 'field_audience_tid';
  $handler->display->display_options['filters']['field_audience_tid']['table'] = 'field_data_field_audience';
  $handler->display->display_options['filters']['field_audience_tid']['field'] = 'field_audience_tid';
  $handler->display->display_options['filters']['field_audience_tid']['exposed'] = TRUE;
  $handler->display->display_options['filters']['field_audience_tid']['expose']['operator_id'] = 'field_audience_tid_op';
kpaxman's avatar
kpaxman committed
600
  $handler->display->display_options['filters']['field_audience_tid']['expose']['label'] = 'Audience';
l26yan's avatar
l26yan committed
601
  $handler->display->display_options['filters']['field_audience_tid']['expose']['operator'] = 'field_audience_tid_op';
l26yan's avatar
l26yan committed
602
  $handler->display->display_options['filters']['field_audience_tid']['expose']['identifier'] = 'audience';
l26yan's avatar
l26yan committed
603
604
605
  $handler->display->display_options['filters']['field_audience_tid']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
kpaxman's avatar
kpaxman committed
606
    16 => 0,
l26yan's avatar
l26yan committed
607
608
609
610
611
612
613
614
615
616
617
618
619
    13 => 0,
    14 => 0,
    15 => 0,
    3 => 0,
    6 => 0,
    12 => 0,
    5 => 0,
    4 => 0,
    7 => 0,
    8 => 0,
    9 => 0,
    11 => 0,
    10 => 0,
l26yan's avatar
l26yan committed
620
    17 => 0,
l26yan's avatar
l26yan committed
621
622
623
624
625
  );
  $handler->display->display_options['filters']['field_audience_tid']['type'] = 'select';
  $handler->display->display_options['filters']['field_audience_tid']['vocabulary'] = 'uwaterloo_audience';
  $handler->display->display_options['filters']['field_audience_tid']['hierarchy'] = 1;
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
626
627
628
  $handler->display->display_options['filters']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value']['field'] = 'field_event_date_value';
l26yan's avatar
l26yan committed
629
  $handler->display->display_options['filters']['field_event_date_value']['operator'] = '>=';
630
  $handler->display->display_options['filters']['field_event_date_value']['default_date'] = 'today';
l26yan's avatar
l26yan committed
631
  /* Filter criterion: Content: Date and time - end date (field_event_date:value2) */
632
633
634
  $handler->display->display_options['filters']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value2']['field'] = 'field_event_date_value2';
l26yan's avatar
l26yan committed
635
  $handler->display->display_options['filters']['field_event_date_value2']['operator'] = '<';
636
  $handler->display->display_options['filters']['field_event_date_value2']['default_date'] = 'today';
l26yan's avatar
l26yan committed
637
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
638
639
640
  $handler->display->display_options['filters']['field_event_date_value_1']['id'] = 'field_event_date_value_1';
  $handler->display->display_options['filters']['field_event_date_value_1']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value_1']['field'] = 'field_event_date_value';
l26yan's avatar
l26yan committed
641
  $handler->display->display_options['filters']['field_event_date_value_1']['operator'] = 'not empty';
642
643
644
645
646
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['filters']['field_event_date_value_2']['id'] = 'field_event_date_value_2';
  $handler->display->display_options['filters']['field_event_date_value_2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value_2']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value_2']['default_date'] = 'today';
647
648
649
650
  $handler->display->display_options['path'] = 'events';
  $handler->display->display_options['menu']['type'] = 'normal';
  $handler->display->display_options['menu']['title'] = 'Events';
  $handler->display->display_options['menu']['weight'] = '21';
651
  $handler->display->display_options['menu']['name'] = 'main-menu';
l26yan's avatar
260360    
l26yan committed
652
653
  $handler->display->display_options['menu']['context'] = 0;
  $handler->display->display_options['menu']['context_only_inline'] = 0;
654

mnshantz's avatar
mnshantz committed
655
656
657
658
  /* Display: Events Public Feed */
  $handler = $view->new_display('feed', 'Events Public Feed', 'uw_public_event_feed');
  $handler->display->display_options['defaults']['title'] = FALSE;
  $handler->display->display_options['title'] = 'Events Feed';
kpaxman's avatar
kpaxman committed
659
  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
mnshantz's avatar
mnshantz committed
660
661
  $handler->display->display_options['pager']['type'] = 'some';
  $handler->display->display_options['style_plugin'] = 'rss';
662
663
664
665
666
667
668
669
670
671
672
  $handler->display->display_options['row_plugin'] = 'rss_fields';
  $handler->display->display_options['row_options']['title_field'] = 'title';
  $handler->display->display_options['row_options']['link_field'] = 'path';
  $handler->display->display_options['row_options']['description_field'] = 'nothing';
  $handler->display->display_options['row_options']['creator_field'] = 'uid';
  $handler->display->display_options['row_options']['date_field'] = 'created';
  $handler->display->display_options['row_options']['guid_field_options'] = array(
    'guid_field' => 'path',
    'guid_field_is_permalink' => 1,
  );
  $handler->display->display_options['defaults']['fields'] = FALSE;
673
  /* Field: Content: Listing page image for social media */
674
675
676
677
678
  $handler->display->display_options['fields']['field_event_image']['id'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['table'] = 'field_data_field_event_image';
  $handler->display->display_options['fields']['field_event_image']['field'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['label'] = '';
  $handler->display->display_options['fields']['field_event_image']['exclude'] = TRUE;
679
  $handler->display->display_options['fields']['field_event_image']['element_type'] = 'p';
680
681
  $handler->display->display_options['fields']['field_event_image']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['element_default_classes'] = FALSE;
682
  $handler->display->display_options['fields']['field_event_image']['hide_empty'] = TRUE;
683
684
685
686
687
688
689
690
691
692
  $handler->display->display_options['fields']['field_event_image']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_event_image']['settings'] = array(
    'image_style' => 'thumbnail',
    'image_link' => '',
  );
  /* Field: Content: Date and time */
  $handler->display->display_options['fields']['field_event_date']['id'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['fields']['field_event_date']['field'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['label'] = '';
693
694
695
696
  $handler->display->display_options['fields']['field_event_date']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_event_date']['alter']['text'] = '<p>[field_event_date]</p>';
  $handler->display->display_options['fields']['field_event_date']['alter']['strip_tags'] = TRUE;
  $handler->display->display_options['fields']['field_event_date']['alter']['preserve_tags'] = '<p>';
697
698
699
700
701
  $handler->display->display_options['fields']['field_event_date']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['settings'] = array(
    'format_type' => 'long',
702
    'fromto' => 'value',
703
704
705
    'multiple_number' => '1',
    'multiple_from' => '',
    'multiple_to' => '',
706
    'show_remaining_days' => 0,
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
    'show_repeat_rule' => 'hide',
  );
  $handler->display->display_options['fields']['field_event_date']['group_rows'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['delta_offset'] = '0';
  $handler->display->display_options['fields']['field_event_date']['multi_type'] = 'ul';
  /* 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_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: Post date */
  $handler->display->display_options['fields']['created']['id'] = 'created';
  $handler->display->display_options['fields']['created']['table'] = 'node';
  $handler->display->display_options['fields']['created']['field'] = 'created';
727
728
729
  $handler->display->display_options['fields']['created']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['created']['date_format'] = 'custom';
  $handler->display->display_options['fields']['created']['custom_date_format'] = 'r';
730
  /* Field: Content: Body */
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
  $handler->display->display_options['fields']['body']['id'] = 'body';
  $handler->display->display_options['fields']['body']['table'] = 'field_data_body';
  $handler->display->display_options['fields']['body']['field'] = 'body';
  $handler->display->display_options['fields']['body']['label'] = '';
  $handler->display->display_options['fields']['body']['alter']['trim_whitespace'] = TRUE;
  $handler->display->display_options['fields']['body']['alter']['strip_tags'] = TRUE;
  $handler->display->display_options['fields']['body']['alter']['preserve_tags'] = '<p> <strong> <em> <a> <br>';
  $handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['body']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['body']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
  $handler->display->display_options['fields']['body']['settings'] = array(
    'trim_length' => '300',
  );
  /* Field: Content: Path */
  $handler->display->display_options['fields']['path']['id'] = 'path';
  $handler->display->display_options['fields']['path']['table'] = 'node';
  $handler->display->display_options['fields']['path']['field'] = 'path';
  $handler->display->display_options['fields']['path']['label'] = '';
  $handler->display->display_options['fields']['path']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['path']['absolute'] = TRUE;
  /* Field: Global: Custom text */
  $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']['label'] = 'Feed Elements';
757
758
  $handler->display->display_options['fields']['nothing']['alter']['text'] = '[field_event_image]
[field_event_date]
759
760
761
762
763
[body]';
  /* Field: Content: Author uid */
  $handler->display->display_options['fields']['uid']['id'] = 'uid';
  $handler->display->display_options['fields']['uid']['table'] = 'node';
  $handler->display->display_options['fields']['uid']['field'] = 'uid';
764
765
766
767
768
  $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  $handler->display->display_options['filter_groups']['operator'] = 'OR';
  $handler->display->display_options['filter_groups']['groups'] = array(
    1 => 'AND',
    2 => 'AND',
mnshantz's avatar
mnshantz committed
769
  );
770
771
772
773
774
775
776
777
778
779
780
781
782
783
  $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(
    'uw_event' => 'uw_event',
mnshantz's avatar
mnshantz committed
784
  );
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
  $handler->display->display_options['filters']['type']['group'] = 1;
  /* Filter criterion: Start date &lt;= Today */
  $handler->display->display_options['filters']['field_event_date_value_1']['id'] = 'field_event_date_value_1';
  $handler->display->display_options['filters']['field_event_date_value_1']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value_1']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value_1']['ui_name'] = 'Start date <= Today';
  $handler->display->display_options['filters']['field_event_date_value_1']['operator'] = '<=';
  $handler->display->display_options['filters']['field_event_date_value_1']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value_1']['default_date'] = 'today';
  /* Filter criterion: End date &gt;= Today */
  $handler->display->display_options['filters']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value2']['field'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['ui_name'] = 'End date >= Today';
  $handler->display->display_options['filters']['field_event_date_value2']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value2']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value2']['default_date'] = 'today';
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status_1']['id'] = 'status_1';
  $handler->display->display_options['filters']['status_1']['table'] = 'node';
  $handler->display->display_options['filters']['status_1']['field'] = 'status';
  $handler->display->display_options['filters']['status_1']['value'] = '1';
  $handler->display->display_options['filters']['status_1']['group'] = 2;
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type_1']['id'] = 'type_1';
  $handler->display->display_options['filters']['type_1']['table'] = 'node';
  $handler->display->display_options['filters']['type_1']['field'] = 'type';
  $handler->display->display_options['filters']['type_1']['value'] = array(
    'uw_event' => 'uw_event',
mnshantz's avatar
mnshantz committed
814
  );
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
  $handler->display->display_options['filters']['type_1']['group'] = 2;
  /* Filter criterion: Start date &gt;= Today */
  $handler->display->display_options['filters']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['ui_name'] = 'Start date >= Today';
  $handler->display->display_options['filters']['field_event_date_value']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value']['group'] = 2;
  $handler->display->display_options['filters']['field_event_date_value']['default_date'] = 'today';
  $handler->display->display_options['path'] = 'events/events.xml';
  $handler->display->display_options['displays'] = array(
    'page' => 'page',
    'default' => 0,
    'page_2' => 0,
    'page_3' => 0,
mnshantz's avatar
mnshantz committed
830
  );
831
832
  $handler->display->display_options['sitename_title'] = 1;

l26yan's avatar
l26yan committed
833
834
835
836
837
838
  /* Display: Events - Archive */
  $handler = $view->new_display('page', 'Events - Archive', 'events_archive_page');
  $handler->display->display_options['defaults']['title'] = FALSE;
  $handler->display->display_options['title'] = 'Events';
  $handler->display->display_options['display_description'] = 'Display all events for archive';
  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
l26yan's avatar
l26yan committed
839
  $handler->display->display_options['defaults']['group_by'] = FALSE;
l26yan's avatar
l26yan committed
840
841
842
843
844
845
846
847
848
849
850
851
  $handler->display->display_options['defaults']['access'] = FALSE;
  $handler->display->display_options['access']['type'] = 'perm';
  $handler->display->display_options['defaults']['pager'] = FALSE;
  $handler->display->display_options['pager']['type'] = 'full';
  $handler->display->display_options['pager']['options']['items_per_page'] = '25';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['pager']['options']['id'] = '0';
  $handler->display->display_options['defaults']['empty'] = FALSE;
  /* No results behavior: Global: Text area */
  $handler->display->display_options['empty']['area']['id'] = 'area';
  $handler->display->display_options['empty']['area']['table'] = 'views';
  $handler->display->display_options['empty']['area']['field'] = 'area';
kpaxman's avatar
kpaxman committed
852
853
  $handler->display->display_options['empty']['area']['empty'] = TRUE;
  $handler->display->display_options['empty']['area']['content'] = '<p>No events found.</p>';
l26yan's avatar
l26yan committed
854
  $handler->display->display_options['empty']['area']['format'] = 'uw_tf_standard';
855
856
857
858
859
860
  $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'] = '';
861
862
  $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
  $handler->display->display_options['fields']['title']['element_type'] = 'h3';
  $handler->display->display_options['fields']['title']['element_class'] = 'event-title';
  $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;
  /* Field: Content: Date and time */
  $handler->display->display_options['fields']['field_event_date']['id'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['fields']['field_event_date']['field'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['label'] = '';
  $handler->display->display_options['fields']['field_event_date']['element_type'] = 'div';
  $handler->display->display_options['fields']['field_event_date']['element_class'] = 'event-date';
  $handler->display->display_options['fields']['field_event_date']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['settings'] = array(
    'format_type' => 'long',
880
    'fromto' => 'value',
881
882
883
    'multiple_number' => '1',
    'multiple_from' => '',
    'multiple_to' => '',
884
    'show_remaining_days' => 0,
885
886
887
888
889
    'show_repeat_rule' => 'hide',
  );
  $handler->display->display_options['fields']['field_event_date']['group_rows'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['delta_offset'] = '0';
  $handler->display->display_options['fields']['field_event_date']['multi_type'] = 'ul';
890
  /* Field: Content: Listing page image for social media */
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
  $handler->display->display_options['fields']['field_event_image']['id'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['table'] = 'field_data_field_event_image';
  $handler->display->display_options['fields']['field_event_image']['field'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['label'] = '';
  $handler->display->display_options['fields']['field_event_image']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_event_image']['settings'] = array(
    'image_style' => 'thumbnail',
    'image_link' => '',
  );
  $handler->display->display_options['fields']['field_event_image']['group_column'] = 'entity_id';
  /* Field: Content: Body */
  $handler->display->display_options['fields']['body']['id'] = 'body';
  $handler->display->display_options['fields']['body']['table'] = 'field_data_body';
  $handler->display->display_options['fields']['body']['field'] = 'body';
  $handler->display->display_options['fields']['body']['label'] = '';
  $handler->display->display_options['fields']['body']['exclude'] = TRUE;
  $handler->display->display_options['fields']['body']['alter']['preserve_tags'] = '<p> <strong> <em> <a> <br>';
  $handler->display->display_options['fields']['body']['element_type'] = 'div';
  $handler->display->display_options['fields']['body']['element_class'] = 'event-summary';
  $handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['body']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['body']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
  $handler->display->display_options['fields']['body']['settings'] = array(
    'trim_length' => '600',
  );
  $handler->display->display_options['fields']['body']['group_columns'] = array(
    'entity_id' => 'entity_id',
    'value' => 'value',
    'format' => 'format',
  );
  /* Field: Headers-Replaced Body */
  $handler->display->display_options['fields']['php']['id'] = 'php';
  $handler->display->display_options['fields']['php']['table'] = 'views';
  $handler->display->display_options['fields']['php']['field'] = 'php';
  $handler->display->display_options['fields']['php']['ui_name'] = 'Headers-Replaced Body';
  $handler->display->display_options['fields']['php']['label'] = '';
  $handler->display->display_options['fields']['php']['alter']['trim_whitespace'] = TRUE;
  $handler->display->display_options['fields']['php']['alter']['strip_tags'] = TRUE;
  $handler->display->display_options['fields']['php']['alter']['preserve_tags'] = '<p> <strong> <em> <a> <br> <b> <i>';
  $handler->display->display_options['fields']['php']['element_type'] = 'div';
  $handler->display->display_options['fields']['php']['element_class'] = 'event-summary';
  $handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['php']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['php']['use_php_setup'] = 0;
  $handler->display->display_options['fields']['php']['php_output'] = '<?php
940
echo uw_ct_web_page_filter_summary($data->field_body);
941
942
943
?>';
  $handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
  $handler->display->display_options['fields']['php']['php_click_sortable'] = '';
l26yan's avatar
l26yan committed
944
  $handler->display->display_options['defaults']['sorts'] = FALSE;
945
946
947
948
949
  /* Sort criterion: Content: Sticky */
  $handler->display->display_options['sorts']['sticky']['id'] = 'sticky';
  $handler->display->display_options['sorts']['sticky']['table'] = 'node';
  $handler->display->display_options['sorts']['sticky']['field'] = 'sticky';
  $handler->display->display_options['sorts']['sticky']['order'] = 'DESC';
l26yan's avatar
l26yan committed
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
  /* Sort criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['sorts']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['sorts']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['sorts']['field_event_date_value']['field'] = 'field_event_date_value';
  $handler->display->display_options['sorts']['field_event_date_value']['order'] = 'DESC';
  /* Sort criterion: Content: Date and time - end date (field_event_date:value2) */
  $handler->display->display_options['sorts']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['sorts']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['sorts']['field_event_date_value2']['field'] = 'field_event_date_value2';
  $handler->display->display_options['sorts']['field_event_date_value2']['order'] = 'DESC';
  /* 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';
  /* Sort criterion: Content: Nid */
  $handler->display->display_options['sorts']['nid']['id'] = 'nid';
  $handler->display->display_options['sorts']['nid']['table'] = 'node';
  $handler->display->display_options['sorts']['nid']['field'] = 'nid';
  $handler->display->display_options['defaults']['arguments'] = FALSE;
  /* Contextual filter: Date: Date (node) */
  $handler->display->display_options['arguments']['date_argument']['id'] = 'date_argument';
  $handler->display->display_options['arguments']['date_argument']['table'] = 'node';
  $handler->display->display_options['arguments']['date_argument']['field'] = 'date_argument';
  $handler->display->display_options['arguments']['date_argument']['default_action'] = 'default';
974
  $handler->display->display_options['arguments']['date_argument']['default_argument_type'] = 'date';
l26yan's avatar
l26yan committed
975
  $handler->display->display_options['arguments']['date_argument']['summary']['format'] = 'default_summary';
976
  $handler->display->display_options['arguments']['date_argument']['year_range'] = '-1000:+1000';
l26yan's avatar
l26yan committed
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
  $handler->display->display_options['arguments']['date_argument']['date_fields'] = array(
    'field_data_field_event_date.field_event_date_value' => 'field_data_field_event_date.field_event_date_value',
  );
  $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  $handler->display->display_options['filter_groups']['operator'] = 'OR';
  $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(
    'uw_event' => 'uw_event',
  );
  $handler->display->display_options['filters']['type']['group'] = 1;
  /* Filter criterion: Global: Composite Filter */
  $handler->display->display_options['filters']['composite_views_filter']['id'] = 'composite_views_filter';
  $handler->display->display_options['filters']['composite_views_filter']['table'] = 'views';
For faster browsing, not all history is shown. View entire blame