summaryrefslogtreecommitdiff
path: root/s5.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-09 11:53:28 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-09 11:53:28 +0000
commitd3acdee3486023b9461be2bd0b81c0d5e81da4bd (patch)
tree37c38c0797817f2f6cba423d26fc9d8c1bf55f96 /s5.php
parentd14a56e040ee92857b5b76a2c985129d22f87670 (diff)
downloadwiki-d3acdee3486023b9461be2bd0b81c0d5e81da4bd.tar.gz
wiki-d3acdee3486023b9461be2bd0b81c0d5e81da4bd.tar.bz2
wiki-d3acdee3486023b9461be2bd0b81c0d5e81da4bd.zip
adapt s5 to new version
Diffstat (limited to 's5.php')
-rw-r--r--s5.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/s5.php b/s5.php
index 362c871..cd0a2b2 100644
--- a/s5.php
+++ b/s5.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/s5.php,v 1.3 2005/08/01 18:42:04 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/s5.php,v 1.4 2006/02/09 11:53:28 squareing Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* 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.3 2005/08/01 18:42:04 squareing Exp $
+ * $Id: s5.php,v 1.4 2006/02/09 11:53:28 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -17,20 +17,21 @@
$slides = explode( '<h1>', $pdata );
//vd($slides);
// manually set the first slide to page title and description
- $s5 = '<div class="slide"><h1>'.$gContent->mInfo['title'].'</h1>';
- $s5 .= '<h3>'.$gContent->mInfo['description'].'</h3></div>';
+ $s5 = '<li class="slide"><h1>'.$gContent->mInfo['title'].'</h1>';
+ $s5 .= '<h3>'.$gContent->mInfo['description'].'</h3></li>';
foreach( $slides as $slide ) {
if( !empty( $slide ) ) {
- $s5 .= '<div class="slide">';
- if( preg_match( '/<\/h1>/',$slide ) ) {
+ $s5 .= '<li class="slide">';
+ if( preg_match( '/<\/h1[^>]*>/i', $slide ) ) {
$s5 .= '<h1>';
}
- $s5 .= $slide.'</div>';
+ $s5 .= $slide;
+ $s5 .= '</li>';
}
}
// manually set the last slide with a link back to the wiki page
- $s5 .= '<div 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->mInfo['page_id'].'">'.tra( 'back to the wiki page' ).'</a></p></div>';
+ $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->mInfo['page_id'].'">'.tra( 'back to the wiki page' ).'</a></p></li>';
$gBitSmarty->assign( 's5', $s5 );
$gBitSmarty->display( 'bitpackage:wiki/s5.tpl' );
die;