<?php
$hasSideBar = has_component_slot('sideBar');
?>
<!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">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <?php include_javascripts() ?>
    <script type="text/javascript">
    uc.common.initplayer("<?php echo flash_path('flowplayer-3.1.3.swf'); ?>");
    </script>
    <link rel="shortcut icon" href="/favicon.ico" />
  </head>
  <body>
    <div id="global-wrapper">
      <div id="global">
        <div id="page-wrapper">
          <div id="page">
            <div id="header">
              <?php include_component('partials', 'userPanel'); ?>
              <?php include_partial('partials/header')?>
              <?php include_component('partials', 'navigation'); ?>
            </div>
            <?php if (has_slot('sideBar')): ?>
              <div id="content-wrapper" class="sidebar" >
                <div id="sidebar">
                <?php include_slot('sideBar'); ?>
                </div>
            <?php else: ?>
              <div id="content-wrapper"<?php if ($hasSideBar) echo ' class="sidebar"' ;?>>
              <?php if ($hasSideBar): ?>
                <div id="sidebar">
                <?php include_component_slot('sideBar'); ?>
                </div>
              <?php endif; ?>
            <?php endif; ?>
              <div id="content">
                <?php echo $sf_content ?>
              </div>
              
            </div>
            <div id="footer">
          	  <?php include_partial('partials/footer')?>
            </div>
            <!--FOOTER END-->
          </div>
        </div>
      </div>
   	</div>
  </body>
</html>
