arras-theme
arras-theme copied to clipboard
default thumpnail in sidebar not using thumpnail-Size [moved]
This is Issue 98 moved from a Google Code project. Added by 2010-11-08T14:48:54.000Z by [email protected]. Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
Original description
The default thumpnail is shown in picture-size, not using the configured thumpnail-Size for Sidebar.
<b>What steps will reproduce the problem?</b>
1. post am article without an article image
2. setup the widget "Tabbed Sidebar" or "Featured Stories"
<b>What versions of WordPress and Arras Theme are you using?</b>
Wordpress 3.0.1
Arras 1.5.0.1
I took a look into the thumpnails.php and found the problem on Line 76. $empty_thumpnail ist not using width and height. In my installation I fixed it as below:
Move line 76 to line 102 (after $w and $h is set) and manipulate the img-src like this:
$empty_thumbnail = '<img src="' . get_bloginfo('template_directory') . '/library/timthumb.php?src=/images/thumbnail.png&w=' . $w . '&h=' . $h . '&zc=1" alt="' . get_the_excerpt() . '" title="' . get_the_title() . '" />';