本文整理匯總了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>';
}