2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2022-09-07 20:45:02 +02:00
parent 31fcfc5aa5
commit a079fb3fec
3 changed files with 7 additions and 5 deletions

View File

@@ -120,6 +120,8 @@ class box_external_rss extends ModeleBoxes
// INFO on items // INFO on items
$items = $rssparser->getItems(); $items = $rssparser->getItems();
//print '<pre>'.print_r($items,true).'</pre>'; //print '<pre>'.print_r($items,true).'</pre>';
// Loop on last items
$nbitems = count($items); $nbitems = count($items);
for ($line = 0; $line < $max && $line < $nbitems; $line++) { for ($line = 0; $line < $max && $line < $nbitems; $line++) {
$item = $items[$line]; $item = $items[$line];
@@ -179,18 +181,18 @@ class box_external_rss extends ModeleBoxes
$this->info_box_contents[$line][0] = array( $this->info_box_contents[$line][0] = array(
'td' => 'class="left" width="16"', 'td' => 'class="left" width="16"',
'logo' => $this->boximg, 'text' => img_picto('', 'rss'),
'url' => $href, 'url' => $href,
'tooltip' => $tooltip, 'tooltip' => $tooltip,
'target' => 'newrss', 'target' => 'newrss',
); );
$this->info_box_contents[$line][1] = array( $this->info_box_contents[$line][1] = array(
'td' => '', 'td' => 'class="tdoverflowmax300"',
'text' => $title, 'text' => $title,
'url' => $href, 'url' => $href,
'tooltip' => $tooltip, 'tooltip' => $tooltip,
'maxlength' => 64, 'maxlength' => 0,
'target' => 'newrss', 'target' => 'newrss',
); );

View File

@@ -326,7 +326,7 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box
} }
$maxlength = $MAXLENGTHBOX; $maxlength = $MAXLENGTHBOX;
if (!empty($contents[$i][$j]['maxlength'])) { if (isset($contents[$i][$j]['maxlength'])) {
$maxlength = $contents[$i][$j]['maxlength']; $maxlength = $contents[$i][$j]['maxlength'];
} }

View File

@@ -3974,7 +3974,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
'salary', 'shipment', 'state', 'supplier_invoice', 'supplier_invoicea', 'supplier_invoicer', 'supplier_invoiced', 'salary', 'shipment', 'state', 'supplier_invoice', 'supplier_invoicea', 'supplier_invoicer', 'supplier_invoiced',
'technic', 'ticket', 'technic', 'ticket',
'error', 'warning', 'error', 'warning',
'recent', 'reception', 'recruitmentcandidature', 'recruitmentjobposition', 'resource', 'recurring', 'recent', 'reception', 'recruitmentcandidature', 'recruitmentjobposition', 'resource', 'recurring','rss',
'shapes', 'square', 'stop-circle', 'supplier', 'supplier_proposal', 'supplier_order', 'supplier_invoice', 'shapes', 'square', 'stop-circle', 'supplier', 'supplier_proposal', 'supplier_order', 'supplier_invoice',
'timespent', 'title_setup', 'title_accountancy', 'title_bank', 'title_hrm', 'title_agenda', 'timespent', 'title_setup', 'title_accountancy', 'title_bank', 'title_hrm', 'title_agenda',
'uncheck', 'user-cog', 'user-injured', 'user-md', 'vat', 'website', 'workstation', 'webhook', 'world', 'private', 'uncheck', 'user-cog', 'user-injured', 'user-md', 'vat', 'website', 'workstation', 'webhook', 'world', 'private',