2017-09-05 22:03:21 +03:00
|
|
|
<?php
|
2018-07-13 02:35:13 +03:00
|
|
|
|
2022-07-01 16:10:30 +03:00
|
|
|
class DealabsBridge extends PepperBridgeAbstract
|
|
|
|
{
|
|
|
|
const NAME = 'Dealabs Bridge';
|
|
|
|
const URI = 'https://www.dealabs.com/';
|
|
|
|
const DESCRIPTION = 'Affiche les Deals de Dealabs';
|
|
|
|
const MAINTAINER = 'sysadminstory';
|
|
|
|
const PARAMETERS = [
|
|
|
|
'Recherche par Mot(s) clé(s)' => [
|
|
|
|
'q' => [
|
|
|
|
'name' => 'Mot(s) clé(s)',
|
|
|
|
'type' => 'text',
|
|
|
|
'exampleValue' => 'lampe',
|
|
|
|
'required' => true
|
|
|
|
],
|
|
|
|
'hide_expired' => [
|
|
|
|
'name' => 'Masquer les éléments expirés',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
],
|
|
|
|
'hide_local' => [
|
|
|
|
'name' => 'Masquer les deals locaux',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'title' => 'Masquer les deals en magasins physiques',
|
|
|
|
],
|
|
|
|
'priceFrom' => [
|
|
|
|
'name' => 'Prix minimum',
|
|
|
|
'type' => 'text',
|
|
|
|
'title' => 'Prix mnimum en euros',
|
|
|
|
'required' => false
|
|
|
|
],
|
|
|
|
'priceTo' => [
|
|
|
|
'name' => 'Prix maximum',
|
|
|
|
'type' => 'text',
|
|
|
|
'title' => 'Prix maximum en euros',
|
|
|
|
'required' => false
|
|
|
|
],
|
|
|
|
],
|
2018-03-01 20:10:34 +03:00
|
|
|
|
2022-07-01 16:10:30 +03:00
|
|
|
'Deals par groupe' => [
|
|
|
|
'group' => [
|
|
|
|
'name' => 'Groupe',
|
[PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management (#4336)
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Since groups can change URLs, be created, or removed at the discretion
of website administrators, maintaining a valid and functional list of
groups is impractical.
Users can now enter the part of the URL that defines the group in a text
field, rather than searching through a lengthy, likely outdated list.
The way the RSS feed title is retrieved had to be adjusted accordingly.
Titles are now cached for 15 days to avoid unnecessary website access
and to prevent potential bot blocking.
Existing feeds will continue to work, as their parameters remain
unchanged; only the method for inputting them has been modified.
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Coding policy fixes
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Fix wrong comment
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Add Example values for Group context
2024-11-23 21:11:36 +03:00
|
|
|
'type' => 'text',
|
|
|
|
'exampleValue' => 'abonnements-internet',
|
|
|
|
'title' => 'Nom du groupe dans l\'URL : Il faut entrer le nom du groupe qui est présent après "https://www.dealabs.com/groupe/" et avant tout éventuel "?"
|
|
|
|
Exemple : Si l\'URL du groupe affichées dans le navigateur est :
|
|
|
|
https://www.dealabs.com/groupe/abonnements-internet?sortBy=lowest_price
|
|
|
|
Il faut alors saisir :
|
|
|
|
abonnements-internet',
|
|
|
|
],
|
2022-07-01 16:10:30 +03:00
|
|
|
'order' => [
|
|
|
|
'name' => 'Trier par',
|
|
|
|
'type' => 'list',
|
|
|
|
'title' => 'Ordre de tri des deals',
|
|
|
|
'values' => [
|
|
|
|
'Du deal le plus Hot au moins Hot' => '-hot',
|
|
|
|
'Du deal le plus récent au plus ancien' => '-nouveaux',
|
|
|
|
]
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'Surveillance Discussion' => [
|
|
|
|
'url' => [
|
|
|
|
'name' => 'URL de la discussion',
|
|
|
|
'type' => 'text',
|
|
|
|
'required' => true,
|
|
|
|
'title' => 'URL discussion à surveiller: https://www.dealabs.com/discussions/titre-1234',
|
|
|
|
'exampleValue' => 'https://www.dealabs.com/discussions/jeux-steam-gratuits-gleam-woobox-etc-1071415',
|
|
|
|
],
|
2022-01-10 13:46:26 +03:00
|
|
|
|
2022-07-01 16:10:30 +03:00
|
|
|
'only_with_url' => [
|
|
|
|
'name' => 'Exclure les commentaires sans URL',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'title' => 'Exclure les commentaires ne contenant pas d\'URL dans le flux',
|
|
|
|
'defaultValue' => false,
|
|
|
|
]
|
2022-01-10 13:46:26 +03:00
|
|
|
|
|
|
|
|
2022-07-01 16:10:30 +03:00
|
|
|
]
|
2018-07-13 02:35:13 +03:00
|
|
|
|
2022-07-01 16:10:30 +03:00
|
|
|
];
|
2018-07-13 02:35:13 +03:00
|
|
|
|
2022-07-01 16:10:30 +03:00
|
|
|
public $lang = [
|
|
|
|
'bridge-uri' => self::URI,
|
|
|
|
'bridge-name' => self::NAME,
|
|
|
|
'context-keyword' => 'Recherche par Mot(s) clé(s)',
|
|
|
|
'context-group' => 'Deals par groupe',
|
|
|
|
'context-talk' => 'Surveillance Discussion',
|
|
|
|
'uri-group' => 'groupe/',
|
2023-10-01 21:46:51 +03:00
|
|
|
'uri-deal' => 'bons-plans/',
|
2024-01-05 09:23:40 +03:00
|
|
|
'uri-merchant' => 'search/bons-plans?merchant-id=',
|
2022-07-01 16:10:30 +03:00
|
|
|
'request-error' => 'Impossible de joindre Dealabs',
|
|
|
|
'thread-error' => 'Impossible de déterminer l\'ID de la discussion. Vérifiez l\'URL que vous avez entré',
|
2024-02-06 04:23:12 +03:00
|
|
|
'currency' => '€',
|
2022-07-01 16:10:30 +03:00
|
|
|
'price' => 'Prix',
|
|
|
|
'shipping' => 'Livraison',
|
|
|
|
'origin' => 'Origine',
|
|
|
|
'discount' => 'Réduction',
|
|
|
|
'title-keyword' => 'Recherche',
|
|
|
|
'title-group' => 'Groupe',
|
|
|
|
'title-talk' => 'Surveillance Discussion',
|
2024-03-28 21:44:27 +03:00
|
|
|
'deal-type' => 'Type de deal',
|
|
|
|
'localdeal' => 'Deal Local',
|
[PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management (#4336)
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Since groups can change URLs, be created, or removed at the discretion
of website administrators, maintaining a valid and functional list of
groups is impractical.
Users can now enter the part of the URL that defines the group in a text
field, rather than searching through a lengthy, likely outdated list.
The way the RSS feed title is retrieved had to be adjusted accordingly.
Titles are now cached for 15 days to avoid unnecessary website access
and to prevent potential bot blocking.
Existing feeds will continue to work, as their parameters remain
unchanged; only the method for inputting them has been modified.
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Coding policy fixes
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Fix wrong comment
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Add Example values for Group context
2024-11-23 21:11:36 +03:00
|
|
|
'context-hot' => '-hot',
|
|
|
|
'context-new' => '-nouveaux',
|
2022-07-01 16:10:30 +03:00
|
|
|
];
|
2018-07-13 02:35:13 +03:00
|
|
|
}
|