Created
May 10, 2012 00:35
-
-
Save norv/2650085 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<tpl:container> | |
<tpl:template name="site:rounded"><tpl:if test="!isset({$header}) && !isset({$right})"> | |
<div class="content no_header{tpl:if test="isset({$class})"} {$class}{/tpl:if}{tpl:if test="isset({$color})"} {$color}{/tpl:if}"{tpl:if test="isset({$id})"} id="{$id}"{/tpl:if}{tpl:if test="isset({$style})"} style="{$style}"{/tpl:if}><tpl:else /> | |
<div class="content with_header{tpl:if test="isset({$class})"} {$class}{/tpl:if}{tpl:if test="isset({$color})"} {$color}{/tpl:if}"{tpl:if test="isset({$id})"} id="{$id}"{/tpl:if}{tpl:if test="isset({$style})"} style="{$style}"{/tpl:if}> | |
<div class="header"> | |
<div><tpl:if test="isset({$right})"> | |
<span class="floatright">{$right}</span></tpl:if> | |
<span><tpl:if test="isset({$header}) && !empty({$header})">{$header}<tpl:else /> </tpl:if></span> | |
</div> | |
</div></tpl:if> | |
<div class="content_inner"> | |
<tpl:content /> | |
</div> | |
</div> | |
</tpl:template> | |
<tpl:template name="site:display_error"> | |
<site:rounded color="red" style="width: 60%; margin: 0 auto;" header="{#error}"> | |
{#an_error_occurred}<br /> | |
<strong>• {$context.error}</strong> | |
</site:rounded> | |
<br /> | |
<div class="center"> | |
<a class="button" href="javascript:history.go(-1);">« {#back}</a> | |
</div> | |
</tpl:template> | |
<tpl:template name="site:date" requires="id, name, timestamp"> | |
</tpl:template> | |
<tpl:template name="site:time" requires="id, name, timestamp"> | |
</tpl:template> | |
<tpl:template name="ui:user_picker" requires="id, users"> | |
</tpl:template> | |
<tpl:template name="ui:slider" requires="prefix"> | |
<div id="{$prefix}slider"></div> | |
</tpl:template> | |
<tpl:template name="ui:pagination" requires="url, items, per, page"><tpl:for init="{$i} = 0" while="({$i} * {$per}) < {$items}" modify="{$i}++"> | |
<tpl:if test="{$i} > 0">· </tpl:if><a href="{$url}<tpl:output value="{$i} + 1" />"<tpl:if test="{$i} + 1 == {$page}"> class="current"</tpl:if>><tpl:output value="{$i} + 1" /></a> </tpl:for> | |
</tpl:template> | |
</tpl:container> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment