home page of productions is ok!
This commit is contained in:
@@ -24,3 +24,21 @@ function edlptheme_form_user_login_form_alter(&$form, FormStateInterface $form_s
|
||||
$form['pass']['#attributes']['placeholder'] = (string) $form['pass']['#title'];
|
||||
unset($form['pass']['#title']);
|
||||
}
|
||||
|
||||
function edlptheme_preprocess_edlp_productions(&$vars){
|
||||
foreach($vars['nodes'] as &$node){
|
||||
switch($node['vm']){
|
||||
case "image_2_columns":
|
||||
$cols = 4;
|
||||
break;
|
||||
case "image_1_columns":
|
||||
$cols = 2;
|
||||
break;
|
||||
case "text_1_column":
|
||||
$cols = 2;
|
||||
break;
|
||||
};
|
||||
$node['cols'] = $cols;
|
||||
}
|
||||
// dpm($vars);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user