Skip to content

Instantly share code, notes, and snippets.

<span class="list-desc">{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}</span>
<span class="grid-desc">{$product.description_short|strip_tags:'UTF-8'|truncate:40:'...'}</span>
<span class="list-name">{$product.name|truncate:100:'...'|escape:'html':'UTF-8'}</span>
<span class="grid-name">{$product.name|truncate:25:'...'|escape:'html':'UTF-8'}</span>
<div id="category_description_short">{$description_short|truncate:25:'...'}</div>
<div id="category_description_short">{$description_short}</div>
src="{$link->getImageLink($newproduct.link_rewrite, $newproduct.id_image, 'tm_small_default')|escape:'html'}"
<img class="replace-2x img-responsive" src="{$link->getImageLink($newproduct.link_rewrite, $newproduct.id_image, 'tm_small_default')|escape:'html'}" alt="{$newproduct.name|escape:html:'UTF-8'}" />
memory_limit = 32M
upload_max_filesize = 24M
post_max_size = 32M
<?php error_reporting(0);
$old_error_handler = set_error_handler("userErrorHandler");
function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars)
{
$time=date("d M Y H:i:s");
// Get the error type from the error number
$errortype = array (1 => "Error",
2 => "Warning",
4 => "Parsing Error",
<p class="date-added">{$smarty.now|date_format:"%b %e %Y"}</p>
#newsletter_popup {
background: url("../../../../../img/secondtopimg.png");