<label class="grid-group"> <span class="grid span-1 form-label"><?php echo $speak->placeholder; ?> </span> <span class="grid span-5"> <?php echo Form::text('placeholder', Converter::toText(Request::get('placeholder', Guardian::wayback('placeholder', $page->placeholder))), null, array('class' => 'input-block')); ?> </span> </label>
* --------------------- */ Route::accept(array($config->manager->slug . '/menu/ignite', $config->manager->slug . '/menu/repair/key:(:any)'), function ($key = false) use($config, $speak) { if (!Guardian::happy(1)) { Shield::abort(); } $menus = Get::state_menu(null, array(), false); if (!$key) { $menu_raw = ""; $title = Config::speak('manager.title_new_', $speak->menu) . $config->title_separator . $config->manager->title; } else { if (!isset($menus[$key])) { Shield::abort(); // Menu not found! } $menu_raw = Converter::toText($menus[$key]); $title = $speak->editing . ': ' . $speak->menu . $config->title_separator . $config->manager->title; } Config::set(array('page_title' => $title, 'cargo' => 'repair.menu.php')); $G = array('data' => array('content' => $menu_raw)); if ($request = Request::post()) { $request = Filter::apply('request:__menu', $request, $key); Guardian::checkToken($request['token']); // Check for invalid input if (preg_match('#(^|\\n)(\\t| {1,3})(?:[^ ])#', $request['content'])) { Notify::error($speak->notify_invalid_indent_character); Guardian::memorize($request); } $k = Text::parse(str_replace(array('Menu::', '()'), "", $request['key']), '->array_key'); if (!$key) { if (isset($menus[$k])) {
$html .= '</span>'; $html .= '</label>'; } else { if ($type === 'e') { $html .= '<label class="grid-group grid-group-editor">'; $html .= '<span class="grid span-2 form-label">' . $title . '</span>'; $html .= '<span class="grid span-4">'; $html .= Form::textarea('fields[' . $key . '][value]', Converter::str(isset($field[$key]) ? $field[$key] : $value['value']), Converter::toText(isset($value['placeholder']) ? $value['placeholder'] : $value['value']), array('class' => array('textarea-block', 'code'))); $html .= '</span>'; $html .= '</label>'; } else { // if($type === 's') { $html .= '<label class="grid-group grid-group-summary">'; $html .= '<span class="grid span-2 form-label">' . $title . '</span>'; $html .= '<span class="grid span-4">'; $html .= Form::textarea('fields[' . $key . '][value]', Converter::str(isset($field[$key]) ? $field[$key] : $value['value']), Converter::toText(isset($value['placeholder']) ? $value['placeholder'] : $value['value']), array('class' => 'textarea-block')); $html .= '</span>'; $html .= '</label>'; } } } } } } } } echo !empty($html) ? $html : Cell::p(Config::speak('notify_empty', strtolower($speak->fields))); } else { echo Cell::p(Config::speak('notify_empty', strtolower($speak->fields))); } Weapon::fire('unit_composer_3_after', array($segment, $fields));
?> </span> </td> <td> <?php echo Form::text('name[]', $tag->name, null, array('class' => 'input-block', 'readonly' => Guardian::get('status') !== 'pilot' ? true : null)); ?> </td> <td> <?php echo Form::text('slug[]', $tag->slug, null, array('class' => 'input-block', 'readonly' => Guardian::get('status') !== 'pilot' ? true : null)); ?> </td> <td> <?php echo Form::text('description[]', Converter::toText($tag->description), null, array('class' => 'input-block', 'readonly' => Guardian::get('status') !== 'pilot' ? true : null)); ?> </td> </tr> <?php } ?> <tr> <td class="text-right"> <?php echo Form::text('id[]', max($id) + 1, null, array('class' => array('input-block', 'no-appearance'), 'autocomplete' => 'off')); ?> </td> <td> <?php echo Form::text('name[]', Guardian::wayback('name.' . (max($id) + 1)), null, array('class' => 'input-block'));
if ($files) { ?> <?php foreach ($files as $key => $value) { $count++; ?> <tr draggable="true"> <td class="handle"></td> <td class="align-middle"> <?php echo Form::text('key[]', $key, '{{' . strtolower($speak->key) . '}}', array('class' => 'input-block')); ?> </td> <td class="align-middle"> <?php echo Form::text('value[]', Converter::toText($value), null, array('class' => 'input-block')); ?> </td> </tr> <?php } ?> <?php } ?> <tr draggable="true"> <td class="handle"></td> <td class="align-middle"> <?php echo Form::text('key[]', "", '{{' . strtolower($speak->key) . '}}', array('class' => 'input-block')); ?>
<label class="grid-group"> <span class="grid span-1 form-label"><?php echo $speak->description; ?> </span> <span class="grid span-5"> <?php echo Form::text('description', Converter::toText(Request::get('description', Guardian::wayback('description', $page->description))), Config::speak('manager.placeholder_description_', strtolower($speak->{$segment})), array('class' => 'input-block')); ?> </span> </label>
?> </span> <span class="grid span-5"> <?php echo Form::textarea('value', Converter::str(Guardian::wayback('value', $file->value)), null, array('class' => array('textarea-block', 'MTE'))); ?> </span> </label> <label class="grid-group"> <span class="grid span-1 form-label"><?php echo $speak->description; ?> </span> <span class="grid span-5"> <?php echo Form::text('description', Converter::toText(Guardian::wayback('description', $file->description)), Config::speak('manager.placeholder_description_', strtolower($speak->field)), array('class' => 'input-block')); ?> </span> </label> <div class="grid-group"> <span class="grid span-1"></span> <span class="grid span-5"> <?php if ($the_key) { ?> <?php echo Jot::button('action', $speak->update); ?> <?php echo Jot::btn('destruct', $speak->delete, $config->manager->slug . '/field/kill/key:' . $the_key); ?>