<?php $optinsPanel = array('panelid' => 'onlineusers', 'limitid' => 'limitod', 'hide_department_filter' => true); ?>

<?php $onlineCheck_timeout = (int)erLhcoreClassModelChatConfig::fetch('checkstatus_timeout')->current_value; ?>
<lhc-widget <?php if (isset($customCardNoId)) : ?>no_panel_id="true"<?php endif;?> no_link="true" custom_settings_url_icon="send" custom_settings_url="chat/sendmassmessage"  data_panel_id="online_visitors" hide_filter_options="true" osettings_hide_action_buttons="true" group_by_field=<?php echo json_encode($ogroupBy, JSON_HEX_APOS)?> <?php if ($onlineCheck_timeout > 0) : ?>online_check="<?php echo $onlineCheck_timeout?>"<?php endif; ?> sound_enabled="<?php echo $soundUserNotification == 1 ? 'true' : 'false'?>" notification_enabled="<?php echo $browserNotification == 1 ? 'true' : 'false'?>" country=<?php echo json_encode($oCountry,JSON_HEX_APOS)?> online_connected="<?php echo $onlineVisitorOnly == 1 ? 'true' : 'false' ?>" timeout="<?php echo (int)$ouserTimeout?>" time_on_site=<?php echo json_encode($oTimeOnSite,JSON_HEX_APOS)?> max_rows="<?php echo (int)$omaxRows?>" update_timeout="<?php echo (int)$oupdTimeout?>" <?php if (erLhcoreClassModelChatConfig::fetch('track_is_online')->current_value == 1) : ?>track_is_online="true"<?php endif; ?> www_dir_flags="<?php echo erLhcoreClassDesign::design('images/flags');?>" <?php if (isset($customCardNoCollapse)) : ?>no_collapse="true"<?php endif; ?>  <?php if (isset($customCardTitleClass)) : ?>custom_title_class="<?php echo $customCardTitleClass?>"<?php endif; ?> <?php if (isset($customCardNoDuration)) : ?>no_duration="<?php echo $customCardNoDuration?>"<?php endif; ?> column_2_width="25%" card_icon="account_box" <?php if (isset($rightPanelMode)) : ?>right_panel_mode="true"<?php endif; ?> <?php if (isset($hideCardHeader)) : ?>hide_header="true"<?php endif;?> icon_class="chat-active" list_identifier="onlineusers" type="onlineusers" optionsPanel='<?php echo json_encode($optinsPanel)?>' www_dir_flags="<?php echo erLhcoreClassDesign::design('images/flags');?>" expand_identifier="onvisitors_widget_exp" status_id="<?php echo erLhcoreClassUser::instance()->getUserID()?>" status_key="user_id" panel_list_identifier="onlineusers-panel-list"></lhc-widget>