Deprecated: Constant E_STRICT is deprecated in /www/hosting/iocbtech.cz/www/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /www/hosting/iocbtech.cz/www/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

templates/projects/detail.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
    
    {% block title %}{{ item.title }} | Projects | {{ parent() }}{% endblock %}
    
    {% block pageclass %}projects-detail-page{% endblock %}
    {% block stylesheets %}
    {{ parent() }}
    <style>
    {% if not item.foto is empty %} 
    #project-{{ item.id }} h1:before {
        background-image: url('{{ asset( item.foto) }}');
    }
    {% endif %}
    </style>
    {% endblock %}
    {% block body %}
    <section class="project-detail-top inverse">
    <div class="container-fluid">
        <div class="row">
            <div class="col-12 content-wrapper dash">
                <p class="breadcrumb"><a href="{{ path('app_projects') }}">Projects</a> <span>—</span> {{ item.title }}</p>
            </div>
        </div>
    </div>
    </section>
    {{ include('projects/top.html.twig') }}
    <section class="project-detail inverse" id="detail">
        <div class="container-fluid">
            <div class="row">
                <div class="col-12 project-item content-wrapper" id="project-{{ item.id }}">
                    <h1>{{ item.title }} <span class="status {{ item.status == 1 ? 'active' : ( item.status == 2 ? 'licensed' : 'inactive' ) }}">{{ item.status == 1 ? 'Active' : ( item.status == 2 ? 'Licensed' : 'Inactive' ) }}</span></h1>
                    <div class="project-wrapper">
    
                        <div class="row project-inner main-content">
                            <div class="col-12 col-lg-7">
                                <p class="subtitle">{{ item.subtitle }}</p>
                                {% if not item.scientists is empty %}
                                <p class="scientists"><strong>Scientists</strong>: <br>
                                {{ item.scientists }}</p>
                                {% endif %}
                                {% if not item.pdffile is empty %}
                                <p>
                                    <a href="{{ asset('files/projects/' ~ item.pdffile) }}" class="btn btn-download">Download PDF</a>
                                </p>
                                {% endif %}
                                {% if not item.challange is empty %}
                                <h4 class="challenge">Challenge</h4>
                                {{ item.challange|raw }}
                                {% endif %}
                                {% if not item.technology is empty %}
                                <h4 class="technology">Technology</h4>
                                {{ item.technology|raw }}
                                {% endif %}
                                {% if not item.opportunity is empty %}
                                <h4 class="opportunity">Commercial opportunity</h4>
                                {{ item.opportunity|raw }}
                                {% endif %}
                                {% if not item.develstatus is empty %}
                                <h4 class="devstat">Development status</h4>
                                {{ item.develstatus|raw }}
                                {% endif %}
                                {% if not item.categories2 is empty %}
                                <h4 class="categories">Categories</h4>
                                {{ item.categories2|raw }}
                                {% endif %}
                                {% if not item.tags is empty %}
                                <h4  class="keywords">Keywords</h4>
                                <p class="keywords">
                                {% for kw in  item.tags|split(';') %}
                                <span>{{ kw }}</span>
                                {% endfor %}
                                </p>
                                {% endif %}
                                {% if not item.readings is empty %}
                                <h4 class="readings">Further reading</h4>
                                {{ item.readings|raw }}
                                {% endif %}
                            </div>                           
                        </div>                           
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-12 content-wrapper">
                    <div class="row">
                        <div class="col-6"><a href="{{ path('app_projects') }}" class="btn btn-primary"><span class="arr-left"></span>Back<div class="d-none d-lg-inline"> to projects</div></a></div>
                        {% set next = '' %}
                        {% set nid = 0 %}
                        {% set curr = false %}
                        {% for p in data %}
                        {% if curr and next == ''  %}{% set next = p.url %}{% set nid = p.id %}{% endif %}
                        {% if p.id == item.id %}{% set curr = true %}{% endif %}
                        {% endfor %}
                        {% if next != '' %}
                        <div class="col-6 text-end"><a href="{{ path('project_detail',{ url: next, id: nid }) }}" class="btn btn-primary">Next<div class="d-none d-lg-inline"> project</div><span class="arr-right"></span></a></div>
                        {% endif %}
                    </div>
                </div>
            </div>
        </div>
    </section>
    
    {% endblock body %}