added publications and some skrollr animations to home v2
This commit is contained in:
@@ -22,3 +22,27 @@ function materio_home_v2_ctools_plugin_api($module = NULL, $api = NULL) {
|
||||
function materio_home_v2_views_api($module = NULL, $api = NULL) {
|
||||
return array("api" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_image_default_styles().
|
||||
*/
|
||||
function materio_home_v2_image_default_styles() {
|
||||
$styles = array();
|
||||
|
||||
// Exported image style: publications-home.
|
||||
$styles['publications-home'] = array(
|
||||
'label' => 'publications-home',
|
||||
'effects' => array(
|
||||
15 => array(
|
||||
'name' => 'image_scale_and_crop',
|
||||
'data' => array(
|
||||
'width' => 210,
|
||||
'height' => 295,
|
||||
),
|
||||
'weight' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
return $styles;
|
||||
}
|
||||
|
@@ -4,6 +4,7 @@ package = Materio
|
||||
dependencies[] = ctools
|
||||
dependencies[] = entity
|
||||
dependencies[] = features
|
||||
dependencies[] = image
|
||||
dependencies[] = materio_publications
|
||||
dependencies[] = menu
|
||||
dependencies[] = page_manager
|
||||
@@ -16,6 +17,7 @@ features[ctools][] = page_manager:pages_default:1
|
||||
features[ctools][] = panels_mini:panels_default:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:2
|
||||
features[image][] = publications-home
|
||||
features[menu_custom][] = menu-home-v2
|
||||
features[page_manager_pages][] = home_v2
|
||||
features[panels_mini][] = news_home_v2
|
||||
|
@@ -184,7 +184,7 @@ function materio_home_v2_views_default_views() {
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'entity';
|
||||
$handler->display->display_options['row_options']['view_mode'] = 'teaser';
|
||||
$handler->display->display_options['row_options']['view_mode'] = 'homeblock';
|
||||
/* Champ: Contenu : Titre */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
@@ -216,6 +216,7 @@ function materio_home_v2_views_default_views() {
|
||||
$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(
|
||||
2 => '2',
|
||||
3 => '3',
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user