New: Si RSS a un lien global on l'affiche sur la box
This commit is contained in:
parent
957a6d2d29
commit
d6c13a231a
@ -76,6 +76,10 @@ class box_external_rss extends ModeleBoxes {
|
|||||||
// Recupere flux RSS definie dans EXTERNAL_RSS_URLRSS_$site
|
// Recupere flux RSS definie dans EXTERNAL_RSS_URLRSS_$site
|
||||||
$rss = fetch_rss( @constant("EXTERNAL_RSS_URLRSS_".$site) );
|
$rss = fetch_rss( @constant("EXTERNAL_RSS_URLRSS_".$site) );
|
||||||
|
|
||||||
|
// INFO sur le channel
|
||||||
|
$description=$rss->channel['tagline'];
|
||||||
|
$link=$rss->channel['link'];
|
||||||
|
|
||||||
$title=$langs->trans("BoxTitleLastRssInfos",$max, @constant("EXTERNAL_RSS_TITLE_". $site));
|
$title=$langs->trans("BoxTitleLastRssInfos",$max, @constant("EXTERNAL_RSS_TITLE_". $site));
|
||||||
if ($rss->ERROR)
|
if ($rss->ERROR)
|
||||||
{
|
{
|
||||||
@ -85,12 +89,11 @@ class box_external_rss extends ModeleBoxes {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_head = array('text' => $title);
|
$this->info_box_head = array('text' => $title,
|
||||||
|
'sublink' => $link, 'subtext'=>'WWW', 'subpicto'=>'object_bookmark');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Titre du channel
|
// INFO sur le élements
|
||||||
$channel=$rss->channel['tagline'];
|
|
||||||
|
|
||||||
for($i = 0; $i < $max ; $i++)
|
for($i = 0; $i < $max ; $i++)
|
||||||
{
|
{
|
||||||
$item = $rss->items[$i];
|
$item = $rss->items[$i];
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 229 B After Width: | Height: | Size: 695 B |
Binary file not shown.
|
Before Width: | Height: | Size: 641 B After Width: | Height: | Size: 677 B |
Binary file not shown.
|
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 578 B |
Loading…
Reference in New Issue
Block a user