New icon for portfolio export and improving its position
authorDavid Mudrak <david.mudrak@gmail.com>
Fri, 12 Nov 2010 08:52:55 +0000 (08:52 +0000)
committerDavid Mudrak <david.mudrak@gmail.com>
Fri, 12 Nov 2010 08:52:55 +0000 (08:52 +0000)
The old icon was considered "temporary" (according to Penny) and it was
not very clear. Hopefully this one is a bit better.

lib/portfoliolib.php
pix/t/portfolio.gif [deleted file]
pix/t/portfolioadd.gif [new file with mode: 0644]
pix/t/portfoliono.gif [deleted file]
theme/standard/style/core.css

index c922429..19e00cd 100644 (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>';
diff --git a/pix/t/portfolio.gif b/pix/t/portfolio.gif
deleted file mode 100644 (file)
index 0a69acb..0000000
Binary files a/pix/t/portfolio.gif and /dev/null differ
diff --git a/pix/t/portfolioadd.gif b/pix/t/portfolioadd.gif
new file mode 100644 (file)
index 0000000..3fdabc3
Binary files /dev/null and b/pix/t/portfolioadd.gif differ
diff --git a/pix/t/portfoliono.gif b/pix/t/portfoliono.gif
deleted file mode 100644 (file)
index d53cf98..0000000
Binary files a/pix/t/portfoliono.gif and /dev/null differ
index 498d8d6..cbc6375 100644 (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;}