◆ resolveImagePath()
ilImagePathResolver::resolveImagePath |
( |
string |
$image_path | ) |
|
Implements ILIAS\UI\Implementation\Render\ImagePathResolver.
Definition at line 25 of file class.ilImagePathResolver.php.
References $DIC, ilStyleDefinition\getCurrentSkin(), ilStyleDefinition\getCurrentStyle(), and null.
29 $styleDefinition = $DIC[
"styleDefinition"] ??
null;
32 $default_img =
"./assets/images/" . $image_path;
40 if (is_object($styleDefinition) && $current_skin !=
"default") {
41 $image_dir = $styleDefinition->getImageDirectory($current_style);
42 $skin_img =
"./Customizing/skin/" .
43 $current_skin .
"/" . $current_style .
"/" . $image_dir .
"/" . $image_path;
46 if (file_exists($skin_img)) {
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getCurrentSkin()
get the current skin use always this function instead of getting the account's skin the current skin ...
static getCurrentStyle()
get the current style or sub style use always this function instead of getting the account's style th...
The documentation for this class was generated from the following file: