forked from thelia/thelia
/
home.html
58 lines (49 loc) · 1.71 KB
/
home.html
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
{extends file="admin-layout.tpl"}
{block name="after-bootstrap-css"}
<link rel="stylesheet" href="{stylesheet file='assets/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css'}">
{/block}
{block name="no-return-functions"}
{$admin_current_location = 'home'}
{/block}
{block name="page-title"}{intl l='Back-office home'}{/block}
{block name="main-content"}
<div class="homepage">
<div id="wrapper" class="container">
{hook name="home.top" location="home_top" }
<div class="row">
{hookblock name="home.block" fields="id,title,content,class"}
{forhook rel="home.block"}
<div class="{if $class}{$class}{else}col-md-4{/if}">
<div {if $id}id="{$id}"{/if} class="general-block-decorator">
{if $title}<div class="title title-without-tabs">{$title}</div>{/if}
{$content nofilter}
</div>
</div>
{/forhook}
{/hookblock}
</div>
{hook name="home.bottom" location="home_bottom" }
</div>
</div>
{/block}
{block name="javascript-initialization"}
<script>
jQuery(function($){
// Get the latest Thelia version
$.ajax({
url: "http://thelia.net/version.php",
beforeSend: function (jqXHR) {
jqXHR.setRequestHeader("Thelia-Version", "{$THELIA_VERSION}");
},
crossDomain: true
}).done(function(data) {
$('#latest-thelia-version').text(data);
}).fail(function() {
$('#latest-thelia-version').text("Unavailable");
});
});
</script>
{/block}
{block name="javascript-last-call"}
{hook name="home.js" location="home-js" }
{/block}