case 'content':
    default:
        $catid = $params->get('catid', 0);
        break;
}
if (!is_array($catid)) {
    $catid = (array) $catid;
}
if ($params->get('mode') == 'vertical') {
    $mode = 'vertical';
}
$source = $params->get('source', 'content');
if ($source == 'folder') {
    $params->set('showtitle', 0);
}
$contents = modJacontentsliderHelper::getListItems($catid, $params, $source);
if ($numElem == 0) {
    return '';
}
/**
 * id, title, decscription,link,
 */
$total = count($contents);
if (!defined('JACONTENTSLIDER2_ASSETS')) {
    define('JACONTENTSLIDER2_ASSETS', 1);
    /* load javascript. */
    modJacontentsliderHelper::javascript($params);
    /* load css. */
    modJacontentsliderHelper::css($params);
}
require JModuleHelper::getLayoutPath('mod_jacontentslider');