Commit b894e09d authored by jcnventura's avatar jcnventura

Use optimized PNG images.

parent 61ac40be
...@@ -51,7 +51,7 @@ function print_print_link() { ...@@ -51,7 +51,7 @@ function print_print_link() {
'description' => t('Display a printer-friendly version of this page.'), 'description' => t('Display a printer-friendly version of this page.'),
'path' => 'print', 'path' => 'print',
'class' => 'print-page', 'class' => 'print-page',
'icon' => 'print_icon.gif', 'icon' => 'print_icon.png',
'module' => 'print', 'module' => 'print',
); );
} }
......
...@@ -21,7 +21,7 @@ function print_epub_print_link() { ...@@ -21,7 +21,7 @@ function print_epub_print_link() {
'description' => t('Display a EPUB version of this page.'), 'description' => t('Display a EPUB version of this page.'),
'path' => 'printepub', 'path' => 'printepub',
'class' => 'print-epub', 'class' => 'print-epub',
'icon' => 'epub_icon.gif', 'icon' => 'epub_icon.png',
'module' => 'print_epub', 'module' => 'print_epub',
); );
} }
......
...@@ -25,7 +25,7 @@ function print_mail_print_link() { ...@@ -25,7 +25,7 @@ function print_mail_print_link() {
'description' => t('Send this page by email.'), 'description' => t('Send this page by email.'),
'path' => 'printmail', 'path' => 'printmail',
'class' => 'print-mail', 'class' => 'print-mail',
'icon' => 'mail_icon.gif', 'icon' => 'mail_icon.png',
'module' => 'print_mail', 'module' => 'print_mail',
); );
} }
......
...@@ -27,7 +27,7 @@ function print_pdf_print_link() { ...@@ -27,7 +27,7 @@ function print_pdf_print_link() {
'description' => t('Display a PDF version of this page.'), 'description' => t('Display a PDF version of this page.'),
'path' => 'printpdf', 'path' => 'printpdf',
'class' => 'print-pdf', 'class' => 'print-pdf',
'icon' => 'pdf_icon.gif', 'icon' => 'pdf_icon.png',
'module' => 'print_pdf', 'module' => 'print_pdf',
); );
} }
......
...@@ -48,7 +48,7 @@ function hook_print_link() { ...@@ -48,7 +48,7 @@ function hook_print_link() {
'description' => t('Display the foo version of this page.'), 'description' => t('Display the foo version of this page.'),
'path' => 'printfoo', 'path' => 'printfoo',
'class' => 'print-foo', 'class' => 'print-foo',
'icon' => 'foo_icon.gif', 'icon' => 'foo_icon.png',
'module' => 'print_foo', 'module' => 'print_foo',
); );
} }
......
...@@ -512,10 +512,10 @@ function theme_print_ui_format_link($vars) { ...@@ -512,10 +512,10 @@ function theme_print_ui_format_link($vars) {
$img = drupal_get_path('module', $module) . '/icons/' . $link['icon']; $img = drupal_get_path('module', $module) . '/icons/' . $link['icon'];
switch ($show_link) { switch ($show_link) {
case 2: 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; break;
case 3: 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; break;
} }
$html = TRUE; $html = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment