本文整理汇总了PHP中FrmFormsHelper::delete_trash_link方法的典型用法代码示例。如果您正苦于以下问题:PHP FrmFormsHelper::delete_trash_link方法的具体用法?PHP FrmFormsHelper::delete_trash_link怎么用?PHP FrmFormsHelper::delete_trash_link使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FrmFormsHelper
的用法示例。
在下文中一共展示了FrmFormsHelper::delete_trash_link方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
</a>
</li>
<?php
$col = $col == 'one' ? 'two' : 'one';
unset($c, $d);
}
?>
</ul>
</div>
</div>
</div>
<div class="submitbox" id="major-publishing-actions">
<div id="delete-action">
<?php
echo FrmFormsHelper::delete_trash_link($id, $values['status']);
?>
</div>
<div id="publishing-action">
<form method="post" id="frm_js_build_form">
<span class="spinner"></span>
<input type="hidden" id="frm_compact_fields" name="frm_compact_fields" value="" />
<input type="button" value="<?php
echo esc_attr($button);
?>
" class="frm_submit_form frm_submit_<?php
echo isset($values['ajax_load']) && $values['ajax_load'] ? '' : 'no_';
?>
ajax button-primary button-large" id="frm_submit_side" />
</form>
示例2: get_actions
/**
* @param string $edit_link
* @param string $duplicate_link
*/
private function get_actions(&$actions, $item, $edit_link, $duplicate_link)
{
if ('trash' == $this->status) {
if (current_user_can('frm_edit_forms')) {
$actions['restore'] = FrmFormsHelper::delete_trash_link($item->id, $item->status, 'short');
}
if (current_user_can('frm_delete_forms')) {
$actions['trash'] = '<a href="' . esc_url(wp_nonce_url('?page=formidable&form_status=trash&frm_action=destroy&id=' . $item->id, 'destroy_form_' . $item->id)) . '" class="submitdelete" onclick="return confirm(\'' . __('Are you sure you want to permanently delete that?', 'formidable') . '\')">' . __('Delete Permanently') . '</a>';
}
return;
}
if (current_user_can('frm_edit_forms')) {
if (!$item->is_template || !$item->default_template) {
$actions['frm_edit'] = '<a href="' . esc_url($edit_link) . '">' . __('Edit') . '</a>';
}
if ($item->is_template) {
$actions['frm_duplicate'] = '<a href="' . esc_url(wp_nonce_url($duplicate_link)) . '">' . __('Create Form from Template', 'formidable') . '</a>';
} else {
$actions['frm_settings'] = '<a href="' . esc_url('?page=formidable&frm_action=settings&id=' . $item->id) . '">' . __('Settings', 'formidable') . '</a>';
if (FrmAppHelper::pro_is_installed()) {
$actions['duplicate'] = '<a href="' . esc_url(wp_nonce_url($duplicate_link)) . '">' . __('Duplicate', 'formidable') . '</a>';
}
}
}
$actions['trash'] = FrmFormsHelper::delete_trash_link($item->id, $item->status, 'short');
if (empty($actions['trash'])) {
// the user doesn't have permission
unset($actions['trash']);
}
$actions['view'] = '<a href="' . esc_url(FrmFormsHelper::get_direct_link($item->form_key, $item)) . '" target="_blank">' . __('Preview') . '</a>';
}