ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
base.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4 
5 function base() {
6  //Init Factory and Renderer
7  global $DIC;
8  $f = $DIC->ui()->factory();
9  $renderer = $DIC->ui()->renderer();
10 
11  $content = $f->listing()->descriptive(
12  array(
13  "Entry 1" => "Some text",
14  "Entry 2" => "Some more text",
15  )
16  );
17 
18  $image = $f->image()->responsive(
19  "./templates/default/images/HeaderIcon.svg",
20  "Thumbnail Example");
21 
22  $card = $f->card(
23  "Title",
24  $image
25  )->withSections(array($content));
26 
27  //Render
28  return $renderer->render($card);
29 }
base()
Definition: base.php:2
Create styles array
The data for the language used.
global $DIC