123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- <?php
- /**
- * @file
- * popsu_colloques.panels_default.inc
- */
- /**
- * Implements hook_default_panels_mini().
- */
- function popsu_colloques_default_panels_mini() {
- $export = array();
- $mini = new stdClass();
- $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
- $mini->api_version = 1;
- $mini->name = 'popsu_mini_ville_colloque';
- $mini->category = 'POPSU Mini';
- $mini->admin_title = 'POPSU Mini - Ville - Colloque';
- $mini->admin_description = 'Mini panel pour afficher le colloque dans la page ville';
- $mini->requiredcontexts = array(
- 0 => array(
- 'identifier' => 'Nœud',
- 'keyword' => 'node',
- 'name' => 'entity:node',
- 'entity_id' => '',
- 'id' => 1,
- ),
- );
- $mini->contexts = array();
- $mini->relationships = array(
- 0 => array(
- 'identifier' => 'Terme de taxonomie from Nœud (on Nœud: Ville [field_popsu_ville_ville])',
- 'keyword' => 'taxonomy_term',
- 'name' => 'entity_from_field:field_popsu_ville_ville-node-taxonomy_term',
- 'delta' => 0,
- 'context' => 'requiredcontext_entity:node_1',
- 'id' => 1,
- ),
- 1 => array(
- 'identifier' => 'Terme de taxonomie from Nœud (on Nœud: POPSU [field_popsu_ville_popsu])',
- 'keyword' => 'taxonomy_term_2',
- 'name' => 'entity_from_field:field_popsu_ville_popsu-node-taxonomy_term',
- 'delta' => 0,
- 'context' => 'requiredcontext_entity:node_1',
- 'id' => 1,
- ),
- );
- $display = new panels_display();
- $display->layout = 'twocol_70_30_stacked';
- $display->layout_settings = array();
- $display->panel_settings = array(
- 'style_settings' => array(
- 'default' => NULL,
- 'header' => NULL,
- 'top' => NULL,
- 'left' => NULL,
- 'right' => NULL,
- 'footer' => NULL,
- ),
- );
- $display->cache = array();
- $display->title = '';
- $display->content = array();
- $display->panels = array();
- $pane = new stdClass();
- $pane->pid = 'new-1';
- $pane->panel = 'left';
- $pane->type = 'entity_field';
- $pane->subtype = 'node:field_popsu_colloque_body';
- $pane->shown = TRUE;
- $pane->access = array();
- $pane->configuration = array(
- 'label' => 'hidden',
- 'formatter' => 'text_default',
- 'delta_limit' => 0,
- 'delta_offset' => '0',
- 'delta_reversed' => FALSE,
- 'formatter_settings' => array(),
- 'context' => 'requiredcontext_entity:node_1',
- 'override_title' => 1,
- 'override_title_text' => '<none>',
- );
- $pane->cache = array();
- $pane->style = array(
- 'settings' => NULL,
- );
- $pane->css = array();
- $pane->extras = array();
- $pane->position = 0;
- $pane->locks = array();
- $display->content['new-1'] = $pane;
- $display->panels['left'][0] = 'new-1';
- $pane = new stdClass();
- $pane->pid = 'new-2';
- $pane->panel = 'left';
- $pane->type = 'views_panes';
- $pane->subtype = 'colloques-panel_pane_1';
- $pane->shown = TRUE;
- $pane->access = array();
- $pane->configuration = array(
- 'arguments' => array(
- 'field_popsu_colloque_ville_tid' => '%taxonomy_term:tid',
- 'field_popsu_colloque_popsu_tid' => '%taxonomy_term_2:tid',
- ),
- );
- $pane->cache = array();
- $pane->style = array(
- 'settings' => NULL,
- );
- $pane->css = array();
- $pane->extras = array();
- $pane->position = 1;
- $pane->locks = array();
- $display->content['new-2'] = $pane;
- $display->panels['left'][1] = 'new-2';
- $pane = new stdClass();
- $pane->pid = 'new-3';
- $pane->panel = 'right';
- $pane->type = 'entity_field';
- $pane->subtype = 'node:field_popsu_colloque_subtitle';
- $pane->shown = TRUE;
- $pane->access = array();
- $pane->configuration = array(
- 'label' => 'hidden',
- 'formatter' => 'text_default',
- 'delta_limit' => 0,
- 'delta_offset' => '0',
- 'delta_reversed' => FALSE,
- 'formatter_settings' => array(),
- 'context' => 'requiredcontext_entity:node_1',
- 'override_title' => 1,
- 'override_title_text' => '<none>',
- );
- $pane->cache = array();
- $pane->style = array(
- 'settings' => NULL,
- );
- $pane->css = array();
- $pane->extras = array();
- $pane->position = 0;
- $pane->locks = array();
- $display->content['new-3'] = $pane;
- $display->panels['right'][0] = 'new-3';
- $pane = new stdClass();
- $pane->pid = 'new-4';
- $pane->panel = 'right';
- $pane->type = 'entity_field';
- $pane->subtype = 'node:field_popsu_colloque_imageintro';
- $pane->shown = TRUE;
- $pane->access = array();
- $pane->configuration = array(
- 'label' => 'hidden',
- 'formatter' => 'image',
- 'delta_limit' => '0',
- 'delta_offset' => '0',
- 'delta_reversed' => 0,
- 'formatter_settings' => array(
- 'image_style' => 'thumbnail',
- 'image_link' => '',
- ),
- 'context' => 'requiredcontext_entity:node_1',
- 'override_title' => 1,
- 'override_title_text' => '<none>',
- );
- $pane->cache = array();
- $pane->style = array(
- 'settings' => NULL,
- );
- $pane->css = array();
- $pane->extras = array();
- $pane->position = 1;
- $pane->locks = array();
- $display->content['new-4'] = $pane;
- $display->panels['right'][1] = 'new-4';
- $pane = new stdClass();
- $pane->pid = 'new-5';
- $pane->panel = 'right';
- $pane->type = 'custom';
- $pane->subtype = 'custom';
- $pane->shown = TRUE;
- $pane->access = array();
- $pane->configuration = array(
- 'admin_title' => 'POPSU Fermeture de liste',
- 'title' => '<none>',
- 'body' => '<div></div>',
- 'format' => 'php_code',
- 'substitute' => 0,
- );
- $pane->cache = array();
- $pane->style = array(
- 'settings' => NULL,
- );
- $pane->css = array(
- 'css_id' => '',
- 'css_class' => 'border-last',
- );
- $pane->extras = array();
- $pane->position = 2;
- $pane->locks = array();
- $display->content['new-5'] = $pane;
- $display->panels['right'][2] = 'new-5';
- $display->hide_title = PANELS_TITLE_NONE;
- $display->title_pane = 'new-1';
- $mini->display = $display;
- $export['popsu_mini_ville_colloque'] = $mini;
- return $export;
- }
|