{% extends 'base.html.twig' %}

{% block title %}
    {% if item.seo_title is empty %}
            {{ item.title }} - {{ cover('site','title') }}
        {% else %}
            {{ item.seo_title }} - {{ cover('site','title') }}
    {% endif %}
{% endblock %}
{% block keywords %}{{ item.keywords }}{% endblock %}
{% block description %}{{ item.description }}{% endblock %}
{% block container %}
    <div class="sui-navbar cv-subnav">
        <div class="navbar-inner">
            <div class="sui-container">
                <a href="{{ current_cat.url }}" class="sui-brand">{{ current_cat.title }}</a>
                <ul class="sui-nav pull-right" style="margin-right: 30px;">
                    {% for son_cat in cover('category',{'parent_id':current_cat.parent_id,'except':current_cat.id}) %}
                        <li><a href="{{ son_cat.url }}">{{ son_cat.title }}</a></li>
                    {% endfor %}
                </ul>
            </div>
        </div>
    </div>

    <div class="sui-container">
        <div class="sui-row">
            <div class="span7">
                <div class="fotorama" data-width="100%" data-max-width="100%" data-max-height="548px" data-nav="thumbs" data-autoplay="true" data-stopautoplayontouch="false" data-loop="true">
                    {% for slider in item.extra.xuanchuan %}
                        <img src="{{ slider.img }}">
                    {% endfor %}
                </div>
            </div>
            <div class="span5">
                <div class="cv-product-detail">
                    <h2 class="title">{{ item.title }}</h2>
                    {% if item.extra.pro_desc is not empty %}
                    <p class="pro_desc">{{ item.extra.pro_desc }}</p>
                    {% endif %}
                    {% if item.extra.feature1 is not empty %}
                    <p class="feature">{{ item.extra.feature1 }}</p>
                    {% endif %}
                    {% if item.extra.feature2 is not empty %}
                    <p class="feature">{{ item.extra.feature2 }}</p>
                    {% endif %}
                    {% if item.extra.feature3 is not empty %}
                    <p class="feature">{{ item.extra.feature3 }}</p>
                    {% endif %}
                    {% if item.extra.guige is not empty %}
                    <p class="param">规格：{{ item.extra.guige }}</p>
                    {% endif %}
                    {% if item.extra.price is not empty %}
                    <p class="price">{{ item.extra.price }}</p>
                    {% endif %}
                </div>
            </div>
        </div>
    </div>

    <div class="cv-product-fulltext">
        <div class="sui-container">
            <h4 style="" class="sui-page-header cv-page-header"><span>详细信息</span></h4>
            {{ item.full_text|raw }}
        </div>
    </div>


{% endblock %}