popsu_projets.views_default.inc 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. <?php
  2. /**
  3. * @file
  4. * popsu_projets.views_default.inc
  5. */
  6. /**
  7. * Implements hook_views_default_views().
  8. */
  9. function popsu_projets_views_default_views() {
  10. $export = array();
  11. $view = new view();
  12. $view->name = 'projets';
  13. $view->description = 'Liste des publications';
  14. $view->tag = 'POPSU';
  15. $view->base_table = 'node';
  16. $view->human_name = 'Projets';
  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: Master */
  21. $handler = $view->new_display('default', 'Master', 'default');
  22. $handler->display->display_options['use_more_always'] = FALSE;
  23. $handler->display->display_options['use_more_text'] = 'plus';
  24. $handler->display->display_options['access']['type'] = 'perm';
  25. $handler->display->display_options['cache']['type'] = 'none';
  26. $handler->display->display_options['query']['type'] = 'views_query';
  27. $handler->display->display_options['exposed_form']['type'] = 'basic';
  28. $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
  29. $handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
  30. $handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
  31. $handler->display->display_options['pager']['type'] = 'full';
  32. $handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Éléments par page';
  33. $handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Tout -';
  34. $handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Décalage';
  35. $handler->display->display_options['pager']['options']['tags']['first'] = '« premier';
  36. $handler->display->display_options['pager']['options']['tags']['previous'] = '‹ précédent';
  37. $handler->display->display_options['pager']['options']['tags']['next'] = 'suivant ›';
  38. $handler->display->display_options['pager']['options']['tags']['last'] = 'dernier »';
  39. $handler->display->display_options['style_plugin'] = 'default';
  40. $handler->display->display_options['row_plugin'] = 'fields';
  41. /* Champ: Contenu : Titre */
  42. $handler->display->display_options['fields']['title']['id'] = 'title';
  43. $handler->display->display_options['fields']['title']['table'] = 'node';
  44. $handler->display->display_options['fields']['title']['field'] = 'title';
  45. $handler->display->display_options['fields']['title']['label'] = '';
  46. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  47. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  48. /* Critère de tri: Contenu : Date de publication */
  49. $handler->display->display_options['sorts']['created']['id'] = 'created';
  50. $handler->display->display_options['sorts']['created']['table'] = 'node';
  51. $handler->display->display_options['sorts']['created']['field'] = 'created';
  52. $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  53. /* Critère de filtrage: Contenu : Publié */
  54. $handler->display->display_options['filters']['status']['id'] = 'status';
  55. $handler->display->display_options['filters']['status']['table'] = 'node';
  56. $handler->display->display_options['filters']['status']['field'] = 'status';
  57. $handler->display->display_options['filters']['status']['value'] = 1;
  58. $handler->display->display_options['filters']['status']['group'] = 1;
  59. $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  60. /* Critère de filtrage: Contenu : Type */
  61. $handler->display->display_options['filters']['type']['id'] = 'type';
  62. $handler->display->display_options['filters']['type']['table'] = 'node';
  63. $handler->display->display_options['filters']['type']['field'] = 'type';
  64. $handler->display->display_options['filters']['type']['value'] = array(
  65. 'popsu_projet' => 'popsu_projet',
  66. );
  67. /* Display: Page */
  68. $handler = $view->new_display('page', 'Page', 'page_1');
  69. $handler->display->display_options['defaults']['title'] = FALSE;
  70. $handler->display->display_options['title'] = 'Projets';
  71. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  72. $handler->display->display_options['path'] = 'projets';
  73. /* Display: Projets par ville Pane */
  74. $handler = $view->new_display('panel_pane', 'Projets par ville Pane', 'panel_pane_1');
  75. $handler->display->display_options['defaults']['title'] = FALSE;
  76. $handler->display->display_options['title'] = 'Les projets';
  77. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  78. $handler->display->display_options['defaults']['pager'] = FALSE;
  79. $handler->display->display_options['pager']['type'] = 'none';
  80. $handler->display->display_options['pager']['options']['offset'] = '0';
  81. $handler->display->display_options['defaults']['arguments'] = FALSE;
  82. /* Filtre contextuel: Contenu : Ville (field_popsu_projet_ville) */
  83. $handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['id'] = 'field_popsu_projet_ville_tid';
  84. $handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['table'] = 'field_data_field_popsu_projet_ville';
  85. $handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['field'] = 'field_popsu_projet_ville_tid';
  86. $handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['default_action'] = 'not found';
  87. $handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['exception']['title'] = 'Tout';
  88. $handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['default_argument_type'] = 'fixed';
  89. $handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['summary']['number_of_records'] = '0';
  90. $handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['summary']['format'] = 'default_summary';
  91. $handler->display->display_options['arguments']['field_popsu_projet_ville_tid']['summary_options']['items_per_page'] = '25';
  92. /* Filtre contextuel: Contenu : POPSU (field_popsu_projet_popsu) */
  93. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['id'] = 'field_popsu_projet_popsu_tid';
  94. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['table'] = 'field_data_field_popsu_projet_popsu';
  95. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['field'] = 'field_popsu_projet_popsu_tid';
  96. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_action'] = 'not found';
  97. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['exception']['title'] = 'Tout';
  98. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_argument_type'] = 'fixed';
  99. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['number_of_records'] = '0';
  100. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['format'] = 'default_summary';
  101. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary_options']['items_per_page'] = '25';
  102. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  103. $handler->display->display_options['argument_input'] = array(
  104. 'field_popsu_projet_ville_tid' => array(
  105. 'type' => 'user',
  106. 'context' => 'node_edit_form.field_popsu_ville_ville',
  107. 'context_optional' => 0,
  108. 'panel' => '0',
  109. 'fixed' => '',
  110. 'label' => 'Contenu : Ville (field_popsu_projet_ville)',
  111. ),
  112. 'field_popsu_projet_popsu_tid' => array(
  113. 'type' => 'user',
  114. 'context' => 'string.raw',
  115. 'context_optional' => 0,
  116. 'panel' => '0',
  117. 'fixed' => '',
  118. 'label' => 'Contenu : POPSU (field_popsu_projet_popsu)',
  119. ),
  120. );
  121. /* Display: Projets par POPSU Pane */
  122. $handler = $view->new_display('panel_pane', 'Projets par POPSU Pane', 'panel_pane_2');
  123. $handler->display->display_options['defaults']['title'] = FALSE;
  124. $handler->display->display_options['defaults']['css_class'] = FALSE;
  125. $handler->display->display_options['css_class'] = 'listing-grille listing-projets';
  126. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  127. $handler->display->display_options['defaults']['pager'] = FALSE;
  128. $handler->display->display_options['pager']['type'] = 'none';
  129. $handler->display->display_options['pager']['options']['offset'] = '0';
  130. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  131. $handler->display->display_options['style_plugin'] = 'grid';
  132. $handler->display->display_options['style_options']['default_row_class'] = FALSE;
  133. $handler->display->display_options['style_options']['columns'] = '2';
  134. $handler->display->display_options['style_options']['alignment'] = 'vertical';
  135. $handler->display->display_options['defaults']['style_options'] = FALSE;
  136. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  137. $handler->display->display_options['row_plugin'] = 'fields';
  138. $handler->display->display_options['defaults']['row_options'] = FALSE;
  139. $handler->display->display_options['defaults']['header'] = FALSE;
  140. /* Entête: Global : Résumé des résultats */
  141. $handler->display->display_options['header']['result']['id'] = 'result';
  142. $handler->display->display_options['header']['result']['table'] = 'views';
  143. $handler->display->display_options['header']['result']['field'] = 'result';
  144. $handler->display->display_options['header']['result']['empty'] = TRUE;
  145. $handler->display->display_options['header']['result']['content'] = '@total projets';
  146. $handler->display->display_options['defaults']['fields'] = FALSE;
  147. /* Champ: Contenu : Titre */
  148. $handler->display->display_options['fields']['title']['id'] = 'title';
  149. $handler->display->display_options['fields']['title']['table'] = 'node';
  150. $handler->display->display_options['fields']['title']['field'] = 'title';
  151. $handler->display->display_options['fields']['title']['label'] = '';
  152. $handler->display->display_options['fields']['title']['exclude'] = TRUE;
  153. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  154. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  155. $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  156. /* Champ: Contenu : Ville */
  157. $handler->display->display_options['fields']['field_popsu_projet_ville']['id'] = 'field_popsu_projet_ville';
  158. $handler->display->display_options['fields']['field_popsu_projet_ville']['table'] = 'field_data_field_popsu_projet_ville';
  159. $handler->display->display_options['fields']['field_popsu_projet_ville']['field'] = 'field_popsu_projet_ville';
  160. $handler->display->display_options['fields']['field_popsu_projet_ville']['label'] = '';
  161. $handler->display->display_options['fields']['field_popsu_projet_ville']['alter']['alter_text'] = TRUE;
  162. $handler->display->display_options['fields']['field_popsu_projet_ville']['alter']['text'] = '[title] <span class="listing-projet-ville">([field_popsu_projet_ville])</span>';
  163. $handler->display->display_options['fields']['field_popsu_projet_ville']['element_label_colon'] = FALSE;
  164. $handler->display->display_options['fields']['field_popsu_projet_ville']['element_default_classes'] = FALSE;
  165. $handler->display->display_options['fields']['field_popsu_projet_ville']['type'] = 'taxonomy_term_reference_plain';
  166. $handler->display->display_options['defaults']['sorts'] = FALSE;
  167. /* Critère de tri: Contenu : Titre */
  168. $handler->display->display_options['sorts']['title']['id'] = 'title';
  169. $handler->display->display_options['sorts']['title']['table'] = 'node';
  170. $handler->display->display_options['sorts']['title']['field'] = 'title';
  171. $handler->display->display_options['defaults']['arguments'] = FALSE;
  172. /* Filtre contextuel: Contenu : POPSU (field_popsu_projet_popsu) */
  173. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['id'] = 'field_popsu_projet_popsu_tid';
  174. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['table'] = 'field_data_field_popsu_projet_popsu';
  175. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['field'] = 'field_popsu_projet_popsu_tid';
  176. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_action'] = 'not found';
  177. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['exception']['title'] = 'Tout';
  178. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_argument_type'] = 'fixed';
  179. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['number_of_records'] = '0';
  180. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['format'] = 'default_summary';
  181. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary_options']['items_per_page'] = '25';
  182. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  183. $handler->display->display_options['argument_input'] = array(
  184. 'field_popsu_projet_ville_tid' => array(
  185. 'type' => 'user',
  186. 'context' => 'node_edit_form.field_popsu_ville_ville',
  187. 'context_optional' => 0,
  188. 'panel' => '0',
  189. 'fixed' => '',
  190. 'label' => 'Contenu : Ville (field_popsu_projet_ville)',
  191. ),
  192. 'field_popsu_projet_popsu_tid' => array(
  193. 'type' => 'user',
  194. 'context' => 'string.raw',
  195. 'context_optional' => 0,
  196. 'panel' => '0',
  197. 'fixed' => '',
  198. 'label' => 'Contenu : POPSU (field_popsu_projet_popsu)',
  199. ),
  200. );
  201. /* Display: Contenus liés Projet NID */
  202. $handler = $view->new_display('panel_pane', 'Contenus liés Projet NID', 'panel_pane_3');
  203. $handler->display->display_options['defaults']['title'] = FALSE;
  204. $handler->display->display_options['defaults']['css_class'] = FALSE;
  205. $handler->display->display_options['css_class'] = 'listing-grille listing-projets';
  206. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  207. $handler->display->display_options['defaults']['pager'] = FALSE;
  208. $handler->display->display_options['pager']['type'] = 'none';
  209. $handler->display->display_options['pager']['options']['offset'] = '0';
  210. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  211. $handler->display->display_options['style_plugin'] = 'default';
  212. $handler->display->display_options['style_options']['default_row_class'] = FALSE;
  213. $handler->display->display_options['style_options']['row_class_special'] = FALSE;
  214. $handler->display->display_options['defaults']['style_options'] = FALSE;
  215. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  216. $handler->display->display_options['row_plugin'] = 'fields';
  217. $handler->display->display_options['row_options']['default_field_elements'] = FALSE;
  218. $handler->display->display_options['defaults']['row_options'] = FALSE;
  219. $handler->display->display_options['defaults']['header'] = FALSE;
  220. $handler->display->display_options['defaults']['footer'] = FALSE;
  221. /* Pied de page: Global : PHP */
  222. $handler->display->display_options['footer']['php']['id'] = 'php';
  223. $handler->display->display_options['footer']['php']['table'] = 'views';
  224. $handler->display->display_options['footer']['php']['field'] = 'php';
  225. $handler->display->display_options['footer']['php']['php_output'] = '<style>
  226. #main-wrapper #block-menu_block-1 .menu-name-menu-popsu1-menu > ul.menu {
  227. background: url(/sites/default/themes/popsu/img/icons/voir-egalement-trans.png) no-repeat bottom right;
  228. padding-bottom: 15px;
  229. margin-bottom: 0;
  230. }
  231. </style>';
  232. $handler->display->display_options['defaults']['relationships'] = FALSE;
  233. /* Relation: Contenu : Projets &amp; thèmes liés (field_popsu_projet_lies) */
  234. $handler->display->display_options['relationships']['field_popsu_projet_lies_nid']['id'] = 'field_popsu_projet_lies_nid';
  235. $handler->display->display_options['relationships']['field_popsu_projet_lies_nid']['table'] = 'field_data_field_popsu_projet_lies';
  236. $handler->display->display_options['relationships']['field_popsu_projet_lies_nid']['field'] = 'field_popsu_projet_lies_nid';
  237. $handler->display->display_options['relationships']['field_popsu_projet_lies_nid']['required'] = TRUE;
  238. $handler->display->display_options['relationships']['field_popsu_projet_lies_nid']['delta'] = '-1';
  239. $handler->display->display_options['defaults']['fields'] = FALSE;
  240. /* Champ: Contenu : Nid */
  241. $handler->display->display_options['fields']['nid']['id'] = 'nid';
  242. $handler->display->display_options['fields']['nid']['table'] = 'node';
  243. $handler->display->display_options['fields']['nid']['field'] = 'nid';
  244. $handler->display->display_options['fields']['nid']['relationship'] = 'field_popsu_projet_lies_nid';
  245. $handler->display->display_options['fields']['nid']['label'] = '';
  246. $handler->display->display_options['fields']['nid']['exclude'] = TRUE;
  247. $handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
  248. $handler->display->display_options['fields']['nid']['element_default_classes'] = FALSE;
  249. $handler->display->display_options['fields']['nid']['hide_empty'] = TRUE;
  250. /* Champ: Global : PHP */
  251. $handler->display->display_options['fields']['php']['id'] = 'php';
  252. $handler->display->display_options['fields']['php']['table'] = 'views';
  253. $handler->display->display_options['fields']['php']['field'] = 'php';
  254. $handler->display->display_options['fields']['php']['label'] = '';
  255. $handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
  256. $handler->display->display_options['fields']['php']['element_default_classes'] = FALSE;
  257. $handler->display->display_options['fields']['php']['hide_empty'] = TRUE;
  258. $handler->display->display_options['fields']['php']['use_php_setup'] = 0;
  259. $handler->display->display_options['fields']['php']['php_value'] = '$row->nid';
  260. $handler->display->display_options['fields']['php']['php_output'] = '<style>
  261. #sidebar-first ul.menu li.nid-<?php echo $row->nid; ?> {
  262. background: url(/sites/default/themes/popsu/img/icons/voir-egalement-left-trans.png) no-repeat top left;
  263. padding-left: 15px;
  264. }
  265. #sidebar-first .left-nav-level-2 ul.menu li ul li.nid-<?php echo $row->nid; ?> a {
  266. font-family: OpenSansBoldItalic, verdana,arial,helvetica,sans-serif;
  267. background: url(/sites/default/themes/popsu/img/icons/voir-egalement-right-trans.png) no-repeat top right;
  268. padding-right: 15px;
  269. display: inline;
  270. }
  271. </style>';
  272. $handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
  273. $handler->display->display_options['fields']['php']['php_click_sortable'] = '';
  274. $handler->display->display_options['defaults']['sorts'] = FALSE;
  275. /* Critère de tri: Contenu : Titre */
  276. $handler->display->display_options['sorts']['title']['id'] = 'title';
  277. $handler->display->display_options['sorts']['title']['table'] = 'node';
  278. $handler->display->display_options['sorts']['title']['field'] = 'title';
  279. $handler->display->display_options['defaults']['arguments'] = FALSE;
  280. /* Filtre contextuel: Contenu : Nid */
  281. $handler->display->display_options['arguments']['nid']['id'] = 'nid';
  282. $handler->display->display_options['arguments']['nid']['table'] = 'node';
  283. $handler->display->display_options['arguments']['nid']['field'] = 'nid';
  284. $handler->display->display_options['arguments']['nid']['default_action'] = 'not found';
  285. $handler->display->display_options['arguments']['nid']['exception']['title'] = 'Tout';
  286. $handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
  287. $handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
  288. $handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
  289. $handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
  290. $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  291. $handler->display->display_options['defaults']['filters'] = FALSE;
  292. /* Critère de filtrage: Contenu : Publié */
  293. $handler->display->display_options['filters']['status']['id'] = 'status';
  294. $handler->display->display_options['filters']['status']['table'] = 'node';
  295. $handler->display->display_options['filters']['status']['field'] = 'status';
  296. $handler->display->display_options['filters']['status']['value'] = 1;
  297. $handler->display->display_options['filters']['status']['group'] = 1;
  298. $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  299. /* Critère de filtrage: Contenu : Type */
  300. $handler->display->display_options['filters']['type']['id'] = 'type';
  301. $handler->display->display_options['filters']['type']['table'] = 'node';
  302. $handler->display->display_options['filters']['type']['field'] = 'type';
  303. $handler->display->display_options['filters']['type']['value'] = array(
  304. 'popsu_projet' => 'popsu_projet',
  305. 'popsu_theme_local' => 'popsu_theme_local',
  306. );
  307. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  308. $handler->display->display_options['argument_input'] = array(
  309. 'nid' => array(
  310. 'type' => 'user',
  311. 'context' => 'string.raw',
  312. 'context_optional' => 0,
  313. 'panel' => '0',
  314. 'fixed' => '',
  315. 'label' => 'Contenu : Nid',
  316. ),
  317. );
  318. /* Display: Projets par POPSU Pane Thumbs */
  319. $handler = $view->new_display('panel_pane', 'Projets par POPSU Pane Thumbs', 'panel_pane_4');
  320. $handler->display->display_options['defaults']['title'] = FALSE;
  321. $handler->display->display_options['defaults']['css_class'] = FALSE;
  322. $handler->display->display_options['css_class'] = 'listing-grille';
  323. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  324. $handler->display->display_options['defaults']['pager'] = FALSE;
  325. $handler->display->display_options['pager']['type'] = 'none';
  326. $handler->display->display_options['pager']['options']['offset'] = '0';
  327. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  328. $handler->display->display_options['style_plugin'] = 'list';
  329. $handler->display->display_options['style_options']['row_class'] = 'span2';
  330. $handler->display->display_options['style_options']['wrapper_class'] = 'listing-thumb clearfix listing-projets';
  331. $handler->display->display_options['defaults']['style_options'] = FALSE;
  332. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  333. $handler->display->display_options['row_plugin'] = 'fields';
  334. $handler->display->display_options['defaults']['row_options'] = FALSE;
  335. $handler->display->display_options['defaults']['header'] = FALSE;
  336. /* Entête: Global : Résumé des résultats */
  337. $handler->display->display_options['header']['result']['id'] = 'result';
  338. $handler->display->display_options['header']['result']['table'] = 'views';
  339. $handler->display->display_options['header']['result']['field'] = 'result';
  340. $handler->display->display_options['header']['result']['empty'] = TRUE;
  341. $handler->display->display_options['header']['result']['content'] = '@total projets';
  342. $handler->display->display_options['defaults']['fields'] = FALSE;
  343. /* Champ: Contenu : Image d'introduction */
  344. $handler->display->display_options['fields']['field_popsu_projet_imageintro']['id'] = 'field_popsu_projet_imageintro';
  345. $handler->display->display_options['fields']['field_popsu_projet_imageintro']['table'] = 'field_data_field_popsu_projet_imageintro';
  346. $handler->display->display_options['fields']['field_popsu_projet_imageintro']['field'] = 'field_popsu_projet_imageintro';
  347. $handler->display->display_options['fields']['field_popsu_projet_imageintro']['label'] = '';
  348. $handler->display->display_options['fields']['field_popsu_projet_imageintro']['exclude'] = TRUE;
  349. $handler->display->display_options['fields']['field_popsu_projet_imageintro']['element_label_colon'] = FALSE;
  350. $handler->display->display_options['fields']['field_popsu_projet_imageintro']['click_sort_column'] = 'fid';
  351. $handler->display->display_options['fields']['field_popsu_projet_imageintro']['settings'] = array(
  352. 'image_style' => 'popsu-projets-listing-small',
  353. 'image_link' => '',
  354. );
  355. $handler->display->display_options['fields']['field_popsu_projet_imageintro']['delta_limit'] = '1';
  356. $handler->display->display_options['fields']['field_popsu_projet_imageintro']['delta_offset'] = '0';
  357. /* Champ: Contenu : Chemin */
  358. $handler->display->display_options['fields']['path']['id'] = 'path';
  359. $handler->display->display_options['fields']['path']['table'] = 'node';
  360. $handler->display->display_options['fields']['path']['field'] = 'path';
  361. $handler->display->display_options['fields']['path']['label'] = '';
  362. $handler->display->display_options['fields']['path']['alter']['alter_text'] = TRUE;
  363. $handler->display->display_options['fields']['path']['alter']['text'] = '<a href="[path]" class="image-placeover">[field_popsu_projet_imageintro]</a>';
  364. $handler->display->display_options['fields']['path']['element_label_colon'] = FALSE;
  365. $handler->display->display_options['fields']['path']['element_default_classes'] = FALSE;
  366. $handler->display->display_options['fields']['path']['absolute'] = TRUE;
  367. /* Champ: Contenu : Titre */
  368. $handler->display->display_options['fields']['title']['id'] = 'title';
  369. $handler->display->display_options['fields']['title']['table'] = 'node';
  370. $handler->display->display_options['fields']['title']['field'] = 'title';
  371. $handler->display->display_options['fields']['title']['label'] = '';
  372. $handler->display->display_options['fields']['title']['alter']['max_length'] = '35';
  373. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  374. $handler->display->display_options['fields']['title']['alter']['trim'] = TRUE;
  375. $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  376. /* Champ: Contenu : Ville */
  377. $handler->display->display_options['fields']['field_popsu_projet_ville']['id'] = 'field_popsu_projet_ville';
  378. $handler->display->display_options['fields']['field_popsu_projet_ville']['table'] = 'field_data_field_popsu_projet_ville';
  379. $handler->display->display_options['fields']['field_popsu_projet_ville']['field'] = 'field_popsu_projet_ville';
  380. $handler->display->display_options['fields']['field_popsu_projet_ville']['label'] = '';
  381. $handler->display->display_options['fields']['field_popsu_projet_ville']['exclude'] = TRUE;
  382. $handler->display->display_options['fields']['field_popsu_projet_ville']['alter']['alter_text'] = TRUE;
  383. $handler->display->display_options['fields']['field_popsu_projet_ville']['alter']['text'] = '[title] <span class="listing-projet-ville">([field_popsu_projet_ville])</span>';
  384. $handler->display->display_options['fields']['field_popsu_projet_ville']['element_label_colon'] = FALSE;
  385. $handler->display->display_options['fields']['field_popsu_projet_ville']['element_default_classes'] = FALSE;
  386. $handler->display->display_options['fields']['field_popsu_projet_ville']['type'] = 'taxonomy_term_reference_plain';
  387. $handler->display->display_options['defaults']['sorts'] = FALSE;
  388. /* Critère de tri: Contenu : Titre */
  389. $handler->display->display_options['sorts']['title']['id'] = 'title';
  390. $handler->display->display_options['sorts']['title']['table'] = 'node';
  391. $handler->display->display_options['sorts']['title']['field'] = 'title';
  392. $handler->display->display_options['defaults']['arguments'] = FALSE;
  393. /* Filtre contextuel: Contenu : POPSU (field_popsu_projet_popsu) */
  394. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['id'] = 'field_popsu_projet_popsu_tid';
  395. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['table'] = 'field_data_field_popsu_projet_popsu';
  396. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['field'] = 'field_popsu_projet_popsu_tid';
  397. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_action'] = 'not found';
  398. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['exception']['title'] = 'Tout';
  399. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['default_argument_type'] = 'fixed';
  400. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['number_of_records'] = '0';
  401. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary']['format'] = 'default_summary';
  402. $handler->display->display_options['arguments']['field_popsu_projet_popsu_tid']['summary_options']['items_per_page'] = '25';
  403. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  404. $handler->display->display_options['argument_input'] = array(
  405. 'field_popsu_projet_ville_tid' => array(
  406. 'type' => 'user',
  407. 'context' => 'node_edit_form.field_popsu_ville_ville',
  408. 'context_optional' => 0,
  409. 'panel' => '0',
  410. 'fixed' => '',
  411. 'label' => 'Contenu : Ville (field_popsu_projet_ville)',
  412. ),
  413. 'field_popsu_projet_popsu_tid' => array(
  414. 'type' => 'user',
  415. 'context' => 'string.raw',
  416. 'context_optional' => 0,
  417. 'panel' => '0',
  418. 'fixed' => '',
  419. 'label' => 'Contenu : POPSU (field_popsu_projet_popsu)',
  420. ),
  421. );
  422. $translatables['projets'] = array(
  423. t('Master'),
  424. t('plus'),
  425. t('Appliquer'),
  426. t('Réinitialiser'),
  427. t('Trier par'),
  428. t('Asc'),
  429. t('Desc'),
  430. t('Éléments par page'),
  431. t('- Tout -'),
  432. t('Décalage'),
  433. t('« premier'),
  434. t('‹ précédent'),
  435. t('suivant ›'),
  436. t('dernier »'),
  437. t('Page'),
  438. t('Projets'),
  439. t('Projets par ville Pane'),
  440. t('Les projets'),
  441. t('Tout'),
  442. t('Volets de vue'),
  443. t('Projets par POPSU Pane'),
  444. t('@total projets'),
  445. t('[title] <span class="listing-projet-ville">([field_popsu_projet_ville])</span>'),
  446. t('Contenus liés Projet NID'),
  447. t('field_popsu_projet_lies'),
  448. t('Projets par POPSU Pane Thumbs'),
  449. t('<a href="[path]" class="image-placeover">[field_popsu_projet_imageintro]</a>'),
  450. );
  451. $export['projets'] = $view;
  452. return $export;
  453. }