<div ng-app="Siberian">
    <div id="fb-root"></div>

    <script type="text/ng-template" id="locked_page.html">
        <?php echo $this->getPartialHtml("padlock"); ?>
    </script>
    <script type="text/ng-template" id="locked_app.html">
        <?php echo $this->getPartialHtml("application_is_locked"); ?>
    </script>

    <div player-link></div>
    <div id="wrapper" class="background" ng-class="direction">
        <div ng-view class="at-view-slide background" ng-class="code" ng-if="!current_page_is_locked && !application_is_locked"></div>
        <locked-page class="scale-fade background fullscreen" ng-if="current_page_is_locked && !application_is_locked"></locked-page>
        <locked-app class="background fullscreen" ng-if="application_is_locked"></locked-app>
        <sb-loader class="global_loader background" is-loading="app_loader_is_visible" size="'48'" block="'background'" animation="'no'"></sb-loader>
    </div>
    <script type="text/javascript">
        var APP_URL = "<?php echo $this->getApplication()->getUrl(); ?>";
        var BASE_URL = "<?php echo str_replace($this->getRequest()->getPathInfo(), "", $this->getRequest()->getRequestUri()); ?>";
        if(BASE_URL.indexOf('/') !== 0) BASE_URL = '/'+BASE_URL;
        var ORIG_URL = "<?php echo $this->getRequest()->getRequestUri(); ?>";
        if(ORIG_URL.indexOf('/') !== 0) ORIG_URL = '/'+ORIG_URL;
    </script>

    <?php echo $this->getPartialHtml("templates"); ?>

</div>
