first import
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.context.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_context_default_contexts().
|
||||
*/
|
||||
function popsu_pages_neutres_context_default_contexts() {
|
||||
$export = array();
|
||||
|
||||
$context = new stdClass();
|
||||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
|
||||
$context->api_version = 3;
|
||||
$context->name = 'popsu-pagesneutral-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Page Neutral POPSU (feature)';
|
||||
$context->tag = 'pagesneutral-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_page_neutral' => 'popsu_page_neutral',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'boxes-popsu_logo_popsuneutral' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsuneutral',
|
||||
'region' => 'header',
|
||||
'weight' => '-32',
|
||||
),
|
||||
'boxes-popsu_logo_baseline' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_baseline',
|
||||
'region' => 'header',
|
||||
'weight' => '-31',
|
||||
),
|
||||
'boxes-popsu_logo_popsueurope' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsueurope',
|
||||
'region' => 'header',
|
||||
'weight' => '-30',
|
||||
),
|
||||
'boxes-popsu_logo_popsu2' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsu2',
|
||||
'region' => 'header',
|
||||
'weight' => '-29',
|
||||
),
|
||||
'boxes-popsu_logo_popsu1' => array(
|
||||
'module' => 'boxes',
|
||||
'delta' => 'popsu_logo_popsu1',
|
||||
'region' => 'header',
|
||||
'weight' => '-28',
|
||||
),
|
||||
),
|
||||
),
|
||||
'theme_html' => array(
|
||||
'class' => 'popsu-neutral-section',
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 1;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Page Neutral POPSU (feature)');
|
||||
t('pagesneutral-feature');
|
||||
$export['popsu-pagesneutral-node'] = $context;
|
||||
|
||||
return $export;
|
||||
}
|
@@ -0,0 +1,223 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_pages_neutres_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_page_neutral-field_popsu_pageneutral_body'.
|
||||
$fields['node-popsu_page_neutral-field_popsu_pageneutral_body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_pageneutral_body',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_with_summary',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_page_neutral',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 1,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_pageneutral_body',
|
||||
'label' => 'Texte de la page',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'display_summary' => 0,
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '20',
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => '5',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_page_neutral-field_popsu_pageneutral_col2'.
|
||||
$fields['node-popsu_page_neutral-field_popsu_pageneutral_col2'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_pageneutral_col2',
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'text_long',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_page_neutral',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 2,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_pageneutral_col2',
|
||||
'label' => 'Texte de la 2ème colone',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => '1',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => '5',
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => '6',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_page_neutral-field_popsu_pageneutral_mepage'.
|
||||
$fields['node-popsu_page_neutral-field_popsu_pageneutral_mepage'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_pageneutral_mepage',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(
|
||||
'value' => array(
|
||||
0 => 'value',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'list',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => 'sur 1 colonne',
|
||||
1 => 'sur 2 colonnes',
|
||||
),
|
||||
'allowed_values_function' => '',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'list_boolean',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_page_neutral',
|
||||
'default_value' => array(
|
||||
0 => array(
|
||||
'value' => '0',
|
||||
),
|
||||
),
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'list',
|
||||
'settings' => array(),
|
||||
'type' => 'list_default',
|
||||
'weight' => 3,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_pageneutral_mepage',
|
||||
'label' => 'Mise en page',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_buttons',
|
||||
'weight' => '4',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Mise en page');
|
||||
t('Texte de la 2ème colone');
|
||||
t('Texte de la page');
|
||||
|
||||
return $fields;
|
||||
}
|
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_pages_neutres_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "context" && $api == "context") {
|
||||
return array("version" => "3");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "field_group" && $api == "field_group") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "page_manager" && $api == "pages_default") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*/
|
||||
function popsu_pages_neutres_views_api() {
|
||||
return array("version" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_pages_neutres_node_info() {
|
||||
$items = array(
|
||||
'popsu_page_neutral' => array(
|
||||
'name' => t('Page neutre'),
|
||||
'base' => 'node_content',
|
||||
'description' => t('Les pages neutres n\'appartiennent à aucun POPSU. Exemple : la page "Mentions légales".'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Titre de la page'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_pages_neutres_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_pageneutral_basic|node|popsu_page_neutral|form';
|
||||
$field_group->group_name = 'group_popsu_pageneutral_basic';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_page_neutral';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Informations essentielles',
|
||||
'weight' => '0',
|
||||
'children' => array(
|
||||
0 => 'title',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_pageneutral_basic|node|popsu_page_neutral|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_popsu_pageneutral_body|node|popsu_page_neutral|form';
|
||||
$field_group->group_name = 'group_popsu_pageneutral_body';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_page_neutral';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Texte',
|
||||
'weight' => '1',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_pageneutral_body',
|
||||
1 => 'field_popsu_pageneutral_col2',
|
||||
2 => 'field_popsu_pageneutral_mepage',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_pageneutral_body|node|popsu_page_neutral|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
name = POPSU Pages neutres
|
||||
description = POPSU - Type de contenu Pages Neutres
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
php = 5.2.4
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_pages_neutres
|
||||
dependencies[] = boxes
|
||||
dependencies[] = context
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = field_group
|
||||
dependencies[] = list
|
||||
dependencies[] = options
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = popsu_actualites
|
||||
dependencies[] = popsu_structure
|
||||
dependencies[] = strongarm
|
||||
features[context][] = popsu-pagesneutral-node
|
||||
features[ctools][] = context:context:3
|
||||
features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = page_manager:pages_default:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:1
|
||||
features[field][] = node-popsu_page_neutral-field_popsu_pageneutral_body
|
||||
features[field][] = node-popsu_page_neutral-field_popsu_pageneutral_col2
|
||||
features[field][] = node-popsu_page_neutral-field_popsu_pageneutral_mepage
|
||||
features[field_group][] = group_popsu_pageneutral_basic|node|popsu_page_neutral|form
|
||||
features[field_group][] = group_popsu_pageneutral_body|node|popsu_page_neutral|form
|
||||
features[node][] = popsu_page_neutral
|
||||
features[page_manager_handlers][] = node_view_panel_context_11
|
||||
features[variable][] = field_bundle_settings_node__popsu_page_neutral
|
||||
features[variable][] = language_content_type_popsu_page_neutral
|
||||
features[variable][] = menu_options_popsu_page_neutral
|
||||
features[variable][] = menu_parent_popsu_page_neutral
|
||||
features[variable][] = node_options_popsu_page_neutral
|
||||
features[variable][] = node_preview_popsu_page_neutral
|
||||
features[variable][] = node_submitted_popsu_page_neutral
|
||||
features[views_view][] = pages_neutral
|
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Pages neutres feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_pages_neutres.features.inc';
|
@@ -0,0 +1,256 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.pages_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_page_manager_handlers().
|
||||
*/
|
||||
function popsu_pages_neutres_default_page_manager_handlers() {
|
||||
$export = array();
|
||||
|
||||
$handler = new stdClass();
|
||||
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
||||
$handler->api_version = 1;
|
||||
$handler->name = 'node_view_panel_context_11';
|
||||
$handler->task = 'node_view';
|
||||
$handler->subtask = '';
|
||||
$handler->handler = 'panel_context';
|
||||
$handler->weight = 10;
|
||||
$handler->conf = array(
|
||||
'title' => 'Pages froides',
|
||||
'no_blocks' => 0,
|
||||
'pipeline' => 'standard',
|
||||
'body_classes_to_remove' => '',
|
||||
'body_classes_to_add' => '',
|
||||
'css_id' => '',
|
||||
'css' => '',
|
||||
'contexts' => array(),
|
||||
'relationships' => array(),
|
||||
'access' => array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'node_type',
|
||||
'settings' => array(
|
||||
'type' => array(
|
||||
'popsu_page_neutral' => 'popsu_page_neutral',
|
||||
),
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
'logic' => 'and',
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'twocol_stacked';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'left' => NULL,
|
||||
'right' => NULL,
|
||||
'header' => NULL,
|
||||
'top' => NULL,
|
||||
'footer' => NULL,
|
||||
'middle' => NULL,
|
||||
'bottom' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = '%node: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_pageneutral_body';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'entity_field_value:node:popsu_page_neutral:field_popsu_pageneutral_mepage',
|
||||
'settings' => array(
|
||||
'field_popsu_pageneutral_mepage' => array(
|
||||
'und' => array(
|
||||
0 => array(
|
||||
'value' => '1',
|
||||
),
|
||||
),
|
||||
),
|
||||
'field_popsu_pageneutral_mepage_value' => '1',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id: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 = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_pageneutral_col2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'entity_field_value:node:popsu_page_neutral:field_popsu_pageneutral_mepage',
|
||||
'settings' => array(
|
||||
'field_popsu_pageneutral_mepage' => array(
|
||||
'und' => array(
|
||||
0 => array(
|
||||
'value' => '1',
|
||||
),
|
||||
),
|
||||
),
|
||||
'field_popsu_pageneutral_mepage_value' => '1',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id: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-2'] = $pane;
|
||||
$display->panels['right'][0] = 'new-2';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-3';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_pageneutral_body';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'entity_field_value:node:popsu_page_neutral:field_popsu_pageneutral_mepage',
|
||||
'settings' => array(
|
||||
'field_popsu_pageneutral_mepage' => array(
|
||||
'und' => array(
|
||||
0 => array(
|
||||
'value' => '0',
|
||||
),
|
||||
),
|
||||
),
|
||||
'field_popsu_pageneutral_mepage_value' => '0',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id: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['top'][0] = 'new-3';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-4';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_pageneutral_col2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'entity_field_value:node:popsu_page_neutral:field_popsu_pageneutral_mepage',
|
||||
'settings' => array(
|
||||
'field_popsu_pageneutral_mepage' => array(
|
||||
'und' => array(
|
||||
0 => array(
|
||||
'value' => '0',
|
||||
),
|
||||
),
|
||||
),
|
||||
'field_popsu_pageneutral_mepage_value' => '0',
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'label' => 'title',
|
||||
'formatter' => 'text_default',
|
||||
'delta_limit' => 0,
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => FALSE,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id: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['top'][1] = 'new-4';
|
||||
$display->hide_title = PANELS_TITLE_FIXED;
|
||||
$display->title_pane = 'new-3';
|
||||
$handler->conf['display'] = $display;
|
||||
$export['node_view_panel_context_11'] = $handler;
|
||||
|
||||
return $export;
|
||||
}
|
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_pages_neutres_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__popsu_page_neutral';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '1',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '2',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'language_content_type_popsu_page_neutral';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_options_popsu_page_neutral';
|
||||
$strongarm->value = array(
|
||||
0 => 'menu-popsu-menu-pages-froides',
|
||||
1 => 'menu-popsu-menu-footer',
|
||||
2 => 'menu-popsu-footer-droite',
|
||||
3 => 'main-menu',
|
||||
);
|
||||
$export['menu_options_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'menu_parent_popsu_page_neutral';
|
||||
$strongarm->value = 'main-menu:0';
|
||||
$export['menu_parent_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_options_popsu_page_neutral';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_preview_popsu_page_neutral';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'node_submitted_popsu_page_neutral';
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_popsu_page_neutral'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_pages_neutres.views_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_views_default_views().
|
||||
*/
|
||||
function popsu_pages_neutres_views_default_views() {
|
||||
$export = array();
|
||||
|
||||
$view = new view();
|
||||
$view->name = 'pages_neutral';
|
||||
$view->description = 'Liste des pages neutres (hors contexte POPSU)';
|
||||
$view->tag = 'POPSU';
|
||||
$view->base_table = 'node';
|
||||
$view->human_name = 'Pages neutral';
|
||||
$view->core = 7;
|
||||
$view->api_version = '3.0';
|
||||
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||||
|
||||
/* Display: Master */
|
||||
$handler = $view->new_display('default', 'Master', 'default');
|
||||
$handler->display->display_options['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['use_more_text'] = 'plus';
|
||||
$handler->display->display_options['access']['type'] = 'perm';
|
||||
$handler->display->display_options['cache']['type'] = 'none';
|
||||
$handler->display->display_options['query']['type'] = 'views_query';
|
||||
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||||
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
|
||||
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
|
||||
$handler->display->display_options['pager']['type'] = 'full';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Éléments par page';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Tout -';
|
||||
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Décalage';
|
||||
$handler->display->display_options['pager']['options']['tags']['first'] = '« premier';
|
||||
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ précédent';
|
||||
$handler->display->display_options['pager']['options']['tags']['next'] = 'suivant ›';
|
||||
$handler->display->display_options['pager']['options']['tags']['last'] = 'dernier »';
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de publication */
|
||||
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'popsu_page_neutral' => 'popsu_page_neutral',
|
||||
);
|
||||
|
||||
/* Display: Page neutral Node edit links */
|
||||
$handler = $view->new_display('panel_pane', 'Page neutral Node edit links', 'panel_pane_1');
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = '';
|
||||
$handler->display->display_options['fields']['edit_node']['element_class'] = 'btn-admin-edit';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['empty_zero'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['text'] = 'Modifier ce bloc de texte';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : Nid */
|
||||
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['table'] = 'node';
|
||||
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
|
||||
$handler->display->display_options['arguments']['nid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['nid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'nid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : Nid',
|
||||
),
|
||||
);
|
||||
$translatables['pages_neutral'] = array(
|
||||
t('Master'),
|
||||
t('plus'),
|
||||
t('Appliquer'),
|
||||
t('Réinitialiser'),
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('Éléments par page'),
|
||||
t('- Tout -'),
|
||||
t('Décalage'),
|
||||
t('« premier'),
|
||||
t('‹ précédent'),
|
||||
t('suivant ›'),
|
||||
t('dernier »'),
|
||||
t('Page neutral Node edit links'),
|
||||
t('Modifier ce bloc de texte'),
|
||||
t('Tout'),
|
||||
t('Volets de vue'),
|
||||
);
|
||||
$export['pages_neutral'] = $view;
|
||||
|
||||
return $export;
|
||||
}
|
Reference in New Issue
Block a user