| @@ -66,10 +66,10 @@ | ||
| 66 | 66 | $current = isset( $_GET['post_status'] ) ? $_GET['post_status'] : ''; |
| 67 | 67 | $count_any = $counts->publish + $counts->draft + $counts->future + $counts->pending; |
| 68 | 68 | |
| 69 | 69 | return array( |
| 70 | - '' => sprintf( '<a href="%s" class="%s">%s</a> (%d)', esc_url( remove_query_arg( 'post_status' ) ), $current == '' ? 'current' : '', __( 'All', 'html-forms' ), $count_any ), | |
| 71 | - 'trash' => sprintf( '<a href="%s" class="%s">%s</a> (%d)', esc_url( add_query_arg( array( 'post_status' => 'trash' ) ) ), $current == 'trash' ? 'current' : '', __( 'Trash', 'html-forms' ), $counts->trash ), | |
| 70 | + '' => sprintf( '<a href="%s" class="%s">%s</a> (%d)', remove_query_arg( 'post_status' ), $current == '' ? 'current' : '', __( 'All', 'html-forms' ), $count_any ), | |
| 71 | + 'trash' => sprintf( '<a href="%s" class="%s">%s</a> (%d)', add_query_arg( array( 'post_status' => 'trash' ) ), $current == 'trash' ? 'current' : '', __( 'Trash', 'html-forms' ), $counts->trash ), | |
| 72 | 72 | ); |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| @@ -110,9 +110,8 @@ | ||
| 110 | 110 | return array( |
| 111 | 111 | 'cb' => '<input type="checkbox" />', |
| 112 | 112 | 'form_name' => __( 'Form', 'html-forms' ), |
| 113 | 113 | 'shortcode' => __( 'Shortcode', 'html-forms' ), |
| 114 | - 'submissions' => __( 'Submissions', 'html-forms' ), | |
| 115 | 114 | ); |
| 116 | 115 | } |
| 117 | 116 | |
| 118 | 117 | /** |
| @@ -206,25 +205,9 @@ | ||
| 206 | 205 | if ( $this->is_trash ) { |
| 207 | 206 | return ''; |
| 208 | 207 | } |
| 209 | 208 | |
| 210 | - return sprintf( '<input type="text" onfocus="this.select();" readonly="readonly" value="%s">', esc_attr( '[hf_form slug="' . $form->slug . '"]' ) ); | |
| 211 | - } | |
| 212 | - | |
| 213 | - /** | |
| 214 | - * @param Form $form | |
| 215 | - * | |
| 216 | - * @return string | |
| 217 | - */ | |
| 218 | - public function column_submissions( Form $form ) { | |
| 219 | - $edit_link = admin_url( 'admin.php?page=html-forms&view=edit&form_id=' . $form->ID ); | |
| 220 | - $submissions = hf_count_form_submissions( $form->id ); | |
| 221 | - | |
| 222 | - if ($submissions == 0 || $this->is_trash) { | |
| 223 | - return $submissions; | |
| 224 | - } else { | |
| 225 | - return sprintf( '<a href="' . esc_attr( add_query_arg( array( 'tab' =>'submissions' ), $edit_link ) ) . '">' . $submissions . '</a>'); | |
| 226 | - } | |
| 209 | + return sprintf( '<input style="width: 260px;" type="text" onfocus="this.select();" readonly="readonly" value="%s">', esc_attr( '[hf_form slug="' . $form->slug . '"]' ) ); | |
| 227 | 210 | } |
| 228 | 211 | |
| 229 | 212 | /** |
| 230 | 213 | * The text that is shown when there are no items to show |