Cookbook /
LinkIcons
Summary: Add icons to your links according to their extensions.
Version: 20170226
Maintainer: MatthiasGünther
Download: see notes below
Discussion: LinkIcons-Talk
Demo: Linkicons
Questions answered by this recipe
How can I easily display the type of links like PDF, HTML with a little icon according to the type and can use the icons for external links while internal links of my Wiki are displayed in normal style?
Description
This recipe simply add icons to your links. Just follow the instruction of the installation and be happy :).
Installation
- download from source
https://bitbucket.org/wikimatze/pmwiki-linkicons-recipe/downloads/
or via gitgit clone https://bitbucket.org/wikimatze/pmwiki-linkicons-recipe.git
- make the following copy-tasks:
- put
linkicons.php
in your cookbook directory (cp pmwiki-linkicons-recipe/cookbook/linkicons.php cookbook/
) - put
linkicons
directory in your public directory (normally _pub_) (cp -R pmwiki-linkicons-recipe/pub/linkicons/ pub/
) - put
linkicons.css
in your CSS directory (normally _pub/css_) (cp pmwiki-linkicons-recipe/pub/css/linkicons.css pub/css/
)
- put
- add to
local/config.php
:$UrlLinkFmt
= "<a class='external' href='\$LinkUrl' rel='nofollow'>\$LinkText</a>";include_once("
$FarmD
/cookbook/linkicons.php");
README
Can be found under README.
See also
- Cookbook /
- ExternalLinks Configure external links to open in a new window, have a "tooltip title", or use other CSS classes (Stable)
- ExternalLinks2 Add an icon to external links and make them automatically open in a new window
- ExternalLinksFavicons Display favicons before links to external websites (Beta)
Comments/Feedback
Please use the discussion page LinkIcons-Talk
User notes +3: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.