| @@ 1597-1610 (lines=14) @@ | ||
| 1594 | * @param $title |
|
| 1595 | * @return string |
|
| 1596 | */ |
|
| 1597 | private static function getHtmlForUserCategory($id, $title) |
|
| 1598 | { |
|
| 1599 | if ($id == 0) { |
|
| 1600 | return ''; |
|
| 1601 | } |
|
| 1602 | $icon = Display::return_icon( |
|
| 1603 | 'folder_yellow.png', |
|
| 1604 | $title, |
|
| 1605 | array('class' => 'sessionView'), |
|
| 1606 | ICON_SIZE_LARGE |
|
| 1607 | ); |
|
| 1608 | ||
| 1609 | return "<div class='session-view-user-category'>$icon<span>$title</span></div>"; |
|
| 1610 | } |
|
| 1611 | ||
| 1612 | /** |
|
| 1613 | * return HTML code for course display in session view |
|
| @@ 1686-1705 (lines=20) @@ | ||
| 1683 | * @param $title |
|
| 1684 | * @return string |
|
| 1685 | */ |
|
| 1686 | private static function getHtmlSessionCategory($id, $title) |
|
| 1687 | { |
|
| 1688 | if ($id == 0) { |
|
| 1689 | return ''; |
|
| 1690 | } |
|
| 1691 | ||
| 1692 | $icon = Display::return_icon( |
|
| 1693 | 'folder_blue.png', |
|
| 1694 | $title, |
|
| 1695 | array('class' => 'sessionView'), |
|
| 1696 | ICON_SIZE_LARGE |
|
| 1697 | ); |
|
| 1698 | ||
| 1699 | return "<div class='session-view-session-category'> |
|
| 1700 | <span class='session-view-lvl-2'> |
|
| 1701 | $icon |
|
| 1702 | <span>$title</span> |
|
| 1703 | </span> |
|
| 1704 | </div>"; |
|
| 1705 | } |
|
| 1706 | ||
| 1707 | /** |
|
| 1708 | * return HTML code for session |
|