-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathisu_banner.views_default.inc
257 lines (250 loc) · 18 KB
/
isu_banner.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
<?php
/**
* @file
* isu_banner.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function isu_banner_views_default_views() {
$export = array();
$view = new view();
$view->name = 'isu_banner';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'ISU Banner';
$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['css_class'] = 'isu-banner-view';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '5';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'slideshow';
$handler->display->display_options['style_options']['slideshow_type'] = 'views_slideshow_cycle';
$handler->display->display_options['style_options']['slideshow_skin'] = 'default';
$handler->display->display_options['style_options']['skin_info'] = array(
'class' => 'default',
'name' => 'Default',
'module' => 'views_slideshow',
'path' => '',
'stylesheets' => array(),
);
$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_pager']['weight'] = '1';
$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_pager']['type'] = 'views_slideshow_pager_fields';
$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_pager']['views_slideshow_pager_fields_fields'] = array(
'field_isu_banner_link' => 0,
'field_isu_banner_image' => 0,
'counter' => 0,
);
$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_controls']['weight'] = '1';
$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_controls']['type'] = 'views_slideshow_controls_text';
$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_slide_counter']['weight'] = '1';
$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['enable'] = 1;
$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['weight'] = '2';
$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['type'] = 'views_slideshow_pager_fields';
$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['views_slideshow_pager_fields_fields'] = array(
'counter' => 'counter',
'field_isu_banner_link' => 0,
'field_isu_banner_image' => 0,
);
$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_controls']['enable'] = 1;
$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_controls']['weight'] = '1';
$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_controls']['type'] = 'views_slideshow_controls_text';
$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_slide_counter']['weight'] = '1';
$handler->display->display_options['style_options']['views_slideshow_cycle']['effect'] = 'scrollLeft';
$handler->display->display_options['style_options']['views_slideshow_cycle']['transition_advanced'] = 1;
$handler->display->display_options['style_options']['views_slideshow_cycle']['timeout'] = '5000';
$handler->display->display_options['style_options']['views_slideshow_cycle']['speed'] = '700';
$handler->display->display_options['style_options']['views_slideshow_cycle']['delay'] = '0';
$handler->display->display_options['style_options']['views_slideshow_cycle']['pause'] = 0;
$handler->display->display_options['style_options']['views_slideshow_cycle']['action_advanced'] = 1;
$handler->display->display_options['style_options']['views_slideshow_cycle']['start_paused'] = 1;
$handler->display->display_options['style_options']['views_slideshow_cycle']['remember_slide_days'] = '1';
$handler->display->display_options['style_options']['views_slideshow_cycle']['items_per_slide'] = '1';
$handler->display->display_options['style_options']['views_slideshow_cycle']['wait_for_image_load_timeout'] = '3000';
$handler->display->display_options['style_options']['views_slideshow_cycle']['cleartype'] = 0;
$handler->display->display_options['style_options']['views_slideshow_cycle']['cleartypenobg'] = 0;
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Content: Link */
$handler->display->display_options['fields']['field_isu_banner_link']['id'] = 'field_isu_banner_link';
$handler->display->display_options['fields']['field_isu_banner_link']['table'] = 'field_data_field_isu_banner_link';
$handler->display->display_options['fields']['field_isu_banner_link']['field'] = 'field_isu_banner_link';
$handler->display->display_options['fields']['field_isu_banner_link']['label'] = '';
$handler->display->display_options['fields']['field_isu_banner_link']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_isu_banner_link']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_isu_banner_link']['click_sort_column'] = 'url';
$handler->display->display_options['fields']['field_isu_banner_link']['type'] = 'link_absolute';
/* Field: Content: Banner */
$handler->display->display_options['fields']['field_isu_banner_image']['id'] = 'field_isu_banner_image';
$handler->display->display_options['fields']['field_isu_banner_image']['table'] = 'field_data_field_isu_banner_image';
$handler->display->display_options['fields']['field_isu_banner_image']['field'] = 'field_isu_banner_image';
$handler->display->display_options['fields']['field_isu_banner_image']['label'] = '';
$handler->display->display_options['fields']['field_isu_banner_image']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['field_isu_banner_image']['alter']['path'] = '[field_isu_banner_link]';
$handler->display->display_options['fields']['field_isu_banner_image']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_isu_banner_image']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_isu_banner_image']['settings'] = array(
'image_style' => 'full_banner_960x340',
'image_link' => '',
);
/* Field: Global: View result counter */
$handler->display->display_options['fields']['counter']['id'] = 'counter';
$handler->display->display_options['fields']['counter']['table'] = 'views';
$handler->display->display_options['fields']['counter']['field'] = 'counter';
$handler->display->display_options['fields']['counter']['label'] = '';
$handler->display->display_options['fields']['counter']['exclude'] = TRUE;
$handler->display->display_options['fields']['counter']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['counter']['counter_start'] = '1';
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* 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(
'isu_banner' => 'isu_banner',
);
/* Display: Block Full Width */
$handler = $view->new_display('block', 'Block Full Width', 'block_banner_full');
$handler->display->display_options['block_description'] = 'ISU Full Width Banner';
/* Display: Page Admin */
$handler = $view->new_display('page', 'Page Admin', 'page_1');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['title'] = 'Admin Banners';
$handler->display->display_options['defaults']['css_class'] = FALSE;
$handler->display->display_options['css_class'] = 'isu-banner-admin';
$handler->display->display_options['display_description'] = 'Administer All Banners';
$handler->display->display_options['defaults']['access'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['access']['perm'] = 'edit any isu_banner content';
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$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['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['header'] = FALSE;
/* Header: Global: Unfiltered text */
$handler->display->display_options['header']['area_text_custom']['id'] = 'area_text_custom';
$handler->display->display_options['header']['area_text_custom']['table'] = 'views';
$handler->display->display_options['header']['area_text_custom']['field'] = 'area_text_custom';
$handler->display->display_options['header']['area_text_custom']['empty'] = TRUE;
$handler->display->display_options['header']['area_text_custom']['content'] = 'Click the banners below to edit. Banners are displayed most recent first with only the 5 most recent banners displaying in the slideshow.';
$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;
/* Field: Edit URL */
$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'] = 'Edit URL';
$handler->display->display_options['fields']['nothing']['label'] = '';
$handler->display->display_options['fields']['nothing']['exclude'] = TRUE;
$handler->display->display_options['fields']['nothing']['alter']['text'] = 'node/[nid]/edit';
$handler->display->display_options['fields']['nothing']['element_label_colon'] = 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']['alter_text'] = TRUE;
$handler->display->display_options['fields']['title']['alter']['text'] = '<h3>[title]</h3>';
$handler->display->display_options['fields']['title']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['title']['alter']['path'] = '[nothing]';
$handler->display->display_options['fields']['title']['alter']['absolute'] = TRUE;
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
/* Field: Content: Link */
$handler->display->display_options['fields']['field_isu_banner_link']['id'] = 'field_isu_banner_link';
$handler->display->display_options['fields']['field_isu_banner_link']['table'] = 'field_data_field_isu_banner_link';
$handler->display->display_options['fields']['field_isu_banner_link']['field'] = 'field_isu_banner_link';
$handler->display->display_options['fields']['field_isu_banner_link']['label'] = '';
$handler->display->display_options['fields']['field_isu_banner_link']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_isu_banner_link']['click_sort_column'] = 'url';
$handler->display->display_options['fields']['field_isu_banner_link']['type'] = 'link_absolute';
/* Field: Content: Banner */
$handler->display->display_options['fields']['field_isu_banner_image']['id'] = 'field_isu_banner_image';
$handler->display->display_options['fields']['field_isu_banner_image']['table'] = 'field_data_field_isu_banner_image';
$handler->display->display_options['fields']['field_isu_banner_image']['field'] = 'field_isu_banner_image';
$handler->display->display_options['fields']['field_isu_banner_image']['label'] = '';
$handler->display->display_options['fields']['field_isu_banner_image']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['field_isu_banner_image']['alter']['path'] = '[nothing]';
$handler->display->display_options['fields']['field_isu_banner_image']['alter']['absolute'] = TRUE;
$handler->display->display_options['fields']['field_isu_banner_image']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_isu_banner_image']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_isu_banner_image']['settings'] = array(
'image_style' => 'large',
'image_link' => '',
);
/* Field: Global: Custom text */
$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']['label'] = '';
$handler->display->display_options['fields']['nothing_1']['alter']['text'] = '<hr />';
$handler->display->display_options['fields']['nothing_1']['element_label_colon'] = FALSE;
$handler->display->display_options['path'] = 'admin/isu_banner';
/* Display: Block Content Width */
$handler = $view->new_display('block', 'Block Content Width', 'block_banner_content');
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Link */
$handler->display->display_options['fields']['field_isu_banner_link']['id'] = 'field_isu_banner_link';
$handler->display->display_options['fields']['field_isu_banner_link']['table'] = 'field_data_field_isu_banner_link';
$handler->display->display_options['fields']['field_isu_banner_link']['field'] = 'field_isu_banner_link';
$handler->display->display_options['fields']['field_isu_banner_link']['label'] = '';
$handler->display->display_options['fields']['field_isu_banner_link']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_isu_banner_link']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_isu_banner_link']['click_sort_column'] = 'url';
$handler->display->display_options['fields']['field_isu_banner_link']['type'] = 'link_absolute';
/* Field: Content: Banner */
$handler->display->display_options['fields']['field_isu_banner_image']['id'] = 'field_isu_banner_image';
$handler->display->display_options['fields']['field_isu_banner_image']['table'] = 'field_data_field_isu_banner_image';
$handler->display->display_options['fields']['field_isu_banner_image']['field'] = 'field_isu_banner_image';
$handler->display->display_options['fields']['field_isu_banner_image']['label'] = '';
$handler->display->display_options['fields']['field_isu_banner_image']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['field_isu_banner_image']['alter']['path'] = '[field_isu_banner_link]';
$handler->display->display_options['fields']['field_isu_banner_image']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_isu_banner_image']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_isu_banner_image']['settings'] = array(
'image_style' => 'content_banner_760x269',
'image_link' => '',
);
/* Field: Global: View result counter */
$handler->display->display_options['fields']['counter']['id'] = 'counter';
$handler->display->display_options['fields']['counter']['table'] = 'views';
$handler->display->display_options['fields']['counter']['field'] = 'counter';
$handler->display->display_options['fields']['counter']['label'] = '';
$handler->display->display_options['fields']['counter']['exclude'] = TRUE;
$handler->display->display_options['fields']['counter']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['counter']['counter_start'] = '1';
$handler->display->display_options['block_description'] = 'ISU Content Width Banner';
$export['isu_banner'] = $view;
return $export;
}