From 057a4517c926f9a5dfe93a30c5a5980e2b450ae6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 13 Apr 2020 13:38:57 +0200 Subject: [PATCH] Fix rss --- htdocs/admin/external_rss.php | 31 +++++++++++++++---------------- htdocs/langs/en_US/admin.lang | 2 +- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/htdocs/admin/external_rss.php b/htdocs/admin/external_rss.php index 86283c07ff8..cc2edb550a0 100644 --- a/htdocs/admin/external_rss.php +++ b/htdocs/admin/external_rss.php @@ -228,9 +228,8 @@ print ''; print ''; -print '
'.$langs->trans('RssNote'); -print '
'.$langs->trans('JumpToBoxes').''; - +print '

'; +print ''.$langs->trans('RssNote').' -
'.$langs->trans('JumpToBoxes').''; print '

'; $sql = "SELECT rowid, file, note FROM ".MAIN_DB_PREFIX."boxes_def"; @@ -259,12 +258,12 @@ if ($resql) $result = $rssparser->parser($conf->global->$keyrssurl, 5, 300, $conf->externalrss->dir_temp); print "
"; - print '
'; + print ''."\n"; - print ''; - print ''; + print '
'."\n"; + print ''."\n"; - print ""; + print ''; print ""; print ''; - print ""; + print ""."\n"; print ''; print ""; print ""; - print ""; + print ""."\n"; print ''; print ""; print ""; - print ""; + print ""."\n"; print ''; @@ -302,7 +301,7 @@ if ($resql) print ''; } print ""; - print ""; + print ""."\n"; // Logo if ($result > 0 && empty($rss->error)) @@ -316,19 +315,19 @@ if ($resql) if ($imageurl) print ''; else print $langs->trans("None"); print ''; - print ""; + print ""."\n"; } // Active $active = _isInBoxList($idrss, $boxlist) ? 'yes' : 'no'; print ''; print ''; - print ''; - print ""; + print ''; + print ""."\n"; - print '
".$langs->trans("RSS")." ".($i + 1)."'; print ''; @@ -272,19 +271,19 @@ if ($resql) print ''; print ''; print '
".$langs->trans("Title")."global->$keyrsstitle)."\">
".$langs->trans("URL")."global->$keyrssurl)."\">
'.$langs->trans('WidgetEnabled').''.yesno($active).'
'.yn($active).'
'; + print ''."\n"; - print "
"; + print ""."\n"; $i++; } diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 6c9bc75ae48..414a1e10977 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -1990,5 +1990,5 @@ EmailTemplate=Template for email EMailsWillHaveMessageID=Emails will have a tag 'References' matching this syntax PDF_USE_ALSO_LANGUAGE_CODE=If you want to have some texts in your PDF duplicated in 2 different languages in the same generated PDF, you must set here this second language so generated PDF will contains 2 different languages in same page, the one chosen when generating PDF and this one (only few PDF templates support this). Keep empty for 1 language per PDF. FafaIconSocialNetworksDesc=Enter here the code of a FontAwesome icon. If you don't know what is FontAwesome, you can use the generic value fa-address-book. -RssNote=Note: Each RSS feed must be separate activate as a widget to show it for a user. +RssNote=Note: Each RSS feed definition provides a widget that you must enable to have it available in dashboard JumpToBoxes=Jump to Setup -> Widgets