-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html.twig.dist
86 lines (71 loc) · 3.36 KB
/
index.html.twig.dist
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{{project.getTitle()}}</title>
<link rel="shortcut icon" type="image/x-icon" href="{{asset('images/zeega.ico')}}">
<meta name="robots" content="noindex,follow">
<meta name="description" content="">
<meta name="author" content="">
<!-- FB -->
<meta property="og:site_name" content="Zeega"/>
<meta property="og:title" content="{{project.getTitle()}}"/>
<meta property="og:description" content="{{project.getDescription()}}"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="{{hostname}}{{directory}}{{project.getId()}}"/>
{% if project.getThumbnailUrl() is defined %}
<meta property="og:image" content="{{project.getThumbnailUrl()}}"/>
{% elseif project.getCoverImage() is defined %}
<meta property="og:image" content="{{project.getCoverImage()}}"/>
{% else %}
<meta property="og:image" content="{{asset('images/default_cover.png')}}"/>
{% endif %}
<!-- END FB -->
<!-- STYLESHEETS -->
<link rel="stylesheet" href="{{ asset('js/lib/leaflet/leaflet.css')}}" />
<link rel="stylesheet" type="text/css" href="{{ asset('js/app/player.standalone/dist/release/index.css') }}">
<!-- END STYLESHEETS -->
<meta name="zeega" content="zeega-player"
data-user-thumbnail="{{project.user.thumbUrl}}"
data-views="{{project.views | default(0)}}"
data-directory="{{directory}}"
data-hostname="{{hostname}}"
data-user-id="{{project.user.id}}"
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
data-logged-in=true
{% else %}
data-logged-in=false
{% endif %}
/>
<script type="text/javascript" charset="utf-8" data-requirecontext="_" data-requiremodule="lib/swfobject" src="{{ asset('js/lib/swfobject.js') }}"></script>
<script>
// Session data
sessionStorage.setItem('directory', '{{directory}}');
sessionStorage.setItem('hostname','{{hostname}}');
sessionStorage.setItem('projectId','{{project.getId()}}');
// Google analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33491977-1']);
_gaq.push(['_setDomainName', '.zeega.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
// Because IE sucks
if ( !window.console ) {
console = {log: function() {}};
}
// Project data
var projectJSON = "{{ project_data|e('js') }}";
</script>
<script src="{{ asset('js/app/player.standalone/dist/release/require.js') }}" ></script>
</head>
<body>
<div role="main" id="main">
<div id='overlays'></div>
<div id='player'></div>
</div>
</body>
</html>