Source for file s5.php
Documentation is available at s5.php
* $Header: /cvsroot/bitweaver/_bit_wiki/s5.php,v 1.7 2006/11/28 17:18:21 squareing Exp $
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
* Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
* $Id: s5.php,v 1.7 2006/11/28 17:18:21 squareing Exp $
// we need to split the page into seperate slides
$slides = explode( '<h1>', $gContent->getField('parsed_data') );
// manually set the first slide to page title and description
$s5 = '<li class="slide"><h1>'. $gContent->getTitle(). '</h1>';
$s5 .= '<h3>'. $gContent->mInfo['description']. '</h3></li>';
foreach( $slides as $slide ) {
$s5 .= '<li class="slide">';
// manually set the last slide with a link back to the wiki page
$s5 .= '<li class="slide"><h1 style="margin:30% 0 10% 0;">'. tra( 'The End' ). '</h1>';
$s5 .= '<p><a href="'. WIKI_PKG_URL. 'index.php?page_id='. $gContent->getField('page_id'). '">'. tra( 'back to the wiki page' ). '</a></p></li>';
$gBitSmarty->assign( 's5', $s5 );
$gBitSmarty->display( 'bitpackage:wiki/s5.tpl' );
|