本文整理汇总了PHP中Jot::btn方法的典型用法代码示例。如果您正苦于以下问题:PHP Jot::btn方法的具体用法?PHP Jot::btn怎么用?PHP Jot::btn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Jot
的用法示例。
在下文中一共展示了Jot::btn方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
<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>
示例2: array
</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 + '}}';
示例3: array
<?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') {
示例4:
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>
示例5:
<?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>
示例6: foreach
<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;
?>
示例7:
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>
示例8: array
$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>
示例9:
<?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>
示例10: array
}
?>
<?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';
示例11:
</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>
示例12: array
</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>
示例13: strtolower
?>
<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>
示例14: call_user_func
<?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("" => '— ' . $speak->none . ' —') + $results, Request::get('parent', Guardian::wayback('parent', $page->parent)));
}
?>
</span>
</div>
<?php
}
示例15:
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) {