[DealabsBridge] Follow site changes (#721)

- Changed some CSS class to follow the website changes (again)
This commit is contained in:
sysadminstory 2018-06-21 14:14:59 +02:00 committed by Teromene
parent 9fa74a36c6
commit 1b08bce779

View file

@ -178,10 +178,9 @@ class DealabsBridge extends BridgeAbstract {
' ', /* Notice this is a space! */ ' ', /* Notice this is a space! */
array( array(
'cept-description-container', 'cept-description-container',
'userHtml',
'overflow--wrap-break', 'overflow--wrap-break',
'size--all-s', 'size--all-s',
'size--fromW3-m', 'size--fromW3-m'
) )
); );
@ -191,7 +190,6 @@ class DealabsBridge extends BridgeAbstract {
array( array(
'size--all-s', 'size--all-s',
'flex', 'flex',
'flex--wrap',
'flex--justify-e', 'flex--justify-e',
'flex--grow-1', 'flex--grow-1',
) )
@ -223,11 +221,11 @@ class DealabsBridge extends BridgeAbstract {
. $this->getExpedition($deal) . $this->getExpedition($deal)
. $this->getLivraison($deal) . $this->getLivraison($deal)
. $this->getOrigine($deal) . $this->getOrigine($deal)
. $deal->find('div[class='. $selectorDescription .']', 0)->innertext . $deal->find('div[class*='. $selectorDescription .']', 0)->innertext
. '</td><td>' . '</td><td>'
. $deal->find('div[class='. $selectorHot .']', 0)->children(0)->outertext . $deal->find('div[class='. $selectorHot .']', 0)->children(0)->outertext
. '</td></table>'; . '</td></table>';
$dealDateDiv = $deal->find('div[class='. $selectorDate .']', 0) $dealDateDiv = $deal->find('div[class*='. $selectorDate .']', 0)
->find('span[class=hide--toW3]'); ->find('span[class=hide--toW3]');
$itemDate = end($dealDateDiv)->plaintext; $itemDate = end($dealDateDiv)->plaintext;
if(substr( $itemDate, 0, 6 ) === 'il y a') { if(substr( $itemDate, 0, 6 ) === 'il y a') {