Commit b894e09d authored by jcnventura's avatar jcnventura

Use optimized PNG images.

parent 61ac40be
......@@ -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',
);
}
......
......@@ -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',
);
}
......
......@@ -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',
);
}
......
......@@ -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',
);
}
......
......@@ -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',
);
}
......
......@@ -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;
......
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