Skip to content

Instantly share code, notes, and snippets.

@pabloprogramador
Last active December 21, 2015 01:19
Show Gist options
  • Save pabloprogramador/6226739 to your computer and use it in GitHub Desktop.
Save pabloprogramador/6226739 to your computer and use it in GitHub Desktop.
Página view padrão do pyrocms, carrega file:image helper character_limiter strip_tags custom field
<?php
{{page:title}}
{{page:body}}
<div class="tk-postcontent tk-postcontent-0 clearfix">
<div class="tk-content-layout">
<div class="tk-content-layout-row">
<div class="tk-layout-cell layout-item-0" style="width: 35%" >
<h1>empresa</h1>
<p>{{ files:image id="{{ foto_empresa:id }}" width="240" height="120" mode="fit" }}</p>
<!-- PEDACO DE PAGINA -->
{{ pages:display slug="empresa" }}
{{ custom_fields }}
{{ helper:character_limiter value={ helper:strip_tags value=body} status="50"}}
{{ /custom_fields }}
{{ /pages:display }}
<!-- PEDACO DE PAGINA -->
<p><a href="{{url:base}}empresa" class="tk-button">Ler MAIS...</a></p>
</div>
<div class="tk-layout-cell layout-item-0" style="width: 35%" >
<h1>serviços</h1>
<p>{{ files:image id="{{ foto_servicos:id }}" width="240" height="120" mode="fit" }}</p>
<ul>
<!-- PEDACO DE BLOG -->
{{ blog:posts limit="5" order_by="title" category="servicos" }}
<li><a href="{{ url }}">{{ title }}</a>
{{ helper:character_limiter value={ helper:strip_tags value=body} status="50"}}
</li>
{{ /blog:posts }}
<!-- PEDACO DE BLOG -->
</ul>
<p><a href="{{url:base}}blog/categoria/servicos" class="tk-button">ler mais...</a></p>
</div>
<div class="tk-layout-cell layout-item-0" style="width: 31%" >
<h1>novidades</h1>
<p>{{ files:image id="{{ foto_novidades:id }}" width="240" height="120" mode="fit" }}</p>
{{ blog:posts limit="5" order_by="created_on" category="novidades" }}
<h4 style="font-size:11px;"><a style="font-size:15px;" href="{{ url }}">{{title}}</a> - {{ helper:date timestamp=created_on }}</h4>
<p>{{ helper:character_limiter value=preview status="80"}} <a href="{{ url }}">mais...</a></p>
{{ /blog:posts }}
<p><a href="{{url:base}}blog/categoria/novidades" class="tk-button">ler mais...</a></p>
</div>
</div>
</div>
</div>
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment