didou Tue Apr 20 16:59:31 2004 EDT
Added files:
/livedocs/themes/smarty TODO html_format.php livedoc.css
Log:
smarty theme
http://cvs.php.net/co.php/livedocs/themes/smarty/html_format.php?r=1.1&p=1
Index: livedocs/themes/smarty/html_format.php
+++ livedocs/themes/smarty/html_format.php
<?php
/* vim: set tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | PHP version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | [EMAIL PROTECTED] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Wez Furlong, Derick Rethans, Ilia Alshanetsky |
// +----------------------------------------------------------------------+
// | headers and footers for the HTML rendering |
// +----------------------------------------------------------------------+
//
// $Id: html_format.php,v 1.1 2004/04/20 20:59:31 didou Exp $
// in livedoc.php
$WEBSITE = 'http://smarty.php.net';
function manual_page_header()
{
global $lang, $title, $css_url, $nav, $WEBSITE;
$date = strftime("%A, %B %d, %Y");
$head =<<<HEAD
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="$lang">
<head>
<title>Smarty: $title - Manual</title>
<link rel="stylesheet" href="$css_url" />
<link rel="stylesheet" href="$WEBSITE/style.css" />
<link rel="shortcut icon" href="$WEBSITE/gifs/favicon.ico" />
</head>
<body
topmargin="0" leftmargin="0"
marginheight="0" marginwidth="0"
bgcolor="#ffffff"
text="#000000"
link="#3b404c"
alink="#767f97"
vlink="#3b404c"
>
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
<tr bgcolor="#f0c040">
<td align="left" rowspan="2">
<a href="$WEBSITE/"><img src="$WEBSITE/gifs/smarty-logo-orange.gif" border="0"
width="250" height="64" ALT="smarty template engine" vspace="2" hspace="2"></a><br>
</td>
<td align="right" valign="top" nowrap>
<font color="#786020" class="date"><b>
$date </b> <br>
</font>
</td>
</tr>
<tr bgcolor="#f0c040">
<td align="right" valign="bottom" nowrap>
<a href="$WEBSITE/download.php" class="menuBlack">download</a> | <a
href="$WEBSITE/docs.php" class="menuBlack">documentation</a> | <a
href="http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions"
class="menuBlack">faq</a> | <a
href="http://www.phpinsider.com/smarty-forum/"
class="menuBlack">forum</a> | <a
href="http://smarty-web.ispi.net/resources.php?category=7" class="menuBlack">mailing
lists</a> | <a href="$WEBSITE/changelog.php"
class="menuBlack">changelog</a> | <a href="$WEBSITE/contribs.php"
class="menuBlack">contribs</a> <br>
<img src="$WEBSITE/gifs/spacer.gif" width="2" height="2" border="0" alt="" ><br>
</td>
</tr>
<tr bgcolor="#000000"><td colspan="2"><img src="$WEBSITE/gifs/spacer.gif" width="1"
height="1" border="0" alt="" ><br></td></tr>
<tr bgcolor="#9b410e">
<form method="POST" action="$WEBSITE/search.php">
<td align="right" valign="top" colspan="2" nowrap><font color="#ffffff">
<small>search for</small>
<INPUT CLASS="small" TYPE="text" NAME="pattern" VALUE="" SIZE="30">
<small>in the</small>
<SELECT NAME="show" CLASS="small">
<OPTION VALUE="manual-en">English manual
<OPTION VALUE="manual-de">German manual
<OPTION VALUE="manual-fr">French manual
<OPTION VALUE="manual-pt_BR">Portuguese manual
<OPTION VALUE="smarty-general-list">general mailing list
<OPTION VALUE="smarty-dev-list">development mailing list
</SELECT>
<input type="image" src="$WEBSITE/gifs/small_submit_white.gif" border="0" width="11"
height="11" ALT="search" align="bottom"> <br>
</font></td>
</form>
</tr>
<tr bgcolor="#000000"><td colspan="2"><img src="$WEBSITE/gifs/spacer.gif" width="1"
height="1" border="0" alt="" ><br></td></tr>
</table>
<table cellpadding="0" cellspacing="0">
<tr valign="top">
<td bgcolor="#f0ead8">
<table width="170" cellpadding="4" cellspacing="0">
<tr valign="top">
<td class="sidebar">
<p>
$nav
</p>
<b>Get Smarty</b>
<p>
<a href="$WEBSITE/download.php">Download!</a><br />
<a href="$WEBSITE/contribs.php">Contributed Code</a>
</p>
<b>What is Smarty?</b>
<p>
<a href="$WEBSITE/crashcourse.php">Crash Course</a><br />
<a href="$WEBSITE/whyuse.php">Why use it?</a><br />
<a href="$WEBSITE/manual/en/preface.php">Preface from docs</a><br />
<a href="$WEBSITE/manual/en/what.is.smarty.php">Summary from docs</a><br />
<a href="http://www.phpinsider.com/smarty-forum/viewforum.php?f=12">Testimonials</a>
</p>
<b>Get Help!</b>
<p>
<a href="$WEBSITE/docs.php">Documentation</a><br />
<a href="http://www.phpinsider.com/smarty-forum/">Discussion Forums</a><br />
<a href="irc://irc.freenode.net/smarty">Internet Relay Chat</a><br />
<a href="http://smarty-web.ispi.net/resources.php?category=7">Mailing Lists</a><br />
<a href="http://smarty.incutio.com/">Smarty Wiki</a><br />
<a href="http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions">FAQ (from
wiki)</a><br />
<a href="$WEBSITE/resources.php">Other Resources</a>
</p>
<p>
<b>Vote for Smarty!</b>
</p>
<p>
Feel free to put in your rating or review of Smarty
at <a href="http://www.hotscripts.com/Detailed/8817.html">HotScripts.com</a>
</p>
<p>
<b>Smarty Icon</b>
</p>
<p>
Feel free to use this icon on your Smarty driven site.
</p>
<img src="$WEBSITE/gifs/smarty_icon.gif" border=0 width="88" height="31">
<p>
<b>Tell us about it!</b>
</p>
<p>
Got some news for the front page? New articles, weblog discussions, public
talks, etc? <a href="mailto:[EMAIL PROTECTED]">Let us
know!</a>
</td>
</tr>
</table>
</td>
<td bgcolor="#f0ead8" background="$WEBSITE/gifs/checkerboard-orange.gif" width="2">
<img src="$WEBSITE/gifs/spacer.gif" width="2" height="2" border="0" alt="" ><br></td>
<td>
<table width="600" cellpadding="10" cellspacing="0">
<tr>
<td valign="top" class="ref">
HEAD;
return $head;
}
function manual_page_footer()
{
global $filename, $file_revision, $date, $title, $current_page, $WEBSITE;
$foot =<<<FOOT
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr bgcolor="#000000"><td><img src="/gifs/spacer.gif" width="1" height="1"
border="0" alt="" ><br></td></tr>
<tr bgcolor="#9b410e">
<td align="right" valign="bottom"><a
href="/source.php?url=/manual/en/language.builtin.functions.php"
class="menuWhite">show source</a><font color="#ffffff"> | </font><a
href="/credits.php" class="menuWhite">credits</a> <br>
</td>
</tr>
<tr bgcolor="#000000"><td><img src="/gifs/spacer.gif" width="1" height="1"
border="0" alt="" ><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tr valign="top" bgcolor="#f0c040">
<td><small>
<a href="http://www.php.net/"><img src="$WEBSITE/gifs/php-logo.gif" border="0"
width="69" height="36" ALT="PHP" align="left"></a> <a
href="$WEBSITE/copyright.php"> Website Copyright © 2002, 2004 The PHP
Group</a><br>
<a href="$WEBSITE/copyright.php"> Smarty Copyright © 2002, 2004 ispi</a><br>
All rights reserved.<BR>
</small>
</td>
<td align="right"><small>
<div class='footer'>$filename $file_revision | generated: $date</div>
</small><br>
</td>
</tr>
</table>
</body>
</html>
FOOT;
return $foot;
}
// in search.php
function search_page_header()
{
global $css_url, $tx_qry, $strict;
$head =<<<HEAD
<html>
<head>
<link rel="stylesheet" href="$css_url">
</head>
<body>
<div align="center">
<form action="search.php" method="get">
<input type="text" width="30" name="q" value="$tx_qry">
Strict: <input type="checkbox" value="1" name="s" echo $strict>
<input type="submit" name="search" value="Search">
</form>
</div>
HEAD;
return $head;
}
function search_page_footer()
{
$foot =<<<FOOT
</body>
</html>
FOOT;
return $foot;
}
function index_page_header()
{
global $css_url;
$head =<<<HEAD
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Livedocs Index</title>
<link rel="stylesheet" href="$css_url" >
</head>
<body>
<h1>PffHP Manual</h1>
HEAD;
return $head;
}
function index_page_footer()
{
$foot =<<<FOOT
</body>
</html>
FOOT;
return $foot;
}
// in error.php
function error_page_header()
{
global $lang, $css_url, $title, $rs_size;
$head =<<<HEAD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="$lang">
<head>
<title>$title</title>
<link rel="stylesheet" href="$css_url" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td height="1"></td>
<td rowspan="2" valign="top">
<h2 class="title">Possible Matches</h2>
<p class="simpara">
Unfortunately your query was not specific enough to determine the exact function you
were trying to find. The
following $rs_size functions represent the closest possible matches to your query.
</p>
<p class="simpara">
HEAD;
return $head;
}
function error_page_footer()
{
global $filename, $file_revision, $date;
$foot = <<<FOOT
</p>
<div class='footer'>$filename $file_revision | generated: $date</div>
</td></tr>
<tr><td valign="top">
$nav
</td></tr></table>
</body>
</html>
FOOT;
return $foot;
}
http://cvs.php.net/co.php/livedocs/themes/smarty/livedoc.css?r=1.1&p=1
Index: livedocs/themes/smarty/livedoc.css
+++ livedocs/themes/smarty/livedoc.css
/* $Id: livedoc.css,v 1.1 2004/04/20 20:59:31 didou Exp $ */
body {
font-family: verdana;
font-size: 11pt;
}
h2.refpurpose {
font-size: 1.4em;
}
h2.funcref {
margin-left: 2em;
margin-top: 0em;
margin-bottom: 0.1em;
font-size: 1em;
}
td.ref {
padding-left: 1ex;
}
div.author, h4.author {
margin-top: 0px;
margin-bottom: 2px;
}
p.simpara, div.para {
margin: 1em;
}
a.function, span.function,
a.classname, span.classname,
a.signalname, span.signalname,
a.enumname, span.enumname {
font-weight: bold;
white-space: nowrap;
color: blue;
}
div.methodsynopsis span.varname {
color: tomato;
}
span.filename, span.userinput, span.varname,
span.systemitem, span.command,
span.option, span.envar, span.replaceable {
font-family: Courier New, monospace;
white-space: nowrap;
}
span.methodparam {
white-space: nowrap;
}
div.lscode {
background: Black;
border: solid 2px #666666;
color: #dddddd;
font-family: Lucida Console, Courier New, monospace;
white-space: pre;
padding: 0.6em;
margin: 0.2em;
}
span.parameter, span.literal {
font-family: Courier New, monospace;
}
div.tip {
background-color: #eeeeff;
border: solid 2px #ddddff;
padding: 0.2em;
margin: 0.6em;
}
div.note {
background-color: #eeeeff;
border: solid 2px #ccccff;
padding: 0.2em;
margin: 0.6em;
}
div.warning {
background-color: #ffeeee;
border: solid 2px #ff7777;
padding: 0.2em;
margin: 0.6em;
}
div.bookinfo {
text-align: center;
}
div.legalnotice {
text-align: left;
font-size: 9px;
background-color: #eeffee;
border: solid 1px #77ff77;
padding: 0.2em;
margin: 3em;
}
span.warning_title {
color: #f00; /* This is real foodoo ;) */
font-weight: bold;
}
div.caution {
background-color: #ffdddd;
border: solid 2px #ffcccc;
padding: 0.2em;
margin: 0.6em;
}
div.pubdate {
margin-top: 0.6em;
margin-bottom: 0.6em;
}
div.question {
font-weight: bold;
}
div.answer {
margin-left: 2em;
}
div.copyright {
margin-top: 0.6em;
margin-bottom: 0.6em;
}
div.grouptranslators {
margin-top: 0.6em;
margin-bottom: 0.6em;
}
span.type {
color: green;
font-family: Courier New, monospace;
font-weight: bolder;
}
div.example, div.informalexample {
margin: 0.6em;
}
div.example div.title {
margin-bottom: 0.6em;
font-weight: bolder;
}
div.shellcode, div.xmlcode, div.phpcode,
div.inicode, div.htmlcode, div.screen,
div.apache-confcode, div.code, div.term,
div.synopsis {
background-color: #eeeeee;
border: solid 2px #dddddd;
padding: 0.6em;
margin: 0.6em;
font-size: 10pt;
}
div.shellcode, div.xmlcode, div.inicode,
div.htmlcode, div.screen, div.apache-confcode,
div.code, div.synopsis {
white-space: pre;
font-family: Courier New, monospace;
}
span.computeroutput {
font-family: Courier New, monospace;
color: #008;
}
div.footer {
font-size: 7pt;
}
table {
border-collapse: collapse;
border-padding: none;
}
table.table, table.informaltable {
border: solid 2px #cccccc;
border-collapse: collapse;
margin: 1em;
width: 600px;
}
table.table caption, table.informaltable caption {
font-size: 11pt;
font-weight: bold;
padding-bottom: 0.5em;
}
table.table thead tr, table.informaltable thead tr {
background-color: #eeeeff;
}
table.table thead tr th, table.informaltable thead tr th {
padding: 0.3em;
border: solid 2px #cccccc;
font-size: 11pt;
}
table.table tbody tr td, table.informaltable tbody tr td {
border: solid 2px #eeeeee;
padding: 0.3em;
font-size: 10pt;
vertical-align: top;
}
table.nav {
}
td.up {
font-weight: bold;
padding-bottom: 0.2em;
}
td.down {
}
td.downdown {
}
a.nav:link, a.nav:visited {
color: #000;
}
a.up, a.up:link, a.up:visited, a.down, a.down:link,
a.down:visited, a.downdown, a.downdown:link,
a.downdown:visited {
color: black;
line-height: 14px;
}
a.up, a.up:link, a.up:visited {
text-decoration: none;
}
div.fuxxor {
color: red;
}
div.legalnotice {
margin-top: 20px;
}
/* Take away margins from paragraphs in list items; the list item
* sets appropriate padding */
ul.itemizedlist li.listitem p.simpara,
ul.itemizedlist li.listitem div.para {
margin: 0.2em;
}
/* syntax highlighting for PHP code */
/*
div.phpcode code {
white-space: pre;
}
*/
div.phpcode span.html {
color: black;
}
div.phpcode span.comment {
color: #FF8000;
}
div.phpcode span.default {
color: #0000BB;
}
div.phpcode span.keyword {
color: #007700;
}
div.phpcode span.string {
color: #DD0000;
}
span.subscript {
vertical-align: sub;
}
/* OO stuff */
div.classsynopsis div.classcontents {
padding-left: 2em;
}
div.classmeta div.classparent {
padding-left: 2em;
}
div.classmeta div.shortdesc {
font-weight: bold;
}
/* Search page */
hr.search {
border: none;
border-top: 1px dashed blue;
width: 30em;
}