| @@ 1368-1381 (lines=14) @@ | ||
| 1365 | * @param $title |
|
| 1366 | * @return string |
|
| 1367 | */ |
|
| 1368 | private static function getHtmlForUserCategory($id, $title) |
|
| 1369 | { |
|
| 1370 | if ($id == 0) { |
|
| 1371 | return ''; |
|
| 1372 | } |
|
| 1373 | $icon = Display::return_icon( |
|
| 1374 | 'folder_yellow.png', |
|
| 1375 | $title, |
|
| 1376 | array('class' => 'sessionView'), |
|
| 1377 | ICON_SIZE_LARGE |
|
| 1378 | ); |
|
| 1379 | ||
| 1380 | return "<div class='session-view-user-category'>$icon<span>$title</span></div>"; |
|
| 1381 | } |
|
| 1382 | ||
| 1383 | /** |
|
| 1384 | * return HTML code for course display in session view |
|
| @@ 1457-1476 (lines=20) @@ | ||
| 1454 | * @param $title |
|
| 1455 | * @return string |
|
| 1456 | */ |
|
| 1457 | private static function getHtmlSessionCategory($id, $title) |
|
| 1458 | { |
|
| 1459 | if ($id == 0) { |
|
| 1460 | return ''; |
|
| 1461 | } |
|
| 1462 | ||
| 1463 | $icon = Display::return_icon( |
|
| 1464 | 'folder_blue.png', |
|
| 1465 | $title, |
|
| 1466 | array('class' => 'sessionView'), |
|
| 1467 | ICON_SIZE_LARGE |
|
| 1468 | ); |
|
| 1469 | ||
| 1470 | return "<div class='session-view-session-category'> |
|
| 1471 | <span class='session-view-lvl-2'> |
|
| 1472 | $icon |
|
| 1473 | <span>$title</span> |
|
| 1474 | </span> |
|
| 1475 | </div>"; |
|
| 1476 | } |
|
| 1477 | ||
| 1478 | /** |
|
| 1479 | * return HTML code for session |
|