<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# {{ CONFIG.metadata.onefootball.social.facebook.app_name }}: http://ogp.me/ns/fb/{{ CONFIG.metadata.onefootball.social.facebook.app_name }}#">
    <head>
        <title ng-bind="pageTitle"></title>

        <meta http-equiv="x-dns-prefetch-control" content="on">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name="google" value="notranslate" />
        <link rel="dns-prefetch" href="//images.iliga.de">
        <link rel="dns-prefetch" href="//feedmonster.iliga.de">
        <link rel="dns-prefetch" href="//vintagemonster.iliga.de">
        <link rel="dns-prefetch" href="//webanalytics.localytics.com">

        <!-- https://prerender.io/js-seo/angularjs-seo-get-your-site-indexed-and-to-the-top-of-the-search-results/ -->
        <meta name="fragment" content="!">

        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="theme-color" content="#32B846">
        <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1; user-scalable=no; maximum-scale=1.0; minimal-ui">

        <!--Favicons for all different devices-->
        <link rel="shortcut icon" href="favicon.ico">
        <link rel="apple-touch-icon" sizes="180x180" href="/assets/favicons/apple-touch-icon-180x180.png?{{ CONFIG.build_number }}">
        <link rel="apple-touch-icon" sizes="152x152" href="/assets/favicons/apple-touch-icon-152x152.png?{{ CONFIG.build_number }}">
        <link rel="apple-touch-icon" sizes="144x144" href="/assets/favicons/apple-touch-icon-144x144.png?{{ CONFIG.build_number }}">
        <link rel="apple-touch-icon" sizes="120x120" href="/assets/favicons/apple-touch-icon-120x120.png?{{ CONFIG.build_number }}">
        <link rel="apple-touch-icon" sizes="114x114" href="/assets/favicons/apple-touch-icon-114x114.png?{{ CONFIG.build_number }}">
        <link rel="apple-touch-icon" sizes="76x76" href="/assets/favicons/apple-touch-icon-76x76.png?{{ CONFIG.build_number }}">
        <link rel="apple-touch-icon" sizes="72x72" href="/assets/favicons/apple-touch-icon-72x72.png?{{ CONFIG.build_number }}">
        <link rel="apple-touch-icon" sizes="60x60" href="/assets/favicons/apple-touch-icon-60x60.png?{{ CONFIG.build_number }}">
        <link rel="apple-touch-icon" sizes="57x57" href="/assets/favicons/apple-touch-icon-57x57.png?{{ CONFIG.build_number }}">
        <link rel="icon" sizes="192x192" type="image/png" href="/assets/favicons/favicon-192x192.png?{{ CONFIG.build_number }}">
        <link rel="icon" sizes="160x160" type="image/png" href="/assets/favicons/favicon-160x160.png?{{ CONFIG.build_number }}">
        <link rel="icon" sizes="96x96" type="image/png" href="/assets/favicons/favicon-96x96.png?{{ CONFIG.build_number }}">
        <link rel="icon" sizes="32x32" type="image/png" href="/assets/favicons/favicon-32x32.png?{{ CONFIG.build_number }}">
        <link rel="icon" sizes="16x16" type="image/png" href="/assets/favicons/favicon-16x16.png?{{ CONFIG.build_number }}">

        <meta name="msapplication-TileColor" content="#00aba9">
        <meta name="msapplication-TileImage" content="/assets/favicons/mstile-144x144.png">
        <meta name="msapplication-config" content="/assets/favicons/browserconfig.xml">

        <!-- Smart App Banners: http://david-smith.org/blog/2012/09/20/implementing-smart-app-banners/ -->
        <meta name="apple-itunes-app" content="app-id={{ CONFIG.metadata.onefootball.ios.app_id }}">

        <meta name="author" content="{{ CONFIG.metadata.onefootball.author }}">

        <meta ng-repeat="(key, value) in metadata" name="{{ key }}" property="{{ key }}" content="{{ value }}">

        <link href='http://fonts.googleapis.com/css?family=Roboto:300,400,500&subset=latin,cyrillic-ext,cyrillic,latin-ext' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Roboto+Condensed&subset=latin,cyrillic,latin-ext,cyrillic-ext' rel='stylesheet' type='text/css'>


        <link href="/css/all.css?14acf15f887" rel="stylesheet">

        <script>
            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
                    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','bower_components/bower-google-analytics/analytics.js','ga');
        </script>
        <script src="all.js?14acf15f887"></script>
    </head>
    <body of-prevent-body-scroll class="{{'context-' + context }} {{'env-' + CONFIG.env}}" ng-class="{'mobile-device': mobile, 'desktop-device': !mobile, 'ios-device': (device === CONFIG.platforms.ios), 'wp-device' : (device === CONFIG.platforms.windowsPhone)}">
        <!--[if lt IE 10]>
        <div class="browsehappy-container">
            <div class="browserhappy-wrapper">
                <img src="assets/images/logo_horizontal.png"/>
                <p class="browsehappy">You are using an outdated browser. Please <a href="http://browsehappy.com/">upgrade your browser</a>.</p>
            </div>
        </div>
        <![endif]-->
        <div ng-include="'view/layout/network-monitor.html'" class="floating-container network-monitor"></div>
        <div ng-controller="NavigationController" ng-include="'view/layout/navigation.html'"></div>
        <div class="panel-col">
            <div role="complementary" ng-include="'view/layout/menu.html'"></div>
        </div>
        <div class="content-col {{'margin-' + context}}">
            <div ng-view></div>
        </div>
    </body>
    <script>
        (function () {

            var LANG = undefined;
            var qs = queryStringToJSON();
            if ('locale' in qs) {
                LANG = qs['locale'];
            }
            if ('fb_locale' in qs) {
                LANG = qs['fb_locale'];
            }

            // manual bootstrap, replaces ng-app="OneFootballApp"
            // UI_LANG (string) and CONTENT_LANG (array) will be set an accessible using DI, see LocaleService.js
            deferredBootstrapper.bootstrap({
                element: document,
                module: 'OneFootballApp',
                injectorModules: ['OneFootballAppConfig'],
                resolve: {
                    UI_LOCALE: ['$q', 'CONFIG', function ($q, CONFIG) {
                        var d = $q.defer();

                        var browserLanguage;
                        if (LANG) {
                            browserLanguage = LocaleUtils.extractLanguage(LANG);
                            browserLanguage = LocaleUtils.transformTranslationCode(browserLanguage);
                        } else {
                            // here we could use browser language for the UI but we decide to use the same as for content
                            //browserLanguage = LocaleUtils.detectBrowserLanguage();
                            browserLanguage = LocaleUtils.buildLocalesList()[0];
                            browserLanguage = LocaleUtils.transformTranslationCode(browserLanguage);
                        }
                        if (CONFIG.supported_languages.ui.indexOf(browserLanguage) == -1) {
                            browserLanguage = CONFIG.default_lang;
                        }
                        d.resolve(browserLanguage);

                        return d.promise;
                    }],
                    CONTENT_LANG: ['$q', function ($q) {
                        var d = $q.defer();

                        var languages = undefined;
                        if (LANG) {
                            languages = LocaleUtils.buildLocalesList([LANG]);
                        } else {
                            languages = LocaleUtils.buildLocalesList();
                        }

                        d.resolve(languages);

                        return d.promise;
                    }]
                }
            });
        })();
    </script>
</html>
