diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-11-07 16:37:23 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2015-11-07 16:40:25 +0100 |
commit | 9a364c283e3e9b5ccb5fc7a9a8e2946b1918c6a5 (patch) | |
tree | bf1da3832056f942227ac4173e3a27dc9e33508f /plugins/archiveorg | |
parent | b7b9dbb0d5815d04a81ba39c9b23a3a619976f98 (diff) | |
download | Shaarli-9a364c283e3e9b5ccb5fc7a9a8e2946b1918c6a5.tar.gz Shaarli-9a364c283e3e9b5ccb5fc7a9a8e2946b1918c6a5.tar.zst Shaarli-9a364c283e3e9b5ccb5fc7a9a8e2946b1918c6a5.zip |
Add unit test for archiveorg plugin
+ coding style
Diffstat (limited to 'plugins/archiveorg')
-rw-r--r-- | plugins/archiveorg/archiveorg.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/archiveorg/archiveorg.php b/plugins/archiveorg/archiveorg.php index 1db3e4cb..7d172584 100644 --- a/plugins/archiveorg/archiveorg.php +++ b/plugins/archiveorg/archiveorg.php | |||
@@ -1,12 +1,19 @@ | |||
1 | <?php | 1 | <?php |
2 | /** | ||
3 | * Plugin Archive.org. | ||
4 | * | ||
5 | * Add an icon in the link list for archive.org. | ||
6 | */ | ||
2 | 7 | ||
3 | /** | 8 | /** |
4 | * Add archive.org icon to link_plugin when rendering linklist. | 9 | * Add archive.org icon to link_plugin when rendering linklist. |
5 | * | 10 | * |
6 | * @param $data - linklist data. | 11 | * @param mixed $data - linklist data. |
12 | * | ||
7 | * @return mixed - linklist data with archive.org plugin. | 13 | * @return mixed - linklist data with archive.org plugin. |
8 | */ | 14 | */ |
9 | function hook_archiveorg_render_linklist($data) { | 15 | function hook_archiveorg_render_linklist($data) |
16 | { | ||
10 | $archive_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/archiveorg/archiveorg.html'); | 17 | $archive_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/archiveorg/archiveorg.html'); |
11 | 18 | ||
12 | foreach ($data['links'] as &$value) { | 19 | foreach ($data['links'] as &$value) { |