/
layout.php
42 lines (39 loc) · 1.67 KB
/
layout.php
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $sf_user->getCulture() ?>" lang="<?php echo $sf_user->getCulture() ?>">
<head>
<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_partial('global/metas') ?>
<title>CupApp<?php if (has_slot('title')) { echo " - "; include_slot('title'); } ?></title>
<link rel="shortcut icon" href="/favicon.ico" />
<?php include_stylesheets() ?>
<?php include_javascripts() ?>
</head>
<body>
<a name="top"></a>
<div class="wrapper">
<?php include_partial('global/menu') ?>
<?php if ($sf_user->hasFlash('error_message')) : ?>
<div class="top_err_message"><?php echo html_entity_decode($sf_user->getFlash('error_message')) ?></div>
<?php endif;?>
<?php if ($sf_user->hasFlash('success_message')) : ?>
<div class="top_suc_message"><?php echo html_entity_decode($sf_user->getFlash('success_message')) ?></div>
<?php endif;?>
<?php if (has_slot('leftbar')) : ?>
<div class="leftbar">
<?php include_slot('leftbar') ?>
</div>
<?php endif; ?>
<div class="main_content">
<?php echo $sf_content ?>
</div>
<?php if (has_slot('rightbar')) : ?>
<div class="rightbar">
<?php include_slot('rightbar') ?>
</div>
<?php endif; ?>
<div style="clear:both;"></div>
</div>
<?php include_partial('global/footer') ?>
</body>
</html>