home is working now like the productions home page
This commit is contained in:
@@ -37,6 +37,25 @@ function edlptheme_form_user_login_form_alter(&$form, FormStateInterface $form_s
|
||||
unset($form['pass']['#title']);
|
||||
}
|
||||
|
||||
|
||||
function edlptheme_preprocess_edlp_home(&$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;
|
||||
default:
|
||||
$cols = 2;
|
||||
};
|
||||
$node['cols'] = $cols;
|
||||
}
|
||||
}
|
||||
function edlptheme_preprocess_edlp_productions(&$vars){
|
||||
foreach($vars['nodes'] as &$node){
|
||||
switch($node['vm']){
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{#
|
||||
<div class="presentation col col-4">
|
||||
<div class="wrapper">
|
||||
{{ presentation }}
|
||||
@@ -13,6 +14,16 @@
|
||||
{{ last_production }}
|
||||
</div>
|
||||
</div>
|
||||
#}
|
||||
{% for node in nodes %}
|
||||
<div class="col col-{{ node.cols }}">
|
||||
<div class="wrapper">
|
||||
{{ node.build }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<div class="agenda col col-2">
|
||||
<div class="wrapper">
|
||||
{{ agenda }}
|
||||
|
||||
Reference in New Issue
Block a user