Plugin Author
Sneddo
(@sneddo)
Hey Alex,
Thanks for the feedback!
Haven’t come across this issue yet, but the more error handling the better. I’ll put this in the next release 🙂
Cheers,
Sneddo
Thread Starter
alx359
(@alx359)
Testing now. May think of a small feature too:
– Put (part of) the CSS in the admin box. Now I’ve added
.etsyItemTable td a img { border: 1px #000; border-style:solid; }
in customizableetsywidget_head_css() and get a lot of nicer display of the small thumbs.
Plugin Author
Sneddo
(@sneddo)
Yeah, I guess I could do that. The CSS is mostly just to display them evenly, with the actual look and feel left for the end user to customise. But perhaps I need to look at this sometime…
Thread Starter
alx359
(@alx359)
Etsy doesn’t return proper entities in links and the WP pages do not validate anymore (my theme at least does in the most part).
The quick-fix that is working for me was escaping the urls:
~ li 376 CustomizableEtsyWidget.php
echo '<td>';
if ($k < $numitems) {
echo '<a href="' . htmlspecialchars($item->url) . '" title="' . $item->title . '">';
if ($instance['imgsize'] == '75x75')
echo '<img src="' . htmlspecialchars($item->Images[0]->url_75x75) . '" alt="' . $item->title . '" />';
if ($instance['imgsize'] == '170x135')
echo '<img src="' . htmlspecialchars($item->Images[0]->url_170x135) . '" alt="' . $item->title . '" />';
echo '</a>';
}
echo "</td>";
(tested with HTML Validator for FF)
Plugin Author
Sneddo
(@sneddo)
Hey Alex,
I’ve just uploaded a new version which incorporates all your input as well as updating to the new Etsy API URLs.
Thanks for your input, and please let me know if there is anything else I can add 🙂
Cheers,
Sneddo
Thread Starter
alx359
(@alx359)
Sneddo, hi there! 🙂
Good job, looks great! Just changed text-align:left as it better suits the site I’m doing (and its the default of the other sidebars, I think).
New ideas to add I have not for now. Your plugin perfectly suits me!
(BTW, thanks, but no need to keep ref to the suggested fix in code. I do tags just to find my hacks quickly when updates come).
Cheers!
Alex
Plugin Author
Sneddo
(@sneddo)
I believe in credit where credit is due 🙂
I have a few more ideas, but we’ll see what eventuates….