popsu_villes.views_default.inc 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <?php
  2. /**
  3. * @file
  4. * popsu_villes.views_default.inc
  5. */
  6. /**
  7. * Implements hook_views_default_views().
  8. */
  9. function popsu_villes_views_default_views() {
  10. $export = array();
  11. $view = new view();
  12. $view->name = 'villes';
  13. $view->description = 'Liste des publications';
  14. $view->tag = 'POPSU';
  15. $view->base_table = 'node';
  16. $view->human_name = 'Fiches villes';
  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'] = 'none';
  32. $handler->display->display_options['pager']['options']['offset'] = '0';
  33. $handler->display->display_options['style_plugin'] = 'default';
  34. $handler->display->display_options['row_plugin'] = 'fields';
  35. /* Champ: Contenu : Titre */
  36. $handler->display->display_options['fields']['title']['id'] = 'title';
  37. $handler->display->display_options['fields']['title']['table'] = 'node';
  38. $handler->display->display_options['fields']['title']['field'] = 'title';
  39. $handler->display->display_options['fields']['title']['label'] = '';
  40. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  41. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  42. /* Critère de tri: Contenu : Date de publication */
  43. $handler->display->display_options['sorts']['created']['id'] = 'created';
  44. $handler->display->display_options['sorts']['created']['table'] = 'node';
  45. $handler->display->display_options['sorts']['created']['field'] = 'created';
  46. $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  47. /* Critère de filtrage: Contenu : Publié */
  48. $handler->display->display_options['filters']['status']['id'] = 'status';
  49. $handler->display->display_options['filters']['status']['table'] = 'node';
  50. $handler->display->display_options['filters']['status']['field'] = 'status';
  51. $handler->display->display_options['filters']['status']['value'] = 1;
  52. $handler->display->display_options['filters']['status']['group'] = 1;
  53. $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  54. /* Critère de filtrage: Contenu : Type */
  55. $handler->display->display_options['filters']['type']['id'] = 'type';
  56. $handler->display->display_options['filters']['type']['table'] = 'node';
  57. $handler->display->display_options['filters']['type']['field'] = 'type';
  58. $handler->display->display_options['filters']['type']['value'] = array(
  59. 'popsu_ville' => 'popsu_ville',
  60. );
  61. /* Display: Page */
  62. $handler = $view->new_display('page', 'Page', 'page_1');
  63. $handler->display->display_options['defaults']['title'] = FALSE;
  64. $handler->display->display_options['title'] = 'Villes';
  65. $handler->display->display_options['path'] = 'villes';
  66. /* Display: Villes par POPSU Pane */
  67. $handler = $view->new_display('panel_pane', 'Villes par POPSU Pane', 'panel_pane_1');
  68. $handler->display->display_options['defaults']['css_class'] = FALSE;
  69. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  70. $handler->display->display_options['style_plugin'] = 'list';
  71. $handler->display->display_options['style_options']['row_class'] = 'span2';
  72. $handler->display->display_options['style_options']['default_row_class'] = FALSE;
  73. $handler->display->display_options['style_options']['class'] = 'listing-villes';
  74. $handler->display->display_options['style_options']['wrapper_class'] = 'listing-thumb clearfix';
  75. $handler->display->display_options['defaults']['style_options'] = FALSE;
  76. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  77. $handler->display->display_options['row_plugin'] = 'fields';
  78. $handler->display->display_options['defaults']['row_options'] = FALSE;
  79. $handler->display->display_options['defaults']['header'] = FALSE;
  80. /* Entête: Global : Résumé des résultats */
  81. $handler->display->display_options['header']['result']['id'] = 'result';
  82. $handler->display->display_options['header']['result']['table'] = 'views';
  83. $handler->display->display_options['header']['result']['field'] = 'result';
  84. $handler->display->display_options['header']['result']['content'] = '@total villes';
  85. $handler->display->display_options['defaults']['fields'] = FALSE;
  86. /* Champ: Contenu : Grandes images d'illustration */
  87. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['id'] = 'field_popsu_ville_images_illustr';
  88. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['table'] = 'field_data_field_popsu_ville_images_illustr';
  89. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['field'] = 'field_popsu_ville_images_illustr';
  90. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['label'] = '';
  91. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['element_label_colon'] = FALSE;
  92. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['click_sort_column'] = 'fid';
  93. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['settings'] = array(
  94. 'image_style' => 'popsu-villes-listing-small',
  95. 'image_link' => 'content',
  96. );
  97. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['delta_limit'] = '1';
  98. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['delta_offset'] = '0';
  99. /* Champ: Contenu : Titre */
  100. $handler->display->display_options['fields']['title']['id'] = 'title';
  101. $handler->display->display_options['fields']['title']['table'] = 'node';
  102. $handler->display->display_options['fields']['title']['field'] = 'title';
  103. $handler->display->display_options['fields']['title']['label'] = '';
  104. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  105. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  106. $handler->display->display_options['defaults']['sorts'] = FALSE;
  107. /* Critère de tri: Contenu : Titre */
  108. $handler->display->display_options['sorts']['title']['id'] = 'title';
  109. $handler->display->display_options['sorts']['title']['table'] = 'node';
  110. $handler->display->display_options['sorts']['title']['field'] = 'title';
  111. $handler->display->display_options['defaults']['arguments'] = FALSE;
  112. /* Filtre contextuel: Contenu : POPSU (field_popsu_ville_popsu) */
  113. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['id'] = 'field_popsu_ville_popsu_tid';
  114. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['table'] = 'field_data_field_popsu_ville_popsu';
  115. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['field'] = 'field_popsu_ville_popsu_tid';
  116. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['default_action'] = 'not found';
  117. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['exception']['title'] = 'Tout';
  118. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['default_argument_type'] = 'fixed';
  119. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary']['number_of_records'] = '0';
  120. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary']['format'] = 'default_summary';
  121. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary_options']['items_per_page'] = '25';
  122. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  123. $handler->display->display_options['argument_input'] = array(
  124. 'field_popsu_ville_popsu_tid' => array(
  125. 'type' => 'user',
  126. 'context' => 'string.raw',
  127. 'context_optional' => 0,
  128. 'panel' => '0',
  129. 'fixed' => '',
  130. 'label' => 'Contenu : POPSU (field_popsu_ville_popsu)',
  131. ),
  132. );
  133. /* Display: Villes par ThemeTrans Pane */
  134. $handler = $view->new_display('panel_pane', 'Villes par ThemeTrans Pane', 'panel_pane_2');
  135. $handler->display->display_options['defaults']['css_class'] = FALSE;
  136. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  137. $handler->display->display_options['style_plugin'] = 'list';
  138. $handler->display->display_options['style_options']['row_class'] = 'span2';
  139. $handler->display->display_options['style_options']['default_row_class'] = FALSE;
  140. $handler->display->display_options['style_options']['class'] = 'listing-villes';
  141. $handler->display->display_options['style_options']['wrapper_class'] = 'listing-thumb clearfix';
  142. $handler->display->display_options['defaults']['style_options'] = FALSE;
  143. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  144. $handler->display->display_options['row_plugin'] = 'fields';
  145. $handler->display->display_options['defaults']['row_options'] = FALSE;
  146. $handler->display->display_options['defaults']['header'] = FALSE;
  147. /* Entête: Global : Résumé des résultats */
  148. $handler->display->display_options['header']['result']['id'] = 'result';
  149. $handler->display->display_options['header']['result']['table'] = 'views';
  150. $handler->display->display_options['header']['result']['field'] = 'result';
  151. $handler->display->display_options['header']['result']['content'] = '@total villes';
  152. $handler->display->display_options['defaults']['fields'] = FALSE;
  153. /* Champ: Contenu : Titre */
  154. $handler->display->display_options['fields']['title']['id'] = 'title';
  155. $handler->display->display_options['fields']['title']['table'] = 'node';
  156. $handler->display->display_options['fields']['title']['field'] = 'title';
  157. $handler->display->display_options['fields']['title']['label'] = '';
  158. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  159. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  160. $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  161. $handler->display->display_options['defaults']['sorts'] = FALSE;
  162. /* Critère de tri: Contenu : Titre */
  163. $handler->display->display_options['sorts']['title']['id'] = 'title';
  164. $handler->display->display_options['sorts']['title']['table'] = 'node';
  165. $handler->display->display_options['sorts']['title']['field'] = 'title';
  166. $handler->display->display_options['defaults']['arguments'] = FALSE;
  167. /* Filtre contextuel: Contenu : POPSU (field_popsu_ville_popsu) */
  168. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['id'] = 'field_popsu_ville_popsu_tid';
  169. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['table'] = 'field_data_field_popsu_ville_popsu';
  170. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['field'] = 'field_popsu_ville_popsu_tid';
  171. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['default_action'] = 'not found';
  172. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['exception']['title'] = 'Tout';
  173. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['default_argument_type'] = 'fixed';
  174. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary']['number_of_records'] = '0';
  175. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary']['format'] = 'default_summary';
  176. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary_options']['items_per_page'] = '25';
  177. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['break_phrase'] = TRUE;
  178. /* Filtre contextuel: Contenu : Ville (field_popsu_ville_ville) */
  179. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['id'] = 'field_popsu_ville_ville_tid';
  180. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['table'] = 'field_data_field_popsu_ville_ville';
  181. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['field'] = 'field_popsu_ville_ville_tid';
  182. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['default_action'] = 'not found';
  183. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['exception']['title'] = 'Tout';
  184. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['default_argument_type'] = 'fixed';
  185. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['summary']['number_of_records'] = '0';
  186. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['summary']['format'] = 'default_summary';
  187. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['summary_options']['items_per_page'] = '25';
  188. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['specify_validation'] = TRUE;
  189. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['validate']['type'] = 'taxonomy_term';
  190. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['validate_options']['vocabularies'] = array(
  191. 'popsu_villes' => 'popsu_villes',
  192. );
  193. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['validate_options']['type'] = 'tids';
  194. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['break_phrase'] = TRUE;
  195. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  196. $handler->display->display_options['argument_input'] = array(
  197. 'field_popsu_ville_popsu_tid' => array(
  198. 'type' => 'user',
  199. 'context' => 'string.raw',
  200. 'context_optional' => 0,
  201. 'panel' => '0',
  202. 'fixed' => '',
  203. 'label' => 'Contenu : POPSU (field_popsu_ville_popsu)',
  204. ),
  205. 'field_popsu_ville_ville_tid' => array(
  206. 'type' => 'user',
  207. 'context' => 'string.raw',
  208. 'context_optional' => 0,
  209. 'panel' => '0',
  210. 'fixed' => '',
  211. 'label' => 'Contenu : Ville (field_popsu_ville_ville)',
  212. ),
  213. );
  214. $translatables['villes'] = array(
  215. t('Master'),
  216. t('plus'),
  217. t('Appliquer'),
  218. t('Réinitialiser'),
  219. t('Trier par'),
  220. t('Asc'),
  221. t('Desc'),
  222. t('Page'),
  223. t('Villes'),
  224. t('Villes par POPSU Pane'),
  225. t('@total villes'),
  226. t('Tout'),
  227. t('Volets de vue'),
  228. t('Villes par ThemeTrans Pane'),
  229. );
  230. $export['villes'] = $view;
  231. return $export;
  232. }