$hesk_settings['kb_substrart'])
{
// The quick but not 100% accurate way (number of chars displayed may be lower than the limit)
return substr($txt, 0, $hesk_settings['kb_substrart']) . '...';
// If you want a more accurate, but also slower way, use this instead
// return hesk_htmlentities( substr( hesk_html_entity_decode($txt), 0, $hesk_settings['kb_substrart'] ) ) . '...';
}
return $txt;
} // END hesk_kbArticleContentPreview()
function hesk_kbTopArticles($how_many, $index = 1)
{
global $hesk_settings, $hesklang;
// Index page or KB main page?
if ($index)
{
// Disabled?
if ( ! $hesk_settings['kb_index_popart'])
{
return true;
}
// Show title in italics
$font_weight = 'i';
}
else
{
// Disabled?
if ( ! $hesk_settings['kb_popart'])
{
return true;
}
// Show title in bold
$font_weight = 'b';
// Print a line for spacing
echo '
';
}
?>
' . $hesklang['views'] . '';
}
?>
'.$hesklang['noa'].'
';
return true;
}
/* We have some results, print them out */
?>
';
}
}
?>
' . $hesklang['dta'] . '';
}
?>
'.$hesklang['noa'].'
';
return true;
}
/* We have some results, print them out */
?>
|