Created
May 2, 2013 12:31
-
-
Save Haraldson/5501894 to your computer and use it in GitHub Desktop.
Failing product template
This file contains hidden or 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
{% extends noLayout ? viewbaseLayout : 'KTQProductSitesBundle::pagelayout.html.twig' %} | |
{% block content %} | |
{% set pricesOrderContentId = content.getField('link_prices_order').value.destinationContentId %} | |
{% set freeTrialContentId = content.getField('link_free_trial').value.destinationContentId %} | |
<div class="product landing span12"> | |
<div class="row"> | |
<div class="header span12"> | |
<div class="row"> | |
<div class="span5"> | |
<h1>{{ ez_render_field(content, 'name') }}</h1> | |
<p class="caption">{{ ez_render_field(content, 'caption') }}</p> | |
{{ ez_render_field(content, 'excerpt') }} | |
{# LOCATION BASED #} | |
{#% if pricesOrderContentId or freeTrialContentId %} | |
{% if pricesOrderContentId %} | |
{{ render(controller('ez_content:viewLocation', { | |
'locationId': 72, | |
'viewType': 'link', | |
'params': { | |
foo: 'bar' | |
} | |
})) }} | |
{% endif %} | |
{% if freeTrialContentId %} | |
{{ render(controller('ez_content:viewLocation', { | |
'locationId': 71, | |
'viewType': 'link' | |
})) }} | |
{% endif %} | |
{% endif %#} | |
{# CONTENT BASED #} | |
{% if pricesOrderContentId or freeTrialContentId %} | |
{% if pricesOrderContentId %} | |
{{ render(controller('ez_content:viewContent', { | |
contentId: pricesOrderContentId, | |
viewType: 'link', | |
params: { | |
objectParameters: {} | |
} | |
})) }} | |
{% endif %} | |
{% if freeTrialContentId %} | |
{{ render(controller('ez_content:viewContent', { | |
contentId: freeTrialContentId, | |
viewType: 'link' | |
})) }} | |
{% endif %} | |
{% else %} | |
<a href="" class="btn btn-success btn-large">Priser og bestilling</a> | |
<a href="" class="btn btn-info btn-large">Prøv gratis</a> | |
{% endif %} | |
</div> | |
<div class="span7"> | |
<h2 style="height: 325px; line-height: 350px; background: #eee; text-align: center; color: #ddd; font-size: 160px">Video</h2> | |
</div> | |
</div> | |
<hr class="full-width" /> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="selling-points span12"> | |
<div class="row"> | |
{{ render(controller('KTQProductSitesBundle:ProductView:sellingPoints', { parentId: location.id })) }} | |
</div> | |
<hr class="full-width" /> | |
</div> | |
</div> | |
</div> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment