public function image($item, &$options)
{
$thumbnail = PhocacartFileThumbnail::getThumbnailName(PhocacartText::filterValue($item['value'], 'text'), 'small', 'productimage');
$img = '';
if (File::exists($thumbnail->abs)) {
$img = '<img src="' . Uri::root() . $thumbnail->rel . '?imagesid=' . md5(uniqid(time())) . '" />';
}
//if ($item['params']['edit'] == 2) {
// $o[] = '<span class="ph-editinplace-text ph-eip-' . $item['editclass'] . ' ph-eip-' . $item['name'] . '" id="'.$item['idtoken'].'">' . PhocacartText::filterValue($item['value'], 'text') . '</span>';
// } else {
return $this->r->td('<span class="ph-' . $item['name'] . '">' . $img . '</span>', 'small ph-items-image-box');
// }
}