Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Update for recent version of nette
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca committed Nov 18, 2019
1 parent 1f5ee5b commit e5e93fa
Show file tree
Hide file tree
Showing 7 changed files with 164 additions and 158 deletions.
2 changes: 1 addition & 1 deletion src/@elementlist.latte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{define elements}
<tr n:foreach="$elements as $element">
<td class="name"><a href="{$element|elementUrl}" n:class="$element->deprecated ? deprecated, !$element->valid ? invalid">{if $namespace}{$element->shortName}{else}{$element->name}{/if}</a></td>
<td class="name"><a href="{$element|elementUrl}" n:class="$element->isDeprecated() ? deprecated, !$element->isValid() ? invalid">{if $namespace}{$element->getShortName()}{else}{$element->getName()}{/if}</a></td>
<td>{$element|shortDescription|noescape}</td>
</tr>
{/define}
Expand Down
18 changes: 9 additions & 9 deletions src/@layout.latte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta http-equiv="content-language" content="en"/>
<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="Description" content="PRADO is a component-based and event-driven framework for Web application development in PHP 7." />
<meta name="Author" content="Qiang Xue" />
<meta name="Subject" content="Web programming, PHP framework" />
<meta name="Language" content="en" />
Expand Down Expand Up @@ -76,7 +76,7 @@

{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>
<li n:foreach="$elements as $element" n:class="$activeElement === $element ? active"><a n:class="$element->isDeprecated() ? deprecated, !$element->isValid() ? invalid" href="{$element|elementUrl}">{if $namespace}{$element->getShortName()}{else}{$element->getName()}{/if}</a></li>
</ul>
{/define}

Expand Down Expand Up @@ -136,23 +136,23 @@
<a n:tag-if="'namespace' !== $active && $namespace" href="{$namespace|namespaceUrl}" title="Summary of {$namespace}"><span>Namespace</span></a>
</li>
<li n:class="'class' === $active ? active" n:if="!$function && !$constant">
<a n:tag-if="'class' !== $active && $class" href="{$class|classUrl}" title="Summary of {$class->name}"><span>Class</span></a>
<a n:tag-if="'class' !== $active && $class" href="{$class|classUrl}" title="Summary of {$class->getName()}"><span>Class</span></a>
</li>
<li n:class="'function' === $active ? active" n:if="$function">
<a n:tag-if="'function' !== $active" href="{$function|functionUrl}" title="Summary of {$function->name}"><span>Function</span></a>
<a n:tag-if="'function' !== $active" href="{$function|functionUrl}" title="Summary of {$function->getName()}"><span>Function</span></a>
</li>
<li n:class="'constant' === $active ? active" n:if="$constant">
<a n:tag-if="'constant' !== $active" href="{$constant|constantUrl}" title="Summary of {$constant->name}"><span>Constant</span></a>
<a n:tag-if="'constant' !== $active" href="{$constant|constantUrl}" title="Summary of {$constant->getName()}"><span>Constant</span></a>
</li>
</ul>
<ul>
<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>
{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>
{foreach $annotationGroups as $annotationItem}
<li n:class="$active === 'annotation-group-' . $annotationItem ? active">
<a n:tag-if="$active !== 'annotation-group-' . $annotationItem" href="annotation-group-{$annotationItem}.html" title="List of elements with {$annotationItem} annotation">
<span>{$annotationItem|firstUpper}</span>
</a>
</li>
{/foreach}
Expand Down
26 changes: 13 additions & 13 deletions src/annotation-group.latte
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
<table class="summary" id="methods" n:if="$annotationMethods">
<caption>Methods summary</caption>
<tr n:foreach="$annotationMethods as $method">
<td class="name"><a href="{$method->declaringClassName|classUrl}">{$method->declaringClassName}</a></td>
<td class="name"><code><a href="{$method|methodUrl}">{$method->name}()</a></code></td>
<td class="name"><a href="{$method->getDeclaringClassName()|classUrl}">{$method->getDeclaringClassName()}</a></td>
<td class="name"><code><a href="{$method|methodUrl}">{$method->getName()}()</a></code></td>
<td>
{if $method->hasAnnotation($annotation)}
{foreach $method->annotations[$annotation] as $description}
{foreach $method->getAnnotation($annotation) as $description}
{if $description}
{$description|annotation:$annotation:$method|noescape}<br>
{/if}
Expand All @@ -48,13 +48,13 @@
<table class="summary" id="constants" n:if="$annotationConstants">
<caption>Constants summary</caption>
<tr n:foreach="$annotationConstants as $constant">
{if $constant->declaringClassName}
<td class="name"><a href="{$constant->declaringClassName|classUrl}">{$constant->declaringClassName}</a></td>
<td class="name"><code><a href="{$constant|constantUrl}"><b>{$constant->name}</b></a></code></td>
{if $constant->getDeclaringClassName()}
<td class="name"><a href="{$constant->getDeclaringClassName()|classUrl}">{$constant->getDeclaringClassName()}</a></td>
<td class="name"><code><a href="{$constant|constantUrl}"><b>{$constant->getName()}</b></a></code></td>

{else}
<td class="name" n:if="$namespaces || $classes || $interfaces || $traits || $exceptions"><a n:if="$constant->namespaceName" href="{$constant->namespaceName|namespaceUrl}">{$constant->namespaceName}</a></td>
<td n:class="name"><code><a href="{$constant|constantUrl}"><b>{$constant->shortName}</b></a></code></td>
<td class="name" n:if="$namespaces || $classes || $interfaces || $traits || $exceptions"><a n:if="$constant->getNamespaceName()" href="{$constant->getNamespaceName()|namespaceUrl}">{$constant->getNamespaceName()}</a></td>
<td n:class="name"><code><a href="{$constant|constantUrl}"><b>{$constant->getShortName()}</b></a></code></td>
{/if}
<td>
{foreach $constant->annotations[$annotation] as $description}
Expand All @@ -69,8 +69,8 @@
<table class="summary" id="properties" n:if="$annotationProperties">
<caption>Properties summary</caption>
<tr n:foreach="$annotationProperties as $property">
<td class="name"><a href="{$property->declaringClassName|classUrl}">{$property->declaringClassName}</a></td>
<td class="name"><a href="{$property|propertyUrl}"><var>${$property->name}</var></a></td>
<td class="name"><a href="{$property->getDeclaringClassName()|classUrl}">{$property->getDeclaringClassName()}</a></td>
<td class="name"><a href="{$property|propertyUrl}"><var>${$property->getName()}</var></a></td>
<td>
{foreach $property->annotations[$annotation] as $description}
{if $description}
Expand All @@ -84,8 +84,8 @@
<table class="summary" id="functions" n:if="$annotationFunctions">
<caption>Functions summary</caption>
<tr n:foreach="$annotationFunctions as $function">
<td class="name" n:if="$namespaces"><a n:if="$function->namespaceName" href="{$function->namespaceName|namespaceUrl}">{$function->namespaceName}</a></td>
<td class="name"><code><a href="{$function|functionUrl}">{$function->shortName}</a></code></td>
<td class="name" n:if="$namespaces"><a n:if="$function->getNamespaceName()" href="{$function->getNamespaceName()|namespaceUrl}">{$function->getNamespaceName()}</a></td>
<td class="name"><code><a href="{$function|functionUrl}">{$function->getShortName()}</a></code></td>
<td>
{foreach $function->annotations[$annotation] as $description}
{if $description}
Expand All @@ -105,7 +105,7 @@

{define classes}
<tr n:foreach="$items as $class">
<td class="name"><a href="{$class|classUrl}">{$class->name}</a></td>
<td class="name"><a href="{$class|classUrl}">{$class->getName()}</a></td>
<td>
{foreach $class->annotations[$annotation] as $description}
{if $description}
Expand Down
Loading

0 comments on commit e5e93fa

Please sign in to comment.