com web/pres2: CSS and PDF generation hack: core.css show2.php

[email protected] (Derick Rethans) Wed, 25 Nov 2015 11:40:04 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    bf9a15121e9a0bcf3d58a6e1151db7b1fc434a34
Author:    Derick Rethans <[email protected]>         Sat, 20 Oct 2012 21:44:45 +0100
Parents:   5e02a5e82f3a0a4618cd12285241ec41ab2709c9
Branches:  dericks-renderer

Link:       http://git.php.net/?p=web/pres2.git;a=commitdiff;h=bf9a15121e9a0bcf3d58a6e1151db7b1fc434a34

Log:
CSS and PDF generation hack

Changed paths:
  M  core.css
  M  show2.php


Diff:
diff --git a/core.css b/core.css
index 858bbcb..fc11d17 100644
--- a/core.css
+++ b/core.css
@@ -311,7 +311,7 @@ img
 
 p.attribution
 {
-	text-align: right;
+	text-align: center;
 	font-size: 50%;
 	margin-top: -16px;
 	color: gray;
diff --git a/show2.php b/show2.php
index f582154..4dd18be 100644
--- a/show2.php
+++ b/show2.php
@@ -198,6 +198,7 @@ class Presentation
 		$tpl = new ezcTemplate();
 		$tpl->send->node = $xml->documentElement;
 		$tpl->send->pres = $this;
+		$tpl->send->pres->forPdf = isset( $_GET['pdf'] );
 		$tpl->send->slideNr = $slideNr;
 		$tpl->send->css = $this->css;