mirror of
https://github.com/php/web-pres2.git
synced 2026-03-23 23:12:07 +01:00
push
This commit is contained in:
@@ -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.
|
||||
@@ -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">
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user