popsu_villes.views_default.inc 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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['defaults']['hide_admin_links'] = FALSE;
  66. $handler->display->display_options['path'] = 'villes';
  67. /* Display: Villes par POPSU Pane */
  68. $handler = $view->new_display('panel_pane', 'Villes par POPSU Pane', 'panel_pane_1');
  69. $handler->display->display_options['defaults']['css_class'] = FALSE;
  70. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  71. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  72. $handler->display->display_options['style_plugin'] = 'list';
  73. $handler->display->display_options['style_options']['row_class'] = 'span2';
  74. $handler->display->display_options['style_options']['default_row_class'] = FALSE;
  75. $handler->display->display_options['style_options']['class'] = 'listing-villes';
  76. $handler->display->display_options['style_options']['wrapper_class'] = 'listing-thumb clearfix';
  77. $handler->display->display_options['defaults']['style_options'] = FALSE;
  78. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  79. $handler->display->display_options['row_plugin'] = 'fields';
  80. $handler->display->display_options['defaults']['row_options'] = FALSE;
  81. $handler->display->display_options['defaults']['header'] = FALSE;
  82. /* Entête: Global : Résumé des résultats */
  83. $handler->display->display_options['header']['result']['id'] = 'result';
  84. $handler->display->display_options['header']['result']['table'] = 'views';
  85. $handler->display->display_options['header']['result']['field'] = 'result';
  86. $handler->display->display_options['header']['result']['content'] = '@total villes';
  87. $handler->display->display_options['defaults']['fields'] = FALSE;
  88. /* Champ: Contenu : Grandes images d'illustration */
  89. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['id'] = 'field_popsu_ville_images_illustr';
  90. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['table'] = 'field_data_field_popsu_ville_images_illustr';
  91. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['field'] = 'field_popsu_ville_images_illustr';
  92. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['label'] = '';
  93. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['element_label_colon'] = FALSE;
  94. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['click_sort_column'] = 'fid';
  95. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['settings'] = array(
  96. 'image_style' => 'popsu-villes-listing-small',
  97. 'image_link' => 'content',
  98. );
  99. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['delta_limit'] = '1';
  100. $handler->display->display_options['fields']['field_popsu_ville_images_illustr']['delta_offset'] = '0';
  101. /* Champ: Contenu : Titre */
  102. $handler->display->display_options['fields']['title']['id'] = 'title';
  103. $handler->display->display_options['fields']['title']['table'] = 'node';
  104. $handler->display->display_options['fields']['title']['field'] = 'title';
  105. $handler->display->display_options['fields']['title']['label'] = '';
  106. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  107. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  108. $handler->display->display_options['defaults']['sorts'] = FALSE;
  109. /* Critère de tri: Contenu : Titre */
  110. $handler->display->display_options['sorts']['title']['id'] = 'title';
  111. $handler->display->display_options['sorts']['title']['table'] = 'node';
  112. $handler->display->display_options['sorts']['title']['field'] = 'title';
  113. $handler->display->display_options['defaults']['arguments'] = FALSE;
  114. /* Filtre contextuel: Contenu : POPSU (field_popsu_ville_popsu) */
  115. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['id'] = 'field_popsu_ville_popsu_tid';
  116. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['table'] = 'field_data_field_popsu_ville_popsu';
  117. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['field'] = 'field_popsu_ville_popsu_tid';
  118. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['default_action'] = 'not found';
  119. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['exception']['title'] = 'Tout';
  120. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['default_argument_type'] = 'fixed';
  121. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary']['number_of_records'] = '0';
  122. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary']['format'] = 'default_summary';
  123. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary_options']['items_per_page'] = '25';
  124. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  125. $handler->display->display_options['argument_input'] = array(
  126. 'field_popsu_ville_popsu_tid' => array(
  127. 'type' => 'user',
  128. 'context' => 'string.raw',
  129. 'context_optional' => 0,
  130. 'panel' => '0',
  131. 'fixed' => '',
  132. 'label' => 'Contenu : POPSU (field_popsu_ville_popsu)',
  133. ),
  134. );
  135. /* Display: Villes par ThemeTrans Pane */
  136. $handler = $view->new_display('panel_pane', 'Villes par ThemeTrans Pane', 'panel_pane_2');
  137. $handler->display->display_options['defaults']['css_class'] = FALSE;
  138. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  139. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  140. $handler->display->display_options['style_plugin'] = 'list';
  141. $handler->display->display_options['style_options']['row_class'] = 'span2';
  142. $handler->display->display_options['style_options']['default_row_class'] = FALSE;
  143. $handler->display->display_options['style_options']['class'] = 'listing-villes';
  144. $handler->display->display_options['style_options']['wrapper_class'] = 'listing-thumb clearfix';
  145. $handler->display->display_options['defaults']['style_options'] = FALSE;
  146. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  147. $handler->display->display_options['row_plugin'] = 'fields';
  148. $handler->display->display_options['defaults']['row_options'] = FALSE;
  149. $handler->display->display_options['defaults']['header'] = FALSE;
  150. /* Entête: Global : Résumé des résultats */
  151. $handler->display->display_options['header']['result']['id'] = 'result';
  152. $handler->display->display_options['header']['result']['table'] = 'views';
  153. $handler->display->display_options['header']['result']['field'] = 'result';
  154. $handler->display->display_options['header']['result']['content'] = '@total villes';
  155. $handler->display->display_options['defaults']['fields'] = FALSE;
  156. /* Champ: Contenu : Titre */
  157. $handler->display->display_options['fields']['title']['id'] = 'title';
  158. $handler->display->display_options['fields']['title']['table'] = 'node';
  159. $handler->display->display_options['fields']['title']['field'] = 'title';
  160. $handler->display->display_options['fields']['title']['label'] = '';
  161. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  162. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  163. $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  164. $handler->display->display_options['defaults']['sorts'] = FALSE;
  165. /* Critère de tri: Contenu : Titre */
  166. $handler->display->display_options['sorts']['title']['id'] = 'title';
  167. $handler->display->display_options['sorts']['title']['table'] = 'node';
  168. $handler->display->display_options['sorts']['title']['field'] = 'title';
  169. $handler->display->display_options['defaults']['arguments'] = FALSE;
  170. /* Filtre contextuel: Contenu : POPSU (field_popsu_ville_popsu) */
  171. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['id'] = 'field_popsu_ville_popsu_tid';
  172. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['table'] = 'field_data_field_popsu_ville_popsu';
  173. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['field'] = 'field_popsu_ville_popsu_tid';
  174. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['default_action'] = 'not found';
  175. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['exception']['title'] = 'Tout';
  176. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['default_argument_type'] = 'fixed';
  177. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary']['number_of_records'] = '0';
  178. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary']['format'] = 'default_summary';
  179. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['summary_options']['items_per_page'] = '25';
  180. $handler->display->display_options['arguments']['field_popsu_ville_popsu_tid']['break_phrase'] = TRUE;
  181. /* Filtre contextuel: Contenu : Ville (field_popsu_ville_ville) */
  182. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['id'] = 'field_popsu_ville_ville_tid';
  183. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['table'] = 'field_data_field_popsu_ville_ville';
  184. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['field'] = 'field_popsu_ville_ville_tid';
  185. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['default_action'] = 'not found';
  186. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['exception']['title'] = 'Tout';
  187. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['default_argument_type'] = 'fixed';
  188. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['summary']['number_of_records'] = '0';
  189. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['summary']['format'] = 'default_summary';
  190. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['summary_options']['items_per_page'] = '25';
  191. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['specify_validation'] = TRUE;
  192. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['validate']['type'] = 'taxonomy_term';
  193. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['validate_options']['vocabularies'] = array(
  194. 'popsu_villes' => 'popsu_villes',
  195. );
  196. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['validate_options']['type'] = 'tids';
  197. $handler->display->display_options['arguments']['field_popsu_ville_ville_tid']['break_phrase'] = TRUE;
  198. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  199. $handler->display->display_options['argument_input'] = array(
  200. 'field_popsu_ville_popsu_tid' => array(
  201. 'type' => 'user',
  202. 'context' => 'string.raw',
  203. 'context_optional' => 0,
  204. 'panel' => '0',
  205. 'fixed' => '',
  206. 'label' => 'Contenu : POPSU (field_popsu_ville_popsu)',
  207. ),
  208. 'field_popsu_ville_ville_tid' => array(
  209. 'type' => 'user',
  210. 'context' => 'string.raw',
  211. 'context_optional' => 0,
  212. 'panel' => '0',
  213. 'fixed' => '',
  214. 'label' => 'Contenu : Ville (field_popsu_ville_ville)',
  215. ),
  216. );
  217. $translatables['villes'] = array(
  218. t('Master'),
  219. t('plus'),
  220. t('Appliquer'),
  221. t('Réinitialiser'),
  222. t('Trier par'),
  223. t('Asc'),
  224. t('Desc'),
  225. t('Page'),
  226. t('Villes'),
  227. t('Villes par POPSU Pane'),
  228. t('@total villes'),
  229. t('Tout'),
  230. t('Volets de vue'),
  231. t('Villes par ThemeTrans Pane'),
  232. );
  233. $export['villes'] = $view;
  234. return $export;
  235. }