New icon for portfolio export and improving its position

The old icon was considered "temporary" (according to Penny) and it was
not very clear. Hopefully this one is a bit better.
This commit is contained in:
David Mudrak
2010-11-12 08:52:55 +00:00
parent d9e0726431
commit 628c78409c
5 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -334,7 +334,7 @@ class portfolio_add_button {
$formoutput = '<form method="post" action="' . $CFG->wwwroot . '/portfolio/add.php" id="portfolio-add-button">' . "\n";
$formoutput .= html_writer::input_hidden_params($url);
$linkoutput = '<a title="'.$addstr.'" href="' . $url->out();
$linkoutput = '<a class="portfolio-add-link" title="'.$addstr.'" href="' . $url->out();
switch ($format) {
case PORTFOLIO_ADD_FULL_FORM:
@@ -344,11 +344,11 @@ class portfolio_add_button {
break;
case PORTFOLIO_ADD_ICON_FORM:
$formoutput .= $selectoutput;
$formoutput .= "\n" . '<input type="image" src="' . $OUTPUT->pix_url('t/portfolio') . '" alt=' . $addstr .'" />';
$formoutput .= "\n" . '<input class="portfolio-add-icon" type="image" src="' . $OUTPUT->pix_url('t/portfolioadd') . '" alt=' . $addstr .'" />';
$formoutput .= "\n" . '</form>';
break;
case PORTFOLIO_ADD_ICON_LINK:
$linkoutput .= '"><img src="' . $OUTPUT->pix_url('t/portfolio') . '" alt="' . $addstr .'" /></a>';
$linkoutput .= '"><img class="portfolio-add-icon" src="' . $OUTPUT->pix_url('t/portfolioadd') . '" alt="' . $addstr .'" /></a>';
break;
case PORTFOLIO_ADD_TEXT_LINK:
$linkoutput .= '">' . $addstr .'</a>';
Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 618 B

+1
View File
@@ -442,3 +442,4 @@ table#tag-management-list {margin: 10px auto;width: 80%;}
/* Portfolio */
.path-portfolio .exportsummary {margin:0px auto 1em auto;}
.portfolio-add-icon {margin-left:5px;}