|
@@ 1338-1341 (lines=4) @@
|
| 1335 |
|
$class = 'icons'; |
| 1336 |
|
$marginLeft = 25; |
| 1337 |
|
$item = Display::return_icon(substr($navigation_item['image'], 0, -3)."png", $navigation_item['name'], array('class'=>'tool-img'), ICON_SIZE_SMALL); |
| 1338 |
|
} else { |
| 1339 |
|
$class = 'icons-text'; |
| 1340 |
|
$item = $navigation_item['name'].Display::return_icon(substr($navigation_item['image'], 0, -3)."png", $navigation_item['name'], array('class'=>'tool-img'), ICON_SIZE_SMALL); |
| 1341 |
|
} |
| 1342 |
|
|
| 1343 |
|
if (stristr($url_item['path'], $url_current['path'])) { |
| 1344 |
|
if (!isset($_GET['learnpath_id']) || strpos($url_item['query'], 'learnpath_id='.intval($_GET['learnpath_id'])) === 0) { |
|
@@ 865-875 (lines=11) @@
|
| 862 |
|
$lnk[] = $link; |
| 863 |
|
break; |
| 864 |
|
} |
| 865 |
|
} else { |
| 866 |
|
$link['name'] = Display::return_icon( |
| 867 |
|
'visible.png', |
| 868 |
|
get_lang('Deactivate'), |
| 869 |
|
array('id' => 'linktool_'.$tool['id']), |
| 870 |
|
ICON_SIZE_SMALL, |
| 871 |
|
false |
| 872 |
|
); |
| 873 |
|
$link['cmd'] = 'hide=yes'; |
| 874 |
|
$lnk[] = $link; |
| 875 |
|
} |
| 876 |
|
} |
| 877 |
|
if (!empty($tool['adminlink'])) { |
| 878 |
|
$item['extra'] = '<a href="'.$tool['adminlink'].'">'.Display::return_icon('edit.gif', get_lang('Edit')).'</a>'; |