mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-23 16:43:11 +02:00
Last batch of bridges, all implemented !
Signed-off-by: teromene <teromene@teromene.fr>
This commit is contained in:
@@ -1,21 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* WallpaperStopBridge
|
||||
* Returns the latests wallpapers from http://www.wallpaperstop.com
|
||||
*
|
||||
* @name WallpaperStop Bridge
|
||||
* @homepage http://www.wallpaperstop.com/
|
||||
* @description Returns the latests wallpapers from WallpaperStop
|
||||
* @maintainer nel50n
|
||||
* @update 2014-11-05
|
||||
* @use1(c="category",s="subcategory",m="max number of wallpapers",r="resolution (1920x1200, 1680x1050, ...)")
|
||||
*/
|
||||
class WallpaperStopBridge extends BridgeAbstract {
|
||||
|
||||
private $category;
|
||||
private $subcategory;
|
||||
private $resolution;
|
||||
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = "nel50n";
|
||||
$this->name = "WallpaperStop Bridge";
|
||||
$this->uri = "http://www.wallpaperstop.com/";
|
||||
$this->description = "Returns the latests wallpapers from WallpaperStop";
|
||||
$this->update = "2014-11-05";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Category",
|
||||
"identifier" : "c"
|
||||
},
|
||||
{
|
||||
"name" : "subcategory",
|
||||
"identifier" : "s"
|
||||
},
|
||||
{
|
||||
"name" : "Max number of wallpapers",
|
||||
"identifier" : "m",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "resolution",
|
||||
"identifier" : "r",
|
||||
"exampleValue" : "1920x1200, 1680x1050, ..."
|
||||
}
|
||||
|
||||
]';
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function collectData(array $param){
|
||||
$html = '';
|
||||
if (!isset($param['c'])) {
|
||||
|
Reference in New Issue
Block a user