123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <?php
- /**
- * @file
- * clameurs.panels_default.inc
- */
- /**
- * Implements hook_default_panels_mini().
- */
- function clameurs_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 = 'th_matique';
- $mini->category = 'clameurs';
- $mini->admin_title = 'Thématique';
- $mini->admin_description = 'display a thematique with theese episode and documentaire';
- $mini->requiredcontexts = array(
- 0 => array(
- 'identifier' => 'Nœud',
- 'keyword' => 'node',
- 'name' => 'entity:node',
- 'entity_id' => '',
- 'optional' => 0,
- 'id' => 1,
- ),
- );
- $mini->contexts = array();
- $mini->relationships = array(
- 0 => array(
- 'identifier' => 'Entity property node:nid',
- 'keyword' => 'nid',
- 'name' => 'entity_property',
- 'selector' => 'nid',
- 'target_context' => 'integer',
- 'concatenator' => ',',
- 'context' => 'requiredcontext_entity:node_1',
- 'id' => 1,
- ),
- );
- $display = new panels_display();
- $display->layout = 'clameur';
- $display->layout_settings = array();
- $display->panel_settings = array(
- 'style_settings' => array(
- 'default' => NULL,
- 'top' => NULL,
- 'left' => NULL,
- 'right' => NULL,
- 'bottom' => NULL,
- ),
- 'style' => 'naked',
- );
- $display->cache = array();
- $display->title = '%node:title';
- $display->uuid = '4e740500-47e0-4654-b03d-e7ea78b47cec';
- $display->storage_type = 'panels_mini';
- $display->storage_id = 'th_matique';
- $display->content = array();
- $display->panels = array();
- $pane = new stdClass();
- $pane->pid = 'new-174a4077-63b3-418d-9b16-5887926f0f80';
- $pane->panel = 'bottom';
- $pane->type = 'entity_field';
- $pane->subtype = 'node:field_episodes';
- $pane->shown = TRUE;
- $pane->access = array();
- $pane->configuration = array(
- 'label' => 'hidden',
- 'formatter' => 'entityreference_entity_view',
- 'delta_limit' => '0',
- 'delta_offset' => '0',
- 'delta_reversed' => 0,
- 'formatter_settings' => array(
- 'view_mode' => 'teaser',
- 'links' => 0,
- 'use_content_language' => 1,
- ),
- 'context' => 'requiredcontext_entity:node_1',
- 'override_title' => 0,
- 'override_title_text' => '',
- 'override_title_heading' => 'h2',
- );
- $pane->cache = array();
- $pane->style = array(
- 'settings' => NULL,
- 'style' => 'naked',
- );
- $pane->css = array();
- $pane->extras = array();
- $pane->position = 0;
- $pane->locks = array();
- $pane->uuid = '174a4077-63b3-418d-9b16-5887926f0f80';
- $display->content['new-174a4077-63b3-418d-9b16-5887926f0f80'] = $pane;
- $display->panels['bottom'][0] = 'new-174a4077-63b3-418d-9b16-5887926f0f80';
- $pane = new stdClass();
- $pane->pid = 'new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
- $pane->panel = 'left';
- $pane->type = 'entity_field';
- $pane->subtype = 'node:body';
- $pane->shown = FALSE;
- $pane->access = array();
- $pane->configuration = array(
- 'label' => 'hidden',
- 'formatter' => 'text_default',
- 'delta_limit' => 0,
- 'delta_offset' => '0',
- 'delta_reversed' => FALSE,
- 'formatter_settings' => array(
- 'trim_length' => '600',
- ),
- 'context' => 'requiredcontext_entity:node_1',
- 'override_title' => 0,
- 'override_title_text' => '',
- 'override_title_heading' => 'h2',
- );
- $pane->cache = array();
- $pane->style = array(
- 'settings' => NULL,
- 'style' => 'naked',
- );
- $pane->css = array();
- $pane->extras = array();
- $pane->position = 0;
- $pane->locks = array();
- $pane->uuid = '3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
- $display->content['new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93'] = $pane;
- $display->panels['left'][0] = 'new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
- $pane = new stdClass();
- $pane->pid = 'new-5cb200c4-da2c-4eba-972d-24012a9136b7';
- $pane->panel = 'left';
- $pane->type = 'entity_field';
- $pane->subtype = 'node:field_emvideo';
- $pane->shown = FALSE;
- $pane->access = array();
- $pane->configuration = array(
- 'label' => 'hidden',
- 'formatter' => 'video_embed_field_overlay',
- 'delta_limit' => 0,
- 'delta_offset' => '0',
- 'delta_reversed' => FALSE,
- 'formatter_settings' => array(
- 'image_style' => 'video_thumb_themat',
- 'image_link' => 'source',
- 'video_style' => 'normal',
- 'show_thumbnail' => '1',
- 'overlay' => 'dom-window',
- ),
- 'context' => 'requiredcontext_entity:node_1',
- 'override_title' => 0,
- 'override_title_text' => '',
- 'override_title_heading' => 'h2',
- );
- $pane->cache = array();
- $pane->style = array(
- 'settings' => NULL,
- 'style' => 'naked',
- );
- $pane->css = array();
- $pane->extras = array();
- $pane->position = 1;
- $pane->locks = array();
- $pane->uuid = '5cb200c4-da2c-4eba-972d-24012a9136b7';
- $display->content['new-5cb200c4-da2c-4eba-972d-24012a9136b7'] = $pane;
- $display->panels['left'][1] = 'new-5cb200c4-da2c-4eba-972d-24012a9136b7';
- $pane = new stdClass();
- $pane->pid = 'new-5706499d-b09f-430e-a96b-40c75be56c32';
- $pane->panel = 'left';
- $pane->type = 'entity_view';
- $pane->subtype = 'node';
- $pane->shown = TRUE;
- $pane->access = array();
- $pane->configuration = array(
- 'view_mode' => 'teaser',
- 'context' => 'requiredcontext_entity:node_1',
- 'override_title' => 1,
- 'override_title_text' => '',
- 'override_title_heading' => 'h2',
- );
- $pane->cache = array();
- $pane->style = array(
- 'settings' => NULL,
- );
- $pane->css = array();
- $pane->extras = array();
- $pane->position = 2;
- $pane->locks = array();
- $pane->uuid = '5706499d-b09f-430e-a96b-40c75be56c32';
- $display->content['new-5706499d-b09f-430e-a96b-40c75be56c32'] = $pane;
- $display->panels['left'][2] = 'new-5706499d-b09f-430e-a96b-40c75be56c32';
- $pane = new stdClass();
- $pane->pid = 'new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
- $pane->panel = 'right';
- $pane->type = 'entity_field';
- $pane->subtype = 'node:field_eclairages';
- $pane->shown = TRUE;
- $pane->access = array();
- $pane->configuration = array(
- 'label' => 'hidden',
- 'formatter' => 'entityreference_entity_view',
- 'delta_limit' => '0',
- 'delta_offset' => '0',
- 'delta_reversed' => 0,
- 'formatter_settings' => array(
- 'view_mode' => 'teaser',
- 'links' => 0,
- 'use_content_language' => 0,
- ),
- 'context' => 'requiredcontext_entity:node_1',
- 'override_title' => 0,
- 'override_title_text' => '',
- 'override_title_heading' => 'h2',
- );
- $pane->cache = array();
- $pane->style = array(
- 'settings' => NULL,
- 'style' => 'naked',
- );
- $pane->css = array();
- $pane->extras = array();
- $pane->position = 0;
- $pane->locks = array();
- $pane->uuid = '5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
- $display->content['new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59'] = $pane;
- $display->panels['right'][0] = 'new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
- $pane = new stdClass();
- $pane->pid = 'new-5e7b0d6a-9243-4776-b535-b14d3cff1df1';
- $pane->panel = 'top';
- $pane->type = 'node_title';
- $pane->subtype = 'node_title';
- $pane->shown = TRUE;
- $pane->access = array();
- $pane->configuration = array(
- 'link' => 0,
- 'markup' => 'h2',
- 'id' => '%node:nid',
- 'class' => '',
- 'context' => 'requiredcontext_entity:node_1',
- 'override_title' => 0,
- 'override_title_text' => '',
- 'override_title_heading' => 'h2',
- );
- $pane->cache = array();
- $pane->style = array(
- 'style' => 'naked',
- 'settings' => NULL,
- );
- $pane->css = array(
- 'css_id' => '%node:nid',
- 'css_class' => '',
- );
- $pane->extras = array();
- $pane->position = 0;
- $pane->locks = array();
- $pane->uuid = '5e7b0d6a-9243-4776-b535-b14d3cff1df1';
- $display->content['new-5e7b0d6a-9243-4776-b535-b14d3cff1df1'] = $pane;
- $display->panels['top'][0] = 'new-5e7b0d6a-9243-4776-b535-b14d3cff1df1';
- $display->hide_title = PANELS_TITLE_NONE;
- $display->title_pane = 'new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
- $mini->display = $display;
- $export['th_matique'] = $mini;
- return $export;
- }
|