summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2013-03-12 23:39:15 (GMT)
committerJoao Ventura2013-03-12 23:39:15 (GMT)
commitb894e09daabc1eb6d2999c0eb74b2c530f249a36 (patch)
treebe39b0f8d291837a15c5c0f9a33bbdea082ff3b2
parent61ac40be7f8dac440158b0b7e658b18dfbbf3076 (diff)
Use optimized PNG images.
-rw-r--r--icons/print_icon.gifbin917 -> 0 bytes
-rw-r--r--icons/print_icon.pngbin0 -> 252 bytes
-rw-r--r--print.module2
-rw-r--r--print_epub/icons/epub_icon.gifbin583 -> 0 bytes
-rw-r--r--print_epub/icons/epub_icon.pngbin0 -> 500 bytes
-rw-r--r--print_epub/print_epub.module2
-rw-r--r--print_mail/icons/mail_icon.gifbin919 -> 0 bytes
-rw-r--r--print_mail/icons/mail_icon.pngbin0 -> 283 bytes
-rw-r--r--print_mail/print_mail.module2
-rw-r--r--print_pdf/icons/pdf_icon.gifbin985 -> 0 bytes
-rw-r--r--print_pdf/icons/pdf_icon.pngbin0 -> 518 bytes
-rw-r--r--print_pdf/print_pdf.module2
-rw-r--r--print_ui/print_ui.api.php2
-rw-r--r--print_ui/print_ui.module4
14 files changed, 7 insertions, 7 deletions
diff --git a/icons/print_icon.gif b/icons/print_icon.gif
deleted file mode 100644
index 12d2cf7..0000000
--- a/icons/print_icon.gif
+++ /dev/null
Binary files differ
diff --git a/icons/print_icon.png b/icons/print_icon.png
new file mode 100644
index 0000000..f2e730e
--- /dev/null
+++ b/icons/print_icon.png
Binary files differ
diff --git a/print.module b/print.module
index 89b116f..1a56c9f 100644
--- a/print.module
+++ b/print.module
@@ -51,7 +51,7 @@ function print_print_link() {
'description' => t('Display a printer-friendly version of this page.'),
'path' => 'print',
'class' => 'print-page',
- 'icon' => 'print_icon.gif',
+ 'icon' => 'print_icon.png',
'module' => 'print',
);
}
diff --git a/print_epub/icons/epub_icon.gif b/print_epub/icons/epub_icon.gif
deleted file mode 100644
index d62aefc..0000000
--- a/print_epub/icons/epub_icon.gif
+++ /dev/null
Binary files differ
diff --git a/print_epub/icons/epub_icon.png b/print_epub/icons/epub_icon.png
new file mode 100644
index 0000000..fd49e30
--- /dev/null
+++ b/print_epub/icons/epub_icon.png
Binary files differ
diff --git a/print_epub/print_epub.module b/print_epub/print_epub.module
index f29e50a..8fc04c8 100644
--- a/print_epub/print_epub.module
+++ b/print_epub/print_epub.module
@@ -21,7 +21,7 @@ function print_epub_print_link() {
'description' => t('Display a EPUB version of this page.'),
'path' => 'printepub',
'class' => 'print-epub',
- 'icon' => 'epub_icon.gif',
+ 'icon' => 'epub_icon.png',
'module' => 'print_epub',
);
}
diff --git a/print_mail/icons/mail_icon.gif b/print_mail/icons/mail_icon.gif
deleted file mode 100644
index 515a047..0000000
--- a/print_mail/icons/mail_icon.gif
+++ /dev/null
Binary files differ
diff --git a/print_mail/icons/mail_icon.png b/print_mail/icons/mail_icon.png
new file mode 100644
index 0000000..2e4954b
--- /dev/null
+++ b/print_mail/icons/mail_icon.png
Binary files differ
diff --git a/print_mail/print_mail.module b/print_mail/print_mail.module
index b794366..4520f24 100644
--- a/print_mail/print_mail.module
+++ b/print_mail/print_mail.module
@@ -25,7 +25,7 @@ function print_mail_print_link() {
'description' => t('Send this page by email.'),
'path' => 'printmail',
'class' => 'print-mail',
- 'icon' => 'mail_icon.gif',
+ 'icon' => 'mail_icon.png',
'module' => 'print_mail',
);
}
diff --git a/print_pdf/icons/pdf_icon.gif b/print_pdf/icons/pdf_icon.gif
deleted file mode 100644
index 6ce5d1d..0000000
--- a/print_pdf/icons/pdf_icon.gif
+++ /dev/null
Binary files differ
diff --git a/print_pdf/icons/pdf_icon.png b/print_pdf/icons/pdf_icon.png
new file mode 100644
index 0000000..cfdb676
--- /dev/null
+++ b/print_pdf/icons/pdf_icon.png
Binary files differ
diff --git a/print_pdf/print_pdf.module b/print_pdf/print_pdf.module
index 41dfa12..8e9d27c 100644
--- a/print_pdf/print_pdf.module
+++ b/print_pdf/print_pdf.module
@@ -27,7 +27,7 @@ function print_pdf_print_link() {
'description' => t('Display a PDF version of this page.'),
'path' => 'printpdf',
'class' => 'print-pdf',
- 'icon' => 'pdf_icon.gif',
+ 'icon' => 'pdf_icon.png',
'module' => 'print_pdf',
);
}
diff --git a/print_ui/print_ui.api.php b/print_ui/print_ui.api.php
index 3530173..75a6d75 100644
--- a/print_ui/print_ui.api.php
+++ b/print_ui/print_ui.api.php
@@ -48,7 +48,7 @@ function hook_print_link() {
'description' => t('Display the foo version of this page.'),
'path' => 'printfoo',
'class' => 'print-foo',
- 'icon' => 'foo_icon.gif',
+ 'icon' => 'foo_icon.png',
'module' => 'print_foo',
);
}
diff --git a/print_ui/print_ui.module b/print_ui/print_ui.module
index 3e37509..3affdb3 100644
--- a/print_ui/print_ui.module
+++ b/print_ui/print_ui.module
@@ -512,10 +512,10 @@ function theme_print_ui_format_link($vars) {
$img = drupal_get_path('module', $module) . '/icons/' . $link['icon'];
switch ($show_link) {
case 2:
- $text = theme('image', array('path' => $img, 'alt' => $link_text, 'title' => $link_text, 'attributes' => array('class' => array('print-icon'))));
+ $text = theme('image', array('path' => $img, 'width' => '16px', 'height' => '16px', 'alt' => $link_text, 'title' => $link_text, 'attributes' => array('class' => array('print-icon'))));
break;
case 3:
- $text = theme('image', array('path' => $img, 'alt' => $link_text, 'title' => $link_text, 'attributes' => array('class' => array('print-icon', 'print-icon-margin')))) . $link_text;
+ $text = theme('image', array('path' => $img, 'width' => '16px', 'height' => '16px', 'alt' => $link_text, 'title' => $link_text, 'attributes' => array('class' => array('print-icon', 'print-icon-margin')))) . $link_text;
break;
}
$html = TRUE;