Skip to content
Browse files

MDL-36784 usability: New print icon for glossary

  • Loading branch information...
1 parent 020e338 commit 40fb0a9e268031f3d3f22a3cae8497073b4f1caf @barbararamiro barbararamiro committed with FMCorz
Showing with 20 additions and 3 deletions.
  1. +2 −1 mod/glossary/styles.css
  2. +2 −2 mod/glossary/view.php
  3. BIN pix/t/print.png
  4. +14 −0 pix/t/print.svg
  5. +2 −0 theme/upgrade.txt
View
3 mod/glossary/styles.css
@@ -22,7 +22,8 @@
.glossary-activity-content { margin-left: 40px; }
/** Page specific styles **/
-#page-mod-glossary-view .glossarycontrol {float: right;text-align:right;white-space: nowrap;margin: 5px 0;}
+#page-mod-glossary-view .glossarycontrol {text-align:right;white-space: nowrap;margin: 5px 0;}
+.dir-rtl#page-mod-glossary-view .glossarycontrol { text-align: left; }
#page-mod-glossary-view table.glossarycategoryheader,
#page-mod-glossary-import table.glossaryimportexport {margin-left:auto;margin-right:auto;}
View
4 mod/glossary/view.php
@@ -308,7 +308,7 @@
/// Start to print glossary controls
// print_box_start('glossarycontrol clearfix');
- echo '<div class="glossarycontrol" style="text-align: right">';
+ echo '<div class="glossarycontrol">';
echo $availableoptions;
/// The print icon
@@ -316,7 +316,7 @@
if (has_capability('mod/glossary:manageentries', $context) or $glossary->allowprintview) {
// print_box_start('printicon');
echo '<span class="wrap printicon">';
- echo " <a title =\"". get_string("printerfriendly","glossary") ."\" href=\"print.php?id=$cm->id&amp;mode=$mode&amp;hook=".urlencode($hook)."&amp;sortkey=$sortkey&amp;sortorder=$sortorder&amp;offset=$offset\"><img class=\"icon\" src=\"".$OUTPUT->pix_url('print', 'glossary')."\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
+ echo " <a title =\"". get_string("printerfriendly","glossary") ."\" href=\"print.php?id=$cm->id&amp;mode=$mode&amp;hook=".urlencode($hook)."&amp;sortkey=$sortkey&amp;sortorder=$sortorder&amp;offset=$offset\"><img class=\"iconsmall\" src=\"".$OUTPUT->pix_url('t/print')."\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
echo '</span>';
// print_box_end();
}
View
BIN pix/t/print.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
14 pix/t/print.svg
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+ <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
+]>
+<svg version="1.1"
+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
+ x="0px" y="0px" width="12px" height="12px" viewBox="0 0 12 12" style="overflow:visible;enable-background:new 0 0 12 12;"
+ xml:space="preserve">
+<defs>
+</defs>
+<path style="fill:#999999;" d="M12,9c0-1.1-0.9-2-2-2H2C0.9,7,0,7.9,0,9v3h12V9z M10,11H2v-1h8V11z M4,0L2,2v4h8V0H4z M9,5H3V3h2V1
+ h4V5z"/>
+</svg>
View
2 theme/upgrade.txt
@@ -8,6 +8,7 @@ required changes:
deprecation:
* i/roles: Use t/assignroles instead
+* mod/glossary/pix/print: Use t/print instead
optional changes:
* new optional boolean parameter $withlinks for public function login_info() in lib/outputrenderers.php (MDL-31365)
@@ -20,6 +21,7 @@ optional changes:
* new icon t/cohorts (sized 12x12), to prevent the use of i/cohorts which is 16x16.
* new icons t/sort_asc, t/sort_desc to use for ordering in table headers.
* new class 'iconsort' for icons used for ordering in table headers.
+* new icon t/print (sized 12x12).
=== 2.3 ===

0 comments on commit 40fb0a9

Please sign in to comment.
Something went wrong with that request. Please try again.