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 = '
'; foreach ($news as $article) { $default = false; if ($article['text'] == '<p style="text-align: center; font-size: 13px;">Hello, congratulations, if you've arrived here you already have an operational monitoring console. Remember that our forums and online documentation are available 24x7 to get you out of any trouble. You can replace this message with a personalized one at Admin tools -> Site news.</p> ') { $article['subject'] = __('Welcome to Pandora FMS Console'); $default = true; } $text_bbdd = io_safe_output($article['text']); $text = html_entity_decode($text_bbdd); $output .= '
'; $output .= '
'; $output .= ''.$article['subject'].''; $output .= ''.__('By').' '.$article['author'].' '.ui_print_timestamp($article['timestamp'], true).''; $output .= '
'; $output .= '
'; if ($default) { $output .= '
'; $output .= '
'; $output .= 'img colabora con nosotros - Support'; $output .= '
'; $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 .= '
'; } else { $text = str_replace('