debut_media.views_default.inc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <?php
  2. /**
  3. * @file
  4. * debut_media.views_default.inc
  5. */
  6. /**
  7. * Implements hook_views_default_views().
  8. */
  9. function debut_media_views_default_views() {
  10. $export = array();
  11. $view = new view;
  12. $view->name = 'media';
  13. $view->description = 'Displays of media including a page and a carousel of promoted items.';
  14. $view->tag = '';
  15. $view->base_table = 'file_managed';
  16. $view->human_name = 'Media';
  17. $view->core = 7;
  18. $view->api_version = '3.0';
  19. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  20. /* Display: Defaults */
  21. $handler = $view->new_display('default', 'Defaults', 'default');
  22. $handler->display->display_options['use_more_text'] = '';
  23. $handler->display->display_options['access']['type'] = 'none';
  24. $handler->display->display_options['cache']['type'] = 'none';
  25. $handler->display->display_options['query']['type'] = 'views_query';
  26. $handler->display->display_options['query']['options']['query_comment'] = FALSE;
  27. $handler->display->display_options['exposed_form']['type'] = 'basic';
  28. $handler->display->display_options['pager']['type'] = 'full';
  29. $handler->display->display_options['pager']['options']['items_per_page'] = '15';
  30. $handler->display->display_options['pager']['options']['offset'] = '0';
  31. $handler->display->display_options['pager']['options']['id'] = '0';
  32. $handler->display->display_options['pager']['options']['expose']['items_per_page_options_all'] = 0;
  33. $handler->display->display_options['style_plugin'] = 'default';
  34. $handler->display->display_options['row_plugin'] = 'fields';
  35. /* Field: File: File ID */
  36. $handler->display->display_options['fields']['fid']['id'] = 'fid';
  37. $handler->display->display_options['fields']['fid']['table'] = 'file_managed';
  38. $handler->display->display_options['fields']['fid']['field'] = 'fid';
  39. $handler->display->display_options['fields']['fid']['exclude'] = TRUE;
  40. $handler->display->display_options['fields']['fid']['alter']['alter_text'] = 0;
  41. $handler->display->display_options['fields']['fid']['alter']['make_link'] = 0;
  42. $handler->display->display_options['fields']['fid']['alter']['absolute'] = 0;
  43. $handler->display->display_options['fields']['fid']['alter']['word_boundary'] = 1;
  44. $handler->display->display_options['fields']['fid']['alter']['ellipsis'] = 1;
  45. $handler->display->display_options['fields']['fid']['alter']['strip_tags'] = 0;
  46. $handler->display->display_options['fields']['fid']['alter']['trim'] = 0;
  47. $handler->display->display_options['fields']['fid']['alter']['html'] = 0;
  48. $handler->display->display_options['fields']['fid']['element_label_colon'] = 1;
  49. $handler->display->display_options['fields']['fid']['element_default_classes'] = 1;
  50. $handler->display->display_options['fields']['fid']['hide_empty'] = 0;
  51. $handler->display->display_options['fields']['fid']['empty_zero'] = 0;
  52. $handler->display->display_options['fields']['fid']['link_to_file'] = 0;
  53. /* Field: File: File */
  54. $handler->display->display_options['fields']['rendered']['id'] = 'rendered';
  55. $handler->display->display_options['fields']['rendered']['table'] = 'file_managed';
  56. $handler->display->display_options['fields']['rendered']['field'] = 'rendered';
  57. $handler->display->display_options['fields']['rendered']['label'] = '';
  58. $handler->display->display_options['fields']['rendered']['alter']['alter_text'] = 0;
  59. $handler->display->display_options['fields']['rendered']['alter']['make_link'] = 1;
  60. $handler->display->display_options['fields']['rendered']['alter']['path'] = 'file/[fid]';
  61. $handler->display->display_options['fields']['rendered']['alter']['absolute'] = 0;
  62. $handler->display->display_options['fields']['rendered']['alter']['external'] = 0;
  63. $handler->display->display_options['fields']['rendered']['alter']['replace_spaces'] = 0;
  64. $handler->display->display_options['fields']['rendered']['alter']['trim_whitespace'] = 0;
  65. $handler->display->display_options['fields']['rendered']['alter']['nl2br'] = 0;
  66. $handler->display->display_options['fields']['rendered']['alter']['word_boundary'] = 1;
  67. $handler->display->display_options['fields']['rendered']['alter']['ellipsis'] = 1;
  68. $handler->display->display_options['fields']['rendered']['alter']['strip_tags'] = 0;
  69. $handler->display->display_options['fields']['rendered']['alter']['trim'] = 0;
  70. $handler->display->display_options['fields']['rendered']['alter']['html'] = 0;
  71. $handler->display->display_options['fields']['rendered']['element_label_colon'] = FALSE;
  72. $handler->display->display_options['fields']['rendered']['element_default_classes'] = 1;
  73. $handler->display->display_options['fields']['rendered']['hide_empty'] = 0;
  74. $handler->display->display_options['fields']['rendered']['empty_zero'] = 0;
  75. $handler->display->display_options['fields']['rendered']['hide_alter_empty'] = 0;
  76. $handler->display->display_options['fields']['rendered']['link_to_file'] = 0;
  77. $handler->display->display_options['fields']['rendered']['file_view_mode'] = 'media_preview';
  78. /* Field: File: Title */
  79. $handler->display->display_options['fields']['media_title']['id'] = 'media_title';
  80. $handler->display->display_options['fields']['media_title']['table'] = 'field_data_media_title';
  81. $handler->display->display_options['fields']['media_title']['field'] = 'media_title';
  82. $handler->display->display_options['fields']['media_title']['label'] = '';
  83. $handler->display->display_options['fields']['media_title']['alter']['alter_text'] = 0;
  84. $handler->display->display_options['fields']['media_title']['alter']['make_link'] = 1;
  85. $handler->display->display_options['fields']['media_title']['alter']['path'] = 'file/[fid] ';
  86. $handler->display->display_options['fields']['media_title']['alter']['absolute'] = 0;
  87. $handler->display->display_options['fields']['media_title']['alter']['external'] = 0;
  88. $handler->display->display_options['fields']['media_title']['alter']['replace_spaces'] = 0;
  89. $handler->display->display_options['fields']['media_title']['alter']['trim_whitespace'] = 0;
  90. $handler->display->display_options['fields']['media_title']['alter']['nl2br'] = 0;
  91. $handler->display->display_options['fields']['media_title']['alter']['word_boundary'] = 1;
  92. $handler->display->display_options['fields']['media_title']['alter']['ellipsis'] = 1;
  93. $handler->display->display_options['fields']['media_title']['alter']['strip_tags'] = 0;
  94. $handler->display->display_options['fields']['media_title']['alter']['trim'] = 0;
  95. $handler->display->display_options['fields']['media_title']['alter']['html'] = 0;
  96. $handler->display->display_options['fields']['media_title']['element_label_colon'] = FALSE;
  97. $handler->display->display_options['fields']['media_title']['element_default_classes'] = 1;
  98. $handler->display->display_options['fields']['media_title']['hide_empty'] = 0;
  99. $handler->display->display_options['fields']['media_title']['empty_zero'] = 0;
  100. $handler->display->display_options['fields']['media_title']['hide_alter_empty'] = 0;
  101. $handler->display->display_options['fields']['media_title']['field_api_classes'] = 0;
  102. /* Field: Field: Tags */
  103. $handler->display->display_options['fields']['field_tags']['id'] = 'field_tags';
  104. $handler->display->display_options['fields']['field_tags']['table'] = 'field_data_field_tags';
  105. $handler->display->display_options['fields']['field_tags']['field'] = 'field_tags';
  106. $handler->display->display_options['fields']['field_tags']['label'] = '';
  107. $handler->display->display_options['fields']['field_tags']['alter']['alter_text'] = 0;
  108. $handler->display->display_options['fields']['field_tags']['alter']['make_link'] = 0;
  109. $handler->display->display_options['fields']['field_tags']['alter']['absolute'] = 0;
  110. $handler->display->display_options['fields']['field_tags']['alter']['external'] = 0;
  111. $handler->display->display_options['fields']['field_tags']['alter']['replace_spaces'] = 0;
  112. $handler->display->display_options['fields']['field_tags']['alter']['trim_whitespace'] = 0;
  113. $handler->display->display_options['fields']['field_tags']['alter']['nl2br'] = 0;
  114. $handler->display->display_options['fields']['field_tags']['alter']['word_boundary'] = 1;
  115. $handler->display->display_options['fields']['field_tags']['alter']['ellipsis'] = 1;
  116. $handler->display->display_options['fields']['field_tags']['alter']['strip_tags'] = 0;
  117. $handler->display->display_options['fields']['field_tags']['alter']['trim'] = 0;
  118. $handler->display->display_options['fields']['field_tags']['alter']['html'] = 0;
  119. $handler->display->display_options['fields']['field_tags']['element_label_colon'] = FALSE;
  120. $handler->display->display_options['fields']['field_tags']['element_default_classes'] = 1;
  121. $handler->display->display_options['fields']['field_tags']['hide_empty'] = 0;
  122. $handler->display->display_options['fields']['field_tags']['empty_zero'] = 0;
  123. $handler->display->display_options['fields']['field_tags']['group_rows'] = 1;
  124. $handler->display->display_options['fields']['field_tags']['delta_offset'] = '0';
  125. $handler->display->display_options['fields']['field_tags']['delta_reversed'] = 0;
  126. $handler->display->display_options['fields']['field_tags']['field_api_classes'] = 0;
  127. /* Sort criterion: File: Upload date */
  128. $handler->display->display_options['sorts']['timestamp']['id'] = 'timestamp';
  129. $handler->display->display_options['sorts']['timestamp']['table'] = 'file_managed';
  130. $handler->display->display_options['sorts']['timestamp']['field'] = 'timestamp';
  131. $handler->display->display_options['sorts']['timestamp']['order'] = 'DESC';
  132. /* Filter criterion: File: Mime type */
  133. $handler->display->display_options['filters']['filemime']['id'] = 'filemime';
  134. $handler->display->display_options['filters']['filemime']['table'] = 'file_managed';
  135. $handler->display->display_options['filters']['filemime']['field'] = 'filemime';
  136. /* Display: Page: Media */
  137. $handler = $view->new_display('page', 'Page: Media', 'page_1');
  138. $handler->display->display_options['defaults']['title'] = FALSE;
  139. $handler->display->display_options['title'] = 'Multimedia';
  140. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  141. $handler->display->display_options['style_plugin'] = 'grid';
  142. $handler->display->display_options['style_options']['columns'] = '3';
  143. $handler->display->display_options['style_options']['fill_single_line'] = 1;
  144. $handler->display->display_options['defaults']['style_options'] = FALSE;
  145. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  146. $handler->display->display_options['row_plugin'] = 'fields';
  147. $handler->display->display_options['defaults']['row_options'] = FALSE;
  148. $handler->display->display_options['defaults']['filters'] = FALSE;
  149. /* Filter criterion: File: Type */
  150. $handler->display->display_options['filters']['type']['id'] = 'type';
  151. $handler->display->display_options['filters']['type']['table'] = 'file_managed';
  152. $handler->display->display_options['filters']['type']['field'] = 'type';
  153. $handler->display->display_options['filters']['type']['value'] = array(
  154. 'audio' => 'audio',
  155. 'image' => 'image',
  156. 'video' => 'video',
  157. );
  158. $handler->display->display_options['filters']['type']['group'] = 0;
  159. $handler->display->display_options['path'] = 'file';
  160. $handler->display->display_options['menu']['weight'] = '0';
  161. $handler->display->display_options['menu']['name'] = 'main-menu';
  162. /* Display: Page: Images */
  163. $handler = $view->new_display('page', 'Page: Images', 'page_2');
  164. $handler->display->display_options['defaults']['title'] = FALSE;
  165. $handler->display->display_options['title'] = 'Images';
  166. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  167. $handler->display->display_options['style_plugin'] = 'grid';
  168. $handler->display->display_options['style_options']['columns'] = '3';
  169. $handler->display->display_options['style_options']['fill_single_line'] = 1;
  170. $handler->display->display_options['defaults']['style_options'] = FALSE;
  171. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  172. $handler->display->display_options['row_plugin'] = 'fields';
  173. $handler->display->display_options['defaults']['row_options'] = FALSE;
  174. $handler->display->display_options['defaults']['filters'] = FALSE;
  175. /* Filter criterion: File: Type */
  176. $handler->display->display_options['filters']['type']['id'] = 'type';
  177. $handler->display->display_options['filters']['type']['table'] = 'file_managed';
  178. $handler->display->display_options['filters']['type']['field'] = 'type';
  179. $handler->display->display_options['filters']['type']['value'] = array(
  180. 'image' => 'image',
  181. );
  182. $handler->display->display_options['filters']['type']['group'] = 0;
  183. $handler->display->display_options['path'] = 'file/image';
  184. $handler->display->display_options['menu']['weight'] = '0';
  185. $handler->display->display_options['menu']['name'] = 'main-menu';
  186. /* Display: Page: Video */
  187. $handler = $view->new_display('page', 'Page: Video', 'page_3');
  188. $handler->display->display_options['defaults']['title'] = FALSE;
  189. $handler->display->display_options['title'] = 'Videos';
  190. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  191. $handler->display->display_options['style_plugin'] = 'grid';
  192. $handler->display->display_options['style_options']['columns'] = '3';
  193. $handler->display->display_options['style_options']['fill_single_line'] = 1;
  194. $handler->display->display_options['defaults']['style_options'] = FALSE;
  195. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  196. $handler->display->display_options['row_plugin'] = 'fields';
  197. $handler->display->display_options['defaults']['row_options'] = FALSE;
  198. $handler->display->display_options['defaults']['filters'] = FALSE;
  199. /* Filter criterion: File: Type */
  200. $handler->display->display_options['filters']['type']['id'] = 'type';
  201. $handler->display->display_options['filters']['type']['table'] = 'file_managed';
  202. $handler->display->display_options['filters']['type']['field'] = 'type';
  203. $handler->display->display_options['filters']['type']['value'] = array(
  204. 'video' => 'video',
  205. );
  206. $handler->display->display_options['path'] = 'file/video';
  207. $handler->display->display_options['menu']['weight'] = '0';
  208. $handler->display->display_options['menu']['name'] = 'main-menu';
  209. /* Display: Block: Carousel */
  210. $handler = $view->new_display('block', 'Block: Carousel', 'block_1');
  211. $handler->display->display_options['defaults']['title'] = FALSE;
  212. $handler->display->display_options['title'] = 'Recent multimedia';
  213. $handler->display->display_options['defaults']['pager'] = FALSE;
  214. $handler->display->display_options['pager']['type'] = 'some';
  215. $handler->display->display_options['pager']['options']['items_per_page'] = '9';
  216. $handler->display->display_options['pager']['options']['offset'] = '0';
  217. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  218. $handler->display->display_options['style_plugin'] = 'jcarousel';
  219. $handler->display->display_options['style_options']['wrap'] = '0';
  220. $handler->display->display_options['style_options']['skin'] = 'default';
  221. $handler->display->display_options['style_options']['visible'] = '';
  222. $handler->display->display_options['style_options']['auto'] = '0';
  223. $handler->display->display_options['style_options']['autoPause'] = 1;
  224. $handler->display->display_options['style_options']['easing'] = '';
  225. $handler->display->display_options['style_options']['vertical'] = 0;
  226. $handler->display->display_options['defaults']['style_options'] = FALSE;
  227. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  228. $handler->display->display_options['row_plugin'] = 'fields';
  229. $handler->display->display_options['defaults']['row_options'] = FALSE;
  230. $handler->display->display_options['defaults']['fields'] = FALSE;
  231. /* Field: File: File ID */
  232. $handler->display->display_options['fields']['fid']['id'] = 'fid';
  233. $handler->display->display_options['fields']['fid']['table'] = 'file_managed';
  234. $handler->display->display_options['fields']['fid']['field'] = 'fid';
  235. $handler->display->display_options['fields']['fid']['exclude'] = TRUE;
  236. $handler->display->display_options['fields']['fid']['alter']['alter_text'] = 0;
  237. $handler->display->display_options['fields']['fid']['alter']['make_link'] = 0;
  238. $handler->display->display_options['fields']['fid']['alter']['absolute'] = 0;
  239. $handler->display->display_options['fields']['fid']['alter']['word_boundary'] = 1;
  240. $handler->display->display_options['fields']['fid']['alter']['ellipsis'] = 1;
  241. $handler->display->display_options['fields']['fid']['alter']['strip_tags'] = 0;
  242. $handler->display->display_options['fields']['fid']['alter']['trim'] = 0;
  243. $handler->display->display_options['fields']['fid']['alter']['html'] = 0;
  244. $handler->display->display_options['fields']['fid']['element_label_colon'] = 1;
  245. $handler->display->display_options['fields']['fid']['element_default_classes'] = 1;
  246. $handler->display->display_options['fields']['fid']['hide_empty'] = 0;
  247. $handler->display->display_options['fields']['fid']['empty_zero'] = 0;
  248. $handler->display->display_options['fields']['fid']['link_to_file'] = 0;
  249. /* Field: File: File */
  250. $handler->display->display_options['fields']['rendered']['id'] = 'rendered';
  251. $handler->display->display_options['fields']['rendered']['table'] = 'file_managed';
  252. $handler->display->display_options['fields']['rendered']['field'] = 'rendered';
  253. $handler->display->display_options['fields']['rendered']['label'] = '';
  254. $handler->display->display_options['fields']['rendered']['alter']['alter_text'] = 0;
  255. $handler->display->display_options['fields']['rendered']['alter']['make_link'] = 1;
  256. $handler->display->display_options['fields']['rendered']['alter']['path'] = 'file/[fid]';
  257. $handler->display->display_options['fields']['rendered']['alter']['absolute'] = 0;
  258. $handler->display->display_options['fields']['rendered']['alter']['external'] = 0;
  259. $handler->display->display_options['fields']['rendered']['alter']['replace_spaces'] = 0;
  260. $handler->display->display_options['fields']['rendered']['alter']['trim_whitespace'] = 0;
  261. $handler->display->display_options['fields']['rendered']['alter']['nl2br'] = 0;
  262. $handler->display->display_options['fields']['rendered']['alter']['word_boundary'] = 1;
  263. $handler->display->display_options['fields']['rendered']['alter']['ellipsis'] = 1;
  264. $handler->display->display_options['fields']['rendered']['alter']['strip_tags'] = 0;
  265. $handler->display->display_options['fields']['rendered']['alter']['trim'] = 0;
  266. $handler->display->display_options['fields']['rendered']['alter']['html'] = 0;
  267. $handler->display->display_options['fields']['rendered']['element_label_colon'] = FALSE;
  268. $handler->display->display_options['fields']['rendered']['element_default_classes'] = 1;
  269. $handler->display->display_options['fields']['rendered']['hide_empty'] = 0;
  270. $handler->display->display_options['fields']['rendered']['empty_zero'] = 0;
  271. $handler->display->display_options['fields']['rendered']['hide_alter_empty'] = 0;
  272. $handler->display->display_options['fields']['rendered']['link_to_file'] = 0;
  273. $handler->display->display_options['fields']['rendered']['file_view_mode'] = 'media_preview';
  274. /* Field: File: Title */
  275. $handler->display->display_options['fields']['media_title']['id'] = 'media_title';
  276. $handler->display->display_options['fields']['media_title']['table'] = 'field_data_media_title';
  277. $handler->display->display_options['fields']['media_title']['field'] = 'media_title';
  278. $handler->display->display_options['fields']['media_title']['label'] = '';
  279. $handler->display->display_options['fields']['media_title']['alter']['alter_text'] = 0;
  280. $handler->display->display_options['fields']['media_title']['alter']['make_link'] = 1;
  281. $handler->display->display_options['fields']['media_title']['alter']['path'] = 'file/[fid] ';
  282. $handler->display->display_options['fields']['media_title']['alter']['absolute'] = 0;
  283. $handler->display->display_options['fields']['media_title']['alter']['external'] = 0;
  284. $handler->display->display_options['fields']['media_title']['alter']['replace_spaces'] = 0;
  285. $handler->display->display_options['fields']['media_title']['alter']['trim_whitespace'] = 0;
  286. $handler->display->display_options['fields']['media_title']['alter']['nl2br'] = 0;
  287. $handler->display->display_options['fields']['media_title']['alter']['word_boundary'] = 1;
  288. $handler->display->display_options['fields']['media_title']['alter']['ellipsis'] = 1;
  289. $handler->display->display_options['fields']['media_title']['alter']['strip_tags'] = 0;
  290. $handler->display->display_options['fields']['media_title']['alter']['trim'] = 0;
  291. $handler->display->display_options['fields']['media_title']['alter']['html'] = 0;
  292. $handler->display->display_options['fields']['media_title']['element_label_colon'] = FALSE;
  293. $handler->display->display_options['fields']['media_title']['element_default_classes'] = 1;
  294. $handler->display->display_options['fields']['media_title']['hide_empty'] = 0;
  295. $handler->display->display_options['fields']['media_title']['empty_zero'] = 0;
  296. $handler->display->display_options['fields']['media_title']['hide_alter_empty'] = 0;
  297. $handler->display->display_options['fields']['media_title']['field_api_classes'] = 0;
  298. $handler->display->display_options['defaults']['filters'] = FALSE;
  299. /* Filter criterion: File: Type */
  300. $handler->display->display_options['filters']['type']['id'] = 'type';
  301. $handler->display->display_options['filters']['type']['table'] = 'file_managed';
  302. $handler->display->display_options['filters']['type']['field'] = 'type';
  303. $handler->display->display_options['filters']['type']['value'] = array(
  304. 'image' => 'image',
  305. 'video' => 'video',
  306. );
  307. /* Filter criterion: File: Promoted to front page */
  308. $handler->display->display_options['filters']['promote']['id'] = 'promote';
  309. $handler->display->display_options['filters']['promote']['table'] = 'file_managed';
  310. $handler->display->display_options['filters']['promote']['field'] = 'promote';
  311. $handler->display->display_options['filters']['promote']['value'] = '1';
  312. $export['media'] = $view;
  313. return $export;
  314. }