title = __('News Board'); } /** * Returns the html of the latest news. * * @return string */ public function getNews():string { global $config; $options = []; $options['id_user'] = $config['id_user']; $options['modal'] = false; $options['limit'] = 7; $news = get_news($options); if (!empty($news)) { $output = '
'.__('Welcome to our monitoring tool so grand,').'
'.__('Where data insights are at your command.').'
'.__('Sales, marketing, operations too,').'
'.__("Customer support, we've got you.").'
'.__('Our interface is user-friendly,').'
'.__("Customize your dashboard, it's easy.").'
'.__('Set up alerts and gain insights so keen,').'
'.__("Optimize your data, like you've never seen.").'
'.__('Unleash its power now, and join the pro league,').'
'.__('Unlock the potential of your data to intrigue.').'
'.__('Monitoring made simple, efficient and fun,').'
'.__('Discover a whole new way to get things done.').'
'.__('And take control of your IT once and for all.').'
'.__('You can replace this message with a personalized one at Admin tools -> Site news.').' '; $output .= '