Indent a little for readability
Indent a little for readability

{* {*
* footer.tpl * footer.tpl
* gitphp: A PHP git repository browser * gitphp: A PHP git repository browser
* Component: Page footer template * Component: Page footer template
* *
* Copyright (C) 2006 Christopher Han <xiphux@gmail.com> * Copyright (C) 2006 Christopher Han <xiphux@gmail.com>
*} *}
<div class="page_footer"> <div class="page_footer">
{if $project} {if $project}
{if $descr} {if $descr}
<div class="page_footer_text">{$descr}</div> <div class="page_footer_text">{$descr}</div>
{/if} {/if}
<a href="{$SCRIPT_NAME}?p={$project}&a=rss" class="rss_logo">RSS</a> <a href="{$SCRIPT_NAME}?p={$project}&a=rss" class="rss_logo">RSS</a>
{else} {else}
<a href="{$SCRIPT_NAME}?a=opml" class="rss_logo">OPML</a> <a href="{$SCRIPT_NAME}?a=opml" class="rss_logo">OPML</a>
<a href="{$SCRIPT_NAME}?a=project_index" class="rss_logo">TXT</a> <a href="{$SCRIPT_NAME}?a=project_index" class="rss_logo">TXT</a>
{/if} {/if}
</div> </div>
</body> </body>
</html> </html>
   
{* {*
* header.tpl * header.tpl
* gitphp: A PHP git repository browser * gitphp: A PHP git repository browser
* Component: Page header template * Component: Page header template
* *
* Copyright (C) 2006 Christopher Han <xiphux@gmail.com> * Copyright (C) 2006 Christopher Han <xiphux@gmail.com>
*} *}
{* $contentType = strpos($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') === false ? 'text/html' : 'application/xhtml+xml'; {* $contentType = strpos($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') === false ? 'text/html' : 'application/xhtml+xml';
header("Content-Type: $contentType; charset=utf-8"); *} header("Content-Type: $contentType; charset=utf-8"); *}
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<!-- gitphp web interface {$version}, (C) 2006 Christopher Han <xiphux@gmail.com> --> <!-- gitphp web interface {$version}, (C) 2006 Christopher Han <xiphux@gmail.com> -->
<head> <head>
<title>{$title}</title> <title>{$title}</title>
{if $rss_link} {if $rss_link}
<link rel="alternate" title="{$project} log" href="{$SCRIPT_NAME}?p={$project}&a=rss" type="application/rss+xml" /> <link rel="alternate" title="{$project} log" href="{$SCRIPT_NAME}?p={$project}&a=rss" type="application/rss+xml" />
{/if} {/if}
<link rel="stylesheet" href="{$stylesheet}" type="text/css" /> <link rel="stylesheet" href="{$stylesheet}" type="text/css" />
{$smarty.capture.header} {$smarty.capture.header}
</head> </head>
<body> <body>
<div class="page_header"> <div class="page_header">
<a href="http://www.kernel.org/pub/software/scm/git/docs/" title="git documentation"> <a href="http://www.kernel.org/pub/software/scm/git/docs/" title="git documentation">
<img src="git-logo.png" width="72" height="27" alt="git" class="logo" /> <img src="git-logo.png" width="72" height="27" alt="git" class="logo" />
</a> </a>
<a href="index.php">projects</a> / <a href="index.php">projects</a> /
{if $project} {if $project}
<a href="{$SCRIPT_NAME}?p={$project}&a=summary">{$project}</a> <a href="{$SCRIPT_NAME}?p={$project}&a=summary">{$project}</a>
{if $action} {if $action}
/ {$action} / {$action}
{/if} {/if}
{if $enablesearch} {if $enablesearch}
<form method="get" action="index.php" enctype="application/x-www-form-urlencoded"> <form method="get" action="index.php" enctype="application/x-www-form-urlencoded">
<div class="search"> <div class="search">
<input type="hidden" name="p" value="{$project}" /> <input type="hidden" name="p" value="{$project}" />
<input type="hidden" name="a" value="search" /> <input type="hidden" name="a" value="search" />
<input type="hidden" name="h" value="{if $hash}{$hash}{else}HEAD{/if}" /> <input type ="hidden" name="h" value="{if $hash}{$hash}{else}HEAD{/if}" />
<select name="st"> <select name="st">
<option {if $searchtype == 'commit'}selected="selected"{/if} value="commit">commit</option> <option {if $searchtype == 'commit'}selected="selected"{/if} value="commit">commit</option>
<option {if $searchtype == 'author'}selected="selected"{/if} value="author">author</option> <option {if $searchtype == 'author'}selected="selected"{/if} value="author">author</option>
<option {if $searchtype == 'committer'}selected="selected"{/if} value="committer">committer</option> <option {if $searchtype == 'committer'}selected="selected"{/if} value="committer">committer</option>
{if $filesearch} {if $filesearch}
<option {if $searchtype == 'file'}selected="selected"{/if} value="file">file</option> <option {if $searchtype == 'file'}selected="selected"{/if} value="file">file</option>
{/if} {/if}
</select> search: <input type="text" name="s" {if $search}value="{$search}"{/if} /> </select> search: <input type="text" name="s" {if $search}value="{$search}"{/if} />
</div> </div>
</form> </form>
{/if} {/if}
{/if} {/if}
</div> </div>
   
comments