This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user