Skip to content

Commit

Permalink
New icon for portfolio export and improving its position
Browse files Browse the repository at this point in the history
The old icon was considered "temporary" (according to Penny) and it was
not very clear. Hopefully this one is a bit better.
  • Loading branch information
mudrd8mz committed Nov 12, 2010
1 parent d9e0726 commit 628c784
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/portfoliolib.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public function to_html($format=null, $addstr=null) {

$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:
Expand All @@ -344,11 +344,11 @@ public function to_html($format=null, $addstr=null) {
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>';
Expand Down
Binary file removed pix/t/portfolio.gif
Binary file not shown.
Binary file added pix/t/portfolioadd.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed pix/t/portfoliono.gif
Binary file not shown.
1 change: 1 addition & 0 deletions theme/standard/style/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;}

0 comments on commit 628c784

Please sign in to comment.