ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
std_course_icon.php
Go to the documentation of this file.
1 <?php
2 function std_course_icon()
3 {
4  global $DIC;
5  $f = $DIC->ui()->factory();
6  $renderer = $DIC->ui()->renderer();
7 
8  $buffer = array();
9 
10  $ico = $f->icon()->standard('crs', 'Course', 'small');
11 
12  $buffer[] = $renderer->render($ico)
13  . ' Small Course';
14 
15  $buffer[] = $renderer->render($ico->withSize('medium'))
16  . ' Medium Course';
17 
18  $buffer[] = $renderer->render($ico->withSize('large'))
19  . ' Large Course';
20 
21 
22  return implode('<br><br>', $buffer);
23 }
global $DIC
Definition: saml.php:7
Create styles array
The data for the language used.
std_course_icon()