1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
// $Id$
|
4 |
|
|
|
5 |
|
|
/**
|
6 |
|
|
* DO NOT RE-EXPORT THIS VIEW WITHOUT CHECKING THE FORUM VID.
|
7 |
|
|
*
|
8 |
|
|
* When you export, please note the calls to variable_get('forum_nav_vocabulary')
|
9 |
|
|
* to ensure that the forum vocabulary gets the right vid.
|
10 |
|
|
*/
|
11 |
|
|
$vid = variable_get('forum_nav_vocabulary');
|
12 |
|
|
$vocabulary = taxonomy_vocabulary_load($vid);
|
13 |
|
|
|
14 |
|
|
/*
|
15 |
|
|
* View 'advanced_forum_new_topics'
|
16 |
|
|
*/
|
17 |
|
|
|
18 |
|
|
$view = new view;
|
19 |
|
|
$view->name = 'advanced_forum_new_topics';
|
20 |
|
|
$view->description = 'Shows the new or update topics in a given forum (or all forums)';
|
21 |
|
|
$view->tag = 'Advanced Forum';
|
22 |
|
|
$view->base_table = 'node';
|
23 |
|
|
$view->human_name = 'Advanced Forum new topics';
|
24 |
|
|
$view->core = 7;
|
25 |
|
|
$view->api_version = '3.0';
|
26 |
|
|
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
27 |
|
|
|
28 |
|
|
/* Display: Defaults */
|
29 |
|
|
$handler = $view->new_display('default', 'Defaults', 'default');
|
30 |
|
|
$handler->display->display_options['title'] = 'Topics with new and updated posts';
|
31 |
|
|
$handler->display->display_options['access']['type'] = 'role';
|
32 |
|
|
$handler->display->display_options['access']['role'] = array(
|
33 |
|
|
2 => 2,
|
34 |
|
|
);
|
35 |
|
|
$handler->display->display_options['cache']['type'] = 'none';
|
36 |
|
|
$handler->display->display_options['query']['type'] = 'views_query';
|
37 |
|
|
$handler->display->display_options['query']['options']['distinct'] = TRUE;
|
38 |
|
|
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
|
39 |
|
|
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
40 |
|
|
$handler->display->display_options['pager']['type'] = 'full';
|
41 |
|
|
$handler->display->display_options['pager']['options']['items_per_page'] = 20;
|
42 |
|
|
$handler->display->display_options['style_plugin'] = 'forum_topic_list';
|
43 |
|
|
$handler->display->display_options['style_options']['columns'] = array(
|
44 |
|
|
'topic_icon' => 'topic_icon',
|
45 |
|
|
'title' => 'title',
|
46 |
|
|
'timestamp' => 'title',
|
47 |
|
|
'topic_pager' => 'title',
|
48 |
|
|
'name_1' => 'title',
|
49 |
|
|
'created' => 'title',
|
50 |
|
|
'comment_count' => 'comment_count',
|
51 |
|
|
'new_comments' => 'comment_count',
|
52 |
|
|
'totalcount' => 'totalcount',
|
53 |
|
|
'last_comment_name' => 'last_updated',
|
54 |
|
|
'last_updated' => 'last_updated',
|
55 |
|
|
'sticky' => 'sticky',
|
56 |
|
|
'teaser' => 'teaser',
|
57 |
|
|
'comment' => 'comment',
|
58 |
|
|
);
|
59 |
|
|
$handler->display->display_options['style_options']['default'] = 'last_updated';
|
60 |
|
|
$handler->display->display_options['style_options']['info'] = array(
|
61 |
|
|
'topic_icon' => array(
|
62 |
|
|
'separator' => '',
|
63 |
|
|
),
|
64 |
|
|
'title' => array(
|
65 |
|
|
'sortable' => 1,
|
66 |
|
|
'separator' => ' ',
|
67 |
|
|
),
|
68 |
|
|
'name' => array(
|
69 |
|
|
'sortable' => 1,
|
70 |
|
|
'separator' => '',
|
71 |
|
|
),
|
72 |
|
|
'timestamp' => array(
|
73 |
|
|
'separator' => '',
|
74 |
|
|
),
|
75 |
|
|
'topic_pager' => array(
|
76 |
|
|
'separator' => '',
|
77 |
|
|
),
|
78 |
|
|
'name_1' => array(
|
79 |
|
|
'sortable' => 0,
|
80 |
|
|
'separator' => '',
|
81 |
|
|
),
|
82 |
|
|
'created' => array(
|
83 |
|
|
'sortable' => 0,
|
84 |
|
|
'separator' => '',
|
85 |
|
|
),
|
86 |
|
|
'comment_count' => array(
|
87 |
|
|
'sortable' => 1,
|
88 |
|
|
'separator' => '<br />',
|
89 |
|
|
),
|
90 |
|
|
'new_comments' => array(
|
91 |
|
|
'separator' => '',
|
92 |
|
|
),
|
93 |
|
|
'totalcount' => array(
|
94 |
|
|
'sortable' => 1,
|
95 |
|
|
'separator' => '',
|
96 |
|
|
),
|
97 |
|
|
'last_comment_name' => array(
|
98 |
|
|
'sortable' => 1,
|
99 |
|
|
'separator' => '<br />',
|
100 |
|
|
),
|
101 |
|
|
'last_updated' => array(
|
102 |
|
|
'sortable' => 1,
|
103 |
|
|
'separator' => '<br />',
|
104 |
|
|
),
|
105 |
|
|
'sticky' => array(
|
106 |
|
|
'sortable' => 0,
|
107 |
|
|
'separator' => '',
|
108 |
|
|
),
|
109 |
|
|
'teaser' => array(
|
110 |
|
|
'separator' => '',
|
111 |
|
|
),
|
112 |
|
|
'comment' => array(
|
113 |
|
|
'sortable' => 0,
|
114 |
|
|
'separator' => '',
|
115 |
|
|
),
|
116 |
|
|
);
|
117 |
|
|
$handler->display->display_options['style_options']['override'] = 0;
|
118 |
|
|
$handler->display->display_options['style_options']['sticky'] = 1;
|
119 |
|
|
$handler->display->display_options['style_options']['order'] = 'desc';
|
120 |
|
|
$handler->display->display_options['style_options']['tid'] = 'filter.term_node_tid_depth';
|
121 |
|
|
/* No results behavior: Global: Text area */
|
122 |
|
|
$handler->display->display_options['empty']['text']['id'] = 'area';
|
123 |
|
|
$handler->display->display_options['empty']['text']['table'] = 'views';
|
124 |
|
|
$handler->display->display_options['empty']['text']['field'] = 'area';
|
125 |
|
|
$handler->display->display_options['empty']['text']['empty'] = FALSE;
|
126 |
|
|
$handler->display->display_options['empty']['text']['content'] = 'No new or updated posts.';
|
127 |
|
|
/* Relationship: Content: Taxonomy terms on node */
|
128 |
|
|
$handler->display->display_options['relationships']['term_node_tid']['id'] = 'term_node_tid';
|
129 |
|
|
$handler->display->display_options['relationships']['term_node_tid']['table'] = 'node';
|
130 |
|
|
$handler->display->display_options['relationships']['term_node_tid']['field'] = 'term_node_tid';
|
131 |
|
|
/* Relationship: Content: Author */
|
132 |
|
|
$handler->display->display_options['relationships']['uid']['id'] = 'uid';
|
133 |
|
|
$handler->display->display_options['relationships']['uid']['table'] = 'node';
|
134 |
|
|
$handler->display->display_options['relationships']['uid']['field'] = 'uid';
|
135 |
|
|
/* Field: Content: Body */
|
136 |
|
|
$handler->display->display_options['fields']['teaser']['id'] = 'teaser';
|
137 |
|
|
$handler->display->display_options['fields']['teaser']['table'] = 'field_data_body';
|
138 |
|
|
$handler->display->display_options['fields']['teaser']['field'] = 'body';
|
139 |
|
|
$handler->display->display_options['fields']['teaser']['label'] = 'Teaser';
|
140 |
|
|
$handler->display->display_options['fields']['teaser']['exclude'] = TRUE;
|
141 |
|
|
$handler->display->display_options['fields']['teaser']['alter']['alter_text'] = 0;
|
142 |
|
|
$handler->display->display_options['fields']['teaser']['alter']['make_link'] = 0;
|
143 |
|
|
$handler->display->display_options['fields']['teaser']['alter']['max_length'] = '200';
|
144 |
|
|
$handler->display->display_options['fields']['teaser']['alter']['word_boundary'] = 1;
|
145 |
|
|
$handler->display->display_options['fields']['teaser']['alter']['ellipsis'] = 1;
|
146 |
|
|
$handler->display->display_options['fields']['teaser']['alter']['strip_tags'] = 1;
|
147 |
|
|
$handler->display->display_options['fields']['teaser']['alter']['trim'] = 0;
|
148 |
|
|
$handler->display->display_options['fields']['teaser']['alter']['html'] = 0;
|
149 |
|
|
$handler->display->display_options['fields']['teaser']['hide_empty'] = 0;
|
150 |
|
|
$handler->display->display_options['fields']['teaser']['type'] = 'text_summary_or_trimmed';
|
151 |
|
|
$handler->display->display_options['fields']['teaser']['settings'] = array(
|
152 |
|
|
'trim_length' => '200',
|
153 |
|
|
);
|
154 |
|
|
/* Field: Content: Topic Icon */
|
155 |
|
|
$handler->display->display_options['fields']['topic_icon']['id'] = 'topic_icon';
|
156 |
|
|
$handler->display->display_options['fields']['topic_icon']['table'] = 'node';
|
157 |
|
|
$handler->display->display_options['fields']['topic_icon']['field'] = 'topic_icon';
|
158 |
|
|
$handler->display->display_options['fields']['topic_icon']['label'] = '';
|
159 |
|
|
$handler->display->display_options['fields']['topic_icon']['alter']['alter_text'] = 0;
|
160 |
|
|
$handler->display->display_options['fields']['topic_icon']['alter']['make_link'] = 0;
|
161 |
|
|
$handler->display->display_options['fields']['topic_icon']['alter']['word_boundary'] = 1;
|
162 |
|
|
$handler->display->display_options['fields']['topic_icon']['alter']['ellipsis'] = 1;
|
163 |
|
|
$handler->display->display_options['fields']['topic_icon']['alter']['strip_tags'] = 0;
|
164 |
|
|
$handler->display->display_options['fields']['topic_icon']['alter']['trim'] = 0;
|
165 |
|
|
$handler->display->display_options['fields']['topic_icon']['alter']['html'] = 0;
|
166 |
|
|
$handler->display->display_options['fields']['topic_icon']['hot_topic_threshold'] = '15';
|
167 |
|
|
/* Field: Content: Title */
|
168 |
|
|
$handler->display->display_options['fields']['title']['id'] = 'title';
|
169 |
|
|
$handler->display->display_options['fields']['title']['table'] = 'node';
|
170 |
|
|
$handler->display->display_options['fields']['title']['field'] = 'title';
|
171 |
|
|
$handler->display->display_options['fields']['title']['label'] = 'Topic / Topic starter';
|
172 |
|
|
$handler->display->display_options['fields']['title']['alter']['alter_text'] = 1;
|
173 |
|
|
$handler->display->display_options['fields']['title']['alter']['text'] = '<span class="forum-topic-title">[title]</span> ';
|
174 |
|
|
$handler->display->display_options['fields']['title']['alter']['make_link'] = 1;
|
175 |
|
|
$handler->display->display_options['fields']['title']['alter']['path'] = 'node/[nid]';
|
176 |
|
|
$handler->display->display_options['fields']['title']['alter']['alt'] = '[teaser]';
|
177 |
|
|
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1;
|
178 |
|
|
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1;
|
179 |
|
|
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
|
180 |
|
|
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
|
181 |
|
|
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
|
182 |
|
|
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
|
183 |
|
|
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
|
184 |
|
|
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
|
185 |
|
|
/* Field: Has new content */
|
186 |
|
|
$handler->display->display_options['fields']['timestamp']['id'] = 'timestamp';
|
187 |
|
|
$handler->display->display_options['fields']['timestamp']['table'] = 'history';
|
188 |
|
|
$handler->display->display_options['fields']['timestamp']['field'] = 'timestamp';
|
189 |
|
|
$handler->display->display_options['fields']['timestamp']['ui_name'] = 'Has new content';
|
190 |
|
|
$handler->display->display_options['fields']['timestamp']['alter']['alter_text'] = 1;
|
191 |
|
|
$handler->display->display_options['fields']['timestamp']['alter']['text'] = '[timestamp] ';
|
192 |
|
|
$handler->display->display_options['fields']['timestamp']['alter']['make_link'] = 0;
|
193 |
|
|
$handler->display->display_options['fields']['timestamp']['alter']['absolute'] = 0;
|
194 |
|
|
$handler->display->display_options['fields']['timestamp']['alter']['word_boundary'] = 1;
|
195 |
|
|
$handler->display->display_options['fields']['timestamp']['alter']['ellipsis'] = 1;
|
196 |
|
|
$handler->display->display_options['fields']['timestamp']['alter']['strip_tags'] = 0;
|
197 |
|
|
$handler->display->display_options['fields']['timestamp']['alter']['trim'] = 0;
|
198 |
|
|
$handler->display->display_options['fields']['timestamp']['alter']['html'] = 0;
|
199 |
|
|
$handler->display->display_options['fields']['timestamp']['element_label_colon'] = 1;
|
200 |
|
|
$handler->display->display_options['fields']['timestamp']['element_default_classes'] = 1;
|
201 |
|
|
$handler->display->display_options['fields']['timestamp']['hide_empty'] = 0;
|
202 |
|
|
$handler->display->display_options['fields']['timestamp']['link_to_node'] = 0;
|
203 |
|
|
$handler->display->display_options['fields']['timestamp']['comments'] = 1;
|
204 |
|
|
/* Field: Content: Topic Pager */
|
205 |
|
|
$handler->display->display_options['fields']['topic_pager']['id'] = 'topic_pager';
|
206 |
|
|
$handler->display->display_options['fields']['topic_pager']['table'] = 'node';
|
207 |
|
|
$handler->display->display_options['fields']['topic_pager']['field'] = 'topic_pager';
|
208 |
|
|
$handler->display->display_options['fields']['topic_pager']['alter']['alter_text'] = 0;
|
209 |
|
|
$handler->display->display_options['fields']['topic_pager']['alter']['make_link'] = 0;
|
210 |
|
|
$handler->display->display_options['fields']['topic_pager']['alter']['word_boundary'] = 1;
|
211 |
|
|
$handler->display->display_options['fields']['topic_pager']['alter']['ellipsis'] = 1;
|
212 |
|
|
$handler->display->display_options['fields']['topic_pager']['alter']['strip_tags'] = 0;
|
213 |
|
|
$handler->display->display_options['fields']['topic_pager']['alter']['trim'] = 0;
|
214 |
|
|
$handler->display->display_options['fields']['topic_pager']['alter']['html'] = 0;
|
215 |
|
|
$handler->display->display_options['fields']['topic_pager']['total_pages_shown'] = '3';
|
216 |
|
|
/* Field: User: Name */
|
217 |
|
|
$handler->display->display_options['fields']['name_1']['id'] = 'name_1';
|
218 |
|
|
$handler->display->display_options['fields']['name_1']['table'] = 'users';
|
219 |
|
|
$handler->display->display_options['fields']['name_1']['field'] = 'name';
|
220 |
|
|
$handler->display->display_options['fields']['name_1']['relationship'] = 'uid';
|
221 |
|
|
$handler->display->display_options['fields']['name_1']['alter']['alter_text'] = 1;
|
222 |
|
|
$handler->display->display_options['fields']['name_1']['alter']['text'] = '<br /> by [name_1] ';
|
223 |
|
|
$handler->display->display_options['fields']['name_1']['alter']['make_link'] = 0;
|
224 |
|
|
$handler->display->display_options['fields']['name_1']['alter']['word_boundary'] = 1;
|
225 |
|
|
$handler->display->display_options['fields']['name_1']['alter']['ellipsis'] = 1;
|
226 |
|
|
$handler->display->display_options['fields']['name_1']['alter']['strip_tags'] = 0;
|
227 |
|
|
$handler->display->display_options['fields']['name_1']['alter']['trim'] = 0;
|
228 |
|
|
$handler->display->display_options['fields']['name_1']['alter']['html'] = 0;
|
229 |
|
|
$handler->display->display_options['fields']['name_1']['hide_empty'] = 0;
|
230 |
|
|
$handler->display->display_options['fields']['name_1']['empty_zero'] = 0;
|
231 |
|
|
$handler->display->display_options['fields']['name_1']['link_to_user'] = 1;
|
232 |
|
|
$handler->display->display_options['fields']['name_1']['overwrite_anonymous'] = 0;
|
233 |
|
|
/* Field: Content: Post date */
|
234 |
|
|
$handler->display->display_options['fields']['created']['id'] = 'created';
|
235 |
|
|
$handler->display->display_options['fields']['created']['table'] = 'node';
|
236 |
|
|
$handler->display->display_options['fields']['created']['field'] = 'created';
|
237 |
|
|
$handler->display->display_options['fields']['created']['alter']['alter_text'] = 1;
|
238 |
|
|
$handler->display->display_options['fields']['created']['alter']['text'] = 'on [created]';
|
239 |
|
|
$handler->display->display_options['fields']['created']['alter']['make_link'] = 0;
|
240 |
|
|
$handler->display->display_options['fields']['created']['alter']['word_boundary'] = 1;
|
241 |
|
|
$handler->display->display_options['fields']['created']['alter']['ellipsis'] = 1;
|
242 |
|
|
$handler->display->display_options['fields']['created']['alter']['strip_tags'] = 0;
|
243 |
|
|
$handler->display->display_options['fields']['created']['alter']['trim'] = 0;
|
244 |
|
|
$handler->display->display_options['fields']['created']['alter']['html'] = 0;
|
245 |
|
|
$handler->display->display_options['fields']['created']['hide_empty'] = 0;
|
246 |
|
|
$handler->display->display_options['fields']['created']['empty_zero'] = 0;
|
247 |
|
|
/* Field: Content: Comment count */
|
248 |
|
|
$handler->display->display_options['fields']['comment_count']['id'] = 'comment_count';
|
249 |
|
|
$handler->display->display_options['fields']['comment_count']['table'] = 'node_comment_statistics';
|
250 |
|
|
$handler->display->display_options['fields']['comment_count']['field'] = 'comment_count';
|
251 |
|
|
$handler->display->display_options['fields']['comment_count']['label'] = 'Replies';
|
252 |
|
|
$handler->display->display_options['fields']['comment_count']['alter']['alter_text'] = 0;
|
253 |
|
|
$handler->display->display_options['fields']['comment_count']['alter']['make_link'] = 0;
|
254 |
|
|
$handler->display->display_options['fields']['comment_count']['alter']['word_boundary'] = 1;
|
255 |
|
|
$handler->display->display_options['fields']['comment_count']['alter']['ellipsis'] = 1;
|
256 |
|
|
$handler->display->display_options['fields']['comment_count']['alter']['strip_tags'] = 0;
|
257 |
|
|
$handler->display->display_options['fields']['comment_count']['alter']['trim'] = 0;
|
258 |
|
|
$handler->display->display_options['fields']['comment_count']['alter']['html'] = 0;
|
259 |
|
|
$handler->display->display_options['fields']['comment_count']['empty'] = '0';
|
260 |
|
|
$handler->display->display_options['fields']['comment_count']['hide_empty'] = 0;
|
261 |
|
|
$handler->display->display_options['fields']['comment_count']['empty_zero'] = 1;
|
262 |
|
|
/* Field: Content: New comments */
|
263 |
|
|
$handler->display->display_options['fields']['new_comments']['id'] = 'new_comments';
|
264 |
|
|
$handler->display->display_options['fields']['new_comments']['table'] = 'node';
|
265 |
|
|
$handler->display->display_options['fields']['new_comments']['field'] = 'new_comments';
|
266 |
|
|
$handler->display->display_options['fields']['new_comments']['alter']['alter_text'] = 0;
|
267 |
|
|
$handler->display->display_options['fields']['new_comments']['alter']['make_link'] = 0;
|
268 |
|
|
$handler->display->display_options['fields']['new_comments']['alter']['word_boundary'] = 1;
|
269 |
|
|
$handler->display->display_options['fields']['new_comments']['alter']['ellipsis'] = 1;
|
270 |
|
|
$handler->display->display_options['fields']['new_comments']['alter']['strip_tags'] = 0;
|
271 |
|
|
$handler->display->display_options['fields']['new_comments']['alter']['trim'] = 0;
|
272 |
|
|
$handler->display->display_options['fields']['new_comments']['alter']['html'] = 0;
|
273 |
|
|
$handler->display->display_options['fields']['new_comments']['hide_empty'] = 1;
|
274 |
|
|
$handler->display->display_options['fields']['new_comments']['empty_zero'] = 0;
|
275 |
|
|
$handler->display->display_options['fields']['new_comments']['prefix'] = ' View ';
|
276 |
|
|
$handler->display->display_options['fields']['new_comments']['suffix'] = ' new';
|
277 |
|
|
$handler->display->display_options['fields']['new_comments']['link_to_comment'] = 1;
|
278 |
|
|
/* Field: Content statistics: Total views */
|
279 |
|
|
$handler->display->display_options['fields']['totalcount']['id'] = 'totalcount';
|
280 |
|
|
$handler->display->display_options['fields']['totalcount']['table'] = 'node_counter';
|
281 |
|
|
$handler->display->display_options['fields']['totalcount']['field'] = 'totalcount';
|
282 |
|
|
$handler->display->display_options['fields']['totalcount']['label'] = 'Views';
|
283 |
|
|
$handler->display->display_options['fields']['totalcount']['alter']['alter_text'] = 0;
|
284 |
|
|
$handler->display->display_options['fields']['totalcount']['alter']['make_link'] = 0;
|
285 |
|
|
$handler->display->display_options['fields']['totalcount']['alter']['word_boundary'] = 1;
|
286 |
|
|
$handler->display->display_options['fields']['totalcount']['alter']['ellipsis'] = 1;
|
287 |
|
|
$handler->display->display_options['fields']['totalcount']['alter']['strip_tags'] = 0;
|
288 |
|
|
$handler->display->display_options['fields']['totalcount']['alter']['trim'] = 0;
|
289 |
|
|
$handler->display->display_options['fields']['totalcount']['alter']['html'] = 0;
|
290 |
|
|
$handler->display->display_options['fields']['totalcount']['empty'] = '0';
|
291 |
|
|
$handler->display->display_options['fields']['totalcount']['hide_empty'] = 0;
|
292 |
|
|
$handler->display->display_options['fields']['totalcount']['empty_zero'] = 1;
|
293 |
|
|
/* Field: Content: Last comment author */
|
294 |
|
|
$handler->display->display_options['fields']['last_comment_name']['id'] = 'last_comment_name';
|
295 |
|
|
$handler->display->display_options['fields']['last_comment_name']['table'] = 'node_comment_statistics';
|
296 |
|
|
$handler->display->display_options['fields']['last_comment_name']['field'] = 'last_comment_name';
|
297 |
|
|
$handler->display->display_options['fields']['last_comment_name']['alter']['alter_text'] = 1;
|
298 |
|
|
$handler->display->display_options['fields']['last_comment_name']['alter']['text'] = 'by [last_comment_name]';
|
299 |
|
|
$handler->display->display_options['fields']['last_comment_name']['alter']['make_link'] = 0;
|
300 |
|
|
$handler->display->display_options['fields']['last_comment_name']['alter']['word_boundary'] = 1;
|
301 |
|
|
$handler->display->display_options['fields']['last_comment_name']['alter']['ellipsis'] = 1;
|
302 |
|
|
$handler->display->display_options['fields']['last_comment_name']['alter']['strip_tags'] = 0;
|
303 |
|
|
$handler->display->display_options['fields']['last_comment_name']['alter']['trim'] = 0;
|
304 |
|
|
$handler->display->display_options['fields']['last_comment_name']['alter']['html'] = 0;
|
305 |
|
|
$handler->display->display_options['fields']['last_comment_name']['hide_empty'] = 0;
|
306 |
|
|
$handler->display->display_options['fields']['last_comment_name']['empty_zero'] = 0;
|
307 |
|
|
/* Field: Content: Updated/commented date */
|
308 |
|
|
$handler->display->display_options['fields']['last_updated']['id'] = 'last_updated';
|
309 |
|
|
$handler->display->display_options['fields']['last_updated']['table'] = 'node_comment_statistics';
|
310 |
|
|
$handler->display->display_options['fields']['last_updated']['field'] = 'last_updated';
|
311 |
|
|
$handler->display->display_options['fields']['last_updated']['label'] = 'Last update';
|
312 |
|
|
$handler->display->display_options['fields']['last_updated']['alter']['alter_text'] = 0;
|
313 |
|
|
$handler->display->display_options['fields']['last_updated']['alter']['make_link'] = 0;
|
314 |
|
|
$handler->display->display_options['fields']['last_updated']['alter']['word_boundary'] = 1;
|
315 |
|
|
$handler->display->display_options['fields']['last_updated']['alter']['ellipsis'] = 1;
|
316 |
|
|
$handler->display->display_options['fields']['last_updated']['alter']['strip_tags'] = 0;
|
317 |
|
|
$handler->display->display_options['fields']['last_updated']['alter']['trim'] = 0;
|
318 |
|
|
$handler->display->display_options['fields']['last_updated']['alter']['html'] = 0;
|
319 |
|
|
$handler->display->display_options['fields']['last_updated']['hide_empty'] = 0;
|
320 |
|
|
$handler->display->display_options['fields']['last_updated']['empty_zero'] = 0;
|
321 |
|
|
/* Field: Taxonomy term: Name */
|
322 |
|
|
$handler->display->display_options['fields']['name']['id'] = 'name';
|
323 |
|
|
$handler->display->display_options['fields']['name']['table'] = 'taxonomy_term_data';
|
324 |
|
|
$handler->display->display_options['fields']['name']['field'] = 'name';
|
325 |
|
|
$handler->display->display_options['fields']['name']['relationship'] = 'term_node_tid';
|
326 |
|
|
$handler->display->display_options['fields']['name']['label'] = 'Forum';
|
327 |
|
|
$handler->display->display_options['fields']['name']['alter']['alter_text'] = 0;
|
328 |
|
|
$handler->display->display_options['fields']['name']['alter']['make_link'] = 0;
|
329 |
|
|
$handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1;
|
330 |
|
|
$handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1;
|
331 |
|
|
$handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0;
|
332 |
|
|
$handler->display->display_options['fields']['name']['alter']['trim'] = 0;
|
333 |
|
|
$handler->display->display_options['fields']['name']['alter']['html'] = 0;
|
334 |
|
|
$handler->display->display_options['fields']['name']['link_to_taxonomy'] = 1;
|
335 |
|
|
/* Field: Content: Sticky */
|
336 |
|
|
$handler->display->display_options['fields']['sticky']['id'] = 'sticky';
|
337 |
|
|
$handler->display->display_options['fields']['sticky']['table'] = 'node';
|
338 |
|
|
$handler->display->display_options['fields']['sticky']['field'] = 'sticky';
|
339 |
|
|
$handler->display->display_options['fields']['sticky']['exclude'] = TRUE;
|
340 |
|
|
$handler->display->display_options['fields']['sticky']['alter']['alter_text'] = 0;
|
341 |
|
|
$handler->display->display_options['fields']['sticky']['alter']['make_link'] = 0;
|
342 |
|
|
$handler->display->display_options['fields']['sticky']['alter']['word_boundary'] = 1;
|
343 |
|
|
$handler->display->display_options['fields']['sticky']['alter']['ellipsis'] = 1;
|
344 |
|
|
$handler->display->display_options['fields']['sticky']['alter']['strip_tags'] = 0;
|
345 |
|
|
$handler->display->display_options['fields']['sticky']['alter']['trim'] = 0;
|
346 |
|
|
$handler->display->display_options['fields']['sticky']['alter']['html'] = 0;
|
347 |
|
|
$handler->display->display_options['fields']['sticky']['not'] = 0;
|
348 |
|
|
/* Field: Content: Comment status */
|
349 |
|
|
$handler->display->display_options['fields']['comment']['id'] = 'comment';
|
350 |
|
|
$handler->display->display_options['fields']['comment']['table'] = 'node';
|
351 |
|
|
$handler->display->display_options['fields']['comment']['field'] = 'comment';
|
352 |
|
|
$handler->display->display_options['fields']['comment']['exclude'] = TRUE;
|
353 |
|
|
$handler->display->display_options['fields']['comment']['alter']['alter_text'] = 0;
|
354 |
|
|
$handler->display->display_options['fields']['comment']['alter']['make_link'] = 0;
|
355 |
|
|
$handler->display->display_options['fields']['comment']['alter']['word_boundary'] = 1;
|
356 |
|
|
$handler->display->display_options['fields']['comment']['alter']['ellipsis'] = 1;
|
357 |
|
|
$handler->display->display_options['fields']['comment']['alter']['strip_tags'] = 0;
|
358 |
|
|
$handler->display->display_options['fields']['comment']['alter']['trim'] = 0;
|
359 |
|
|
$handler->display->display_options['fields']['comment']['alter']['html'] = 0;
|
360 |
|
|
/* Sort criterion: Content: Sticky */
|
361 |
|
|
$handler->display->display_options['sorts']['sticky']['id'] = 'sticky';
|
362 |
|
|
$handler->display->display_options['sorts']['sticky']['table'] = 'node';
|
363 |
|
|
$handler->display->display_options['sorts']['sticky']['field'] = 'sticky';
|
364 |
|
|
$handler->display->display_options['sorts']['sticky']['order'] = 'DESC';
|
365 |
|
|
/* Sort criterion: Content: Updated/commented date */
|
366 |
|
|
$handler->display->display_options['sorts']['last_updated']['id'] = 'last_updated';
|
367 |
|
|
$handler->display->display_options['sorts']['last_updated']['table'] = 'node_comment_statistics';
|
368 |
|
|
$handler->display->display_options['sorts']['last_updated']['field'] = 'last_updated';
|
369 |
|
|
$handler->display->display_options['sorts']['last_updated']['order'] = 'DESC';
|
370 |
|
|
/* Filter criterion: Content: Published */
|
371 |
|
|
$handler->display->display_options['filters']['status']['id'] = 'status';
|
372 |
|
|
$handler->display->display_options['filters']['status']['table'] = 'node';
|
373 |
|
|
$handler->display->display_options['filters']['status']['field'] = 'status';
|
374 |
|
|
$handler->display->display_options['filters']['status']['value'] = '1';
|
375 |
|
|
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
376 |
|
|
/* Filter criterion: Content: Has new content */
|
377 |
|
|
$handler->display->display_options['filters']['timestamp']['id'] = 'timestamp';
|
378 |
|
|
$handler->display->display_options['filters']['timestamp']['table'] = 'history';
|
379 |
|
|
$handler->display->display_options['filters']['timestamp']['field'] = 'timestamp';
|
380 |
|
|
$handler->display->display_options['filters']['timestamp']['expose']['operator'] = FALSE;
|
381 |
|
|
/* Filter criterion: Taxonomy term: Vocabulary */
|
382 |
|
|
$handler->display->display_options['filters']['vid']['id'] = 'vid';
|
383 |
|
|
$handler->display->display_options['filters']['vid']['table'] = 'taxonomy_term_data';
|
384 |
|
|
$handler->display->display_options['filters']['vid']['field'] = 'vid';
|
385 |
|
|
$handler->display->display_options['filters']['vid']['relationship'] = 'term_node_tid';
|
386 |
|
|
$handler->display->display_options['filters']['vid']['value'] = array(
|
387 |
|
|
$vid => $vid,
|
388 |
|
|
);
|
389 |
|
|
$handler->display->display_options['filters']['vid']['expose']['operator'] = FALSE;
|
390 |
|
|
/* Filter criterion: Content: Has taxonomy terms (with depth) */
|
391 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['id'] = 'term_node_tid_depth';
|
392 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['table'] = 'node';
|
393 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['field'] = 'term_node_tid_depth';
|
394 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['exposed'] = TRUE;
|
395 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['expose']['operator_id'] = 'term_node_tid_depth_op';
|
396 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['expose']['label'] = 'Show new & updated topics in:';
|
397 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['expose']['operator'] = 'term_node_tid_depth_op';
|
398 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['expose']['identifier'] = 'forum';
|
399 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['expose']['remember'] = 1;
|
400 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['expose']['reduce'] = 0;
|
401 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['reduce_duplicates'] = 0;
|
402 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['type'] = 'select';
|
403 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['vocabulary'] = $vocabulary->machine_name;
|
404 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['hierarchy'] = 1;
|
405 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['error_message'] = 1;
|
406 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['depth'] = '2';
|
407 |
|
|
|
408 |
|
|
/* Display: Page */
|
409 |
|
|
$handler = $view->new_display('page', 'Page', 'page_1');
|
410 |
|
|
$handler->display->display_options['path'] = 'forum/new';
|
411 |
|
|
$handler->display->display_options['menu']['type'] = 'tab';
|
412 |
|
|
$handler->display->display_options['menu']['title'] = 'New & updated topics';
|
413 |
|
|
$handler->display->display_options['menu']['weight'] = '2';
|
414 |
|
|
$translatables['advanced_forum_new_topics'] = array(
|
415 |
|
|
t('Defaults'),
|
416 |
|
|
t('Topics with new and updated posts'),
|
417 |
|
|
t('more'),
|
418 |
|
|
t('Apply'),
|
419 |
|
|
t('Reset'),
|
420 |
|
|
t('Sort by'),
|
421 |
|
|
t('Asc'),
|
422 |
|
|
t('Desc'),
|
423 |
|
|
t('Items per page'),
|
424 |
|
|
t('- All -'),
|
425 |
|
|
t('Offset'),
|
426 |
|
|
t('No new or updated posts.'),
|
427 |
|
|
t('term'),
|
428 |
|
|
t('author'),
|
429 |
|
|
t('Teaser'),
|
430 |
|
|
t('Topic / Topic starter'),
|
431 |
|
|
t('<span class="forum-topic-title">[title]</span> '),
|
432 |
|
|
t('node/[nid]'),
|
433 |
|
|
t('[teaser]'),
|
434 |
|
|
t('Has new content'),
|
435 |
|
|
t('[timestamp] '),
|
436 |
|
|
t('Topic Pager'),
|
437 |
|
|
t('Name'),
|
438 |
|
|
t('<br /> by [name_1] '),
|
439 |
|
|
t('Post date'),
|
440 |
|
|
t('on [created]'),
|
441 |
|
|
t('Replies'),
|
442 |
|
|
t('.'),
|
443 |
|
|
t(','),
|
444 |
|
|
t('New comments'),
|
445 |
|
|
t(' View '),
|
446 |
|
|
t(' new'),
|
447 |
|
|
t('Views'),
|
448 |
|
|
t('Last comment author'),
|
449 |
|
|
t('by [last_comment_name]'),
|
450 |
|
|
t('Last update'),
|
451 |
|
|
t('Forum'),
|
452 |
|
|
t('Sticky'),
|
453 |
|
|
t('Comment status'),
|
454 |
|
|
t('Show new & updated topics in:'),
|
455 |
|
|
t('Page'),
|
456 |
13c3c9b4
|
Assos Assos
|
t('New & updated topics'),
|
457 |
85ad3d82
|
Assos Assos
|
);
|
458 |
|
|
|
459 |
|
|
// Get rid of the views counter if statistics not enabled.
|
460 |
|
|
if (!module_exists('statistics')) {
|
461 |
|
|
unset($handler->display->display_options['fields']['totalcount']);
|
462 |
|
|
unset($handler->display->display_options['style_options']['columns']['totalcount']);
|
463 |
|
|
} |