summaryrefslogtreecommitdiff
path: root/buildscripts/apigen/pradosoft/@layout.latte
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/apigen/pradosoft/@layout.latte')
-rw-r--r--buildscripts/apigen/pradosoft/@layout.latte161
1 files changed, 72 insertions, 89 deletions
diff --git a/buildscripts/apigen/pradosoft/@layout.latte b/buildscripts/apigen/pradosoft/@layout.latte
index 9001fc75..01479827 100644
--- a/buildscripts/apigen/pradosoft/@layout.latte
+++ b/buildscripts/apigen/pradosoft/@layout.latte
@@ -1,13 +1,3 @@
-{*
-ApiGen 2.8.0 - API documentation generator for PHP 5.3+
-
-Copyright (c) 2010-2011 David Grudl (http://davidgrudl.com)
-Copyright (c) 2011-2012 Jaroslav Hanslík (https://github.com/kukulich)
-Copyright (c) 2011-2012 Ondřej Nešpor (https://github.com/Andrewsville)
-
-For the full copyright and license information, please view
-the file LICENSE.md that was distributed with this source code.
-*}
{default $robots = true}
{default $active = ''}
<!DOCTYPE html>
@@ -15,10 +5,11 @@ the file LICENSE.md that was distributed with this source code.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="{$generator} {$version}">
+ <meta charset="utf-8">
<meta name="robots" content="noindex" n:if="!$robots">
<meta http-equiv="content-language" content="en"/>
- <meta name="Keywords" content="PRADO PHP framework component template delphi asp.net event property OOP PHP5 object oriented programming Web programming development" />
+ <meta name="Keywords" content="PRADO PHP framework component template event property OOP PHP5 object oriented programming Web programming development" />
<meta name="Description" content="PRADO is a component-based and event-driven framework for Web application development in PHP 5." />
<meta name="Author" content="Qiang Xue" />
<meta name="Subject" content="Web programming, PHP framework" />
@@ -26,18 +17,14 @@ the file LICENSE.md that was distributed with this source code.
<link rel="Shortcut Icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<link rel="stylesheet" type="text/css" href="/css/manual.css" />
+ <meta name="robots" content="noindex" n:if="!$robots">
- <title>{include #title}{if 'overview' !== $active && $config->title} | {$config->title}{/if}</title>
+ <title>{include title}{if 'overview' !== $active && $config->title} | {$config->title}{/if}</title>
- {var combinedJs = 'resources/combined.js'}
- <script type="text/javascript" src="{$combinedJs|staticFile}"></script>
- {var elementListJs = 'elementlist.js'}
- <script type="text/javascript" src="{$elementListJs|staticFile}"></script>
- {var styleCss = 'resources/style.css'}
- <link rel="stylesheet" type="text/css" media="all" href="{$styleCss|staticFile}">
+ <link rel="stylesheet" href="{='resources/style.css'|staticFile}">
<link n:if="$config->googleCseId" rel="search" type="application/opensearchdescription+xml" title="{$config->title}" href="{$config->baseUrl}/opensearch.xml">
- <script n:if="$config->googleAnalytics" type="text/javascript">
+ <script n:if="$config->googleAnalytics">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', {$config->googleAnalytics}]);
_gaq.push(['_trackPageview']);
@@ -52,47 +39,25 @@ the file LICENSE.md that was distributed with this source code.
<body>
- <div id="page">
- <div id="header">
- <div id="logo"><img src="/css/pradoheader.gif" alt="PRADO Component Framework for PHP 5" /></div>
- <div id="mainmenu">
- <ul>
- <li><a href="/">Home</a></li>
- <li><a href="/about/" >About</a></li>
- <li><a href="/testimonials/" >Testimonials</a></li>
- <li><a href="/demos/" >Demos</a></li>
- <li><a href="/download/" >Download</a></li>
- <li><a href="/documentation/" class="active">Documentation</a></li>
- <li><a href="/forum/" >Forum</a></li>
- <li><a href="http://github.com/pradosoft/prado">Development</a></li>
- </ul>
- </div><!-- mainmenu -->
- </div><!-- header -->
- <div id="main">
- <div id="navbar">
- <ul>
- <li><a href="/tutorials/">Tutorials</a></li>
- <li><a href="/docs/classdoc/">Class Docs</a></li>
- <li><a href="/docs/manual/" class="active">API Manual</a></li>
- <li><a href="/wiki/">Wiki</a></li>
- </ul>
- </div>
-
-<table id="maintable">
- <tr>
- <td id="left">
+<div id="left">
<div id="menu">
- {define #group}
+ <a n:tag-if="'overview' !== $active" href="index.html" title="Overview"><span>Overview</span></a>
+
+ {define group}
<ul>
{foreach $groups as $group}
{var $nextLevel = substr_count($iterator->nextValue, '\\') > substr_count($group, '\\')}
- <li n:class="$actualGroup === $group || 0 === strpos($actualGroup, $group . '\\') ? active, $config->main && 0 === strpos($group, $config->main) ? main"><a href="{$group|groupUrl}">{$group|subgroupName}{if $nextLevel}<span></span>{/if}</a>
+ <li n:class="$actualGroup === $group || 0 === strpos($actualGroup, $group . '\\') ? active, $config->main && 0 === strpos($group, $config->main) ? main">
+ <a href="{if $groupBy === 'package'}{$group|packageUrl}{else}{$group|namespaceUrl}{/if}">
+ {$group|subgroupName}<span n:tag-if="$nextLevel"></span>
+ </a>
+
{if $nextLevel}
<ul>
{else}
</li>
{if substr_count($iterator->nextValue, '\\') < substr_count($group, '\\')}
- {!'</ul></li>'|repeat:substr_count($group, '\\') - substr_count($iterator->nextValue, '\\')}
+ {='</ul></li>'|repeat:substr_count($group, '\\') - substr_count($iterator->nextValue, '\\')|noescape}
{/if}
{/if}
{/foreach}
@@ -101,31 +66,64 @@ the file LICENSE.md that was distributed with this source code.
<div id="groups">
{if $namespaces}
- <h3>Namespaces</h3>
- {include #group, groups => $namespaces, actualGroup => $namespace}
+ <h3>Namespaces</h3>
+ {include group, groups => $namespaces, actualGroup => $namespace, groupBy => 'namespace'}
{elseif $packages}
- <h3>Packages</h3>
- {include #group, groups => $packages, actualGroup => $package}
+ <h3>Packages</h3>
+ {include group, groups => $packages, actualGroup => $package, groupBy => 'package'}
{/if}
</div>
- {define #elements}
+ <hr n:if="($namespaces || $packages) && ($classes || $interfaces || $traits || $exceptions || $constants || $functions)">
+
+ {define elements}
<ul>
<li n:foreach="$elements as $element" n:class="$activeElement === $element ? active"><a n:class="$element->deprecated ? deprecated, !$element->valid ? invalid" href="{$element|elementUrl}">{if $namespace}{$element->shortName}{else}{$element->name}{/if}</a></li>
</ul>
{/define}
+
+ <div id="elements">
+ {if $classes}
+ <h3>Classes</h3>
+ {include elements, elements => $classes, activeElement => $class}
+ {/if}
+
+ {if $interfaces}
+ <h3>Interfaces</h3>
+ {include elements, elements => $interfaces, activeElement => $class}
+ {/if}
+
+ {if $traits}
+ <h3>Traits</h3>
+ {include elements, elements => $traits, activeElement => $class}
+ {/if}
+
+ {if $exceptions}
+ <h3>Exceptions</h3>
+ {include elements, elements => $exceptions, activeElement => $class}
+ {/if}
+
+ {if $constants}
+ <h3>Constants</h3>
+ {include elements, elements => $constants, activeElement => $constant}
+ {/if}
+
+ {if $functions}
+ <h3>Functions</h3>
+ {include elements, elements => $functions, activeElement => $function}
+ {/if}
+ </div>
</div>
</div>
-</td>
-<td id="right">
+<div id="splitter"></div>
+
+<div id="right">
<div id="rightInner">
<form{if $config->googleCseId} action="http://www.google.com/cse"{/if} id="search">
<input type="hidden" name="cx" value="{$config->googleCseId}">
<input type="hidden" name="ie" value="UTF-8">
- <input type="hidden" name="more" value="{$config->googleCseLabel}" n:if="$config->googleCseLabel">
- <input type="text" name="q" class="text"{if 'overview' === $active} autofocus{/if}>
- <input type="submit" value="Search">
+ <input type="text" name="q" class="text" placeholder="Search"{if 'overview' === $active} autofocus{/if}>
</form>
<div id="navigation">
@@ -153,12 +151,13 @@ the file LICENSE.md that was distributed with this source code.
<li n:class="'tree' === $active ? active" n:if="$config->tree">
<a n:tag-if="'tree' !== $active" href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
- <li n:class="'deprecated' === $active ? active" n:if="$config->deprecated">
- <a n:tag-if="'deprecated' !== $active" href="deprecated.html" title="List of deprecated elements"><span>Deprecated</span></a>
- </li>
- <li n:class="'todo' === $active ? active" n:if="$config->todo">
- <a n:tag-if="'todo' !== $active" href="todo.html" title="Todo list"><span>Todo</span></a>
- </li>
+ {foreach $annotationGroups as $annotation}
+ <li n:class="$active === 'annotation-group-' . $annotation ? active">
+ <a n:tag-if="$active !== 'annotation-group-' . $annotation" href="annotation-group-{$annotation}.html" title="List of elements with {$annotation} annotation">
+ <span>{$annotation|firstUpper}</span>
+ </a>
+ </li>
+ {/foreach}
</ul>
<ul>
<li n:if="$config->download">
@@ -167,31 +166,15 @@ the file LICENSE.md that was distributed with this source code.
</ul>
</div>
- {include #content}
+ {include content}
+ <div id="footer">
+ {$config->title} API documentation generated by <a href="http://apigen.org">ApiGen</a>
+ </div>
</div>
-
-</td>
- </tr>
-</table>
-
-</div><!-- main -->
-
-<div id="footer">
- <a href="/tos/">Terms of Service</a> |
- <a href="/support/">Contact Us</a>
- <br/>
- {$config->title} API documentation generated by <a href="http://apigen.org">{$generator} {$version}</a>
- <br/>Copyright &copy; 2006-2015 by the PRADO Group.<br/>
- <a title="Powered by PRADO" href="http://www.pradosoft.com/"><img src="http://www.pradosoft.com/images/powered2.gif" style="border-width:0px;" alt="Powered by PRADO" /></a>
</div>
-</div><!-- page -->
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-186303-3";
-urchinTracker();
-</script>
+<script src="{='resources/combined.js'|staticFile}"></script>
+<script src="{='elementlist.js'|staticFile}"></script>
</body>
</html>