<td><?php echo Jot::em('info', $s); ?> </td> <td><?php echo isset($file->scope) ? str_replace(',', '/', $file->scope) : '<em>' . $speak->all . '</em>'; ?> </td> </tr> </tbody> </table> <form class="form-kill form-field" id="form-kill" action="<?php echo $config->url_current; ?> " method="post"> <?php Weapon::fire('action_before', $hooks); ?> <?php echo Jot::button('action', $speak->yes); ?> <?php echo Jot::btn('reject', $speak->no, $config->manager->slug . '/field/repair/key:' . $id); ?> <?php Weapon::fire('action_after', $hooks); ?> <?php echo Form::hidden('token', $token); ?> </form>
<div class="grid span-2"> <h4>Recently Updated</h4> <p>Nothing.</p> </div> <div class="grid span-2"> <h4>Quick Draft</h4> <p><?php echo Form::text('title', "", $speak->manager->placeholder_title, array('class' => 'input-block')); ?> </p> <div class="p"><?php echo Form::textarea('content', "", $speak->manager->placeholder_content, array('class' => array('textarea-block', 'code'))); ?> </div> <p><?php echo Jot::button('action', $speak->save); ?> </p> </div> <div class="grid span-2"> <h4>Quick Tags</h4> <p><?php echo Form::text('tags', "", null, array('class' => 'input-block')); ?> </p> <p><?php echo Jot::button('action', $speak->add); ?> </p> </div> </div>
<?php $c_editor = $config->states->{'plugin_' . md5(File::B(__DIR__))}; ?> <div class="p"> <?php foreach ($speak->MTE->buttons as $k => $v) { ?> <?php if (Text::check($k)->in(array('yes', 'no', 'ok', 'cancel', 'open', 'close'))) { continue; } ?> <div><?php echo Form::checkbox('buttons[' . $k . ']', 1, isset($c_editor->buttons->{$k}), sprintf($speak->manager->title_show__button, $v)); ?> </div> <?php } ?> </div> <p><?php echo Jot::button('action', $speak->update); ?> </p>
</p> <p> <?php if (isset($action_update) && $action_update !== false) { ?> <?php echo Jot::button('action', $speak->update); ?> <?php } ?> <?php if (isset($action_create) && $action_create !== false) { ?> <?php echo Jot::button('construct', $speak->create); ?> <?php } ?> <?php if (isset($path_destruct) && $path_destruct !== false) { ?> <?php echo Jot::btn('destruct', $speak->delete, $path_destruct); ?> <?php } ?> <?php if (isset($path_reject) && $path_reject !== false) {
$path = File::url($path); ?> <?php if ($is_text && $content !== false) { ?> <p> <?php echo Form::textarea('content', Request::get('content', Guardian::wayback('content', $content)), $speak->manager->placeholder_content, array('class' => array('textarea-block', 'textarea-expand', 'code'))); ?> </p> <?php } ?> <p> <?php echo Form::hidden('name', $path); ?> <?php Weapon::fire('action_before', $hooks); ?> <?php echo Jot::button('action', $is_text ? $speak->update : $speak->rename); ?> <?php echo Jot::btn('destruct', $speak->delete, $config->manager->slug . '/cache/kill/file:' . $path); ?> <?php Weapon::fire('action_after', $hooks); ?> </p> </form>
$hooks = array($files, $segment); echo $messages; ?> <form class="form-action form-cache" id="form-action" action="<?php echo $config->url . '/' . $config->manager->slug; ?> /cache/do" method="post"> <?php echo Form::hidden('token', $token); ?> <div class="main-action-group"> <?php Weapon::fire('main_action_before', $hooks); ?> <?php echo Jot::button('destruct', $speak->delete, 'action:kill'); ?> <?php Weapon::fire('main_action_after', $hooks); ?> </div> <?php $cache_url = $config->manager->slug . '/cache'; $cache_url_kill = $cache_url . '/kill/file:'; $cache_url_repair = $cache_url . '/repair/file:'; $cache_path = CACHE . DS; ?> <table class="table-bordered table-full-width"> <?php if ($files) { ?>
} else { ?> <?php echo Jot::button('construct', $speak->publish, 'extension:.txt'); ?> <?php echo Jot::button('action:clock-o', $speak->save, 'extension:.draft'); ?> <?php } ?> <?php if ($page->state === 'archived') { ?> <?php echo Jot::button('action:history', $speak->archive, 'extension:.archive'); ?> <?php } ?> <?php echo Jot::btn('destruct', $speak->delete, $config->manager->slug . '/' . $segment . '/kill/id:' . $page->id); ?> <?php } ?> <?php Weapon::fire('action_after', $hooks); ?> </p> </form>
<?php echo Form::hidden('date', Guardian::wayback('date', $default->date->W3C)); ?> <?php if (Guardian::wayback('state', $default->state) === 'published') { ?> <?php echo Jot::button('action', $speak->update, 'action:publish'); ?> <?php echo Jot::button('action:history', $speak->unpublish, 'action:save'); ?> <?php } else { ?> <?php echo Jot::button('construct', $speak->publish, 'action:publish'); ?> <?php echo Jot::button('action:clock-o', $speak->save, 'action:save'); ?> <?php } ?> <?php echo Jot::btn('destruct', $speak->delete, $config->manager->slug . '/' . $segment . '/kill/id:' . Guardian::wayback('id', $default->id)); ?> <?php } ?> </p>
} else { ?> <?php if ($page->state === 'approved') { ?> <?php echo Jot::button('action', $speak->update, 'extension:.txt'); ?> <?php echo Jot::button('action:history', $speak->unapprove, 'extension:.hold'); ?> <?php } else { ?> <?php echo Jot::button('construct', $speak->approve, 'extension:.txt'); ?> <?php } ?> <?php echo Jot::btn('destruct', $speak->delete, $config->manager->slug . '/' . $segment[0] . '/kill/id:' . $page->id); ?> <?php } ?> <?php Weapon::fire('action_after', $hooks); ?> </p> </form>
if (!isset($attr['class'])) { $attr['class'] = array(); } $attr['class'] = array_merge(array('text-' . $kind), (array) $attr['class']); return Cell::unit('a', $text, $attr, $indent); }); // File uploader Jot::add('uploader', function ($action, $accept = null, $fields = array()) { $speak = Config::speak(); $html = Cell::begin('form', array('class' => array('form-ignite', 'form-upload'), 'action' => Converter::url($action), 'method' => 'post', 'enctype' => 'multipart/form-data')) . NL; $html .= Form::hidden('token', Guardian::token(), array(), 1) . NL; foreach ($fields as $name => $value) { $html .= Form::hidden($name, $value, array(), 1) . NL; } $html .= Cell::begin('span', array('class' => array('input-outer', 'btn', 'btn-default')), 1) . NL; $html .= Cell::unit('span', Jot::icon('folder-open') . ' ' . $speak->manager->placeholder_file, array(), 2) . NL; $html .= Form::file('file', array('title' => $speak->manager->placeholder_file, 'data' => array('icon-ready' => 'fa fa-check', 'icon-error' => 'fa fa-times', 'accepted-extensions' => $accept)), 2) . NL; $html .= Cell::end() . ' ' . Jot::button('action:cloud-upload', $speak->upload) . NL; $html .= Cell::end(); return $html; }); // File finder Jot::add('finder', function ($action, $name = 'q', $fields = array()) { $html = Cell::begin('form', array('class' => 'form-ignite form-find', 'action' => Converter::url($action), 'method' => 'get')) . NL; foreach ($fields as $key => $value) { $html .= Form::hidden($key, $value) . NL; } $html .= Form::text($name, Request::get($name, null), null, array(), 1) . ' ' . Jot::button('action:search', Config::speak('find')) . NL; $html .= Cell::end(); return $html; });
?> <?php } ?> </div> <div class="tab-content hidden" id="tab-content-2"> <form class="form-ignite form-asset" id="form-ignite" action="<?php echo $config->url . '/' . $c_url . $q; ?> " method="post"> <p><code><?php echo ASSET . DS . ($q_path ? File::path($q_path) . DS : ""); ?> …</code></p> <p><?php echo Form::text('folder', Guardian::wayback('folder'), $speak->manager->placeholder_folder_name) . ' ' . Jot::button('construct', $speak->create); ?> </p> <p><?php echo Form::checkbox('redirect', 1, Request::method('get') ? true : Guardian::wayback('redirect', false), Config::speak('manager.description_redirect_to_', $speak->folder)); ?> </p> <?php echo Form::hidden('token', $token); ?> </form> </div> <div class="tab-content hidden" id="tab-content-3"> <h3><?php echo Config::speak('manager.title__upload_alt', $speak->asset); ?>
<form class="form-kill form-cache" id="form-kill" action="<?php echo $config->url . '/' . $config->manager->slug; ?> /cache/kill" method="post"> <?php echo Form::hidden('token', $token); ?> <div class="main-action-group"> <?php echo Jot::button('destruct', $speak->delete); ?> </div> <?php echo $messages; $c_path = CACHE . DS; $c_url = $config->manager->slug . '/cache'; $c_url_kill = $c_url . '/kill/file:'; $c_url_repair = $c_url . '/repair/file:'; include DECK . DS . 'workers' . DS . 'unit.explorer.2.php'; ?> </form> <?php if (!empty($pager->step->url) || Request::get('q')) { ?> <hr> <?php echo Jot::finder($c_url, 'q'); }
?> </div> <hr> <p> <?php if (Guardian::wayback('state', $default->state) === 'pending') { ?> <?php echo Jot::button('accept', $speak->approve, 'action:publish'); ?> <?php echo Jot::button('action:clock-o', $speak->update, 'action:save'); ?> <?php } else { ?> <?php echo Jot::button('action', $speak->update, 'action:publish'); ?> <?php echo Jot::button('action:history', $speak->unapprove, 'action:save'); ?> <?php } ?> <?php echo Jot::btn('destruct', $speak->delete, $config->manager->slug . '/comment/kill/id:' . Guardian::wayback('id', $default->id)); ?> </p> </form> </div>
<?php $c_dashboard = $config->states->{'plugin_' . md5(File::B(__DIR__))}; $options = array(); foreach (glob(__DIR__ . DS . 'assets' . DS . 'shell' . DS . 'pigment' . DS . '*.css', GLOB_NOSORT) as $skin) { $s = File::N($skin); if ($ss = File::open($skin)->get(1)) { // Get title from CSS comment ... $ss = preg_replace('#\\/\\*!?\\s*(.*?)\\s*\\*\\/#', '$1', $ss); } else { $ss = Text::parse($s, '->title'); } $options[$s] = $ss; } asort($options); ?> <p><?php echo Form::select('skin', $options, $c_dashboard->skin) . ' ' . Jot::button('action', $speak->update); ?> </p>