woocommerce/apigen/theme-woocommerce/source.latte

13 lines
467 B
Plaintext
Raw Normal View History

2015-01-16 16:06:58 +00:00
{layout '@layout.latte'}
{var $robots = false}
{block title}File {$fileName}{/block}
{block content}
2015-11-20 10:05:33 +00:00
<div id="source">
{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$2$3</a></span>'|noescape}</code></pre>
<pre class="code"><code>{$source|replaceRE:$lineRegex,'<span id="$2" class="l">$4</span>'|noescape}</code></pre>
</div>
2015-01-16 16:06:58 +00:00
{/block}