svn: /web/pres2/trunk/ css.php display.php images/php-med-trans.png objects.php
| From: | Rasmus Lerdorf | Date: | Mon, 23 May 2011 17:36:59 +0000 |
| Subject: | svn: /web/pres2/trunk/ css.php display.php images/php-med-trans.png objects.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1707@lists.php.net to get a copy of this message | ||
rasmus Mon, 23 May 2011 17:36:59 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311359
Log:
tweaks
Changed paths:
U web/pres2/trunk/css.php
U web/pres2/trunk/display.php
A web/pres2/trunk/images/php-med-trans.png
U web/pres2/trunk/objects.php
Modified: web/pres2/trunk/css.php
===================================================================
--- web/pres2/trunk/css.php 2011-05-23 17:29:48 UTC (rev 311358)
+++ web/pres2/trunk/css.php 2011-05-23 17:36:59 UTC (rev 311359)
@@ -61,6 +61,11 @@
padding: 0.5em;
}
+div.nobox {
+ font-family: monospace;
+ background: <?php echo $pres->outputbackground; ?>;
+}
+
table.index {
background: <?php echo $pres->examplebackground; ?>;
border: thin dotted #000000;
@@ -159,4 +164,4 @@
position: absolute;
}
</style>
-<![endif]-->
\ No newline at end of file
+<![endif]-->
Modified: web/pres2/trunk/display.php
===================================================================
--- web/pres2/trunk/display.php 2011-05-23 17:29:48 UTC (rev 311358)
+++ web/pres2/trunk/display.php 2011-05-23 17:36:59 UTC (rev 311359)
@@ -64,6 +64,9 @@
case 'simple':
$body_style = "margin-top: 1em;";
break;
+ case 'empty':
+ $body_style = "margin-top: 0em;";
+ break;
case 'php2':
$body_style = "margin-top: 5em;";
break;
@@ -131,6 +134,9 @@
$slide->titleColor = '#000000';
echo "<div align=\"$slide->titleAlign\" style=\"font-size:
$titlesize; margin: 0 ".$offset."em 0 0;\"><a href=\"http://$_SERVER[HTTP_HOST]$this->baseDir$this->showScript/$currentPres/$this->slideNum\"
style=\"text-decoration: none; color:
$titlecolor;\">".markup_text($slide->title)."</a></div>";
break;
+ case 'empty':
+ $slide->titleColor = '#000000';
+ break;
case 'php2':
echo "<div id=\"stickyBar\" class=\"sticky\"
align=\"$slide->titleAlign\" style=\"align: {$slide->titleAlign}; width:
100%\"><div class=\"navbar\">";
@@ -473,16 +479,19 @@
if ($this->pres->template == 'css' and (isset($example->class))) {
echo "<div class='{$example->class}_output'>";
} else {
- echo '<div class="shadow" style="margin: '.
- ((float)$example->margintop).'em '.
- ((float)$example->marginright+1).'em '.
- ((float)$example->marginbottom).'em '.
- ((float)$example->marginleft).'em;'.
- ((!empty($example->rwidth)) ? "width: $example->rwidth;" :
"").
- '">';
- echo '<div '.$_html_effect.' class="output"
style="font-size: '.$_html_sz."em; margin: -$_html_offset 0 0 -$_html_offset; ".
- ((!empty($_html_outputbackground)) ? "background:
$_html_outputbackground;" : '').
- "\">\n";
+ if(!empty($example->class)) echo '<div
class="'.$example->class.'" style="margin: ';
+ else echo '<div class="shadow" style="margin: ';
+ echo ((float)$example->margintop).'em '.
+ ((float)$example->marginright+1).'em '.
+ ((float)$example->marginbottom).'em '.
+ ((float)$example->marginleft).'em;'.
+ ((!empty($example->rwidth)) ? "width: $example->rwidth;" :
"").
+ '">';
+ if(!empty($example->class)) $output_class=$example->class;
+ else $output_class = "output";
+ echo '<div '.$_html_effect.'
class="'.$output_class.'" style="font-size: '.$_html_sz."em;
margin: -$_html_offset 0 0 -$_html_offset; ".
+ ((!empty($_html_outputbackground)) ? "background:
$_html_outputbackground;" : '').
+ "\">\n";
}
if(!empty($example->filename)) {
$_html_filename =
preg_replace('/\?.*$/','',$this->slideDir.$example->filename);
@@ -541,21 +550,9 @@
} else {
if($example->type=='marked') {
$text = preg_replace("/^\|/m","",$example->text);
- if($example->pre) echo "<pre>";
- $code = '';
- if($example->pre_code) $code = "<?php
".$example->pre_code."?>";
- $code .= $text;
- if($example->post_code) $code .= "<?php
".$example->post_code."?>";
- eval('?>'.$code);
- if($example->pre) echo "</pre>";
+ eval('?>'.$text);
} else {
- if($example->pre) echo "<pre>";
- $code = '';
- if($example->pre_code) $code = "<?php
".$example->pre_code."?>";
- $code .= $example->text;
- if($example->post_code) $code .= "<?php
".$example->post_code."?>";
- eval('?>'.$code);
- if($example->pre) echo "</pre>";
+ eval('?>'.$example->text);
}
}
}
@@ -593,7 +590,6 @@
echo "<ul class='{$list->class}'>";
} else {
if(!empty($list->lineheight)) $style = "line-height:
".$list->lineheight.';';
- if(!empty($list->marginleft)) $style .= "margin-left:
".$list->marginleft.';';
echo '<ul class="pres"
style="'.$style.'">';
}
while(list($k,$bul)=each($list->bullets)) { $bul->display(); }
Added: web/pres2/trunk/images/php-med-trans.png
===================================================================
(Binary files differ)
Property changes on: web/pres2/trunk/images/php-med-trans.png
___________________________________________________________________
Added: svn:mime-type
+ image/png
Modified: web/pres2/trunk/objects.php
===================================================================
--- web/pres2/trunk/objects.php 2011-05-23 17:29:48 UTC (rev 311358)
+++ web/pres2/trunk/objects.php 2011-05-23 17:36:59 UTC (rev 311359)
@@ -148,7 +148,7 @@
$this->navbarbackground = 'url(images/trans.png) transparent fixed';
$this->navbartopiclinks = true;
$this->navbarheight = '6em';
- $this->examplebackground = '#cccccc';
+ $this->examplebackground = '#dcdcdc';
$this->outputbackground = '#eeee33';
$this->shadowbackground = '#777777';
$this->stylesheet = 'css.php';