$thumbImageLink = JURI::base() . $thumb; $phpThumb->purgeTempFiles(); } else { // do something with debug/error messages echo 'Failed (size=' . CFG_THUMB_SERVICE_IMAGE . ').<br>'; echo '<div style="background-color:#FFEEDD; font-weight: bold; padding: 10px;">' . $phpThumb->fatalerror . '</div>'; echo '<form><textarea rows="100" cols="300" wrap="off">' . htmlentities(implode("\n* ", $phpThumb->debugmessages)) . '</textarea></form><hr>'; die; } } elseif (file_exists($thumbImage)) { $thumbImageLink = JURI::base() . $thumb; } else { $thumbImageLink = ''; } $id = $item->cat_id . '-' . $item->cat_alias; $bid = $item->id . '-' . JEUtil::convertAlias($item->alias); $username = $item->business_id . '-' . $item->business_username; $link = JRoute::_(Jnt_HanhphucHelperRoute::getSerivceItemRoute($id, $bid, $username)); ?> <li class="service-business-detail <?php if (($idx + 1) % 3 == 0) { echo 'last-item'; } ?> "> <div class="item-container relative"> <a class="item-link" title="<?php echo htmlspecialchars($item->name); ?> " href="<?php