Permalink
Fetching contributors…
Cannot retrieve contributors at this time
289 lines (243 sloc) 10.7 KB
{% extends "ClientWebsiteBundle:views:master.html.twig" %}
{% block meta %}{% include "ClientWebsiteBundle:blocks:meta.html.twig" %}{% endblock %}
{% block content %}
<div id="content" vocab="http://schema.org/" typeof="Content">
<div class="jumbotron">
<h1 property="title">{{ content.title }}</h1>
<h2 property="subtitle">{{ content.subtitle }}</h2>
<div class="lead" property="teaser">
{{ content.teaser|raw }}
</div>
</div>
<h2>Multiple Select</h2>
<ul property="multiple">
{% for value in content.multiple %}
<li>{{ value }}</li>
{% endfor %}
</ul>
<h2>Single Select</h2>
<p property="single">{{ content.single }}</p>
<h2>Blocks</h2>
<div property="blocks" typeof="collection">
{% for block in content.blocks %}
<div rel="blocks" typeof="block">
{% if block.type == 'selection' %}
<ul property="multiple">
{% for value in block.multiple %}
<li>{{ value }}</li>
{% endfor %}
</ul>
<p property="single">{{ block.single }}</p>
{% elseif block.type == 'editor_image' %}
{% set viewBlock = view.blocks[loop.index - 1] %}
{% if viewBlock.images.ids|length > 0 %}
{% set displayOption = viewBlock.images.displayOption|default('top') %}
{% if displayOption == 'top' %}
{% set float = 'none' %}
{% elseif displayOption == 'left' %}
{% set float = 'left' %}
{% elseif displayOption == 'right' %}
{% set float = 'right' %}
{% endif %}
{% if float is defined %}
{% for image in block.images %}
{% if float is defined %}
<img src="{{ image.thumbnails['170x170'] }}"
alt="{{ image.name }}"
style="float: {{ float }}"/>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
<div property="article">{{ block.article|default('')|raw }}</div>
{% if viewBlock.images is not null and float is not defined %}
{% for image in block.images %}
<img src="{{ image.thumbnails['170x170'] }}"
alt="{{ image.name }}"/>
{% endfor %}
{% endif %}
{% else %}
<div property="article">{{ block.article|default('')|raw }}</div>
{% endif %}
</div>
{% endfor %}
</div>
<h2>Similar pages</h2>
<ul property="similar_pages">
{% for link in content.similar_pages %}
<li>
<a href="{{ sulu_content_path(link.url) }}">{{ link.title|default('No Title') }}</a>
</li>
{% endfor %}
</ul>
<h2>Additional Information</h2>
<div property="additional_information">
{% for page in content.additional_information %}
<h3><a href="{{ sulu_content_path(page.url) }}">{{ page.title }}</a></h3>
{% if page.article is defined %}
{% autoescape false %}
{{ page.article }}
{% endautoescape %}
{% endif %}
{% endfor %}
</div>
<h2>Embedded Information</h2>
<div property="embedded_information">
{% for snippet in content.embedded_information %}
<h3>{{ snippet.title }}</h3>
{% autoescape false %}
{{ snippet.description }}
{% endautoescape %}
<h4>Links</h4>
<ul>
{% for link in snippet.internalLinks %}
<li>
<a href="{{ sulu_content_path(link.url, link.webspaceKey) }}">{{ link.title }}</a>
</li>
{% endfor %}
</ul>
{% for image in snippet.images %}
<img src="{{ image.thumbnails['170x170'] }}" alt="{{ image.title }}"/>
{% endfor %}
{% endfor %}
</div>
<h2>Internal source</h2>
{% if content.internal_source is not empty %}
<sulu:link href="{{ content.internal_source }}"/>
{% endif %}
<h2>Tags</h2>
<ul property="tags">
{% for tag in content.tags %}
<li>{{ tag }}</li>
{% endfor %}
</ul>
<h2>Categories</h2>
<ul property="categories">
{% for category in content.categories %}
<li>{{ category.name }}</li>
{% endfor %}
</ul>
<h2>Authors</h2>
<div property="authors">
<table width="100%">
<tr>
<th>Name</th>
<th>E-Mail</th>
</tr>
{% for author in content.authors %}
<tr>
<td>{{ author.fullName }}</td>
<td>
{% for email in author.emails %}
<a href="mailto:{{ email.email }}">{{ email.email }}</a>
{% if not loop.last %}&nbsp;|&nbsp;{% endif %}
{% endfor %}
</td>
</tr>
{% endfor %}
</table>
</div>
<h2>Location</h2>
<div property="location">
<table width="100%">
<tr>
<th>Title</th>
<th>Address</th>
</tr>
<tr>
<td>{{ content.location.title|default('') }}</td>
<td>
{{ content.location.street|default('') }} {{ content.location.number|default('') }}
{{ content.location.code|default('') }} {{ content.location.town|default('') }}
{{ content.location.country|default('') }}
</td>
</tr>
</table>
<img src="http://maps.googleapis.com/maps/api/staticmap?center={{ content.location.street|default('') }},{{ content.location.number|default('') }},{{ content.location.code|default('') }} {{ content.location.town|default('') }},{{ content.location.country|default('') }}&zoom={{ content.location.zoom|default('') }}&size=600x300&maptype=roadmap
&markers=color:blue%7Clabel:S%7C{{ content.location.lat|default('') }},{{ content.location.long|default('') }}&sensor=false">
</div>
<h2>Documents</h2>
<div property="documents">
{% for document in content.documents %}
<a href="{{ document.url }}">{{ document.fileVersion.name }}</a>
{% endfor %}
</div>
<h2>Downloads</h2>
<div property="downloads" class="row">
{% for media in content.downloads %}
<div class="col-xs-6 col-sm-3 col-md-3">
<div class="thumbnail">
{% if media.thumbnails['200x200'] is defined %}
<img src="{{ media.thumbnails['200x200'] }}" alt="{{ media.title }}">
{% endif %}
<div class="caption">
<h3>{{ media.title }}</h3>
<p>{{ media.description }}</p>
</div>
</div>
</div>
{% endfor %}
</div>
<h2>Contacts</h2>
{% include 'ClientWebsiteBundle:util:categories.html.twig' with {locale: request.locale, withChildren: true, root: view.contacts.categoryRoot, parameter: view.contacts.categoriesParameter} %}
<div property="contacts" class="row">
{% for contact in content.contacts %}
<div class="col-lg-{{ view.contacts.presentAs }}">
<h5>{{ contact.fullName }}</h5>
<p>{{ contact.tags|join(', ') }}</p>
</div>
{% endfor %}
</div>
<h2>Accounts</h2>
{% include 'ClientWebsiteBundle:util:categories.html.twig' with {locale: request.locale, withChildren: true, root: view.accounts.categoryRoot, parameter: view.accounts.categoriesParameter} %}
<div property="accounts" class="row">
{% for account in content.accounts %}
<div class="col-lg-{{ view.accounts.presentAs }}">
<h5>{{ account.name }}</h5>
<p>{{ account.tags|join(', ') }}</p>
</div>
{% endfor %}
</div>
<h2>Configuration</h2>
<table class="table">
<tbody>
<tr>
<td>Note</td>
<td property="note">{{ content.note }}</td>
</tr>
<tr>
<td>Phone</td>
<td property="phone">{{ content.phone }}</td>
</tr>
<tr>
<td>Password</td>
<td property="password">{{ content.password }}</td>
</tr>
<tr>
<td>Source</td>
<td property="source">{{ content.source }}</td>
</tr>
<tr>
<td>Email</td>
<td property="email">{{ content.email }}</td>
</tr>
<tr>
<td>Color</td>
<td property="color">{{ content.color }}</td>
</tr>
<tr>
<td>Date</td>
<td property="date">{{ content.date }}</td>
</tr>
<tr>
<td>Time</td>
<td property="time">{{ content.time }}</td>
</tr>
<tr>
<td>Checkbox</td>
<td property="checkbox">{{ content.checkbox }}</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}