@@ 297-300 (lines=4) @@ | ||
294 | $actions['restore'] = FrmFormsHelper::delete_trash_link( $item->id, $item->status, 'short' ); |
|
295 | } |
|
296 | ||
297 | if ( current_user_can('frm_delete_forms') ) { |
|
298 | $trash_url = wp_nonce_url( '?page=formidable&form_status=trash&frm_action=destroy&id=' . $item->id, 'destroy_form_' . $item->id ); |
|
299 | $actions['trash'] = '<a href="' . esc_url( $trash_url ) . '" class="submitdelete" onclick="return confirm(\'' . __( 'Are you sure you want to permanently delete that?', 'formidable' ) . '\')">' . __( 'Delete Permanently' ) . '</a>'; |
|
300 | } |
|
301 | return; |
|
302 | } |
|
303 | ||
@@ 311-317 (lines=7) @@ | ||
308 | ||
309 | if ( $item->is_template ) { |
|
310 | $actions['frm_duplicate'] = '<a href="' . esc_url( wp_nonce_url( $duplicate_link ) ) . '">' . __( 'Create Form from Template', 'formidable' ) . '</a>'; |
|
311 | } else { |
|
312 | $actions['frm_settings'] = '<a href="' . esc_url( '?page=formidable&frm_action=settings&id=' . $item->id ) . '">' . __( 'Settings', 'formidable' ) . '</a>'; |
|
313 | ||
314 | if ( FrmAppHelper::pro_is_installed() ) { |
|
315 | $actions['duplicate'] = '<a href="' . esc_url( wp_nonce_url( $duplicate_link ) ) . '">' . __( 'Duplicate', 'formidable' ) . '</a>'; |
|
316 | } |
|
317 | } |
|
318 | } |
|
319 | ||
320 | $actions['trash'] = FrmFormsHelper::delete_trash_link( $item->id, $item->status, 'short' ); |
@@ 193-196 (lines=4) @@ | ||
190 | private function get_actions( &$actions, $item, $view_link ) { |
|
191 | $actions['view'] = '<a href="' . esc_url( $view_link ) . '">' . __( 'View', 'formidable' ) . '</a>'; |
|
192 | ||
193 | if ( current_user_can('frm_delete_entries') ) { |
|
194 | $delete_link = '?page=formidable-entries&frm_action=destroy&id=' . $item->id . '&form=' . $this->params['form']; |
|
195 | $actions['delete'] = '<a href="' . esc_url( wp_nonce_url( $delete_link ) ) . '" class="submitdelete" onclick="return confirm(\'' . esc_attr( __( 'Are you sure you want to delete that?', 'formidable' ) ) . '\')">' . __( 'Delete' ) . '</a>'; |
|
196 | } |
|
197 | ||
198 | $actions = apply_filters('frm_row_actions', $actions, $item); |
|
199 | } |