ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
with_buttons_and_links.php File Reference

Go to the source code of this file.

Functions

 with_buttons_and_links ()
 

Function Documentation

◆ with_buttons_and_links()

with_buttons_and_links ( )

Definition at line 2 of file with_buttons_and_links.php.

References $DIC, and Vendor\Package\$f.

3 {
4  global $DIC;
5  $f = $DIC->ui()->factory();
6  $renderer = $DIC->ui()->renderer();
7 
8  $items = array(
9  $f->button()->shy("Github", "https://www.github.com"),
10  $f->link()->standard("ILIAS", "https://www.ilias.de")->withOpenInNewViewport(true)
11  );
12  return $renderer->render($f->dropdown()->standard($items)->withLabel("Actions"));
13 }
$DIC
Definition: xapitoken.php:46