Skip to content

Instantly share code, notes, and snippets.

@norv
Created May 10, 2012 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norv/2650085 to your computer and use it in GitHub Desktop.
Save norv/2650085 to your computer and use it in GitHub Desktop.
<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 />&nbsp;</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>&bull; {$context.error}</strong>
</site:rounded>
<br />
<div class="center">
<a class="button" href="javascript:history.go(-1);">&laquo; {#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">&middot; </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