wiki
[ class tree: wiki ] [ index: wiki ] [ all elements ]

Source for file s5.php

Documentation is available at s5.php

  1. <?php
  2. /**
  3.  * $Header: /cvsroot/bitweaver/_bit_wiki/s5.php,v 1.7 2006/11/28 17:18:21 squareing Exp $
  4.  *
  5.  * Copyright (c) 2004 bitweaver.org
  6.  * Copyright (c) 2003 tikwiki.org
  7.  * Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
  8.  * All Rights Reserved. See copyright.txt for details and a complete list of authors.
  9.  * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
  10.  *
  11.  * $Id: s5.php,v 1.7 2006/11/28 17:18:21 squareing Exp $
  12.  * @package wiki
  13.  * @subpackage functions
  14.  */
  15.  
  16.     // we need to split the page into seperate slides
  17.     $slides explode'<h1>'$gContent->getField('parsed_data') );
  18.     //vd($slides);
  19. // manually set the first slide to page title and description
  20.     
  21.     $s5  '<li class="slide"><h1>'.$gContent->getTitle().'</h1>';
  22.     $s5 .= '<h3>'.$gContent->mInfo['description'].'</h3></li>';
  23.     foreach$slides as $slide {
  24.         if!empty$slide ) ) {
  25.             $s5 .= '<li class="slide">';
  26.             ifpreg_match'/<\/h1[^>]*>/i'$slide ) ) {
  27.                 $s5 .= '<h1>';
  28.             }
  29.             $s5 .= $slide;
  30.             $s5 .= '</li>';
  31.         }
  32.     }
  33.     // manually set the last slide with a link back to the wiki page
  34.     $s5 .= '<li class="slide"><h1 style="margin:30% 0 10% 0;">'.tra'The End' ).'</h1>';
  35.     $s5 .= '<p><a href="'.WIKI_PKG_URL.'index.php?page_id='.$gContent->getField('page_id').'">'.tra'back to the wiki page' ).'</a></p></li>';
  36.     $gBitSmarty->assign's5'$s5 );
  37.     $gBitSmarty->display'bitpackage:wiki/s5.tpl' );
  38.     die;
  39. ?>

Documentation generated on Thu, 15 Feb 2007 20:48:27 +0000 by phpDocumentor 1.3.0