Permalink
Browse files

Moving the "Export to IMS CP" option from "export" to a new icon. Some

people is having problems locating / understanding it.

Merged from MOODLE_18_STABLE
  • Loading branch information...
1 parent dab784a commit a4e28b9b9a75a7f8b6573cb405ea4819edb76c76 Eloy Lafuente committed Jun 17, 2007
Showing with 7 additions and 5 deletions.
  1. +7 −5 view.php
View
@@ -1,4 +1,4 @@
-<?PHP // $Id: view.php,v 1.3 2007/05/20 06:00:29 skodak Exp $
+<?PHP // $Id: view.php,v 1.4 2007/06/17 10:41:25 stronk7 Exp $
require_once('../../config.php');
require_once('lib.php');
@@ -173,7 +173,9 @@
}
$doimport = ($allowedit and $edit) ? '<a href="import.php?id='.$cm->id.'">'.get_string('doimport', 'book').'</a>' : '';
-$doexport = ($allowedit and $edit) ? '<a href="generateimscp.php?id='.$cm->id.'">'.get_string('doexport', 'book').'</a>' : '';
+
+/// Enable the IMS CP button
+$generateimscp = ($allowedit) ? '<a title="'.get_string('generateimscp', 'book').'" href="generateimscp.php?id='.$cm->id.'"><img class="bigicon" src="pix/generateimscp.gif" height="24" width="24" border="0"></img></a>' : '';
// =====================================================
@@ -189,15 +191,15 @@
<?php
print_string('toc', 'book');
if (!empty($doimport)) {
- echo "<br/>($doimport, $doexport)";
+ echo "<br/>($doimport)";
}
?>
</td>
<td valign="top">
<table border="0" cellspacing="0" width="100%" valign="top" cellpadding="0">
<tr>
- <td nowrap align="left"><?php echo $printbook.$printchapter ?></td>
- <td nowrap align="right"><?php echo $chnavigation ?></td>
+ <td nowrap="nowrap" align="left"><?php echo $printbook.$printchapter.$generateimscp ?></td>
+ <td nowrap ="nowrap" align="right"><?php echo $chnavigation ?></td>
</tr>
</table>
</td>

0 comments on commit a4e28b9

Please sign in to comment.