This commit is contained in:
Aaron Junker
2022-06-11 10:18:22 +02:00
parent a7f6f6c897
commit 81a60db78f
3 changed files with 11 additions and 13 deletions

View File

@@ -1,9 +1,12 @@
Ever wondered what would happen if someone was crazy enough
to combine XML, PHP, HTML, CSS, JavaScript, Flash and
ActionScript in one application? Well, here it is. The new
and improved PHP presentation system.
# PHP presentation system
Used PHP extensions: pcre, xml, optional: pdf, ming
This repo holds the PHP presentation system hosted on https://talks.php.net.
You can find the presentations under https://github.com/php/presentations.
This system works perfectly for PHP 5.3 and needs the XML extension.
## Files
Brief walkthrough of how this all hangs together:
@@ -108,6 +111,8 @@ property and that the display() method for each one looks something like this:
And then you can have html(), flash(), text(), svg(), jpg() methods for each
one.
## Contributing
Have a look at the TODO file for a list of things to start working on. If
we all pitch in a bit we should all end up with cool-looking presentations
through this very flexible system.

View File

@@ -55,13 +55,6 @@ class html extends display {
// allow caching
if($cache_ok) header("Last-Modified: " . date("r", filemtime($this->presentationDir.'/'.$presentation->slides[$this->slideNum]->filename)));
$HEAD_RAND = <<<HEAD_RAND
<script>
function change_mode() {
document.cookie="display_mode="+document.modes_form.modes.options[document.modes_form.modes.selectedIndex].value+"|"+document.modes_form.speaker.checked;
top.location=top.location.href;
}
</script>
<base href="http://%1">

View File

@@ -97,7 +97,7 @@
<script>
function change_mode() {
document.cookie="display_mode="+document.modes_form.modes.options[document.modes_form.modes.selectedIndex].value+"|"+document.modes_form.speaker.checked;
document.cookie="display_mode=html|"+document.modes_form.speaker.checked+";path=/";
top.location=top.location.href;
}
</script>