DokuWiki

It's better when it's simple

User Tools

Site Tools


codex:tpl_link

This is an old revision of the document!


tpl_link

Builds a link, with the option to print it on the spot or return it as a string.

Usage

tpl_link($url, $name, $more = “”, $return = false)


Parameters

$url (STRING) The actual URL to link to.
Default: None

$name (STRING) Text to go inside the link.
Default: None

$more (STRING) Any additional attributes to include.
Default: “”

$return (BOOLEAN) Whether to return the link as a string (true) or http://www.php.net/print print it out on the spot (false). Returning the link as a string is useful in plugin development, when you don't actually want to print out any content until all filters have been applied.
Default: false


Examples


Change Log


Source File


Resources


This page is incomplete, why not fill in a section?

codex/tpl_link.1391052308.txt.gz · Last modified: 2014-01-30 04:25 by OzRamos

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki