Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (25 sloc) 939 Bytes
{% extends noLayout ? viewbaseLayout : "PlanetBundle::pagelayout.html.twig" %}
{% set offset = app.request.attributes.get( 'viewParameters' ).offset ? app.request.attributes.get( 'viewParameters' ).offset : 0 %}
{% set page = (offset / 10)|number_format() + 1 %}
{% set suffix = page != 1 ? " (Page " ~ page ~ ")" : "" %}
{% block title_page %}
{% spaceless %}
{{ location.contentInfo.name }}{{ suffix }} - {{ parent() }}
{% endspaceless %}
{% endblock %}
{% block top_menu %}
{% set selected = location.id %}
{{ parent() }}
{% endblock %}
{% block content %}
<section class="planet">
<h1 class="title-page">Planète eZ Publish{{ suffix }}</h1>
{{ render(
controller(
"planet:postList",
{'rootLocationId': planet.tree.blogs, 'paginationLocationId': location.id, 'limit': 10, 'offset': offset, 'viewType': 'full'}
),
{'strategy': 'esi'}
) }}
</section>
{% endblock %}
You can’t perform that action at this time.