This commit is contained in:
2020-07-20 16:10:11 +02:00
parent 89d3753b74
commit f9645ccd61
3 changed files with 25 additions and 6 deletions
+6 -4
View File
@@ -110,10 +110,10 @@ function edlptheme_theme_suggestions_taxonomy_term_alter(&$suggestions, $variabl
function edlptheme_preprocess_edlp_home(&$vars){
// render the promoted_statics and promoted_prods
$promoteds = ['statics', 'prods'];
// $promoteds = ['statics', 'prods'];
// dpm($vars);
foreach ($promoteds as $index => $p) {
foreach($vars['nodes_' . $p] as &$node){
// foreach ($promoteds as $index => $p) {
foreach($vars['nodes_statics'] as &$node){
switch($node['vm']){
case "image_2_columns":
$cols = 4;
@@ -129,8 +129,10 @@ function edlptheme_preprocess_edlp_home(&$vars){
};
$node['cols'] = $cols;
}
// }
foreach($vars['nodes_prods'] as &$node){
$node['cols'] = 4;
}
}
function edlptheme_preprocess_taxonomy_term__entrees__mobile_home(&$vars){