[PRES] [web-pres2] master: CSS and PDF generation hack

[email protected] (Derick Rethans) Thu, 19 Jun 2025 17:13:01 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Author: Derick Rethans (derickr)
Date: 2012-10-20T21:44:45+01:00

Commit: https://github.com/php/web-pres2/commit/fe9f2dbb7baaee33109afa401c3e06f8f0356a41
Raw diff: https://github.com/php/web-pres2/commit/fe9f2dbb7baaee33109afa401c3e06f8f0356a41.diff

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 @@ function display( $slideNr )
 		$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;