GemsTracker/gemstracker-library

View on GitHub
layouts/scripts/gems-bootstrap.phtml

Summary

Maintainability
Test Coverage
<?php echo $this->doctype(); ?>

<html <?php echo 'xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$this->locale.'"' ?> lang="<?php echo $this->locale; ?>">
<head>
    <meta charset="utf-8">
    <?php echo $this->headMeta(); ?>

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php echo $this->headTitle(); ?>
    <?php if ($this->jQuery) {
        echo $this->jQuery()->renderStylesheets();
    }
    if (\MUtil_Bootstrap::enabled()) {
        echo \MUtil_Bootstrap::bootstrap()->renderStylesheets();
    }
    ?>
    <?php echo $this->headLink(); ?>


    <?php echo $this->headStyle(); ?>

</head>
<body>
    <div id="container" class="container-fluid">
        <div id="header" class="row"><?php if ($this->header) { echo $this->header->render($this); }?></div>
        <div id="header_bar" class="row"><?php if ($this->header_bar) { echo $this->header_bar->render($this); } ?></div>
<?php

?>
        <div class="row">
            <?php if ($this->navigation || $this->menuHtml) { ?>
            <div id="main" class="col-sm-8 col-sm-push-4 col-md-9 col-md-push-3">
            <?php } else { ?>
            <div id="main" class="col-sm-12">
            <?php } ?>
            <?php
                    if ($this->main) {
                        echo $this->main->render($this);
                    }
                    echo $this->layout()->content; ?>

            </div>
            <?php if ($this->navigation || $this->menuHtml) { ?>
            <div id="menu" class="col-sm-4 col-sm-pull-8 col-md-3 col-md-pull-9 navbar navbar-default" role="navigation">

                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>

                <div class="collapse navbar-collapse">
                    <?php
                echo $this->navigation()->menu();
                echo $this->menuHtml; ?>


                </div>
            </div>
            <?php } ?>
        </div>


        <div id="footer" class="row"><?php
        if ($this->footer) {
            echo $this->footer->render($this);
        }
        ?>
        </div>
    </div>


<?php if ($this->jQuery) {
        //echo
        echo $this->jQuery()->renderJavascript();
    }
    if (\MUtil_Bootstrap::enabled()) {
        echo \MUtil_Bootstrap::bootstrap()->renderJavascript();
    }
?>
<?php
echo \MUtil_Echo::out();
echo $this->headScript();
echo $this->inlineScript();
?>
</body>
</html>