summaryrefslogtreecommitdiff
path: root/buildscripts/apigen/pradosoft/source.latte
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-11-09 01:15:12 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-11-09 01:15:12 +0100
commit5cd46e5a0da3841719d0676a06c963c70c5a524c (patch)
tree51b46c3c794f4be7922142c2adc66a5907d47b33 /buildscripts/apigen/pradosoft/source.latte
parent151b2f7d102a5988b63255d27c9ad78202c16355 (diff)
Created theme for apigen4, wsat doc fixes
Diffstat (limited to 'buildscripts/apigen/pradosoft/source.latte')
-rw-r--r--buildscripts/apigen/pradosoft/source.latte20
1 files changed, 6 insertions, 14 deletions
diff --git a/buildscripts/apigen/pradosoft/source.latte b/buildscripts/apigen/pradosoft/source.latte
index 9c46f920..7eeffe3c 100644
--- a/buildscripts/apigen/pradosoft/source.latte
+++ b/buildscripts/apigen/pradosoft/source.latte
@@ -1,18 +1,10 @@
-{*
-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 $robots = false}
-{block #title}File {$fileName}{/block}
+{block title}File {$fileName}{/block}
-{block #content}
-<pre><code>{!$source|sourceAnchors|replaceRE:'~<span class="line">(\\s*(\\d+):\\s*)</span>([^\\n]*\\n)?~','<span id="$2" class="l"><a class="l" href="#$2">$1</a>$3</span>'}</code></pre>
-{/block} \ No newline at end of file
+{block content}
+{var $lineRegex = '~<span class="line">(\\s*(\\d+):\\s*)</span>([^\\n]*(?:\\n|$))~'}
+<pre class="numbers"><code>{$source|replaceRE:$lineRegex,'<span class="l"><a href="#$2">$1</a></span>'|noescape}</code></pre>
+<pre class="code"><code>{$source|replaceRE:$lineRegex,'<span id="$2" class="l">$3</span>'|noescape}</code></pre>
+{/block}