@@ 281-283 (lines=3) @@ | ||
278 | $a_title = sprintf( __( 'Edit “%s”' ), $title ); |
|
279 | ||
280 | $grading_action = ''; |
|
281 | if ( get_post_meta( $item->ID, '_quiz_has_questions', true ) ) { |
|
282 | $grading_action = ' <a class="button" href="' . esc_url( add_query_arg( array( 'page' => 'sensei_grading', 'lesson_id' => $item->ID, 'course_id' => $this->course_id ), admin_url( 'admin.php' ) ) ) . '">' . __( 'Grading', 'woothemes-sensei' ) . '</a>'; |
|
283 | } |
|
284 | ||
285 | $column_data = apply_filters( 'sensei_learners_main_column_data', array( |
|
286 | 'title' => '<strong><a class="row-title" href="' . admin_url( 'post.php?action=edit&post=' . $item->ID ) . '" title="' . esc_attr( $a_title ) . '">' . $title . '</a></strong>', |
|
@@ 300-302 (lines=3) @@ | ||
297 | $a_title = sprintf( __( 'Edit “%s”' ), $title ); |
|
298 | ||
299 | $grading_action = ''; |
|
300 | if ( version_compare($wp_version, '4.1', '>=') ) { |
|
301 | $grading_action = ' <a class="button" href="' . esc_url( add_query_arg( array( 'page' => 'sensei_grading', 'course_id' => $item->ID ), admin_url( 'admin.php' ) ) ) . '">' . __( 'Grading', 'woothemes-sensei' ) . '</a>'; |
|
302 | } |
|
303 | ||
304 | $column_data = apply_filters( 'sensei_learners_main_column_data', array( |
|
305 | 'title' => '<strong><a class="row-title" href="' . admin_url( 'post.php?action=edit&post=' . $item->ID ) . '" title="' . esc_attr( $a_title ) . '">' . $title . '</a></strong>', |