From 76c59dc2a93cc1ebd17598d6b1021b31cab2a8dc Mon Sep 17 00:00:00 2001 From: sarah garcin Date: Tue, 19 May 2015 14:01:06 +0200 Subject: [PATCH] change home v2 feature, add class --- .../materio_home_v2.pages_default.inc | 30 +++++++++++++++---- .../materio_home_v2.views_default.inc | 3 +- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/sites/all/modules/features/materio_home_v2/materio_home_v2.pages_default.inc b/sites/all/modules/features/materio_home_v2/materio_home_v2.pages_default.inc index 7a9e19db..9d3b6605 100644 --- a/sites/all/modules/features/materio_home_v2/materio_home_v2.pages_default.inc +++ b/sites/all/modules/features/materio_home_v2/materio_home_v2.pages_default.inc @@ -116,7 +116,10 @@ function materio_home_v2_default_page_manager_pages() { $pane->style = array( 'settings' => NULL, ); - $pane->css = array(); + $pane->css = array( + 'css_id' => '', + 'css_class' => 'showroom', + ); $pane->extras = array(); $pane->position = 1; $pane->locks = array(); @@ -145,7 +148,10 @@ function materio_home_v2_default_page_manager_pages() { $pane->style = array( 'settings' => NULL, ); - $pane->css = array(); + $pane->css = array( + 'css_id' => '', + 'css_class' => 'bdd', + ); $pane->extras = array(); $pane->position = 2; $pane->locks = array(); @@ -168,7 +174,10 @@ function materio_home_v2_default_page_manager_pages() { $pane->style = array( 'settings' => NULL, ); - $pane->css = array(); + $pane->css = array( + 'css_id' => '', + 'css_class' => 'news-panel', + ); $pane->extras = array(); $pane->position = 3; $pane->locks = array(); @@ -197,7 +206,10 @@ function materio_home_v2_default_page_manager_pages() { $pane->style = array( 'settings' => NULL, ); - $pane->css = array(); + $pane->css = array( + 'css_id' => '', + 'css_class' => 'formations', + ); $pane->extras = array(); $pane->position = 4; $pane->locks = array(); @@ -226,7 +238,10 @@ function materio_home_v2_default_page_manager_pages() { $pane->style = array( 'settings' => NULL, ); - $pane->css = array(); + $pane->css = array( + 'css_id' => '', + 'css_class' => 'services', + ); $pane->extras = array(); $pane->position = 5; $pane->locks = array(); @@ -245,7 +260,10 @@ function materio_home_v2_default_page_manager_pages() { $pane->style = array( 'settings' => NULL, ); - $pane->css = array(); + $pane->css = array( + 'css_id' => '', + 'css_class' => 'publication', + ); $pane->extras = array(); $pane->position = 6; $pane->locks = array(); diff --git a/sites/all/modules/features/materio_home_v2/materio_home_v2.views_default.inc b/sites/all/modules/features/materio_home_v2/materio_home_v2.views_default.inc index 6e180696..cc0160a6 100644 --- a/sites/all/modules/features/materio_home_v2/materio_home_v2.views_default.inc +++ b/sites/all/modules/features/materio_home_v2/materio_home_v2.views_default.inc @@ -157,6 +157,7 @@ function materio_home_v2_views_default_views() { /* Display: Master */ $handler = $view->new_display('default', 'Master', 'default'); + $handler->display->display_options['title'] = 'Publications'; $handler->display->display_options['use_more_always'] = FALSE; $handler->display->display_options['use_more_text'] = 'plus'; $handler->display->display_options['access']['type'] = 'perm'; @@ -212,13 +213,13 @@ function materio_home_v2_views_default_views() { $handler->display->display_options['pane_category']['weight'] = '0'; $translatables['publication_home_v2'] = array( t('Master'), + t('Publications'), t('plus'), t('Appliquer'), t('Réinitialiser'), t('Trier par'), t('Asc'), t('Desc'), - t('Publications'), t('Home v2'), ); $export['publication_home_v2'] = $view;