home v2 update
This commit is contained in:
@@ -0,0 +1,173 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_home_v2.features.menu_links.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_menu_default_menu_links().
|
||||
*/
|
||||
function materio_home_v2_menu_default_menu_links() {
|
||||
$menu_links = array();
|
||||
|
||||
// Exported menu link: menu-home-v2_actualit:actuality
|
||||
$menu_links['menu-home-v2_actualit:actuality'] = array(
|
||||
'menu_name' => 'menu-home-v2',
|
||||
'link_path' => 'actuality',
|
||||
'router_path' => 'actuality',
|
||||
'link_title' => 'Actualité',
|
||||
'options' => array(
|
||||
'alter' => TRUE,
|
||||
'attributes' => array(
|
||||
'class' => array(
|
||||
0 => 'news-link',
|
||||
),
|
||||
),
|
||||
'item_attributes' => array(
|
||||
'id' => '',
|
||||
'class' => '',
|
||||
'style' => '',
|
||||
),
|
||||
'identifier' => 'menu-home-v2_actualit:actuality',
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => 0,
|
||||
'external' => 0,
|
||||
'has_children' => 0,
|
||||
'expanded' => 0,
|
||||
'weight' => 4,
|
||||
'customized' => 1,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 1,
|
||||
);
|
||||
// Exported menu link: menu-home-v2_la-base-de-donnes:node/13052
|
||||
$menu_links['menu-home-v2_la-base-de-donnes:node/13052'] = array(
|
||||
'menu_name' => 'menu-home-v2',
|
||||
'link_path' => 'node/13052',
|
||||
'router_path' => 'node/%',
|
||||
'link_title' => 'La base de données',
|
||||
'options' => array(
|
||||
'alter' => TRUE,
|
||||
'attributes' => array(
|
||||
'class' => array(
|
||||
0 => 'bdd-link',
|
||||
),
|
||||
),
|
||||
'item_attributes' => array(
|
||||
'id' => '',
|
||||
'class' => '',
|
||||
'style' => '',
|
||||
),
|
||||
'identifier' => 'menu-home-v2_la-base-de-donnes:node/13052',
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => 0,
|
||||
'external' => 0,
|
||||
'has_children' => 0,
|
||||
'expanded' => 0,
|
||||
'weight' => 1,
|
||||
'customized' => 1,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 1,
|
||||
);
|
||||
// Exported menu link: menu-home-v2_le-showroom:node/13051
|
||||
$menu_links['menu-home-v2_le-showroom:node/13051'] = array(
|
||||
'menu_name' => 'menu-home-v2',
|
||||
'link_path' => 'node/13051',
|
||||
'router_path' => 'node/%',
|
||||
'link_title' => 'Le showroom',
|
||||
'options' => array(
|
||||
'alter' => TRUE,
|
||||
'attributes' => array(
|
||||
'class' => array(
|
||||
0 => 'showroom-link',
|
||||
),
|
||||
),
|
||||
'item_attributes' => array(
|
||||
'id' => '',
|
||||
'class' => '',
|
||||
'style' => '',
|
||||
),
|
||||
'identifier' => 'menu-home-v2_le-showroom:node/13051',
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => 0,
|
||||
'external' => 0,
|
||||
'has_children' => 0,
|
||||
'expanded' => 0,
|
||||
'weight' => 0,
|
||||
'customized' => 1,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 1,
|
||||
);
|
||||
// Exported menu link: menu-home-v2_les-formations:node/13053
|
||||
$menu_links['menu-home-v2_les-formations:node/13053'] = array(
|
||||
'menu_name' => 'menu-home-v2',
|
||||
'link_path' => 'node/13053',
|
||||
'router_path' => 'node/%',
|
||||
'link_title' => 'Les formations',
|
||||
'options' => array(
|
||||
'alter' => TRUE,
|
||||
'attributes' => array(
|
||||
'class' => array(
|
||||
0 => 'formations-link',
|
||||
),
|
||||
),
|
||||
'item_attributes' => array(
|
||||
'id' => '',
|
||||
'class' => '',
|
||||
'style' => '',
|
||||
),
|
||||
'identifier' => 'menu-home-v2_les-formations:node/13053',
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => 0,
|
||||
'external' => 0,
|
||||
'has_children' => 0,
|
||||
'expanded' => 0,
|
||||
'weight' => 2,
|
||||
'customized' => 1,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 1,
|
||||
);
|
||||
// Exported menu link: menu-home-v2_les-services-sur-mesure:node/13054
|
||||
$menu_links['menu-home-v2_les-services-sur-mesure:node/13054'] = array(
|
||||
'menu_name' => 'menu-home-v2',
|
||||
'link_path' => 'node/13054',
|
||||
'router_path' => 'node/%',
|
||||
'link_title' => 'Les services sur mesure',
|
||||
'options' => array(
|
||||
'alter' => TRUE,
|
||||
'attributes' => array(
|
||||
'class' => array(
|
||||
0 => 'services-link',
|
||||
),
|
||||
),
|
||||
'item_attributes' => array(
|
||||
'id' => '',
|
||||
'class' => '',
|
||||
'style' => '',
|
||||
),
|
||||
'identifier' => 'menu-home-v2_les-services-sur-mesure:node/13054',
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => 0,
|
||||
'external' => 0,
|
||||
'has_children' => 0,
|
||||
'expanded' => 0,
|
||||
'weight' => 3,
|
||||
'customized' => 1,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 1,
|
||||
);
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Actualité');
|
||||
t('La base de données');
|
||||
t('Le showroom');
|
||||
t('Les formations');
|
||||
t('Les services sur mesure');
|
||||
|
||||
|
||||
return $menu_links;
|
||||
}
|
@@ -7,6 +7,7 @@ dependencies[] = features
|
||||
dependencies[] = image
|
||||
dependencies[] = materio_publications
|
||||
dependencies[] = menu
|
||||
dependencies[] = menu_attributes
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = panels
|
||||
dependencies[] = panels_mini
|
||||
@@ -19,6 +20,11 @@ features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:2
|
||||
features[image][] = publications-home
|
||||
features[menu_custom][] = menu-home-v2
|
||||
features[menu_links][] = menu-home-v2_actualit:actuality
|
||||
features[menu_links][] = menu-home-v2_la-base-de-donnes:node/13052
|
||||
features[menu_links][] = menu-home-v2_le-showroom:node/13051
|
||||
features[menu_links][] = menu-home-v2_les-formations:node/13053
|
||||
features[menu_links][] = menu-home-v2_les-services-sur-mesure:node/13054
|
||||
features[page_manager_pages][] = home_v2
|
||||
features[panels_mini][] = news_home_v2
|
||||
features[views_view][] = news_home_v2
|
||||
|
@@ -150,7 +150,7 @@ function materio_home_v2_default_page_manager_pages() {
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_id' => 'showroom-pane',
|
||||
'css_class' => 'showroom',
|
||||
);
|
||||
$pane->extras = array();
|
||||
@@ -182,7 +182,7 @@ function materio_home_v2_default_page_manager_pages() {
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_id' => 'bdd-pane',
|
||||
'css_class' => 'bdd',
|
||||
);
|
||||
$pane->extras = array();
|
||||
@@ -208,7 +208,7 @@ function materio_home_v2_default_page_manager_pages() {
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_id' => 'news-pane',
|
||||
'css_class' => 'news-panel',
|
||||
);
|
||||
$pane->extras = array();
|
||||
@@ -240,7 +240,7 @@ function materio_home_v2_default_page_manager_pages() {
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_id' => 'formations-pane',
|
||||
'css_class' => 'formations',
|
||||
);
|
||||
$pane->extras = array();
|
||||
@@ -272,7 +272,7 @@ function materio_home_v2_default_page_manager_pages() {
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_id' => 'services-pane',
|
||||
'css_class' => 'services',
|
||||
);
|
||||
$pane->extras = array();
|
||||
|
@@ -53,7 +53,10 @@ function materio_home_v2_default_panels_mini() {
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'news-letter',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
@@ -72,7 +75,10 @@ function materio_home_v2_default_panels_mini() {
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->css = array(
|
||||
'css_id' => 'news-pane',
|
||||
'css_class' => 'news',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
@@ -91,7 +97,10 @@ function materio_home_v2_default_panels_mini() {
|
||||
$pane->style = array(
|
||||
'settings' => NULL,
|
||||
);
|
||||
$pane->css = array();
|
||||
$pane->css = array(
|
||||
'css_id' => '',
|
||||
'css_class' => 'daily',
|
||||
);
|
||||
$pane->extras = array();
|
||||
$pane->position = 0;
|
||||
$pane->locks = array();
|
||||
|
@@ -38,33 +38,33 @@ function materio_home_v2_views_default_views() {
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'entity';
|
||||
$handler->display->display_options['row_options']['view_mode'] = 'cardmedium';
|
||||
/* Champ: Contenu : Titre */
|
||||
/* Field: Content: Title */
|
||||
$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 */
|
||||
/* Sort criterion: Content: Post date */
|
||||
$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é */
|
||||
/* Filter criterion: Content: Published */
|
||||
$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 */
|
||||
/* Filter criterion: Content: 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(
|
||||
'breve' => 'breve',
|
||||
);
|
||||
/* Critère de filtrage: Processus : État actuel */
|
||||
/* Filter criterion: Workflow: Current state */
|
||||
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
||||
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
||||
@@ -94,28 +94,28 @@ function materio_home_v2_views_default_views() {
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
/* Filter criterion: Content: Published */
|
||||
$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 */
|
||||
/* Filter criterion: Content: 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(
|
||||
'simplenews' => 'simplenews',
|
||||
);
|
||||
/* Critère de filtrage: Processus : État actuel */
|
||||
/* Filter criterion: Workflow: Current state */
|
||||
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
||||
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['value'] = array(
|
||||
3 => '3',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Newsletter category (field_simplenews_term) */
|
||||
/* Filter criterion: Content: Newsletter category (field_simplenews_term) */
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['id'] = 'field_simplenews_term_tid';
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['table'] = 'field_data_field_simplenews_term';
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['field'] = 'field_simplenews_term_tid';
|
||||
@@ -124,7 +124,7 @@ function materio_home_v2_views_default_views() {
|
||||
);
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['type'] = 'select';
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['vocabulary'] = 'newsletter';
|
||||
/* Critère de filtrage: Parution de lettre d'information : État des envois */
|
||||
/* Filter criterion: Simplenews issue: Sent status */
|
||||
$handler->display->display_options['filters']['status_1']['id'] = 'status_1';
|
||||
$handler->display->display_options['filters']['status_1']['table'] = 'simplenews_newsletter';
|
||||
$handler->display->display_options['filters']['status_1']['field'] = 'status';
|
||||
@@ -151,6 +151,7 @@ function materio_home_v2_views_default_views() {
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('more'),
|
||||
t('home v2'),
|
||||
t('daily'),
|
||||
t('Daily materiO\''),
|
||||
@@ -185,33 +186,33 @@ function materio_home_v2_views_default_views() {
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'entity';
|
||||
$handler->display->display_options['row_options']['view_mode'] = 'homeblock';
|
||||
/* Champ: Contenu : Titre */
|
||||
/* Field: Content: Title */
|
||||
$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 */
|
||||
/* Sort criterion: Content: Post date */
|
||||
$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é */
|
||||
/* Filter criterion: Content: Published */
|
||||
$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 */
|
||||
/* Filter criterion: Content: 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(
|
||||
'publication' => 'publication',
|
||||
);
|
||||
/* Critère de filtrage: Processus : État actuel */
|
||||
/* Filter criterion: Workflow: Current state */
|
||||
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
||||
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
||||
@@ -233,6 +234,7 @@ function materio_home_v2_views_default_views() {
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('more'),
|
||||
t('Home v2'),
|
||||
);
|
||||
$export['publication_home_v2'] = $view;
|
||||
|
Reference in New Issue
Block a user