[web-pres2] master: push

From: Date: Fri, 30 Sep 2022 15:34:23 +0000
Subject: [web-pres2] master: push
Groups: php.pres 
Request: Send a blank email to pres+get-2411@lists.php.net to get a copy of this message
Author: Aaron Junker (Aaron-Junker) Pusher: derickr Date: 2022-06-11T10:18:22+02:00 Commit: https://github.com/php/web-pres2/commit/81a60db78f7425803fd9f74099b8612fecdbd332 Raw diff: https://github.com/php/web-pres2/commit/81a60db78f7425803fd9f74099b8612fecdbd332.diff push Changed paths: A README.md D README M display.php M index.php Diff: diff --git a/README b/README.md similarity index 93% rename from README rename to README.md index 31b1a6e..47e84c2 100644 --- a/README +++ b/README.md @@ -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. diff --git a/display.php b/display.php index 24f07ff..4ff475f 100644 --- a/display.php +++ b/display.php @@ -55,13 +55,6 @@ function _presentation(&$presentation) { // 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"> diff --git a/index.php b/index.php index 6ca79f3..c67aaef 100644 --- a/index.php +++ b/index.php @@ -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>

« previous php.pres (#2411) next »