Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Quiz template part
- *
- * @package snax 1.11
- */
- // Prevent direct script access.
- if ( ! defined( 'ABSPATH' ) ) {
- die( 'No direct script access allowed' );
- }
- ?>
- <style>.single-snax_quiz .snax-post-origin{display:none;}
- .single-snax_quiz .custom-origin{display:block;}</style>
- <?php
- $snax_quiz_class = array(
- 'quiz',
- );
- $snax_quiz_class[] = snax_show_start_quiz_button() ? 'snax-quiz-with-start-trigger' : 'snax-quiz-without-start-trigger';
- ?>
- <div class="<?php echo implode( ' ', array_map( 'sanitize_html_class', $snax_quiz_class ) ); ?>">
- <?php snax_get_template_part( 'quizzes/intro' ); ?>
- <?php snax_get_template_part( 'quizzes/loop-questions' ); ?>
- <?php snax_get_template_part( 'quizzes/pagination' ); ?>
- <div class="snax-quiz-results snax-quiz-results-hidden">
- <?php if ( snax_share_to_unlock() && snax_is_quiz_last_page() ) : ?>
- <?php snax_get_template_part( 'quizzes/locked-result' ) ?>
- <?php endif; ?>
- </div>
- <div class="snax-quiz-actions snax-quiz-actions-hidden">
- <?php if ( snax_show_play_again_button() ) : ?>
- <?php snax_get_template_part( 'quizzes/actions-end' ); ?>
- <?php endif; ?>
- </div>
- <?php if ( snax_one_question_per_page() && snax_is_quiz_last_page() ) : ?>
- <div class="snax-quiz-check-answers snax-quiz-check-answers-hidden">
- <h2><?php esc_html_e( 'Check your answers:', 'snax' ); ?></h2>
- </div>
- <?php endif; ?>
- <p class="snax-post-origin custom-origin" id="custom-origin"><?php esc_html_e( 'This post was created with our nice and easy submission form.', 'snax' ); ?> <a href="<?php echo esc_url( snax_get_frontend_submission_page_url() ); ?>"><?php esc_html_e( 'Create your post!', 'snax' ); ?></a></p>
- </div><!-- .quiz -->
- <?php do_action( 'snax_enqueue_fb_sdk' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement