summaryrefslogtreecommitdiff
path: root/s5.php
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 06:12:45 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 06:12:45 +0000
commit850713ed26ff34d8fe37feed30bb94de4adc957c (patch)
tree7ceb5eaad8a84eb8796fd2d53ed62f17052acc35 /s5.php
downloadwiki-850713ed26ff34d8fe37feed30bb94de4adc957c.tar.gz
wiki-850713ed26ff34d8fe37feed30bb94de4adc957c.tar.bz2
wiki-850713ed26ff34d8fe37feed30bb94de4adc957c.zip
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 's5.php')
-rw-r--r--s5.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/s5.php b/s5.php
new file mode 100644
index 0000000..5dadb11
--- /dev/null
+++ b/s5.php
@@ -0,0 +1,23 @@
+<?php
+ // we need to split the page into seperate slides
+ $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>';
+ foreach( $slides as $slide ) {
+ if( !empty( $slide ) ) {
+ $s5 .= '<div class="slide">';
+ if( preg_match( '/<\/h1>/',$slide ) ) {
+ $s5 .= '<h1>';
+ }
+ $s5 .= $slide.'</div>';
+ }
+ }
+ // 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>';
+ $smarty->assign( 's5', $s5 );
+ $smarty->display( 'bitpackage:wiki/s5.tpl' );
+ die;
+?>