ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
std_course_icon.php File Reference

Go to the source code of this file.

Functions

 std_course_icon ()
 

Function Documentation

◆ std_course_icon()

std_course_icon ( )

Definition at line 2 of file std_course_icon.php.

References $DIC, and array.

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.