<commit_before><!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
    <meta charset="UTF-8" />
    <title>
    <?php

        echo lang('admin_word_short') . ' - ';
        echo isset($page->module->name) ? $page->module->name . ' - ' : NULL;
        echo isset($page->title) ? $page->title . ' - ' : NULL;
        echo APP_NAME;

    ?></title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <!--    NAILS JS GLOBALS    -->
    <script style="text/javascript">
        window.ENVIRONMENT      = '<?=strtoupper(ENVIRONMENT)?>';
        window.SITE_URL         = '<?=site_url('', isPageSecure())?>';
        window.NAILS            = {};
        window.NAILS.URL        = '<?=NAILS_ASSETS_URL?>';
        window.NAILS.LANG       = {};
        window.NAILS.USER       = {};
        window.NAILS.USER.ID    = <?=activeUser('id')?>;
        window.NAILS.USER.FNAME = '<?=activeUser('first_name')?>';
        window.NAILS.USER.LNAME = '<?=activeUser('last_name')?>';
        window.NAILS.USER.EMAIL = '<?=activeUser('email')?>';
    </script>
    <noscript>
        <style type="text/css">

            .js-only
            {
                display:none;
            }

        </style>
    </noscript>
    <!--    ASSETS  -->
    <link href="//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css">
    <?php

        $this->asset->output('CSS');
        $this->asset->output('CSS-INLINE');

    ?>
    <link rel="stylesheet" type="text/css" media="print" href="<?=NAILS_ASSETS_URL . 'css/nails.admin.print.css'?>" />
    <?php

        $_primary   = app_setting('primary_colour', 'admin')   ? app_setting('primary_colour', 'admin')   : '#171D20';
        $_secondary = app_setting('secondary_colour', 'admin') ? app_setting('secondary_colour', 'admin') : '#515557';
        $_highlight = app_setting('highlight_colour', 'admin') ? app_setting('highlight_colour', 'admin') : '#F09634';

    ?>
    <style type="text/css">

        .admin-branding-text-primary
        {
            color: <?=$_primary?>;
        }
        .admin-branding-background-primary
        {
            background: <?=$_primary?>;
        }

        .admin-branding-text-secondary
        {
            color: <?=$_secondary?>;
        }
        .admin-branding-background-secondary
        {
            background: <?=$_secondary?>;
        }

        .admin-branding-text-highlight
        {
            color: <?=$_highlight?>;
        }
        .admin-branding-background-highlight
        {
            background: <?=$_highlight?>;
        }

        table thead tr th
        {
            background-color : <?=$_primary?>;
        }

    </style>
</head>
<body class="blank">
<?php

    //  Page title
    if (!empty($page->module->name) && !empty($page->title)) {

        $pageTitle = $page->module->name . ' &rsaquo; ' . $page->title;

    } elseif (empty($page->module->name) && !empty($page->title)) {

        $pageTitle = $page->title;

    } elseif (!empty($page->module->name)) {

        $pageTitle = $page->module->name;
    }

    $headerButtons = \Nails\Admin\Helper::getHeaderButtons();

    if (!empty($pageTitle) || !empty($headerButtons)) {

        echo '<div class="page-title">';
            echo '<h1>';
                echo !empty($pageTitle) ? $pageTitle : '';

                if (!empty($headerButtons)) {

                    echo '<span class="headerButtons">';
                    foreach ($headerButtons as $button) {

                        $attr   = array();
                        $attr[] = 'class="awesome small ' . $button['color'] . '"';
                        $attr[] = $button['confirmTitle'] ? 'data-title="' . $button['confirmTitle'] . '"' : '';
                        $attr[] = $button['confirmBody'] ? 'data-body="' . $button['confirmBody'] . '"' : '';

                        $attr = array_filter($attr);

                        echo anchor(
                            $button['url'],
                            $button['label'],
                            implode(' ', $attr)
                        );
                    }
                    echo '</span>';
                }
            echo '</h1>';
        echo '</div>';
    }

    if (!empty($error)) {

        echo '<div class="alert alert-danger">';
            echo '<p>';
                echo '<strong>';
                    echo '<b class="alert-icon fa fa-times-circle"></b>';
                    echo 'Sorry, something went wrong.';
                echo '</strong>';
            echo '</p>';
            echo '<p>' . $error . '</p>';
        echo '</div>';
    }

    if (!empty($negative)) {

        echo '<div class="alert alert-danger">';
            echo '<p>' . $negative . '</p>';
        echo '</div>';
    }
<commit_msg>Fix for admin headerBlank header buttons<commit_after><!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
    <meta charset="UTF-8" />
    <title>
    <?php

        echo lang('admin_word_short') . ' - ';
        echo isset($page->module->name) ? $page->module->name . ' - ' : NULL;
        echo isset($page->title) ? $page->title . ' - ' : NULL;
        echo APP_NAME;

    ?></title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <!--    NAILS JS GLOBALS    -->
    <script style="text/javascript">
        window.ENVIRONMENT      = '<?=strtoupper(ENVIRONMENT)?>';
        window.SITE_URL         = '<?=site_url('', isPageSecure())?>';
        window.NAILS            = {};
        window.NAILS.URL        = '<?=NAILS_ASSETS_URL?>';
        window.NAILS.LANG       = {};
        window.NAILS.USER       = {};
        window.NAILS.USER.ID    = <?=activeUser('id')?>;
        window.NAILS.USER.FNAME = '<?=activeUser('first_name')?>';
        window.NAILS.USER.LNAME = '<?=activeUser('last_name')?>';
        window.NAILS.USER.EMAIL = '<?=activeUser('email')?>';
    </script>
    <noscript>
        <style type="text/css">

            .js-only
            {
                display:none;
            }

        </style>
    </noscript>
    <!--    ASSETS  -->
    <link href="//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css">
    <?php

        $this->asset->output('CSS');
        $this->asset->output('CSS-INLINE');

    ?>
    <link rel="stylesheet" type="text/css" media="print" href="<?=NAILS_ASSETS_URL . 'css/nails.admin.print.css'?>" />
    <?php

        $_primary   = app_setting('primary_colour', 'admin')   ? app_setting('primary_colour', 'admin')   : '#171D20';
        $_secondary = app_setting('secondary_colour', 'admin') ? app_setting('secondary_colour', 'admin') : '#515557';
        $_highlight = app_setting('highlight_colour', 'admin') ? app_setting('highlight_colour', 'admin') : '#F09634';

    ?>
    <style type="text/css">

        .admin-branding-text-primary
        {
            color: <?=$_primary?>;
        }
        .admin-branding-background-primary
        {
            background: <?=$_primary?>;
        }

        .admin-branding-text-secondary
        {
            color: <?=$_secondary?>;
        }
        .admin-branding-background-secondary
        {
            background: <?=$_secondary?>;
        }

        .admin-branding-text-highlight
        {
            color: <?=$_highlight?>;
        }
        .admin-branding-background-highlight
        {
            background: <?=$_highlight?>;
        }

        table thead tr th
        {
            background-color : <?=$_primary?>;
        }

    </style>
</head>
<body class="blank">
<?php

    //  Page title
    if (!empty($page->module->name) && !empty($page->title)) {

        $pageTitle = $page->module->name . ' &rsaquo; ' . $page->title;

    } elseif (empty($page->module->name) && !empty($page->title)) {

        $pageTitle = $page->title;

    } elseif (!empty($page->module->name)) {

        $pageTitle = $page->module->name;
    }

    $headerButtons = \Nails\Admin\Helper::getHeaderButtons();

    if (!empty($pageTitle) || !empty($headerButtons)) {

        echo '<div class="page-title">';
            echo '<h1>';
                echo !empty($pageTitle) ? $pageTitle : '';

                if (!empty($headerButtons)) {

                    echo '<span class="headerButtons">';
                    foreach ($headerButtons as $button) {

                        $sConfirmClass = $button['confirmTitle'] || $button['confirmBody'] ? ' confirm' : '';

                        $attr   = array();
                        $attr[] = 'class="btn btn-xs btn-' . $button['context'] . $sConfirmClass . '"';
                        $attr[] = $button['confirmTitle'] ? 'data-title="' . $button['confirmTitle'] . '"' : '';
                        $attr[] = $button['confirmBody'] ? 'data-body="' . $button['confirmBody'] . '"' : '';

                        $attr = array_filter($attr);

                        if ($button['context'] === 'danger') {
                            $button['label'] = '<i class="fa fa-exclamation-triangle"></i>' . $button['label'];
                        }

                        echo anchor(
                            $button['url'],
                            $button['label'],
                            implode(' ', $attr)
                        ) . ' ';
                    }
                    echo '</span>';
                }
            echo '</h1>';
        echo '</div>';
    }

    if (!empty($error)) {

        echo '<div class="alert alert-danger">';
            echo '<p>';
                echo '<strong>';
                    echo '<b class="alert-icon fa fa-times-circle"></b>';
                    echo 'Sorry, something went wrong.';
                echo '</strong>';
            echo '</p>';
            echo '<p>' . $error . '</p>';
        echo '</div>';
    }

    if (!empty($negative)) {

        echo '<div class="alert alert-danger">';
            echo '<p>' . $negative . '</p>';
        echo '</div>';
    }

{'fraction_non_alphanumeric': 0.198068991376078, 'fraction_numerical': 0.0074990626171728535, 'mean_word_length': 1.7568475452196382, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 199, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2540168', 'n_tokens_mistral': 3347, 'n_tokens_neox': 3155, 'n_words': 555}