From 60ef230447145294ea7c2766aa17b0c12d2638f7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 22 Nov 2021 12:37:47 +0100 Subject: [PATCH 01/10] Fix html content --- .../admin/dolistore/class/dolistore.class.php | 22 +++++++++++++------ htdocs/admin/modules.php | 4 +++- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/htdocs/admin/dolistore/class/dolistore.class.php b/htdocs/admin/dolistore/class/dolistore.class.php index 5e7a229fee3..546ef1d57a6 100644 --- a/htdocs/admin/dolistore/class/dolistore.class.php +++ b/htdocs/admin/dolistore/class/dolistore.class.php @@ -284,7 +284,8 @@ class Dolistore $download_link .= '

'; } - //checking versions + // Set and check version + $version = ''; if ($this->version_compare($product->dolibarr_min, DOL_VERSION) <= 0) { if ($this->version_compare($product->dolibarr_max, DOL_VERSION) >= 0) { //compatible @@ -319,14 +320,21 @@ class Dolistore //.'
'.$langs->trans("SeeInMarkerPlace").' //output template - $html .= ' -
'.dol_escape_htmltag($newapp.$images).'
-

'.dol_escape_htmltag($product->name->language[$this->lang - 1]) - .'
'.dol_escape_htmltag($version).'

- '.dol_print_date(dol_stringtotime($product->date_upd), 'dayhour').' - '.$langs->trans('Ref').': '.dol_escape_htmltag($product->reference).' - '.dol_escape_htmltag($langs->trans('Id')).': '.((int) $product->id).'

'.dol_escape_htmltag($product->description_short->language[$this->lang - 1]).''; + $html .= ''; + $html .= '
'; + $html .= $newapp.$images; // No dol_escape_htmltag, it is already escape html + $html .= '
'; + $html .= '

'; + $html .= dol_escape_htmltag($product->name->language[$this->lang - 1]); + $html .= '
'; + $html .= $version; // No dol_escape_htmltag, it is already escape html + $html .= '

'; + $html .= ' '.dol_print_date(dol_stringtotime($product->date_upd), 'dayhour').' - '.$langs->trans('Ref').': '.dol_escape_htmltag($product->reference).' - '.dol_escape_htmltag($langs->trans('Id')).': '.((int) $product->id).'

'.dol_escape_htmltag($product->description_short->language[$this->lang - 1]).''; // do not load if display none //$html .= ''.$product->description->language[$this->lang - 1].''; - $html .= ''.dol_escape_htmltag($price).''; + $html .= ''; + $html .= $price; + $html .= ''; $html .= ''.$download_link.''; $html .= ''; } diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 00142deb9e8..c72456b2306 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -1051,7 +1051,9 @@ if ($mode == 'marketplace') {
From 34ac517d62fc1ac2f880539aa27560fdc3f79542 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 22 Nov 2021 17:54:29 +0100 Subject: [PATCH 02/10] CSS --- htdocs/admin/modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index c72456b2306..236c8c0b28e 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -526,7 +526,7 @@ if ($mode == 'common' || $mode == 'commonkanban') { $moreforfilter = '
'; - $moreforfilter .= '