diff options
| -rw-r--r-- | admin/admin_wiki_inc.php | 4 | ||||
| -rw-r--r-- | admin/schema_inc.php | 1 | ||||
| -rw-r--r-- | s5.php | 35 | ||||
| -rw-r--r-- | templates/s5.tpl | 45 |
4 files changed, 0 insertions, 85 deletions
diff --git a/admin/admin_wiki_inc.php b/admin/admin_wiki_inc.php index 949002e..8840ff9 100644 --- a/admin/admin_wiki_inc.php +++ b/admin/admin_wiki_inc.php @@ -189,10 +189,6 @@ $formWikiInOut = array( 'label' => 'Use Slideshows', 'note' => 'If a wikipage is plit into a number of pages, this can be viewed as a slideshow, without menus or excess data on the page. can be useful for presentations and the like.', ), - "wiki_uses_s5" => array( - 'label' => 'Use S5 Slideshows', - 'note' => 'Any WikiPage can be turned into a full featured slideshow. Slides are separated at every H1 heading ( ! - wiki syntax ) and can be viewed using Firefox ( requires javascript ) or Opera ( need to press F11 to start the show ). Further information can be found at <a href="http://www.meyerweb.com/eric/tools/s5/">S5</a>', - ), "wiki_multiprint" => array( 'label' => 'Print Multiple Pages', 'note' => 'Allow joining of pages for printing purposes.', diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 7aca52f..589a3de 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -116,7 +116,6 @@ $gBitInstaller->registerPreferences( WIKI_PKG_NAME, array( //array( WIKI_PKG_NAME, 'wiki_undo','n'), //array( WIKI_PKG_NAME, 'wiki_url_import','n'), //array( WIKI_PKG_NAME, 'wiki_user_versions','n'), - //array( WIKI_PKG_NAME, 'wiki_uses_s5','n'), //array( WIKI_PKG_NAME, 'wiki_uses_slides','n'), //array( WIKI_PKG_NAME, 'wiki_usrlock','n'), array( WIKI_PKG_NAME, 'wiki_warn_on_edit_time','2'), @@ -1,35 +0,0 @@ -<?php -/** - * 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 below for details and a complete list of authors. - * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details - * - * @package wiki - * @subpackage functions - */ - - // we need to split the page into separate slides - $slides = explode( '<h1>', $gContent->getField('parsed_data') ); - //vd($slides); - // manually set the first slide to page title and description - $s5 = '<li class="slide"><h1>'.$gContent->getTitle().'</h1>'; - $s5 .= '<h3>'.$gContent->getField('summary').'</h3></li>'; - foreach( $slides as $slide ) { - if( !empty( $slide ) ) { - $s5 .= '<li class="slide">'; - if( preg_match( '/<\/h1[^>]*>/i', $slide ) ) { - $s5 .= '<h1>'; - } - $s5 .= $slide; - $s5 .= '</li>'; - } - } - // 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' ); - die; -?> diff --git a/templates/s5.tpl b/templates/s5.tpl deleted file mode 100644 index 2b380e3..0000000 --- a/templates/s5.tpl +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> - <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <title>{$gContent->mInfo.title|escape}</title> - <meta name="generator" content="S5" /> - <meta name="version" content="S5 1.0" /> - <meta name="author" content="{displayname user_id=$gContent->mInfo.user_id nolink='yes'}" /> - <meta name="company" content="" /> - <meta name="defaultView" content="slideshow" /> - <meta name="controlVis" content="hidden" /> - {assign var=s5theme value=default} - <link rel="stylesheet" href="{$smarty.const.UTIL_PKG_URL}s5/ui/{$s5theme|default:'i18n'}/slides.css" type="text/css" media="projection" id="slideProj" /> - <link rel="stylesheet" href="{$smarty.const.UTIL_PKG_URL}s5/ui/{$s5theme|default:'i18n'}/outline.css" type="text/css" media="screen" id="outlineStyle" /> - <link rel="stylesheet" href="{$smarty.const.UTIL_PKG_URL}s5/ui/{$s5theme|default:'i18n'}/print.css" type="text/css" media="print" id="slidePrint" /> - <link rel="stylesheet" href="{$smarty.const.UTIL_PKG_URL}s5/ui/{$s5theme|default:'i18n'}/opera.css" type="text/css" media="projection" id="operaFix" /> - <script src="{$smarty.const.UTIL_PKG_URL}s5/ui/default/slides.js" type="text/javascript"></script> - {literal} - <style type="text/css" media="all"> - .imgcon {width: 525px; margin: 0 auto; padding: 0; text-align: center;} - #anim {width: 270px; height: 320px; position: relative; margin-top: 0.5em;} - #anim img {position: absolute; top: 42px; left: 24px;} - img#me01 {top: 0; left: 0;} - img#me02 {left: 23px;} - img#me04 {top: 44px;} - img#me05 {top: 43px;left: 36px;} - </style> - {/literal} -</head> -<body> - <div class="layout"> - <div id="controls"><!-- DO NOT EDIT --></div> - <div id="currentSlide"><!-- DO NOT EDIT --></div> - <div id="header"></div> - <div id="footer"> - <h1>{$gContent->getTitle()|escape}</h1> - <h2>{$gContent->getField('summary')|escape}</h2> - </div> - </div> - - <ol class="presentation">{$s5}</ol> -</body> -</html> |
