if ($jvcshowthismonth) {
    if ($iscache) {
        $visitorsarray = $iscache->call(array('JvcounterModelJvcounter', 'getVisits'), $datetime["localmonthstart"], $datetime["localdaystart"]);
    } else {
        $visitorsarray = JvcounterModelJvcounter::getVisits($datetime["localmonthstart"], $datetime["localdaystart"]);
    }
    $thismonthvisitors = $visitorsarray['visits'];
    $thismonthvisitors += $todayvisitors;
}
if ($jvcshowlastmonth) {
    if ($iscache) {
        $visitorsarray = $iscache->call(array('JvcounterModelJvcounter', 'getVisits'), $datetime["locallastmonthstart"], $datetime["localmonthstart"]);
    } else {
        $visitorsarray = JvcounterModelJvcounter::getVisits($datetime["locallastmonthstart"], $datetime["localmonthstart"]);
    }
    $lastmonthvisitors = $visitorsarray['visits'];
}
if ($iscache) {
    $visitorsarray = $iscache->call(array('JvcounterModelJvcounter', 'getVisits'), 0, $datetime["localdaystart"]);
} else {
    $visitorsarray = JvcounterModelJvcounter::getVisits(0, $datetime["localdaystart"]);
}
$allvisitors = $visitorsarray['visits'];
$allvisitors += $todayvisitors;
$online_time = ONLINE_DEFAULT_TIME;
$online_time *= 60;
if ($jvcshowonlinevisitors) {
    $onlinevisitorsarray = JvcounterModelJvcounter::getVisits(0, 0, $online_time);
    $onlinevisits = $onlinevisitorsarray['visits'];
}
require JModuleHelper::getLayoutPath('mod_jvcounter', $params->get('layout', 'default'));