first import
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_themes_trans.context.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_context_default_contexts().
|
||||
*/
|
||||
function popsu_themes_trans_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-theme-trans-node';
|
||||
$context->description = 'Contexte d\'un noeud de type Thème transversal (feature)';
|
||||
$context->tag = 'themes-trans-feature';
|
||||
$context->conditions = array(
|
||||
'node' => array(
|
||||
'values' => array(
|
||||
'popsu_theme_trans' => 'popsu_theme_trans',
|
||||
),
|
||||
'options' => array(
|
||||
'node_form' => '0',
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->reactions = array(
|
||||
'block' => array(
|
||||
'blocks' => array(
|
||||
'menu_block-3' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '3',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
'menu_block-4' => array(
|
||||
'module' => 'menu_block',
|
||||
'delta' => '4',
|
||||
'region' => 'sidebar_first',
|
||||
'weight' => '-10',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
$context->condition_mode = 0;
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Contexte d\'un noeud de type Thème transversal (feature)');
|
||||
t('themes-trans-feature');
|
||||
$export['popsu-theme-trans-node'] = $context;
|
||||
|
||||
return $export;
|
||||
}
|
@@ -0,0 +1,531 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_themes_trans.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_themes_trans_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_theme_trans-field_popsu_themtrans_body'.
|
||||
$fields['node-popsu_theme_trans-field_popsu_themtrans_body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_themtrans_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_theme_trans',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '0',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_themtrans_body',
|
||||
'label' => 'Texte d\'introduction court',
|
||||
'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' => '2',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_theme_trans-field_popsu_themtrans_equipes'.
|
||||
$fields['node-popsu_theme_trans-field_popsu_themtrans_equipes'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_themtrans_equipes',
|
||||
'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_theme_trans',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '3',
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_themtrans_equipes',
|
||||
'label' => 'Equipes',
|
||||
'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' => '5',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_theme_trans-field_popsu_themtrans_imag_illus'.
|
||||
$fields['node-popsu_theme_trans-field_popsu_themtrans_imag_illus'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_themtrans_imag_illus',
|
||||
'foreign keys' => array(
|
||||
'fid' => array(
|
||||
'columns' => array(
|
||||
'fid' => 'fid',
|
||||
),
|
||||
'table' => 'file_managed',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'default_image' => 0,
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'image',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_theme_trans',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => '',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => 6,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_themtrans_imag_illus',
|
||||
'label' => 'Grandes images d\'illustration',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'png gif jpg jpeg',
|
||||
'filefield_paths' => array(
|
||||
'active_updating' => 0,
|
||||
'file_name' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
|
||||
),
|
||||
'file_path' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 1,
|
||||
'transliterate' => 1,
|
||||
),
|
||||
'value' => 'nodes/[node:content-type]/[node:nid]/illustr',
|
||||
),
|
||||
'retroactive_update' => 0,
|
||||
),
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => '6',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_theme_trans-field_popsu_themtrans_introlong'.
|
||||
$fields['node-popsu_theme_trans-field_popsu_themtrans_introlong'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_themtrans_introlong',
|
||||
'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_theme_trans',
|
||||
'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_themtrans_introlong',
|
||||
'label' => 'Texte d\'introduction long',
|
||||
'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' => '4',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_theme_trans-field_popsu_themtrans_ref'.
|
||||
$fields['node-popsu_theme_trans-field_popsu_themtrans_ref'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_themtrans_ref',
|
||||
'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_theme_trans',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 7,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_themtrans_ref',
|
||||
'label' => 'Publications',
|
||||
'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_theme_trans-field_popsu_themtrans_reponses'.
|
||||
$fields['node-popsu_theme_trans-field_popsu_themtrans_reponses'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_themtrans_reponses',
|
||||
'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_theme_trans',
|
||||
'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_themtrans_reponses',
|
||||
'label' => 'Réponses au questionnaire',
|
||||
'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' => '4',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_theme_trans-field_popsu_themtrans_type'.
|
||||
$fields['node-popsu_theme_trans-field_popsu_themtrans_type'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_themtrans_type',
|
||||
'foreign keys' => array(
|
||||
'tid' => array(
|
||||
'columns' => array(
|
||||
'tid' => 'tid',
|
||||
),
|
||||
'table' => 'taxonomy_term_data',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'popsu_themtrans',
|
||||
'parent' => '0',
|
||||
),
|
||||
),
|
||||
'options_list_callback' => 'i18n_taxonomy_allowed_values',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'taxonomy_term_reference',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'popsu_theme_trans',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'i18n_taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'i18n_taxonomy_term_reference_link',
|
||||
'weight' => 8,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_popsu_themtrans_type',
|
||||
'label' => 'Typologie du thème',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_select',
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Equipes');
|
||||
t('Grandes images d\'illustration');
|
||||
t('Publications');
|
||||
t('Réponses au questionnaire');
|
||||
t('Texte d\'introduction court');
|
||||
t('Texte d\'introduction long');
|
||||
t('Typologie du thème');
|
||||
|
||||
return $fields;
|
||||
}
|
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_themes_trans.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function popsu_themes_trans_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_themes_trans_views_api() {
|
||||
return array("version" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_image_default_styles().
|
||||
*/
|
||||
function popsu_themes_trans_image_default_styles() {
|
||||
$styles = array();
|
||||
|
||||
// Exported image style: popsu-themestrans-listing-small.
|
||||
$styles['popsu-themestrans-listing-small'] = array(
|
||||
'name' => 'popsu-themestrans-listing-small',
|
||||
'effects' => array(
|
||||
6 => array(
|
||||
'label' => 'Mise à l’échelle et recadrage',
|
||||
'help' => 'La mise à l\'échelle et le recadrage maintiendront les proportions originales de l\'image puis recadreront la dimension la plus large. C\'est très utile pour créer des vignettes carrées sans étirer les images.',
|
||||
'effect callback' => 'image_scale_and_crop_effect',
|
||||
'dimensions callback' => 'image_resize_dimensions',
|
||||
'form callback' => 'image_resize_form',
|
||||
'summary theme' => 'image_resize_summary',
|
||||
'module' => 'image',
|
||||
'name' => 'image_scale_and_crop',
|
||||
'data' => array(
|
||||
'width' => '101',
|
||||
'height' => '87',
|
||||
),
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
return $styles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
function popsu_themes_trans_node_info() {
|
||||
$items = array(
|
||||
'popsu_theme_trans' => array(
|
||||
'name' => t('Thème transversal'),
|
||||
'base' => 'node_content',
|
||||
'description' => t('Ce type de contenu permet de créer la page d\'accueil d\'un thème transversal.'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Intitulé du thème'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_themes_trans.features.taxonomy.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_taxonomy_default_vocabularies().
|
||||
*/
|
||||
function popsu_themes_trans_taxonomy_default_vocabularies() {
|
||||
return array(
|
||||
'popsu_themtrans' => array(
|
||||
'name' => 'Type de thème transversal',
|
||||
'machine_name' => 'popsu_themtrans',
|
||||
'description' => 'Permet de nommer le thème transversal',
|
||||
'hierarchy' => '0',
|
||||
'module' => 'taxonomy',
|
||||
'weight' => '-6',
|
||||
'language' => 'und',
|
||||
'i18n_mode' => '0',
|
||||
'rdf_mapping' => array(
|
||||
'rdftype' => array(
|
||||
0 => 'skos:ConceptScheme',
|
||||
),
|
||||
'name' => array(
|
||||
'predicates' => array(
|
||||
0 => 'dc:title',
|
||||
),
|
||||
),
|
||||
'description' => array(
|
||||
'predicates' => array(
|
||||
0 => 'rdfs:comment',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
@@ -0,0 +1,203 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_themes_trans.field_group.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_group_info().
|
||||
*/
|
||||
function popsu_themes_trans_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_themtrans_basic|node|popsu_theme_trans|form';
|
||||
$field_group->group_name = 'group_popsu_themtrans_basic';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_theme_trans';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Informations essentielles',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'title',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_themtrans_basic|node|popsu_theme_trans|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_themtrans_equipe|node|popsu_theme_trans|form';
|
||||
$field_group->group_name = 'group_popsu_themtrans_equipe';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_theme_trans';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Equipe',
|
||||
'weight' => '6',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_themtrans_equipes',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_themtrans_equipe|node|popsu_theme_trans|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_themtrans_images|node|popsu_theme_trans|form';
|
||||
$field_group->group_name = 'group_popsu_themtrans_images';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_theme_trans';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Images',
|
||||
'weight' => '9',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_themtrans_imag_illus',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_themtrans_images|node|popsu_theme_trans|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_themtrans_intro|node|popsu_theme_trans|form';
|
||||
$field_group->group_name = 'group_popsu_themtrans_intro';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_theme_trans';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Introduction',
|
||||
'weight' => '4',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_themtrans_body',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_themtrans_intro|node|popsu_theme_trans|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_themtrans_question|node|popsu_theme_trans|form';
|
||||
$field_group->group_name = 'group_popsu_themtrans_question';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_theme_trans';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Questionnaire',
|
||||
'weight' => '7',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_themtrans_reponses',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_themtrans_question|node|popsu_theme_trans|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_themtrans_refs|node|popsu_theme_trans|form';
|
||||
$field_group->group_name = 'group_popsu_themtrans_refs';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_theme_trans';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Références & Publications',
|
||||
'weight' => '8',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_themtrans_ref',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_themtrans_refs|node|popsu_theme_trans|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_themtrans_text|node|popsu_theme_trans|form';
|
||||
$field_group->group_name = 'group_popsu_themtrans_text';
|
||||
$field_group->entity_type = 'node';
|
||||
$field_group->bundle = 'popsu_theme_trans';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Texte',
|
||||
'weight' => '5',
|
||||
'children' => array(
|
||||
0 => 'field_popsu_themtrans_introlong',
|
||||
),
|
||||
'format_type' => 'tab',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'closed',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => '',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_popsu_themtrans_text|node|popsu_theme_trans|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
@@ -0,0 +1,53 @@
|
||||
name = POPSU Thèmes transversaux
|
||||
description = POPSU - Type de contenu Thèmes transversaux
|
||||
core = 7.x
|
||||
package = POPSU
|
||||
php = 5.2.4
|
||||
version = 7.x-1.0-beta9
|
||||
project = popsu_themes_trans
|
||||
dependencies[] = context
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = field_group
|
||||
dependencies[] = filefield_paths
|
||||
dependencies[] = image
|
||||
dependencies[] = menu_block
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = popsu_taxonomies
|
||||
dependencies[] = search
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = views
|
||||
dependencies[] = views_content
|
||||
features[context][] = popsu-theme-trans-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_theme_trans-field_popsu_themtrans_body
|
||||
features[field][] = node-popsu_theme_trans-field_popsu_themtrans_equipes
|
||||
features[field][] = node-popsu_theme_trans-field_popsu_themtrans_imag_illus
|
||||
features[field][] = node-popsu_theme_trans-field_popsu_themtrans_introlong
|
||||
features[field][] = node-popsu_theme_trans-field_popsu_themtrans_ref
|
||||
features[field][] = node-popsu_theme_trans-field_popsu_themtrans_reponses
|
||||
features[field][] = node-popsu_theme_trans-field_popsu_themtrans_type
|
||||
features[field_group][] = group_popsu_themtrans_basic|node|popsu_theme_trans|form
|
||||
features[field_group][] = group_popsu_themtrans_equipe|node|popsu_theme_trans|form
|
||||
features[field_group][] = group_popsu_themtrans_images|node|popsu_theme_trans|form
|
||||
features[field_group][] = group_popsu_themtrans_intro|node|popsu_theme_trans|form
|
||||
features[field_group][] = group_popsu_themtrans_question|node|popsu_theme_trans|form
|
||||
features[field_group][] = group_popsu_themtrans_refs|node|popsu_theme_trans|form
|
||||
features[field_group][] = group_popsu_themtrans_text|node|popsu_theme_trans|form
|
||||
features[image][] = popsu-themestrans-listing-small
|
||||
features[node][] = popsu_theme_trans
|
||||
features[page_manager_handlers][] = node_view_panel_context_6
|
||||
features[taxonomy][] = popsu_themtrans
|
||||
features[variable][] = field_bundle_settings_node__popsu_theme_trans
|
||||
features[variable][] = language_content_type_popsu_theme_trans
|
||||
features[variable][] = menu_options_popsu_theme_trans
|
||||
features[variable][] = menu_parent_popsu_theme_trans
|
||||
features[variable][] = node_options_popsu_theme_trans
|
||||
features[variable][] = node_preview_popsu_theme_trans
|
||||
features[variable][] = node_submitted_popsu_theme_trans
|
||||
features[views_view][] = themes_trans
|
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the POPSU Thèmes transversaux feature.
|
||||
*/
|
||||
|
||||
include_once 'popsu_themes_trans.features.inc';
|
@@ -0,0 +1,453 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_themes_trans.pages_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_page_manager_handlers().
|
||||
*/
|
||||
function popsu_themes_trans_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_6';
|
||||
$handler->task = 'node_view';
|
||||
$handler->subtask = '';
|
||||
$handler->handler = 'panel_context';
|
||||
$handler->weight = 5;
|
||||
$handler->conf = array(
|
||||
'title' => 'Thèmes transversaux (feature)',
|
||||
'no_blocks' => 0,
|
||||
'pipeline' => 'standard',
|
||||
'body_classes_to_remove' => '',
|
||||
'body_classes_to_add' => '',
|
||||
'css_id' => '',
|
||||
'css' => '',
|
||||
'contexts' => array(),
|
||||
'relationships' => array(
|
||||
0 => array(
|
||||
'identifier' => 'Terme de taxonomie from Nœud (on Nœud: Typologie du thème [field_popsu_themtrans_type])',
|
||||
'keyword' => 'taxonomy_term',
|
||||
'name' => 'entity_from_field:field_popsu_themtrans_type-node-taxonomy_term',
|
||||
'delta' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'id' => 1,
|
||||
),
|
||||
1 => array(
|
||||
'identifier' => 'Terme de taxonomie from Nœud (on Nœud: POPSU [field_popsu_themtrans_popsu])',
|
||||
'keyword' => 'taxonomy_term_2',
|
||||
'name' => 'entity_from_field:field_popsu_themtrans_popsu-node-taxonomy_term',
|
||||
'delta' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'id' => 1,
|
||||
),
|
||||
2 => array(
|
||||
'identifier' => 'Terme de taxonomie from Nœud (on Nœud: Villes concernées par ce thème [field_popsu_themtrans_villes])',
|
||||
'keyword' => 'taxonomy_term_3',
|
||||
'name' => 'entity_from_field:field_popsu_themtrans_villes-node-taxonomy_term',
|
||||
'delta' => '0',
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'id' => 1,
|
||||
),
|
||||
),
|
||||
'access' => array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'node_type',
|
||||
'settings' => array(
|
||||
'type' => array(
|
||||
'popsu_theme_trans' => 'popsu_theme_trans',
|
||||
),
|
||||
),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
'logic' => 'and',
|
||||
),
|
||||
);
|
||||
$display = new panels_display();
|
||||
$display->layout = 'flexible:popsu_74_36_stacked';
|
||||
$display->layout_settings = array();
|
||||
$display->panel_settings = array(
|
||||
'style_settings' => array(
|
||||
'default' => NULL,
|
||||
'top' => NULL,
|
||||
'left' => NULL,
|
||||
'right' => NULL,
|
||||
'bottom' => NULL,
|
||||
'header' => NULL,
|
||||
'footer' => NULL,
|
||||
),
|
||||
);
|
||||
$display->cache = array();
|
||||
$display->title = '%taxonomy_term:name';
|
||||
$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_themtrans_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' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'text-intro text-intro-18 layout-88p',
|
||||
);
|
||||
$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 = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_themtrans_reponses';
|
||||
$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' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => 'Réponses au questionnaire',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => ' layout-88p',
|
||||
);
|
||||
$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 = 'left';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_themtrans_introlong';
|
||||
$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' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => ' layout-88p',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 2;
|
||||
$pane->locks = array();
|
||||
$display->content['new-3'] = $pane;
|
||||
$display->panels['left'][2] = 'new-3';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-4';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'node_links';
|
||||
$pane->subtype = 'node_links';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array(
|
||||
'plugins' => array(
|
||||
0 => array(
|
||||
'name' => 'role',
|
||||
'settings' => array(
|
||||
'rids' => array(
|
||||
0 => 3,
|
||||
1 => 4,
|
||||
2 => 5,
|
||||
),
|
||||
),
|
||||
'context' => 'logged-in-user',
|
||||
'not' => FALSE,
|
||||
),
|
||||
),
|
||||
);
|
||||
$pane->configuration = array(
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
'build_mode' => 'full',
|
||||
'identifier' => '',
|
||||
'link' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'admin-add-item admin-add-item-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-4'] = $pane;
|
||||
$display->panels['right'][0] = 'new-4';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-5';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_themtrans_equipes';
|
||||
$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' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => 'Equipe',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-equipe-themtrans',
|
||||
'css_class' => 'accordion-h2 accordion-h2-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 1;
|
||||
$pane->locks = array();
|
||||
$display->content['new-5'] = $pane;
|
||||
$display->panels['right'][1] = 'new-5';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-6';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_themtrans_villes';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'label' => 'hidden',
|
||||
'formatter' => 'taxonomy_term_reference_link',
|
||||
'delta_limit' => '0',
|
||||
'delta_offset' => '0',
|
||||
'delta_reversed' => 0,
|
||||
'formatter_settings' => array(),
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => 'Villes etudiees',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-villes-etudiees',
|
||||
'css_class' => 'accordion-h2 accordion-h2-panel pseudo-list',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 2;
|
||||
$pane->locks = array();
|
||||
$display->content['new-6'] = $pane;
|
||||
$display->panels['right'][2] = 'new-6';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-7';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'villes-panel_pane_2';
|
||||
$pane->shown = FALSE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_ville_popsu_tid' => '%taxonomy_term_2:tid',
|
||||
'field_popsu_ville_ville_tid' => '%taxonomy_term_3:tid',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->extras = array();
|
||||
$pane->position = 3;
|
||||
$pane->locks = array();
|
||||
$display->content['new-7'] = $pane;
|
||||
$display->panels['right'][3] = 'new-7';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-8';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'documents-panel_pane_4';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_doc_parent_nid' => '%node:nid',
|
||||
'field_popsu_doc_type_tid' => '54',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-questionnaires',
|
||||
'css_class' => 'accordion-h2 accordion-h2-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 4;
|
||||
$pane->locks = array();
|
||||
$display->content['new-8'] = $pane;
|
||||
$display->panels['right'][4] = 'new-8';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-9';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'entity_field';
|
||||
$pane->subtype = 'node:field_popsu_themtrans_ref';
|
||||
$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' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => 'Publications',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-references',
|
||||
'css_class' => 'accordion-h2 accordion-h2-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 5;
|
||||
$pane->locks = array();
|
||||
$display->content['new-9'] = $pane;
|
||||
$display->panels['right'][5] = 'new-9';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-10';
|
||||
$pane->panel = 'right';
|
||||
$pane->type = 'views_panes';
|
||||
$pane->subtype = 'documents-panel_pane_2';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'arguments' => array(
|
||||
'field_popsu_doc_parent_nid' => '%node:nid',
|
||||
'field_popsu_doc_type_tid' => '52',
|
||||
),
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => 'accordion-h2-documents',
|
||||
'css_class' => 'accordion-h2 accordion-h2-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 6;
|
||||
$pane->locks = array();
|
||||
$display->content['new-10'] = $pane;
|
||||
$display->panels['right'][6] = 'new-10';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-11';
|
||||
$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 = 7;
|
||||
$pane->locks = array();
|
||||
$display->content['new-11'] = $pane;
|
||||
$display->panels['right'][7] = 'new-11';
|
||||
$pane = new stdClass();
|
||||
$pane->pid = 'new-12';
|
||||
$pane->panel = 'top';
|
||||
$pane->type = 'node_title';
|
||||
$pane->subtype = 'node_title';
|
||||
$pane->shown = TRUE;
|
||||
$pane->access = array();
|
||||
$pane->configuration = array(
|
||||
'link' => 0,
|
||||
'context' => 'argument_entity_id:node_1',
|
||||
'override_title' => 1,
|
||||
'override_title_text' => '<none>',
|
||||
);
|
||||
$pane->cache = array();
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'page-title-secondary',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
$display->content['new-12'] = $pane;
|
||||
$display->panels['top'][0] = 'new-12';
|
||||
$display->hide_title = PANELS_TITLE_FIXED;
|
||||
$display->title_pane = '0';
|
||||
$handler->conf['display'] = $display;
|
||||
$export['node_view_panel_context_6'] = $handler;
|
||||
|
||||
return $export;
|
||||
}
|
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_themes_trans.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function popsu_themes_trans_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_theme_trans';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(
|
||||
'teaser' => array(
|
||||
'custom_settings' => TRUE,
|
||||
),
|
||||
'full' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'rss' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_index' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'search_result' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'token' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'title' => array(
|
||||
'weight' => '3',
|
||||
),
|
||||
'path' => array(
|
||||
'weight' => '10',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__popsu_theme_trans'] = $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_theme_trans';
|
||||
$strongarm->value = '0';
|
||||
$export['language_content_type_popsu_theme_trans'] = $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_theme_trans';
|
||||
$strongarm->value = array(
|
||||
0 => 'menu-popsu1-menu',
|
||||
1 => 'menu-popsu2-menu',
|
||||
);
|
||||
$export['menu_options_popsu_theme_trans'] = $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_theme_trans';
|
||||
$strongarm->value = 'menu-popsu1-menu:0';
|
||||
$export['menu_parent_popsu_theme_trans'] = $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_theme_trans';
|
||||
$strongarm->value = array(
|
||||
0 => 'status',
|
||||
1 => 'revision',
|
||||
);
|
||||
$export['node_options_popsu_theme_trans'] = $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_theme_trans';
|
||||
$strongarm->value = '0';
|
||||
$export['node_preview_popsu_theme_trans'] = $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_theme_trans';
|
||||
$strongarm->value = 1;
|
||||
$export['node_submitted_popsu_theme_trans'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
@@ -0,0 +1,172 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_themes_trans.views_default.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_views_default_views().
|
||||
*/
|
||||
function popsu_themes_trans_views_default_views() {
|
||||
$export = array();
|
||||
|
||||
$view = new view();
|
||||
$view->name = 'themes_trans';
|
||||
$view->description = 'Liste des publications';
|
||||
$view->tag = 'POPSU';
|
||||
$view->base_table = 'node';
|
||||
$view->human_name = 'Thèmes transversaux';
|
||||
$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_theme_trans' => 'popsu_theme_trans',
|
||||
);
|
||||
|
||||
/* Display: Page */
|
||||
$handler = $view->new_display('page', 'Page', 'page_1');
|
||||
$handler->display->display_options['defaults']['title'] = FALSE;
|
||||
$handler->display->display_options['title'] = 'Thèmes transversaux';
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['path'] = 'themes-transversaux';
|
||||
|
||||
/* Display: Thèmes Trans Par POPSU Pane */
|
||||
$handler = $view->new_display('panel_pane', 'Thèmes Trans Par POPSU Pane', 'panel_pane_1');
|
||||
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
|
||||
$handler->display->display_options['defaults']['pager'] = FALSE;
|
||||
$handler->display->display_options['pager']['type'] = 'none';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
|
||||
$handler->display->display_options['style_plugin'] = 'list';
|
||||
$handler->display->display_options['style_options']['row_class'] = 'span2';
|
||||
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
|
||||
$handler->display->display_options['style_options']['class'] = 'listing-themestrans';
|
||||
$handler->display->display_options['style_options']['wrapper_class'] = 'listing-thumb clearfix';
|
||||
$handler->display->display_options['defaults']['style_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
|
||||
$handler->display->display_options['row_plugin'] = 'fields';
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['header'] = FALSE;
|
||||
/* Entête: Global : Résumé des résultats */
|
||||
$handler->display->display_options['header']['result']['id'] = 'result';
|
||||
$handler->display->display_options['header']['result']['table'] = 'views';
|
||||
$handler->display->display_options['header']['result']['field'] = 'result';
|
||||
$handler->display->display_options['header']['result']['content'] = '@total analyses comparatives';
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Grandes images d'illustration */
|
||||
$handler->display->display_options['fields']['field_popsu_themtrans_imag_illus']['id'] = 'field_popsu_themtrans_imag_illus';
|
||||
$handler->display->display_options['fields']['field_popsu_themtrans_imag_illus']['table'] = 'field_data_field_popsu_themtrans_imag_illus';
|
||||
$handler->display->display_options['fields']['field_popsu_themtrans_imag_illus']['field'] = 'field_popsu_themtrans_imag_illus';
|
||||
$handler->display->display_options['fields']['field_popsu_themtrans_imag_illus']['label'] = '';
|
||||
$handler->display->display_options['fields']['field_popsu_themtrans_imag_illus']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_popsu_themtrans_imag_illus']['click_sort_column'] = 'fid';
|
||||
$handler->display->display_options['fields']['field_popsu_themtrans_imag_illus']['settings'] = array(
|
||||
'image_style' => 'popsu-themestrans-listing-small',
|
||||
'image_link' => 'content',
|
||||
);
|
||||
$handler->display->display_options['fields']['field_popsu_themtrans_imag_illus']['delta_offset'] = '0';
|
||||
/* 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;
|
||||
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||||
/* Critère de tri: Contenu : Titre */
|
||||
$handler->display->display_options['sorts']['title']['id'] = 'title';
|
||||
$handler->display->display_options['sorts']['title']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['title']['field'] = 'title';
|
||||
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||||
/* Filtre contextuel: Contenu : POPSU (field_popsu_themtrans_popsu) */
|
||||
$handler->display->display_options['arguments']['field_popsu_themtrans_popsu_tid']['id'] = 'field_popsu_themtrans_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_themtrans_popsu_tid']['table'] = 'field_data_field_popsu_themtrans_popsu';
|
||||
$handler->display->display_options['arguments']['field_popsu_themtrans_popsu_tid']['field'] = 'field_popsu_themtrans_popsu_tid';
|
||||
$handler->display->display_options['arguments']['field_popsu_themtrans_popsu_tid']['default_action'] = 'not found';
|
||||
$handler->display->display_options['arguments']['field_popsu_themtrans_popsu_tid']['exception']['title'] = 'Tout';
|
||||
$handler->display->display_options['arguments']['field_popsu_themtrans_popsu_tid']['default_argument_type'] = 'fixed';
|
||||
$handler->display->display_options['arguments']['field_popsu_themtrans_popsu_tid']['summary']['number_of_records'] = '0';
|
||||
$handler->display->display_options['arguments']['field_popsu_themtrans_popsu_tid']['summary']['format'] = 'default_summary';
|
||||
$handler->display->display_options['arguments']['field_popsu_themtrans_popsu_tid']['summary_options']['items_per_page'] = '25';
|
||||
$handler->display->display_options['pane_category']['name'] = 'Volets de vue';
|
||||
$handler->display->display_options['argument_input'] = array(
|
||||
'field_popsu_themtrans_popsu_tid' => array(
|
||||
'type' => 'user',
|
||||
'context' => 'string.raw',
|
||||
'context_optional' => 0,
|
||||
'panel' => '0',
|
||||
'fixed' => '',
|
||||
'label' => 'Contenu : POPSU (field_popsu_themtrans_popsu)',
|
||||
),
|
||||
);
|
||||
$translatables['themes_trans'] = 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'),
|
||||
t('Thèmes transversaux'),
|
||||
t('Thèmes Trans Par POPSU Pane'),
|
||||
t('@total analyses comparatives'),
|
||||
t('Tout'),
|
||||
t('Volets de vue'),
|
||||
);
|
||||
$export['themes_trans'] = $view;
|
||||
|
||||
return $export;
|
||||
}
|
Reference in New Issue
Block a user