bjori Sat Jun 30 14:30:33 2007 UTC
Modified files:
/livedocs/themes/php.net livedoc.css
/livedocs style_mapping.php
Log:
Add support for Docbook5style images
http://cvs.php.net/viewvc.cgi/livedocs/themes/php.net/livedoc.css?r1=1.9&r2=1.10&diff_format=u
Index: livedocs/themes/php.net/livedoc.css
diff -u livedocs/themes/php.net/livedoc.css:1.9
livedocs/themes/php.net/livedoc.css:1.10
--- livedocs/themes/php.net/livedoc.css:1.9 Wed Jun 20 01:26:46 2007
+++ livedocs/themes/php.net/livedoc.css Sat Jun 30 14:30:33 2007
@@ -1,5 +1,5 @@
/* vim: set tabstop=4 noexpandtab shiftwidth=4: */
-/* $Id: livedoc.css,v 1.9 2007/06/20 01:26:46 curt Exp $ */
+/* $Id: livedoc.css,v 1.10 2007/06/30 14:30:33 bjori Exp $ */
body {
font-family: verdana;
@@ -63,7 +63,7 @@
div.shellcode, div.xmlcode, div.phpcode,
div.inicode, div.htmlcode, div.screen,
div.apache-confcode, div.code,
- div.synopsis {
+ div.synopsis, div.mediaobject, div.imageobject {
background-color: #eeeeee;
border: solid 2px #dddddd;
padding: 0.5em;
@@ -169,4 +169,3 @@
padding-top: 0.4em;
}
-
http://cvs.php.net/viewvc.cgi/livedocs/style_mapping.php?r1=1.37&r2=1.38&diff_format=u
Index: livedocs/style_mapping.php
diff -u livedocs/style_mapping.php:1.37 livedocs/style_mapping.php:1.38
--- livedocs/style_mapping.php:1.37 Mon Jun 25 12:38:08 2007
+++ livedocs/style_mapping.php Sat Jun 30 14:30:33 2007
@@ -18,7 +18,7 @@
// | Helper functions for formatting elements |
// +----------------------------------------------------------------------+
//
-// $Id: style_mapping.php,v 1.37 2007/06/25 12:38:08 bjori Exp $
+// $Id: style_mapping.php,v 1.38 2007/06/30 14:30:33 bjori Exp $
// almost XPATH.. ;-)
$map = array(
@@ -48,6 +48,7 @@
'function' => 'format_function',
'glossterm' => 'span',
'htmlcode' => 'format_htmlcode',
+ 'imageobject/imagedata' => 'format_image',
'info/title' => 'h1',
'informaltable' => 'table',
'informaltable/title' => 'caption',
@@ -57,6 +58,7 @@
'link' => 'format_link',
'literal' => 'span',
'literallayout' => 'format_listing',
+ 'mediaobject' => 'div',
'methodparam' => 'span',
'methodsynopsis' => 'format_params',
'option' => 'span',
@@ -398,7 +400,8 @@
return sprintf('<div class="%scode"%s>%s</div>',
$node->attributes['role'], LTR, $content);
}
-function format_image($node, $map = array()) {
+function format_image($node, $map = array())
+{
return sprintf('<img src="%s" class="%s" />',
$node->attributes['fileref'], $node->tagname);
}