Esempio n. 1
0
      <td><code><?php 
echo $file->slug;
?>
</code></td>
      <td><?php 
echo isset($file->scope) ? str_replace(',', '/', $file->scope) : '<em>' . $speak->all . '</em>';
?>
</td>
    </tr>
  </tbody>
</table>
<form class="form-kill form-tag" 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 . '/tag/repair/id:' . $id);
?>
  <?php 
Weapon::fire('action_after', $hooks);
?>
  <?php 
echo Form::hidden('token', $token);
?>
</form>
</td>
            <td class="td-icon"><?php 
        echo Jot::a('destruct', $config->manager->slug . '/asset/kill/file:__snippet/' . $e . '/' . $_file, Jot::icon('times'), array('title' => $speak->delete));
        ?>
</td>
          </tr>
          <?php 
    }
    ?>
        </tbody>
      </table>
      <?php 
}
?>
      <p><?php 
echo Jot::btn('action:database', $speak->snippets, $config->manager->slug . '/asset?path=__snippet');
?>
</p>
    </div>
    <?php 
Weapon::fire('tab_content_after', $hooks);
?>
  </div>
</div>
<script>
function do_snippet(id, method) {
    var text = '<?php 
echo $speak->shortcode;
?>
',
        code = '{{' + method + ':' + id + '}}';
Esempio n. 3
0
<?php

$hooks = array($pages, $segment);
?>
<div class="main-action-group">
  <?php 
Weapon::fire('main_action_before', $hooks);
?>
  <?php 
echo Jot::btn('begin:plus-square', Config::speak('manager.title_new_', $speak->{$segment}), $config->manager->slug . '/' . $segment . '/ignite');
?>
  <?php 
Weapon::fire('main_action_after', $hooks);
?>
</div>
<?php 
echo $messages;
if ($pages) {
    ?>
<ol class="pages">
  <?php 
    foreach ($pages as $page) {
        ?>
  <li class="page" id="page-<?php 
        echo $page->id;
        ?>
">
    <header class="page-header">
      <h3 class="page-title">
        <?php 
        if ($page->state === 'drafted') {
Esempio n. 4
0
            echo $file->path;
            ?>
</li>
  <?php 
        }
        ?>
</ul>
<?php 
    }
}
?>
<form class="form-kill form-shield" id="form-kill" action="<?php 
echo $config->url_current . $config->url_query;
?>
" 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 . '/shield/' . $folder);
?>
  <?php 
Weapon::fire('action_after', $hooks);
?>
  <?php 
echo Form::hidden('token', $token);
?>
</form>
Esempio n. 5
0
  <?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) {
    ?>
  <?php 
    echo Jot::btn('reject', $speak->cancel, $path_reject);
    ?>
  <?php 
}
?>
</p>
Esempio n. 6
0
<div class="main-action-group">
  <?php 
echo Jot::btn('begin:plus-square', Config::speak('manager.title_new_', $speak->page), $config->manager->slug . '/page/ignite');
?>
</div>
<?php 
echo $messages;
if ($pages) {
    ?>
<ol class="page-list">
  <?php 
    foreach ($pages as $page) {
        ?>
  <li class="page" id="page-<?php 
        echo $page->id;
        ?>
">
    <div class="page-header">
      <?php 
        if ($page->state === 'draft') {
            ?>
      <span class="page-title"><?php 
            echo $page->title;
            ?>
</span>
      <?php 
        } else {
            ?>
      <a class="page-title" href="<?php 
            echo $page->url;
            ?>
Esempio n. 7
0
include __DIR__ . DS . 'unit' . DS . 'form' . DS . 'id.php';
?>
  <div class="grid-group">
    <span class="grid span-1"></span>
    <span class="grid span-5">
      <?php 
Weapon::fire('action_before', $hooks);
?>
      <?php 
if ($id !== false) {
    ?>
      <?php 
    echo Jot::button('action', $speak->update);
    ?>
      <?php 
    echo Jot::btn('destruct', $speak->delete, $config->manager->slug . '/tag/kill/id:' . $id);
    ?>
      <?php 
} else {
    ?>
      <?php 
    echo Jot::button('construct', $speak->create);
    ?>
      <?php 
}
?>
      <?php 
Weapon::fire('action_after', $hooks);
?>
    </span>
  </div>
Esempio n. 8
0
$hooks = array($page, $segment);
echo $messages;
?>
<h3><?php 
echo $page->title;
?>
</h3>
<?php 
echo $page->content;
?>
<form class="form-kill form-plugin" id="form-kill" action="<?php 
echo $config->url_current . $config->url_query;
?>
" 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 . '/plugin');
?>
  <?php 
Weapon::fire('action_after', $hooks);
?>
  <?php 
echo Form::hidden('token', $token);
?>
</form>
Esempio n. 9
0
  <?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>
Esempio n. 10
0
         }
         ?>
         <?php 
     }
     ?>
         <?php 
     if (!File::exist($r . 'configurator.php') && !File::exist($r . 'launch.php') && !File::exist($r . 'pending.php') && !File::exist($r . '__launch.php') && !File::exist($r . '__pending.php')) {
         ?>
         <?php 
         echo Jot::btn('destruct.small.disabled:times-circle', $speak->remove, null);
         ?>
         <?php 
     } else {
         ?>
         <?php 
         echo Jot::btn('destruct.small:times-circle', $speak->remove, $config->manager->slug . '/plugin/kill/id:' . $folder);
         ?>
         <?php 
     }
     ?>
         <?php 
     Weapon::fire('action_after', array($page, $segment));
     ?>
       </p>
     </div>
   </div>
   <?php 
 }
 ?>
   <?php 
 include __DIR__ . DS . 'unit' . DS . 'pager' . DS . 'step.php';
Esempio n. 11
0
  </p>
  <p>
    <?php 
echo Form::text('name', Request::get('name', Guardian::wayback('name', $path !== false ? File::url($path) : "")), $speak->manager->placeholder_file_name);
?>
    <?php 
if (strpos($config->url_path, '/repair/file:') === false) {
    ?>
    <?php 
    Weapon::fire('action_before', $hooks);
    ?>
    <?php 
    echo Jot::button('construct', $speak->create);
    ?>
    <?php 
} else {
    ?>
    <?php 
    echo Jot::button('action', $speak->update);
    ?>
    <?php 
    echo Jot::btn('destruct', $speak->delete, $config->manager->slug . '/shield/' . $folder . '/kill/file:' . $path);
    ?>
    <?php 
    Weapon::fire('action_after', $hooks);
    ?>
    <?php 
}
?>
  </p>
</form>
Esempio n. 12
0
        </td>
        <td>
        <?php 
echo Form::text('slug[]', Guardian::wayback('slug.' . (max($id) + 1)), null, array('class' => 'input-block'));
?>
        </td>
        <td>
        <?php 
echo Form::text('description[]', Guardian::wayback('description.' . (max($id) + 1)), null, array('class' => 'input-block'));
?>
        </td>
      </tr>
      <tr class="row-more-less" data-min="<?php 
echo max($id) + 1;
?>
" data-max="9999">
        <td colspan="4"><?php 
echo Jot::btn('default.small:plus-circle', $speak->more, '#row:more', array('class' => 'row-more'));
?>
 <?php 
echo Jot::btn('default.small:minus-circle', $speak->less, '#row:less', array('class' => 'row-less'));
?>
</td>
      </tr>
    </tbody>
  </table>
  <p><?php 
echo Jot::button('action', $speak->update);
?>
</p>
</form>
Esempio n. 13
0
?>
<p><strong><?php 
echo $response->name;
?>
</strong><?php 
echo $aa ? ' ' . strtolower($speak->to) . ' <a href="' . $response->permalink . '" target="_blank">' . $aa->title . '</a>' : "";
?>
</p>
<p><?php 
echo $response->message;
?>
</p>
  <p><strong><?php 
echo $speak->date;
?>
:</strong> <?php 
echo Date::format($response->time, 'Y/m/d H:i:s');
?>
</p>
<form class="form-kill form-comment" id="form-kill" action="<?php 
echo $config->url_current . $config->url_query;
?>
" method="post">
<?php 
echo Jot::button('action', $speak->yes);
?>
 <?php 
echo Jot::btn('reject', $speak->no, $config->manager->slug . '/comment/repair/id:' . $response->id);
echo Form::hidden('token', $token);
?>
</form>
Esempio n. 14
0
<?php

if ($responses = call_user_func('Get::' . $segment[0] . 's', 'DESC', 'post:' . Date::slug(Request::get('post', $page->post)))) {
    ?>
<div class="grid-group">
  <span class="grid span-1 form-label"><?php 
    echo $speak->parent;
    ?>
</span>
  <span class="grid span-5">
  <?php 
    if (count($responses) > 600) {
        // 600+ response(s), fallback to text input for performance reason
        $_parent = call_user_func('Get::' . $segment[0], $page->parent, array('message', 'message_raw'));
        echo Form::text('parent', Request::get('parent', Guardian::wayback('parent', $page->parent)), time());
        echo $_parent ? ' ' . Jot::btn('action:external-link', "", $_parent->permalink, array('title' => $_parent->name, 'target' => '_blank')) : "";
    } else {
        $results = array();
        $s = Date::slug($page->id);
        foreach ($responses as $v) {
            list($_post, $_time, $_parent) = explode('_', File::N($v), 3);
            $results[($s === $_time ? '.' : "") . Date::format($_time, 'U')] = Date::extract($_time, 'FORMAT_3');
        }
        krsort($results);
        echo Form::select('parent', array("" => '&mdash; ' . $speak->none . ' &mdash;') + $results, Request::get('parent', Guardian::wayback('parent', $page->parent)));
    }
    ?>
  </span>
</div>
<?php 
}
Esempio n. 15
0
include __DIR__ . DS . 'unit' . DS . 'form' . DS . 'value.textarea.php';
?>
  <?php 
include __DIR__ . DS . 'unit' . DS . 'form' . DS . 'description.text.php';
?>
  <div class="grid-group">
    <span class="grid span-1"></span>
    <span class="grid span-5">
      <?php 
if ($id !== false) {
    ?>
      <?php 
    echo Jot::button('action', $speak->update);
    ?>
      <?php 
    echo Jot::btn('destruct', $speak->delete, $config->manager->slug . '/field/kill/key:' . $id);
    ?>
      <?php 
} else {
    ?>
      <?php 
    echo Jot::button('construct', $speak->create);
    ?>
      <?php 
}
?>
    </span>
  </div>
</form>
<script>
(function(w, d) {
Esempio n. 16
0
            <?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>
  </div>
</div>
Esempio n. 17
0
    if (strlen($article->css) > $config->excerpt_length) {
        echo ' &hellip;';
    }
    ?>
</code></pre>
<?php 
}
if (!empty($article->js)) {
    ?>
<pre><code><?php 
    echo substr(Text::parse($article->js, '->encoded_html'), 0, $config->excerpt_length);
    if (strlen($article->js) > $config->excerpt_length) {
        echo ' &hellip;';
    }
    ?>
</code></pre>
<?php 
}
?>
<form class="form-kill form-article" id="form-kill" action="<?php 
echo $config->url_current . $config->url_query;
?>
" method="post">
<?php 
echo Jot::button('action', $speak->yes);
?>
 <?php 
echo Jot::btn('reject', $speak->no, $config->manager->slug . '/article/repair/id:' . $article->id);
echo Form::hidden('token', $token);
?>
</form>
Esempio n. 18
0
    if (strlen($page->js) > $config->excerpt->length) {
        echo $config->excerpt->suffix;
    }
    ?>
</code></pre>
<?php 
}
?>
<form class="form-kill form-<?php 
echo $segment;
?>
" id="form-kill" action="<?php 
echo $config->url_current . $config->url_query;
?>
" 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 . '/' . $segment . '/repair/id:' . $page->id);
?>
  <?php 
Weapon::fire('action_after', $hooks);
?>
  <?php 
echo Form::hidden('token', $token);
?>
</form>
Esempio n. 19
0
$hooks = array($page, $segment);
echo $messages;
if ($content) {
    ?>
<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>
<p>
  <?php 
    Weapon::fire('action_before', $hooks);
    ?>
  <?php 
    echo Jot::btn('destruct', $speak->delete, $config->manager->slug . '/error/kill');
    ?>
  <?php 
    Weapon::fire('action_after', $hooks);
    ?>
</p>
<?php 
} else {
    ?>
<p><?php 
    echo Config::speak('notify_empty', strtolower($speak->errors));
    ?>
</p>
<p>
  <?php 
    Weapon::fire('action_before', $hooks);
Esempio n. 20
0
$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>
Esempio n. 21
0
            ?>
</p>
          <p>
            <?php 
            Weapon::fire('action_before', array($page, $segment));
            ?>
            <?php 
            echo Jot::btn('construct.small:cog', $speak->manage, $config->manager->slug . '/shield/' . $folder);
            ?>
 <?php 
            if (File::exist($r . 'manager.php')) {
                echo Jot::btn('action.small:shield', $speak->attach, $config->manager->slug . '/shield/attach/id:' . $folder);
                ?>
 <?php 
            }
            echo Jot::btn('destruct.small:times-circle', $speak->delete, $config->manager->slug . '/shield/kill/id:' . $folder);
            ?>
            <?php 
            Weapon::fire('action_after', array($page, $segment));
            ?>
          </p>
        </div>
      </div>
      <?php 
        }
        ?>
      <?php 
    }
    ?>
    </div>
    <?php 
Esempio n. 22
0
      <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>
Esempio n. 23
0
<?php

if ($posts = call_user_func('Get::' . $segment[1] . 's')) {
    ?>
<div class="grid-group">
  <span class="grid span-1 form-label"><?php 
    echo $speak->to;
    ?>
</span>
  <span class="grid span-5">
  <?php 
    if (count($posts) > 600) {
        // 600+ post(s), fallback to text input for performance reason
        $_post = call_user_func('Get::' . $segment[1] . 'Anchor', $page->post);
        echo Form::text('post', Request::get('post', Guardian::wayback('post', $page->post)), time());
        echo $_post ? ' ' . Jot::btn('action:external-link', "", $_post->url, array('title' => $_post->title, 'target' => '_blank')) : "";
    } else {
        $results = array();
        foreach ($posts as $v) {
            list($_time, $_kind, $_slug) = explode('_', File::N($v), 3);
            $results[Date::format($_time, 'U')] = Filter::colon($segment[1] . ':url', $config->url . '/' . $config->index->slug . '/' . $_slug);
        }
        asort($results);
        echo Form::select('post', $results, Request::get('post', Guardian::wayback('post', $page->post)), array('class' => 'select-block'));
    }
    ?>
  </span>
</div>
<?php 
}