[PRES] [web-pres2] master: Latest tweaks.

[email protected] (Derick Rethans) Thu, 19 Jun 2025 17:13:05 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Author: Derick Rethans (derickr)
Date: 2014-03-12T22:21:28Z

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

Latest tweaks.

Changed paths:
  M  10gen-strict.css
  M  core.css
  M  show2.php


Diff:

diff --git a/10gen-strict.css b/10gen-strict.css
index b7e33c8..d683075 100644
--- a/10gen-strict.css
+++ b/10gen-strict.css
@@ -98,11 +98,15 @@ div.event-title p
 	text-shadow: -2px -2px 3px #000, -1px -1px 1px #fff
 }
 
-div.event-date, div.event-presenter, div.pres-url-small
+div.event-presenter
 {
-	font-size: 95%;
+	font-size: 1.25em;
 }
 
+div.pres-url-small
+{
+	font-size: 85%;
+}
 
 div.footer
 {
@@ -169,3 +173,12 @@ pre.code strong
 {
 	color: #f00;
 }
+
+div.float
+{
+	position: absolute;
+	top: 0;
+	left: 0;
+	width: 100%;
+	height: 100%;
+}
diff --git a/core.css b/core.css
index 6440669..4fc02d3 100644
--- a/core.css
+++ b/core.css
@@ -446,7 +446,7 @@ ul.lifeline li:first-child
 	border-top: none;
 }
 
-div.flickr div.center
+div.flickr div.center, div.center
 {
 	text-align: center;
 }
diff --git a/show2.php b/show2.php
index 2408dce..e8d8da8 100644
--- a/show2.php
+++ b/show2.php
@@ -8,6 +8,7 @@ public static function getCustomFunctionDefinition( $name )
 		switch ( $name )
 		{
 			case 'format_text':
+			case 'has_attribute':
 			case 'get_attribute':
 			case 'replace_properties':
 			case 'run_code':
@@ -91,6 +92,12 @@ static public function get_attribute( $node, $attribute )
 		$attr_value = $node->getAttribute( $attribute );
 		return PresFormatter::replace_properties( $GLOBALS['pres'], $attr_value );
 	}
+
+	static public function has_attribute( $node, $attribute )
+	{
+		$attr_value = $node->hasAttribute( $attribute );
+		return $attr_value;
+	}
 }
 
 class PresRst implements ezcTemplateCustomFunction