]>
git.immae.eu Git - github/shaarli/Shaarli.git/blob - plugins/archiveorg/archiveorg.php
5 * Add an icon in the link list for archive.org.
9 * Add archive.org icon to link_plugin when rendering linklist.
11 * @param mixed $data - linklist data.
13 * @return mixed - linklist data with archive.org plugin.
15 function hook_archiveorg_render_linklist($data)
17 $archive_html = file_get_contents(PluginManager
::$PLUGINS_PATH . '/archiveorg/archiveorg.html');
19 foreach ($data['links'] as &$value) {
20 $archive = sprintf($archive_html, $value['url']);
21 $value['link_plugin'][] = $archive;