cvs: pearweb /include layout.php

From: Date: Fri, 28 Dec 2001 12:26:29 +0000
Subject: cvs: pearweb /include layout.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1721@lists.php.net to get a copy of this message
mj Fri Dec 28 07:26:29 2001 EDT Modified files: /pearweb/include layout.php Log: * Add make_mailto_link() Index: pearweb/include/layout.php diff -u pearweb/include/layout.php:1.23 pearweb/include/layout.php:1.24 --- pearweb/include/layout.php:1.23 Sun Dec 2 13:42:08 2001 +++ pearweb/include/layout.php Fri Dec 28 07:26:29 2001 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.php,v 1.23 2001/12/02 18:42:08 mj Exp $ */ +/* $Id: layout.php,v 1.24 2001/12/28 12:26:29 mj Exp $ */ require_once 'site.php'; @@ -135,7 +135,13 @@ ); } +// make_mailto_link() +// return a mailto-hyperlink +// +function make_mailto_link ($url, $linktext=false, $extras=false) { + return make_link("mailto:" . $url, ($linktext ? $linktext : $url), false, $extras); +} // print_link() // echo a hyperlink to something, within the site

« previous php.pear.cvs (#1721) next »