-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path_html-head.tpl
136 lines (93 loc) · 6.38 KB
/
_html-head.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ if $gimme->article->defined }}{{ $gimme->article->name }} | {{ elseif $gimme->section->defined }}{{ $gimme->section->name }} | {{ /if }}{{ $gimme->publication->name }}</title>
<meta name="author" content="Tomasz Rondio" >
{{ if empty($siteinfo) }}{{ $siteinfo=['description' => '', 'keywords' => ''] }}{{ /if }}
{{* if an article is active, meta-description of web page will be article's intro, otherwise it will pull site's description from System Preferences (/Configure/System Preferences) *}}
<meta name="description" content="{{ if $gimme->article->defined }}{{ $gimme->article->deck|strip_tags:false|strip|escape:'html':'utf-8' }}{{ else }}{{ $siteinfo.description }}{{ /if }}">
{{* if an article is active, meta-keywords will be generated of article keywords (defined on article edit screen), otherwise it will use site-wide keywords from System Preferences (/Configure/System Preferences) *}}
<meta name="keywords" content="{{ if $gimme->article->defined }}{{ $gimme->article->keywords }}{{ else }}{{$siteinfo.keywords}}{{ /if }}" />
<!-- RSS & Pingback -->
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://{{ $gimme->publication->site }}/en/static/rss/">
{{ if $gimme->article->defined }}{{* Open Graph protocol metatags for Facebook sharing *}}
<meta property="og:title" content="{{$gimme->article->name|html_entity_decode|strip|escape:'html':'utf-8'|regex_replace:'/&(.*?)quo;/':'"'}}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://{{ $gimme->publication->site }}{{ uri }}" />
<meta property="og:site_name" content="{{ $gimme->publication->name }}" />
<meta property="og:description" content="{{$gimme->article->deck|strip_tags:false|trim|escape:'html':'utf-8' }}{{if !$gimme->article->deck}}{{$gimme->article->full_text|strip_tags:false|trim|escape:'html':'utf-8' }}{{/if}}" />
{{ list_article_images }}
<meta property="og:image" content="{{ $gimme->article->image->imageurl }}" />
{{ /list_article_images }}
{{ /if }}
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="{{ url static_file='_img/favicon.ico' }}">
<!-- CSS: implied media="all" -->
<link rel="stylesheet" href="{{ uri static_file="_js/blueimp-gallery/blueimp-gallery-indicator.css" }}">
<link rel="stylesheet" href="{{ uri static_file="_js/blueimp-gallery/blueimp-gallery-video.css" }}">
<link rel="stylesheet" href="{{ uri static_file="_js/blueimp-gallery/blueimp-gallery.css" }}">
<link rel="stylesheet" href="{{ url static_file='_css/style.css' }}">
<!--[if lt IE 9]>
<script src="{{ url static_file='_js/html5.js' }}" type="text/javascript"></script>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
<![endif]-->
<script src="{{ url static_file='_js/jquery.js' }}" type="text/javascript"></script>
<script src="{{ url static_file='_js/helpers.js' }}" type="text/javascript"></script>
</head>
<body>
<div id="cover">
</div>
<div class="container">
<div id="login_popup" class="popup span6 offset3">
<a href="#" class="close"></a>
<div class="content content_text">
{{dynamic}}
<h3 class="popup_title bigger">{{ if $gimme->user->logged_in }}
{{'welcome'|translate}} {{$gimme->user->name}}
{{else}}{{'login'|translate}}{{/if}}</h3>
<div class="styled_form login_form">
{{ if $gimme->user->logged_in }}
<ul>
<li><a href="{{ $view->url(['controller' => 'dashboard', 'action' => 'index'], 'default') }}">{{'dashboard'|translate}}</a></li>
<li><a href="{{ $view->url(['controller' => 'auth', 'action' => 'logout'], 'default') }}">{{'logout'|translate}}</a></li>
</ul>
{{ else }}
<ul class="logininfo" style="display:none">
<li><a href="{{ $view->url(['controller' => 'dashboard', 'action' => 'index'], 'default') }}">{{'dashboard'|translate}}</a></li>
<li><a href="{{ $view->url(['controller' => 'auth', 'action' => 'logout'], 'default') }}">{{'logout'|translate}}</a></li>
</ul>
<form name="login" action="/auth" method="post" id="loginform">
<div class="field_row row">
<label for="l_field_login" class="span2">{{'email'|translate}}</label>
<div class="span3">
<input type="email" name="email" >
<input type="hidden" name="ajax" value="1" />
</div>
</div>
<div class="field_row row">
<label for="l_field_password" class="span2">{{'password'|translate}}</label>
<div class="span3">
<input type="password" name="password">
</div>
</div>
<div class="field_row row">
<div class="span3 offset2">
<ul class="login_menu float_left">
<li><a href="/auth/password-restore">{{'forgotPassword'|translate}}</a></li>
<li><a href="/register">{{'Register'|translate}}</a></li>
</ul>
<input type="submit" value="{{'Login'|translate}}" class="float_right">
</div>
</div></form>
{{/if}}
{{/dynamic}}
</div>
</div>
</div>
</div>