| @@ 224-227 (lines=4) @@ | ||
| 221 | private function get_actions( &$actions, $item, $view_link ) { |
|
| 222 | $actions['view'] = '<a href="' . esc_url( $view_link ) . '">' . __( 'View', 'formidable' ) . '</a>'; |
|
| 223 | ||
| 224 | if ( current_user_can('frm_delete_entries') ) { |
|
| 225 | $delete_link = '?page=formidable-entries&frm_action=destroy&id=' . $item->id . '&form=' . $this->params['form']; |
|
| 226 | $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>'; |
|
| 227 | } |
|
| 228 | ||
| 229 | $actions = apply_filters('frm_row_actions', $actions, $item); |
|
| 230 | } |
|
| @@ 292-295 (lines=4) @@ | ||
| 289 | $actions['restore'] = FrmFormsHelper::delete_trash_link( $item->id, $item->status, 'short' ); |
|
| 290 | } |
|
| 291 | ||
| 292 | if ( current_user_can('frm_delete_forms') ) { |
|
| 293 | $trash_url = wp_nonce_url( '?page=formidable&form_status=trash&frm_action=destroy&id=' . $item->id, 'destroy_form_' . $item->id ); |
|
| 294 | $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>'; |
|
| 295 | } |
|
| 296 | return; |
|
| 297 | } |
|
| 298 | ||
| @@ 306-312 (lines=7) @@ | ||
| 303 | ||
| 304 | if ( $item->is_template ) { |
|
| 305 | $actions['frm_duplicate'] = '<a href="' . esc_url( wp_nonce_url( $duplicate_link ) ) . '">' . __( 'Create Form from Template', 'formidable' ) . '</a>'; |
|
| 306 | } else { |
|
| 307 | $actions['frm_settings'] = '<a href="' . esc_url( '?page=formidable&frm_action=settings&id=' . $item->id ) . '">' . __( 'Settings', 'formidable' ) . '</a>'; |
|
| 308 | ||
| 309 | if ( FrmAppHelper::pro_is_installed() ) { |
|
| 310 | $actions['duplicate'] = '<a href="' . esc_url( wp_nonce_url( $duplicate_link ) ) . '">' . __( 'Duplicate', 'formidable' ) . '</a>'; |
|
| 311 | } |
|
| 312 | } |
|
| 313 | } |
|
| 314 | ||
| 315 | $actions['trash'] = FrmFormsHelper::delete_trash_link( $item->id, $item->status, 'short' ); |
|