267 lines
7.9 KiB
PHP
267 lines
7.9 KiB
PHP
<?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;
|
|
}
|