|
@@ 1177-1183 (lines=7) @@
|
| 1174 |
|
$url_item = parse_url($navigation_item['link']); |
| 1175 |
|
$url_current = parse_url($_SERVER['REQUEST_URI']); |
| 1176 |
|
|
| 1177 |
|
if (strpos($navigation_item['link'], 'chat') !== false && |
| 1178 |
|
api_get_course_setting('allow_open_chat_window', $course_id) |
| 1179 |
|
) { |
| 1180 |
|
$html .= '<a href="javascript: void(0);" onclick="javascript: window.open(\''.$navigation_item['link'].'\',\'window_chat'.$_SESSION['_cid'].'\',config=\'height=\'+600+\', width=\'+825+\', left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no\')" target="'.$navigation_item['target'].'"'; |
| 1181 |
|
} else { |
| 1182 |
|
$html .= '<a href="'.$navigation_item['link'].'" target="_top" '; |
| 1183 |
|
} |
| 1184 |
|
|
| 1185 |
|
if (stristr($url_item['path'], $url_current['path'])) { |
| 1186 |
|
if (!isset($_GET['learnpath_id']) || strpos($url_item['query'], 'learnpath_id='.$_GET['learnpath_id']) === 0) { |
|
@@ 1222-1228 (lines=7) @@
|
| 1219 |
|
$html .= '<div id="'.$style_id.'">'; |
| 1220 |
|
|
| 1221 |
|
foreach ($navigation_items as $key => $navigation_item) { |
| 1222 |
|
if (strpos($navigation_item['link'], 'chat') !== false && |
| 1223 |
|
api_get_course_setting('allow_open_chat_window') |
| 1224 |
|
) { |
| 1225 |
|
$html .= '<a href="javascript: void(0);" onclick="javascript: window.open(\''.$navigation_item['link'].'\',\'window_chat'.$_SESSION['_cid'].'\',config=\'height=\'+600+\', width=\'+825+\', left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no\')" target="'.$navigation_item['target'].'"'; |
| 1226 |
|
} else { |
| 1227 |
|
$html .= '<a href="'.$navigation_item['link'].'"'; |
| 1228 |
|
} |
| 1229 |
|
if (strpos(api_get_self(), $navigation_item['link']) !== false) { |
| 1230 |
|
$html .= ' id="here"'; |
| 1231 |
|
} |