<commit_before><?php $this->layout('main', ['title' => _('Media Manager'), 'manual' => true, 'page_class' => 'page-file-manager']) ?>

<?php $this->start('custom_js') ?>
<script type="text/javascript" src="<?=$url->content('vendors/bower_components/store-js/store.min.js') ?>"></script>
<script type="text/javascript" src="<?=$url->content('js/radio.js') ?>"></script>
<?php $this->stop('custom_js') ?>

<div class="block-header">
    <h2><?=$this->e($station->name) ?></h2>
</div>

<div class="row">
    <div class="col-sm-12">
        <div class="card">
            <div class="card-header ch-alt">
                <div class="row">
                    <div class="col-md-8">
                        <h2><?=_('Media Manager') ?></h2>
                        <div id="breadcrumb" class="">&nbsp;</div>
                    </div>
                    <div class="col-md-4 text-right">
                        <div class="progress">
                            <div class="progress-bar" role="progressbar" aria-valuenow="<?=$space_percent ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?=$space_percent ?>%;">
                                <span class="sr-only"><?=$space_percent ?>%</span>
                            </div>
                        </div>
                        <?=sprintf(_('%s of %s Used (%s Free)'), $space_used, $space_total, $space_free) ?>
                    </div>
                </div>
            </div>

            <div class="card-body card-padding-sm">
                <div id="upload_progress"></div>
                <div id="file_drop_target">
                    <?=_('Drag files here to upload to this folder or ') ?>
                    <input type="file" multiple />
                </div>

                <div class="row p-t-20">
                    <div class="col-sm-6">
                        <?=_('With selected:') ?>

                    <?php if (!empty($playlists)): ?>
                        <div class="btn-group">
                            <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                <?=_('Add to Playlist') ?>
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu" role="menu">
                            <?php foreach($playlists as $playlist_id => $playlist_name): ?>
                                <li><a href="#" class="btn-batch" data-action="playlist_<?=$playlist_id ?>"><?=$this->e($playlist_name) ?></a></li>
                            <?php endforeach; ?>
                            </ul>
                        </div>
                    <?php endif; ?>
                        <button type="button" class="btn btn-warning btn-batch" data-action="clear"><?=_('Clear Playlists') ?></button>
                        <button type="button" class="btn btn-danger btn-batch" data-action="delete"><?=_('Delete') ?></button>
                    </div>
                    <div class="col-sm-6">
                        <form method="post" id="mkdir">
                        <div class="input-group">
                            <input name="name" type="text" class="form-control" placeholder="<?=_('New Folder Name') ?>" aria-label="...">
                            <div class="input-group-btn">
                                <button type="submit" class="btn btn-default"><?=_('Create Folder') ?></button>
                            </div>
                        </div>
                        </form><commit_msg>Closes #80 -- Add icons to media management buttons.<commit_after><?php $this->layout('main', ['title' => _('Media Manager'), 'manual' => true, 'page_class' => 'page-file-manager']) ?>

<?php $this->start('custom_js') ?>
<script type="text/javascript" src="<?=$url->content('vendors/bower_components/store-js/store.min.js') ?>"></script>
<script type="text/javascript" src="<?=$url->content('js/radio.js') ?>"></script>
<?php $this->stop('custom_js') ?>

<div class="block-header">
    <h2><?=$this->e($station->name) ?></h2>
</div>

<div class="row">
    <div class="col-sm-12">
        <div class="card">
            <div class="card-header ch-alt">
                <div class="row">
                    <div class="col-md-8">
                        <h2><?=_('Media Manager') ?></h2>
                        <div id="breadcrumb" class="">&nbsp;</div>
                    </div>
                    <div class="col-md-4 text-right">
                        <div class="progress">
                            <div class="progress-bar" role="progressbar" aria-valuenow="<?=$space_percent ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?=$space_percent ?>%;">
                                <span class="sr-only"><?=$space_percent ?>%</span>
                            </div>
                        </div>
                        <?=sprintf(_('%s of %s Used (%s Free)'), $space_used, $space_total, $space_free) ?>
                    </div>
                </div>
            </div>

            <div class="card-body card-padding-sm">
                <div id="upload_progress"></div>
                <div id="file_drop_target">
                    <?=_('Drag files here to upload to this folder or ') ?>
                    <input type="file" multiple />
                </div>

                <div class="row p-t-20">
                    <div class="col-sm-6">
                        <?=_('With selected:') ?>

                    <?php if (!empty($playlists)): ?>
                        <div class="btn-group">
                            <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                <i class="zmdi zmdi-playlist-plus"></i> <?=_('Add to Playlist') ?>
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu" role="menu">
                            <?php foreach($playlists as $playlist_id => $playlist_name): ?>
                                <li><a href="#" class="btn-batch" data-action="playlist_<?=$playlist_id ?>"><?=$this->e($playlist_name) ?></a></li>
                            <?php endforeach; ?>
                            </ul>
                        </div>
                    <?php endif; ?>
                        <button type="button" class="btn btn-warning btn-batch" data-action="clear"><i class="zmdi zmdi-playlist-audio"></i> <?=_('Clear Playlists') ?></button>
                        <button type="button" class="btn btn-danger btn-batch" data-action="delete"><i class="zmdi zmdi-delete"></i> <?=_('Delete') ?></button>
                    </div>
                    <div class="col-sm-6">
                        <form method="post" id="mkdir">
                        <div class="input-group">
                            <input name="name" type="text" class="form-control" placeholder="<?=_('New Folder Name') ?>" aria-label="...">
                            <div class="input-group-btn">
                                <button type="submit" class="btn btn-default"><i class="zmdi zmdi-folder"></i> <?=_('Create Folder') ?></button>
                            </div>
                        </div>
                        </form>
{'fraction_non_alphanumeric': 0.18325176726481784, 'fraction_numerical': 0.004622077215878194, 'mean_word_length': 1.4638312123241795, 'pattern_counts': {'":': 0, '<': 187, '<?xml version=': 0, '>': 211, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6950297', 'n_tokens_mistral': 2018, 'n_tokens_neox': 1964, 'n_words': 384}