Version compatible with Piwik 2.1
[piwik-CASLogin.git] / templates / login.twig
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <meta charset="utf-8">
5     <title>{% if isCustomLogo == false %}Piwik &rsaquo; {% endif %}{{ 'Login_LogIn'|translate }}</title>
6
7     <link rel="shortcut icon" href="plugins/CoreHome/images/favicon.ico"/>
8     {% autoescape false %}
9     {{ includeAssets({"type": "css"}) }}
10     {% endautoescape %}
11     <link rel="stylesheet" type="text/css" href="plugins/Login/stylesheets/login.css"/>
12     <meta name="description" content="{{ 'General_OpenSourceWebAnalytics'|translate }}"/>
13     {% if 'General_LayoutDirection'|translate =='rtl' %}
14         <link rel="stylesheet" type="text/css" href="plugins/Zeitgeist/stylesheets/rtl.css"/>
15     {% endif %}
16 </head>
17 <body id="loginPage">
18
19     {% include "_iframeBuster.twig" %}
20
21     <div id="logo">
22         {% if isCustomLogo == false %}
23             <a href="http://piwik.org" title="{{ linkTitle }}">
24         {% endif %}
25         {% if hasSVGLogo %}
26             <img src='{{ logoSVG }}' title="{{ linkTitle }}" alt="Piwik" class="ie-hide"/>
27             <!--[if lt IE 9]>
28         {% endif %}
29         <img src='{{ logoLarge }}' title="{{ linkTitle }}" alt="Piwik" />
30         {% if hasSVGLogo %}<![endif]-->{% endif %}
31
32         {% if isCustomLogo %}
33             {% set poweredByPiwik %}
34             <i><a href="http://piwik.org/" target="_blank">{{ linkTitle }}</a></i>
35             {% endset %}
36         {% endif %}
37
38         {% if isCustomLogo == false %}
39             </a>
40             <div class="description">
41                 <a href="http://piwik.org" title="{{ linkTitle }}">{{ linkTitle }}</a>
42                 <div class="arrow"></div>
43             </div>
44         {% endif %}
45     </div>
46
47     <section class="loginSection">
48
49 <div id="loginbox">
50     <div id="loginlink" style="text-align:center;">
51                 {{ 'Login_LogIn'|translate }}<br/><br/>
52                 <a href="index.php?module=CASLogin&amp;action=redirectToCAS"><img src="{{ loginImage }}" alt="{{ 'Login_LogIn'|translate }}" style="max-width:50%;"></a>
53     </div>
54 </div>
55
56
57             </div>
58     </section>
59 </body>
60 </html>