Teromene
8b2fdb3937
Add a function to convert the background-image attribute to an actual image.
2017-03-03 14:13:29 +00:00
logmanoriginal
16bdf6b204
links: Rename defaultImageSrcTo to defaultLinkTo
...
This function not only fixes image sources, but also anchors
2017-02-18 13:41:45 +01:00
logmanoriginal
cf7da1d41c
[html] Fix anchors after fixing images
...
Anchors will be fixed in a similar way as it is done with images,
so it can be done in one go.
2017-02-18 13:40:58 +01:00
logmanoriginal
bb8e7495d8
[html] Fix img src replacement not working
...
strpos returns false if the needle was not found. See:
http://php.net/manual/en/function.strpos.php#refsect1-function.strpos-returnvalues
2017-02-18 13:13:40 +01:00
logmanoriginal
512a4f292b
bridges: Return parent::getURI by default
2017-02-15 19:38:32 +01:00
logmanoriginal
c4169f1579
bridges: Return parent::getName by default
2017-02-15 19:38:32 +01:00
logmanoriginal
d93d491d8e
core: Use methods to access bridge information
...
Bridge information were exposed and accessed via public constants
which doesn't work if you want to generate bridges dynamically as
discussed in #402
2017-02-15 19:38:32 +01:00
logmanoriginal
c44fb25845
core: Improve documentation and style for BridgeAbstract and BridgeInterface
...
Public functions defined in BridgeAbstract also belong to BridgeInterface
getInput may only be used by this class or its children.
2017-02-15 19:36:29 +01:00
logmanoriginal
ff83410534
style: Fix coding styles
2017-02-14 17:28:07 +01:00
Badet Aurélien
670d8f18cb
[BridgeAbstract] Enable caching of extraInfos - Issue #431 ( #434 )
...
Enable caching of extraInfos.
2017-01-03 10:28:47 +00:00
logmanoriginal
4a1e5245b3
[contents] Don't suppress errors returned by file_get_contents
2016-12-15 20:24:34 +01:00
LogMANOriginal
cad78be37b
Merge pull request #445 from da2x/patch-1
...
Set “Accept-Encoding: gzip” header
2016-12-14 12:57:48 +01:00
Daniel Aleksandersen
278d6a0ec2
Set “Accept-Encoding: gzip” header
2016-12-12 11:29:34 +01:00
Alexis CHEMEL
f4aa3b39e8
fix BridgeAbstract
2016-12-06 01:01:07 +01:00
Badet Aurélien
c702a0e69f
Bridge getExtraInfos ( #432 )
...
* add function getExtraInfos() to BridgeAbstract
* replace call to $bridge->getName() and $bridge->getURI() by $bridge->getExtraInfos()
replace call to $bridge->getName() and $bridge->getURI() by $bridge->getExtraInfos() defined by default in BridgeAbstract.
So we could pass additionals ExtraInfos from custom bridges to custom formats.
2016-11-29 00:48:59 +00:00
logmanoriginal
14c689e7a3
[core] Fix typos
2016-11-09 19:10:40 +01:00
logmanoriginal
4f4fb11789
[FormatAbstract] Allow child classes to overwrite DEFAULT_CHARSET
...
By using 'static' instead of 'self' the constant may
be overridden by child classes.
2016-11-09 18:41:25 +01:00
logmanoriginal
28e813620f
[FormatInterface] Add missing public functions
...
This commit adds all missing functions to the interface
that are defined and implemented as public functions in
FormatAbstract.
2016-11-09 18:41:24 +01:00
logmanoriginal
49281a2ed3
[FeedExpander] Remove orphan getDescription function
2016-10-16 12:47:37 +02:00
logmanoriginal
b6feda2377
[contents] Use FileCache for getSimpleHTMLDOMCached
2016-10-08 16:30:01 +02:00
logmanoriginal
5c309e93dc
[cache] Specify cache duration for 'purgeCache'
2016-10-08 16:18:10 +02:00
logmanoriginal
5de4a59d41
[index] Initialize cache before loading to bridge
...
Previously BridgeAbstract needed to know which exact implementation
of CacheInterface was used (since we only got one right now its
not a problem). Initializing the cache in index.php instead allows
to change cache types more easily.
2016-10-08 15:29:21 +02:00
logmanoriginal
5ccde61a19
[FileCache] Rename 'prepare' to 'setParameters'
...
This is a cosmetic change to use the same naming convention for
all methods.
2016-10-08 15:04:14 +02:00
logmanoriginal
0998cbde9d
[cache] Directly implement CacheInterface in FileCache
...
The function 'prepare' previously implemented in CacheAbstract
is specifically required for FileCache and thus belongs to FileCache.
Since this change removes all code from CacheAbstract, it can be
removed completely.
2016-10-08 14:52:03 +02:00
logmanoriginal
9ac678aac5
[Cache] Move 'purge' function to implementations
...
The purge function is cache specific and thus belongs
to the specific implementation.
2016-10-07 22:33:45 +02:00
logmanoriginal
51ff8de346
[Cache] Remove orphan function utf8_encode_deep
2016-10-07 22:06:58 +02:00
logmanoriginal
ee7ddcf992
[FeedExpander] Fix SimplXMLElement serialization error
...
Previously FeedExpander stored SimpleXMLElement objects into
the items array. These objects cannot be serialized using the
serialize function.
2016-10-02 18:07:56 +02:00
logmanoriginal
b0784e5a42
[BridgeAbstract] Don't load cache file in DEBUG mode
2016-10-02 17:00:53 +02:00
logmanoriginal
970e216c1f
Merge branch 'methods2functions' of https://framagit.org/peetah/rss-bridge
2016-10-02 16:05:58 +02:00
Pierre Mazière
a1ef589ffe
[core] extract BridgeAbstract methods to make them functions
...
Method validateData is now afunction in lib/validation.php
validateTextValue, validateNumberValue, validateCheckboxValue
and validateListValue are now anonymous functions
defined in validateData
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-26 00:09:29 +02:00
Pierre Mazière
747be13849
[core] extract HTMLUtils methods to make them functions
...
Methods displayBridgeCard, sanitize, defaultImageSrcTo are now
functions in lib/html.php
getHelperButtinsFormat and getFormHeader are now anonymous functions
defined in displayBridgeCard
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-25 23:58:52 +02:00
Pierre Mazière
f1fb95b257
[core] extract BridgeAbstract methods to make them functions
...
- returnError, returnServerError, returnClientError ,debugMessage are
moved to lib/error.php
- getContents, getSimpleHTMLDOM, getSimpleHTMLDOMCached are moved to
lib/contents.php
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-25 23:22:33 +02:00
Pierre Mazière
235c985901
[BridgeAbstract] replace getCacheDuration method by CACHE_TIMEOUT class constant
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-25 17:04:28 +02:00
logmanoriginal
351eb00400
[FeedExpander] Align logical operators in next line
...
This is a cosmetic change to apply the same standard as
in HTMLUtils
2016-09-17 20:44:31 +02:00
logmanoriginal
2331c4fbab
Merge branch 'bridges2feeds' of https://framagit.org/peetah/rss-bridge
2016-09-17 20:34:12 +02:00
logmanoriginal
ac3a2b8e6e
[BridgeAbstract] Fix typos
2016-09-17 20:24:59 +02:00
Pierre Mazière
70c490d6ef
[BridgeAbstract] handle compressed data
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-17 19:37:41 +02:00
Pierre Mazière
ca0842ccf8
[FeedExpander] widen guid use as uri provider
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-17 19:37:39 +02:00
Pierre Mazière
2744c13735
[FeedExpander] fix feeds using guid tag as item uri provider
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-17 19:37:39 +02:00
logmanoriginal
1819943451
[FeedExpander] Write debug message for custom build function
2016-09-17 18:19:26 +02:00
logmanoriginal
ffc9418620
[FeedExpander] Fix typos
2016-09-17 18:16:25 +02:00
logmanoriginal
a333226733
Merge branch 'autodetectFeedExpander' of https://framagit.org/peetah/rss-bridge
2016-09-17 18:09:05 +02:00
Pierre Mazière
15c422c648
[FeedExpander] implement default parseItem() method
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-12 10:39:34 +02:00
Pierre Mazière
655b3d578d
[FeedExpander] simplify feed type detection and store it
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-12 10:38:50 +02:00
logmanoriginal
6943abd9c2
[Bridge] Fix whitelist check
2016-09-11 14:02:02 +02:00
logmanoriginal
ab16af631e
[core] Apply some fixes
2016-09-10 21:01:02 +02:00
logmanoriginal
62eec43980
[core] Apply common indentation
...
All files are now using tabs for indentation
2016-09-10 20:41:11 +02:00
logmanoriginal
9be03f199b
[core] Remove HttpCachingBridgeAbstract
...
BridgeAbstract implements all functions to cover the implementation
2016-09-10 19:13:01 +02:00
logmanoriginal
2eec89ab27
[bridges] Change all bridges to use BridgeAbstract with getSimpleHTMLDOMCached
2016-09-10 19:11:09 +02:00
logmanoriginal
9f2dd48684
[BridgeAbstract] Add getSimpleHTMLDOMCached
...
This function is a copy of the get_cached function from
HttpCachingBridgeAbstract, adding all parameters of
getSimpleHTMLDOM in order to replace the need of
HttpCachingBridgeAbstract entirely
2016-09-10 19:04:01 +02:00