Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
Eloy Lafuente committed Jun 17, 2007
1 parent dab784a commit a4e28b9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions view.php
@@ -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');
Expand Down Expand Up @@ -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>' : '';


// =====================================================
Expand All @@ -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>
Expand Down

0 comments on commit a4e28b9

Please sign in to comment.