Source for file modifier.footnotes.php
Documentation is available at modifier.footnotes.php
* Zikula Application Framework
* @copyright (c) 2001, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: modifier.footnotes.php 24350 2008-06-06 15:59:07Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* This file is a plugin for Xanthia, the Zikula implementation of Smarty
* @package Xanthia_Templating_Environment
* Smarty modifier to convert urls into footnote references for printable page
* File: modifier.footnotes.php
* Purpose: Generate footnotes for printable page
* @author Jochen Roemling
// globalise the links array
$text = preg_replace_callback('/<a [^>]*href\s*=\s*\"?([^>\"]*)\"?[^>]*>(.*?)<\/a.*?>/i','_smarty_modifier_footnotes_callback',$string);
// globalise the links array
// TODO - work out why some links need decoding twice (&amp;....)
// return the replaced link
return '<strong><em>'. $arr[2]. '</em></strong> <small>['. count($link_arr). ']</small>';
|