Source for file outputfilter.admintitle.php
Documentation is available at outputfilter.admintitle.php
* Zikula Application Framework
* @copyright (c) 2004, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: outputfilter.pagevars.php 20883 2006-12-22 10:24:16Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_Template_Plugins
* Smarty outputfilter to add a title to all admin pages
* This plugin works only for API compliant modules and those that
* follow .8x's template design standards
// get all the matching H1 tags
$regex = "/<h1>[^<]*<\/h1>/";
$regex = "/<h2>[^<]*<\/h2>/";
$regex = "/<h3>[^<]*<\/h3>/";
$header1 = $header2 = $header3 = '';
if (isset ($h1[0]) && isset ($h1[0][1])) {
if (isset ($header1) && !empty($header1)) {
} else if (isset ($h2[0][0])) {
if (isset ($header2) && !empty($header2)) {
if (isset ($h3[0]) && isset ($h3[0][1])) {
if (isset ($header3) && !empty($header3)) {
// return the modified source
|