Bladeren bron

[svn r10235] remove the modules in learning path (there are only chapters now)

Eric Marguin 18 jaren geleden
bovenliggende
commit
09e2ae176f
2 gewijzigde bestanden met toevoegingen van 2 en 9 verwijderingen
  1. 0 5
      main/newscorm/kevin_lp_add.php
  2. 2 4
      main/newscorm/learnpath.class.php

+ 0 - 5
main/newscorm/kevin_lp_add.php

@@ -155,11 +155,6 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 			//links for adding a module, chapter or step
 			echo '<div class="lp_actions">';
 				
-				echo '<p class="lp_action">';
-				
-					echo '<img align="left" alt="New module" src="img/lp_dokeos_module_add.png" title="New module" /><strong style="color:#999999">New module</strong>';
-				
-				echo '</p>';
 				echo '<p class="lp_action">';
 				
 					echo '<img align="left" alt="New chapter" src="img/lp_dokeos_chapter_add.png" title="New chapter" /><strong style="color:#999999">New chapter</strong>';

+ 2 - 4
main/newscorm/learnpath.class.php

@@ -2702,12 +2702,10 @@ class learnpath {
 					
 					
     		}
-    		elseif($item['type']=='dokeos_module'){
+    		elseif($item['type']=='dokeos_module' || $item['type']=='dokeos_chapter'){
     				$html .= "<img align='absbottom' width='13' height='13' src='img/lp_dokeos_module.png'>&nbsp;".$title;
     		}
-    		elseif($item['type']=='dokeos_chapter'){
-    				$html .= "<img align='absbottom' width='13' height='13' src='img/lp_dokeos_chapter.png'>&nbsp;".$title;
-    		}
+    		
     		elseif($item['type']=='dir'){
     				$html .= $title;
     		}