Add support for module icons in center column

This commit is contained in:
Marc Alexander
2023-02-13 20:49:53 +01:00
parent 286bd55424
commit 68cf9864c6
43 changed files with 137 additions and 50 deletions

View File

@@ -405,8 +405,7 @@ class custom extends module_base
'template' => 'custom_' . $type . '.html',
'title' => $title,
'code' => $assign_code,
// no image for center blocks
'image_src' => ($type === 'center') ? '' : ((!empty($this->config['board3_custom_' . $module_id . '_image_src'])) ? $this->config['board3_custom_' . $module_id . '_image_src'] : $this->image_src),
'image_src' => ((!empty($this->config['board3_custom_' . $module_id . '_image_src'])) ? $this->config['board3_custom_' . $module_id . '_image_src'] : $this->image_src),
);
}
}