From 74a5e168ad2e10de3df83e7b2b7df23b7bc092dc Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Tue, 21 Nov 2006 11:20:35 +0100 Subject: [PATCH] [svn r10071] visioconf integration --- main/conf/liveconf.php | 6 +++--- main/course_home/activity.php | 11 ++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/main/conf/liveconf.php b/main/conf/liveconf.php index d87882d07e..7c78d98217 100644 --- a/main/conf/liveconf.php +++ b/main/conf/liveconf.php @@ -7,8 +7,8 @@ */ include("../inc/global.inc.php"); api_protect_course_script(); -$nameTool = get_lang('conference'); -Display::display_header($nameTool); +//$nameTool = get_lang('conference'); +//Display::display_header($nameTool); $visio_link = api_get_path(WEB_PATH).api_get_setting('service_visio','url'); @@ -18,5 +18,5 @@ $visio_link = api_get_path(WEB_PATH).api_get_setting('service_visio','url'); diff --git a/main/course_home/activity.php b/main/course_home/activity.php index 2c14db7d67..5a620a7ae4 100644 --- a/main/course_home/activity.php +++ b/main/course_home/activity.php @@ -155,7 +155,7 @@ function show_tools_category($course_tool_category) $properties['visibility'] = $links_row['visibility']; $properties['image'] = ($links_row['visibility']== '0') ? "external_na.gif" : "external.gif"; $properties['adminlink'] = api_get_path(WEB_CODE_PATH) . "link/link.php?action=editlink&id=".$links_row['id']; - + $tmp_all_tools_list[] = $properties; } } @@ -164,6 +164,7 @@ function show_tools_category($course_tool_category) { foreach($tmp_all_tools_list as $toolsRow) { + if($toolsRow['image'] == 'blog.gif') { // Init @@ -283,8 +284,12 @@ function show_tools_category($course_tool_category) $class=''; $qm_or_amp = ((strpos($toolsRow['link'], '?') === FALSE) ? '?' : '&'); - - echo "\t" . '     '; + if($toolsRow['name']=='visio'){ + echo "\t" . '     '; + } + else { + echo "\t" . '     '; + } echo '' . $toolsRow['image'] . '   '; echo ($toolsRow['image'] == 'external.gif' || $toolsRow['image'] == 'external_na.gif' || $toolsRow['image'] == 'scormbuilder.gif' || $toolsRow['image'] == 'blog.gif') ? ' '.htmlspecialchars(stripslashes($toolsRow['name'])) : ' '.get_lang($toolsRow['name']); echo "\t" . '';