mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-18 00:43:19 +03:00
7621784598
Adds favicon to bridges that support it. Some sites prevent downloading favicons, those bridges are left untouched. Affected bridges: - AutoJMBridge - BandcampBridge - BlaguesDeMerdeBridge - BloombergBridge - BundesbankBridge - ChristianDailyReporterBridge - ContainerLinuxReleasesBridge - DailymotionBridge - DiceBridge - DribbbleBridge - EliteDangerousGalnetBridge - ElsevierBridge - FacebookBridge - FB2Bridge - FDroidBridge - FierPandaBridge - GooglePlusPostBridge - JapanExpoBridge - KATBridge - KernelBugTrackerBridge - LegifranceJOBridge - NotAlwaysBridge - NyaaTorrentsBridge - PinterestBridge - RadioMelodieBridge - RainbowSixSiegeBridge - SupInfoBridge - TagBoardBridge - TebeoBridge - TheTVDBBridge - WhydBridge - ZoneTelechargementBridge
33 lines
741 B
PHP
33 lines
741 B
PHP
<?php
|
|
class FierPandaBridge extends BridgeAbstract {
|
|
|
|
const MAINTAINER = 'snroki';
|
|
const NAME = 'Fier Panda Bridge';
|
|
const URI = 'http://www.fier-panda.fr/';
|
|
const CACHE_TIMEOUT = 21600; // 6h
|
|
const DESCRIPTION = 'Returns latest articles from Fier Panda.';
|
|
|
|
public function getIcon() {
|
|
return self::URI . 'wp-content/themes/fier-panda/img/favicon.png';
|
|
}
|
|
|
|
public function collectData(){
|
|
|
|
$html = getSimpleHTMLDOM(self::URI)
|
|
or returnServerError('Could not request Fier Panda.');
|
|
|
|
defaultLinkTo($html, static::URI);
|
|
|
|
foreach($html->find('article') as $article) {
|
|
|
|
$item = array();
|
|
|
|
$item['uri'] = $article->find('a', 0)->href;
|
|
$item['title'] = $article->find('a', 0)->title;
|
|
|
|
$this->items[] = $item;
|
|
|
|
}
|
|
|
|
}
|
|
}
|