'ari-stream-quiz-quiz', 'action' => 'add', 'type' => ARISTREAMQUIZ_QUIZTYPE_TRIVIA, ), $remove_url_params ); $edit_url = Helper::build_url( array( 'page' => 'ari-stream-quiz-quiz', 'action' => 'edit', 'id' => '__quizId__' ), $remove_url_params ); $preview_quiz_url = Helper::build_url( array( 'page' => 'ari-stream-quiz-quizzes', 'action' => 'preview', 'post_id' => '__postId__', ), $remove_url_params ); $action_url = Helper::build_url( array( 'noheader' => '1', ), $remove_url_params ); $create_post_lbl = _x( 'Create post / page', '%1$s = new post link, %2$s = new page link', 'ari-stream-quiz' ); $date_time_format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' ); $current_path = dirname( __FILE__ ); $time_ago_format = _x( '%s ago', '%s = human-readable time difference', 'ari-stream-quiz' ); $col_names = array( 'title' => __( 'Title', 'ari-stream-quiz' ), 'type' => __( 'Type', 'ari-stream-quiz' ), 'author' => __( 'Author', 'ari-stream-quiz' ), 'created' => __( 'Created on', 'ari-stream-quiz' ), 'modified' => __( 'Last update', 'ari-stream-quiz' ), 'shortcode' => __( 'Shortcode', 'ari-stream-quiz' ), ); $col_names_attr = array(); foreach ( $col_names as $col_name_key => $col_name ) $col_names_attr[$col_name_key] = esc_attr($col_name); ?>
add
show_template( $current_path . '/grid-toolbar.php', $data ); ?>
0 ): foreach ( $list as $item ): $can_edit = $can_edit_other_quizzes || $current_user_id == $item->author_id; $preview_item_url = $item->post_id > 0 ? str_replace( '__postId__', $item->post_id, $preview_quiz_url ) : ''; $item_edit_url = str_replace( '__quizId__', $item->quiz_id, $edit_url ); $tbx_shortcode_id = 'asq_shortcode_' . $item->quiz_id; $shortcode = '[streamquiz id="' . $item->quiz_id . '"]'; $checkbox_id = 'chkQuiz_' . $item->quiz_id; ?>
quiz_title_filtered ? $item->quiz_title_filtered : $item->quiz_title; ?> quiz_title_filtered ? $item->quiz_title_filtered : $item->quiz_title; ?>
| | |
author; ?> created, 'U' ) ); ?> modified ? sprintf( $time_ago_format, human_time_diff( mysql2date( 'G', $item->modified ), current_time( 'timestamp', 1 ) ) ) : '—'; ?>
quiz_id . '&stream_quiz[title]=' . rawurlencode( $item->quiz_title ) ), admin_url( 'post-new.php?post_type=page&stream_quiz[id]=' . $item->quiz_id . '&stream_quiz[title]=' . rawurlencode( $item->quiz_title ) ) ); ?>