<commit_before>{% extends '::ojsbase.html.twig' %}
{% block title %}{{ 'title.home'|trans }} {{ parent() }}{% endblock %}
{% set hideleft = 1 %}
{% block stylesheets %}
    {{ parent() }}

    {% stylesheets "@bxslider_css" output="assets/prod/js/bxslider.css" %}
    <link rel="stylesheet" href="{{ asset_url }}">
    {% endstylesheets %}
    <style type="text/css">
        .bx-wrapper {
            box-shadow: none;
            border: 1px solid #efefef;
            height: 400px;
            overflow: hidden;
        }
        #logo {
            max-height: 140px;
            max-width: 140px;
        }

        #stats {
            margin: 20px auto;
            width: 300px;
            text-align: center;
            color: #000;
        }

        #search_section {
            height: 100px;
            margin-top: 50px;
        }

        @media (max-width: 360px) {
            #homepage-buttons a {
                width: 220px;
                margin-top: 3px;
                text-align: left;
            }
        }
    </style>
{% endblock %}
{% block body %}
    <div class="container">
        <section role="presentation">
            <div class="row">
                <div class="col-md-4 col-md-offset-4 text-center">
                    <a href="{{ path("ojs_public_index") }}"><img id="logo" src="{{ ojs_logo }}"/></a>
                </div>
            </div>
        </section>
        <section role="search" id="search_section">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <form action="{{ path('ojs_search_index') }}" method="get">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" value=""
                                   placeholder="{{ "search.on.everywhere" | trans({'%project_name%' : project_name}) }}"
                                   id="q"/>
                            {# form_widget(switcher.journal) #}
                            <span class="input-group-btn">
                                        <button class="btn btn-primary" type="submit" title="{{ "search"|trans }}"><i
                                                    class="fa fa-search"></i></button>
                                    </span>
                        </div>
                        <input type="hidden" name="type" value="basic" id="search-type">
                    </form>
                    <div id="stats">
                        <dl class="home-stats">
                            <dd>
                                <span>{{ stats.journal|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "journal"|trans }}
                            </dd>
                            <dd>
                                <span>{{ stats.article|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "article"|trans }}
                            </dd>
                            <dd>
                                <span>{{ stats.user|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "user"|trans }}
                            </dd>
                        </dl>
                    </div>
                </div>
            </div>
        </section>
        <section role="actions">
            <div class="row">
                <div class="col-md-12 col-xs-12">
                    <p id="homepage-buttons" class="text-center">
                        {% if not app.user %}
                            <a href="{{ path('fos_user_registration_register') }}"
                               class="btn btn-primary btn-labeled">
                                    <span class="btn-label pull-left">
                                        <i class="fa fa-user fa-fw"></i>
                                    </span>
                                {{ "register"|trans }}
                            </a>
                        {% endif %}

                        {% if publisherApplicationAllowance %}
                            <a href="{{ url("ojs_apply_publisher") }}"
                               class="btn btn-primary  btn-labeled">
                                    <span class="btn-label pull-left">
                                        <i class="fa fa-institution fa-fw"></i>
                                    </span>
                                {{ 'application.publisher.apply'|trans }}
                            </a>
                        {% endif %}
                        {% if journalApplicationAllowance %}
                            <a href="{{ url('ojs_apply_journal') }}" class="btn btn-primary btn-labeled">
                                    <span class="btn-label pull-left">
                                        <i class="fa fa-book fa-fw"></i>
                                    </span>
                                {{ "application.journal.apply"|trans }}
                            </a>
                        {% endif %}
                    </p>
                </div>
            </div>
        </section>
        <section role="presentation">
            <div class="row">
                <div class="col-xs-12">
                    {% include '::slider.html.twig' %}
                </div>
            </div>
        </section>
        <section role="featured">
            <h4 class="page-header text-success"><i class="fa fa-trophy"></i> {{ 'featured'|trans }}</h4>

            <div class="row">
                <div class="col-md-12 col-xs-12">
                    <div class="row">
                        {% for journal in journals %}
                            {% set journalDefault = journal.setDefaultLocale(app.request.defaultLocale) %}
                            {% include '::journal.html.twig' %}
                        {% endfor %}
                    </div>
                </div>
            </div>
        </section>
        {% if posts|length>0 %}
            <section role="posts">
                <h1>{{ 'title.posts'|trans }}</h1>
                <div class="row">
                    <ul class="fa-ul">
                    {% for post in posts %}
                            <li>
                                <i class="fa-li fa fa-file-text-o"></i>
                                <a href="{{ path('ojs_site_post', {'slug': post.slug}) }}">
                                    <h5>{{ post.title }}</h5>
                                </a>
                            </li>
                        {% endfor %}
                    </ul>
                </div>
            </section>
        {% endif %}
        <!--
        <section role="topics">
            <h4 class="page-header text-info"><i class="fa fa-bookmark"></i> {{ "subject.plural"|trans }}</h4>

            <div class="row">
                <div class="col-md-12 col-xs-12 home-subject-tree">
                    {{ subjects|raw }}
                </div>
            </div>
        </section>
        -->
    </div>
{% endblock %}
{% block javascripts %}
    {{ parent() }}<commit_msg>Make the header of blog posts smaller and more beautiful<commit_after>{% extends '::ojsbase.html.twig' %}
{% block title %}{{ 'title.home'|trans }} {{ parent() }}{% endblock %}
{% set hideleft = 1 %}
{% block stylesheets %}
    {{ parent() }}

    {% stylesheets "@bxslider_css" output="assets/prod/js/bxslider.css" %}
    <link rel="stylesheet" href="{{ asset_url }}">
    {% endstylesheets %}
    <style type="text/css">
        .bx-wrapper {
            box-shadow: none;
            border: 1px solid #efefef;
            height: 400px;
            overflow: hidden;
        }
        #logo {
            max-height: 140px;
            max-width: 140px;
        }

        #stats {
            margin: 20px auto;
            width: 300px;
            text-align: center;
            color: #000;
        }

        #search_section {
            height: 100px;
            margin-top: 50px;
        }

        @media (max-width: 360px) {
            #homepage-buttons a {
                width: 220px;
                margin-top: 3px;
                text-align: left;
            }
        }
    </style>
{% endblock %}
{% block body %}
    <div class="container">
        <section role="presentation">
            <div class="row">
                <div class="col-md-4 col-md-offset-4 text-center">
                    <a href="{{ path("ojs_public_index") }}"><img id="logo" src="{{ ojs_logo }}"/></a>
                </div>
            </div>
        </section>
        <section role="search" id="search_section">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <form action="{{ path('ojs_search_index') }}" method="get">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" value=""
                                   placeholder="{{ "search.on.everywhere" | trans({'%project_name%' : project_name}) }}"
                                   id="q"/>
                            {# form_widget(switcher.journal) #}
                            <span class="input-group-btn">
                                        <button class="btn btn-primary" type="submit" title="{{ "search"|trans }}"><i
                                                    class="fa fa-search"></i></button>
                                    </span>
                        </div>
                        <input type="hidden" name="type" value="basic" id="search-type">
                    </form>
                    <div id="stats">
                        <dl class="home-stats">
                            <dd>
                                <span>{{ stats.journal|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "journal"|trans }}
                            </dd>
                            <dd>
                                <span>{{ stats.article|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "article"|trans }}
                            </dd>
                            <dd>
                                <span>{{ stats.user|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "user"|trans }}
                            </dd>
                        </dl>
                    </div>
                </div>
            </div>
        </section>
        <section role="actions">
            <div class="row">
                <div class="col-md-12 col-xs-12">
                    <p id="homepage-buttons" class="text-center">
                        {% if not app.user %}
                            <a href="{{ path('fos_user_registration_register') }}"
                               class="btn btn-primary btn-labeled">
                                    <span class="btn-label pull-left">
                                        <i class="fa fa-user fa-fw"></i>
                                    </span>
                                {{ "register"|trans }}
                            </a>
                        {% endif %}

                        {% if publisherApplicationAllowance %}
                            <a href="{{ url("ojs_apply_publisher") }}"
                               class="btn btn-primary  btn-labeled">
                                    <span class="btn-label pull-left">
                                        <i class="fa fa-institution fa-fw"></i>
                                    </span>
                                {{ 'application.publisher.apply'|trans }}
                            </a>
                        {% endif %}
                        {% if journalApplicationAllowance %}
                            <a href="{{ url('ojs_apply_journal') }}" class="btn btn-primary btn-labeled">
                                    <span class="btn-label pull-left">
                                        <i class="fa fa-book fa-fw"></i>
                                    </span>
                                {{ "application.journal.apply"|trans }}
                            </a>
                        {% endif %}
                    </p>
                </div>
            </div>
        </section>
        <section role="presentation">
            <div class="row">
                <div class="col-xs-12">
                    {% include '::slider.html.twig' %}
                </div>
            </div>
        </section>
        <section role="featured">
            <h4 class="page-header text-success"><i class="fa fa-trophy"></i> {{ 'featured'|trans }}</h4>
            <div class="row">
                <div class="col-md-12 col-xs-12">
                    <div class="row">
                        {% for journal in journals %}
                            {% set journalDefault = journal.setDefaultLocale(app.request.defaultLocale) %}
                            {% include '::journal.html.twig' %}
                        {% endfor %}
                    </div>
                </div>
            </div>
        </section>
        {% if posts|length>0 %}
            <section role="posts">
                <h4 class="page-header text-success">
                    <i class="fa fa-file-text"></i>
                    {{ 'title.posts'|trans }}
                </h4>
                <div class="row">
                    <ul class="fa-ul">
                    {% for post in posts %}
                            <li>
                                <i class="fa-li fa fa-file-text-o"></i>
                                <a href="{{ path('ojs_site_post', {'slug': post.slug}) }}">
                                    <h5>{{ post.title }}</h5>
                                </a>
                            </li>
                        {% endfor %}
                    </ul>
                </div>
            </section>
        {% endif %}
        <!--
        <section role="topics">
            <h4 class="page-header text-info"><i class="fa fa-bookmark"></i> {{ "subject.plural"|trans }}</h4>

            <div class="row">
                <div class="col-md-12 col-xs-12 home-subject-tree">
                    {{ subjects|raw }}
                </div>
            </div>
        </section>
        -->
    </div>
{% endblock %}
{% block javascripts %}
    {{ parent() }}
{'fraction_non_alphanumeric': 0.1444115419048275, 'fraction_numerical': 0.00840162523242201, 'mean_word_length': 0.9055242094213358, 'pattern_counts': {'":': 0, '<': 249, '<?xml version=': 0, '>': 251, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 56, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4906421', 'n_tokens_mistral': 3851, 'n_tokens_neox': 3473, 'n_words': 688}