changed en_ettente behaviour

This commit is contained in:
2017-03-03 17:58:05 +01:00
parent a66a41e2cd
commit 530ac38275
12 changed files with 324 additions and 179 deletions
@@ -13,21 +13,27 @@ $vars['theme_hook_suggestions'][] = 'field__' . $ft . '__' . $vm;
$vars['theme_hook_suggestions'][] = 'field__' . $fn . '__' . $vm;
$vars['theme_hook_suggestions'][] = 'field__' . $fn . '__' . $vm;
$vars['theme_hook_suggestions'][] = 'field__' . $b . '__' . $fn . '__' . $vm;
$vars['theme_hook_suggestions'][] = 'field__' . $b . '__' . $fn;
if($fn == 'body' && $vm == 'accueil' && $b == 'thematique'){
if($fn == 'body' && $b == 'thematique'){
$vars['items'][0] = array(
'summary' =>array(
"#type"=>"markup",
"#markup"=>$element['#items'][0]['safe_summary'],
"#prefix"=>"<div class='summary'>",
"#suffix"=>"</div>",
),
'value' =>array(
)
);
if($vm == 'accueil' ){
$vars['items'][0]['value'] = array(
"#type"=>"markup",
"#markup"=>$element['#items'][0]['safe_value'],
"#prefix"=>"<div class='value'>",
"#suffix"=>"</div>",
)
);
);
}
}