diff --git a/ding_base.module b/ding_base.module index c3b442e..a133aed 100644 --- a/ding_base.module +++ b/ding_base.module @@ -371,6 +371,14 @@ function ding_base_preprocess_material_item(&$variables) { // Render the checkbox. $variables['checkbox'] = drupal_render($element[$element['#id']]); + // Get the creator, materialtype, title and cover + if (isset($element['#creators'])) { + $variables['creators'] = $element['#creators']; + } + if (isset($element['#material_type'])) { + $variables['material_type'] = $element['#material_type']; + } + // Get the title and cover. $variables['title'] = $element['#title']; $variables['cover'] = drupal_render($element['#cover']); diff --git a/templates/material_item.tpl.php b/templates/material_item.tpl.php index 0a90d35..4b6a2ab 100644 --- a/templates/material_item.tpl.php +++ b/templates/material_item.tpl.php @@ -8,17 +8,25 @@
+ +

+
-

+ +

+ +

-
+