com web/pres2: Latest tweaks.: 10gen-strict.css core.css show2.php

[email protected] (Derick Rethans)
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    a43f7a27a245a4872fd986382a07ee5ebf29e6bb
Author:    Derick Rethans <[email protected]>         Wed, 12 Mar 2014 22:21:28 +0000
Parents:   43b47ff5d22121799042f0957fc8564f94e502b3
Branches:  dericks-renderer

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

Log:
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 @@ class PresFormatter implements ezcTemplateCustomFunction
 		switch ( $name )
 		{
 			case 'format_text':
+			case 'has_attribute':
 			case 'get_attribute':
 			case 'replace_properties':
 			case 'run_code':
@@ -91,6 +92,12 @@ class PresFormatter implements ezcTemplateCustomFunction
 		$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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.