{# freepost
 # http://freepo.st
 # 
 # Copyright © 2014-2015 zPlus
 # 
 # This file is part of freepost.
 # freepost is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as
 # published by the Free Software Foundation, either version 3 of the
 # License, or (at your option) any later version.
 # 
 # freepost is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 # GNU Affero General Public License for more details.
 # 
 # You should have received a copy of the GNU Affero General Public License
 # along with freepost. If not, see <http://www.gnu.org/licenses/>.
 #}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    {# favicons. Generated with http://realfavicongenerator.net #}
    <link rel="apple-touch-icon" sizes="57x57" href="{{ asset('apple-touch-icon-57x57.png', absolute=true) }}">
    <link rel="apple-touch-icon" sizes="60x60" href="{{ asset('apple-touch-icon-60x60.png', absolute=true) }}">
    <link rel="apple-touch-icon" sizes="72x72" href="{{ asset('apple-touch-icon-72x72.png', absolute=true) }}">
    <link rel="apple-touch-icon" sizes="76x76" href="{{ asset('apple-touch-icon-76x76.png', absolute=true) }}">
    <link rel="apple-touch-icon" sizes="114x114" href="{{ asset('apple-touch-icon-114x114.png', absolute=true) }}">
    <link rel="apple-touch-icon" sizes="120x120" href="{{ asset('apple-touch-icon-120x120.png', absolute=true) }}">
    <link rel="apple-touch-icon" sizes="144x144" href="{{ asset('apple-touch-icon-144x144.png', absolute=true) }}">
    <link rel="apple-touch-icon" sizes="152x152" href="{{ asset('apple-touch-icon-152x152.png', absolute=true) }}">
    <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('apple-touch-icon-180x180.png', absolute=true) }}">
    <link rel="icon" type="image/png" href="{{ asset('favicon-32x32.png', absolute=true) }}" sizes="32x32">
    <link rel="icon" type="image/png" href="{{ asset('android-chrome-192x192.png', absolute=true) }}" sizes="192x192">
    <link rel="icon" type="image/png" href="{{ asset('favicon-96x96.png', absolute=true) }}" sizes="96x96">
    <link rel="icon" type="image/png" href="{{ asset('favicon-16x16.png', absolute=true) }}" sizes="16x16">
    <link rel="manifest" href="{{ asset('manifest.json', absolute=true) }}">
    <meta name="msapplication-TileColor" content="#ffffff">
    <meta name="msapplication-TileImage" content="{{ asset('mstile-144x144.png', absolute=true) }}">
    <meta name="theme-color" content="#ffffff">
    
    {# favicon: show this if there are new unread messages #}
    {% image '@AppBundle/Resources/public/images/favicon-newmessage.png' %}
        <input type="hidden" id="favicon-newmessage" value="{{ asset_url }}" />
    {% endimage %}
    
    <title>{% block title %}{% endblock %}</title>

    {% block stylesheet %}
            
        {% stylesheets
            '@AppBundle/Resources/public/css/main.css'
            '@AppBundle/Resources/public/css/ui-lightness/jquery.css'
        %}
            <link rel="stylesheet" href="{{ asset_url }}" />
        {% endstylesheets %}
            
    {% endblock %}

    {% block javascript %}
            
        {% javascripts
            '@AppBundle/Resources/public/js/jquery.js'
            '@AppBundle/Resources/public/js/jqueryui.js'
        %}
            <script src="{{ asset_url }}"></script>
        {% endjavascripts %}
        
        <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
        <script src="{{ path('fos_js_routing_js', {'callback': 'fos.Router.setData'}) }}"></script>
        
        {# CKEditor JS file must be linked here and not using assetic, because it uses the
           public path to retrieve all files (skins, plugins, etc.)
        #}
        <script type="text/javascript" src="{{ asset('bundles/app/js/ckeditor/ckeditor.js') }}"></script>
    
    {% endblock %}

</head>
<body>

    {% block body %}{% endblock %}
    
    <div class="footer">
        <div class="logo">
            <a class="none" target="_self" href="{{ url('freepost_homepage') }}">
                {% image '@AppBundle/Resources/public/images/logo.png' %}
                    <img src="{{ asset_url }}" alt="" />
                {% endimage %}
            </a>
        </div>
        
        {# Some links #}
        <div class="menu">
            <div class="column">
                
                {# Link to Peers #}
                <div class="item">
                    {% image '@AppBundle/Resources/public/images/peers.png' %}
                        <img src="{{ asset_url }}" alt="" />
                    {% endimage %}
                    <a target="_blank" href="http://peers.community">
                        Peers
                    </a>
                </div>
                
                {# Link to freepost source code #}
                <div class="item">
                    {% image '@AppBundle/Resources/public/images/code.png' %}
                        <img src="{{ asset_url }}" alt="" />
                    {% endimage %}
                    <a target="_blank" href="https://notabug.org/zPlus/freepost">
                        Source code
                    </a>
                </div>
                
                
            </div>
            
            <div class="column">
                
                {# Link to TuxFamily #}
                <div class="item">
                    {% image '@AppBundle/Resources/public/images/tuxfamily.png' %}
                        <img src="{{ asset_url }}" alt="" />
                    {% endimage %}
                    <a target="_blank" href="http://tuxfamily.org">
                        Hosting by TuxFamily
                    </a>
                </div>
                
            </div>
        </div>
        
    </div>
    
</body>
</html>
