summaryrefslogtreecommitdiff
path: root/buildscripts/apigen/pradosoft/constant.latte
diff options
context:
space:
mode:
authorJean-Luc Gyger <jean-luc.gyger@vysual.ch>2016-02-11 10:01:12 +0100
committerJean-Luc Gyger <jean-luc.gyger@vysual.ch>2016-02-11 10:01:12 +0100
commitd70861a8f9368773f2f0291454e9420174e6c14a (patch)
treee44a32e401211422fb05da355c9eef4d5934d9e9 /buildscripts/apigen/pradosoft/constant.latte
parentd32f65815eb6feb4bcb8a0c85572f722d7826342 (diff)
parent275f16b90a92c62935cb691d11e0bd124acf64e4 (diff)
Merge branch 'master' of https://github.com/majuca/prado
Diffstat (limited to 'buildscripts/apigen/pradosoft/constant.latte')
-rw-r--r--buildscripts/apigen/pradosoft/constant.latte32
1 files changed, 12 insertions, 20 deletions
diff --git a/buildscripts/apigen/pradosoft/constant.latte b/buildscripts/apigen/pradosoft/constant.latte
index 441c245d..8552446d 100644
--- a/buildscripts/apigen/pradosoft/constant.latte
+++ b/buildscripts/apigen/pradosoft/constant.latte
@@ -1,38 +1,31 @@
-{*
-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.
-*}
{layout '@layout.latte'}
{var $active = 'constant'}
-{block #title}{if $constant->deprecated}Deprecated {/if}Constant {$constant->name}{/block}
+{block title}{if $constant->deprecated}Deprecated {/if}Constant {$constant->name}{/block}
-{block #content}
+{block content}
<div id="content" class="constant">
<h1 n:class="$constant->deprecated ? deprecated">Constant {$constant->shortName}</h1>
{if $constant->valid}
<div class="description" n:if="$template->longDescription($constant)">
- {!$constant|longDescription}
+ {$constant|longDescription|noescape}
</div>
<div class="info">
- {if $constant->inNamespace()}<b>Namespace:</b> {!$constant->namespaceName|namespaceLinks}<br>{/if}
- {if $constant->inPackage()}<b>Package:</b> {!$constant->packageName|packageLinks}<br>{/if}
+ {if $constant->inNamespace()}<b>Namespace:</b> {$constant->namespaceName|namespaceLinks|noescape}<br>{/if}
+ {if $constant->inPackage()}<b>Package:</b> {$constant->packageName|packageLinks|noescape}<br>{/if}
{foreach $template->annotationSort($template->annotationFilter($constant->annotations, array('var'))) as $annotation => $values}
{foreach $values as $value}
<b>{$annotation|annotationBeautify}{if $value}:{/if}</b>
- {!$value|annotation:$annotation:$constant}<br>
+ {$value|annotation:$annotation:$constant|noescape}<br>
{/foreach}
{/foreach}
- <b>Located at</b> <a n:tag-if="$config->sourceCode" href="{$constant|sourceUrl}" title="Go to source code">{$constant->fileName|relativePath}</a><br>
+ <b>Located at</b>
+ <a n:tag-if="$config->sourceCode" href="{$constant|sourceUrl}" title="Go to source code">
+ {$constant->fileName|relativePath}
+ </a><br>
</div>
{var $annotations = $constant->annotations}
@@ -40,12 +33,11 @@ the file LICENSE.md that was distributed with this source code.
<table class="summary" id="vars">
<caption>Value summary</caption>
<tr>
- <td class="name"><code>{!$constant->typeHint|typeLinks:$constant}</code></td>
+ <td class="name"><code>{$constant->typeHint|typeLinks:$constant|noescape}</code></td>
<td class="value">{block|strip}
{var $element = $template->resolveElement($constant->valueDefinition, $constant)}
- {if $element}<a href="{$element|constantUrl}">{$constant->valueDefinition}</a>{else}<code>{!$constant->valueDefinition|highlightValue:$constant}</code>{/if}
+ {if $element}<a href="{$element|constantUrl}">{$constant->valueDefinition}</a>{else}<code>{$constant->valueDefinition|highlightValue:$constant|noescape}</code>{/if}
{/block}</td>
- <td>{ifset $annotations['var']}{!$annotations['var'][0]|description:$constant}{/ifset}</td>
</tr>
</table>