com web/pres2: Latest tweaks.: 10gen-strict.css core.css show2.php
| From: | Derick Rethans | Date: | Wed, 25 Nov 2015 11:40:04 +0000 |
| Subject: | com web/pres2: Latest tweaks.: 10gen-strict.css core.css show2.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-2329@lists.php.net to get a copy of this message | ||
Commit: a1a42ff4c33f54473cf279f40eda40051e37d2e4
Author: Derick Rethans <github@derickrethans.nl> Wed, 12 Mar 2014 22:21:28 +0000
Parents: 4e48ed9f66789b005d6271a50d45d2da6dea3649
Branches: dericks-renderer
Link: http://git.php.net/?p=web/pres2.git;a=commitdiff;h=a1a42ff4c33f54473cf279f40eda40051e37d2e4
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