[WordPress] 外掛分享: Quizy

首頁外掛目錄 › Quizy
WordPress 外掛 Quizy 的封面圖片
全新外掛
安裝啟用
尚無評分
3221 天前
最後更新
問題解決
WordPress 3.9+ v1.1 上架:2017-05-12

內容簡介

Quizy 目前正在進行第一階段開發,如果您想貢獻的話,請參考我們的 Github 儲存庫。

建立測驗:(測驗類型、持續時間(秒)、最大問題數)
建立問題並指派到選取的測驗(新增答案、持續時間、圖片……)
每個測驗都有一個簡短碼

模板系統

Quizy 的模板系統與 Woocommerce 的模板系統相當相似:
如果您需要覆寫 Quizy 模板頁面,您只需將 Quizy 目錄中的 templates 資料夾複製到您的主題或子佈景目錄中並將其重新命名為 quizy。

簡短碼

您應該使用 [quizy id=1234],其中 1234 是測驗 ID,以顯示相應的測驗。
如果您需要在單一頁面中列出所有測驗問題,請添加 list=yes 到簡短碼中 [quizy id=1234 list=yes ],否則單個問題屏幕模式將是當前測驗的預設模式。

鉤子

行動鉤子
* do_action(‘quizy_before_questions‘, $quiz_post)
* do_action(‘quizy_before_question‘, $question)
* do_action(‘quizy_after_question‘, $question)
* do_action(‘quizy_after_questions‘, $quiz_post, $questions)

過濾器鉤子
* apply_filters(‘quizy_locate_template‘, $template, $template_name, $template_path )
* apply_filters(‘quizy_stylesheet_url‘, QUIZY_PLUGIN_URL . ‘assets/style.css’)
* apply_filters(‘quizy_script_url‘, QUIZY_PLUGIN_URL . ‘assets/quizy.js’);

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Quizy」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Quizy is in the 1st step of development, if you would like to contribute please refer to our Github repository.

Create Quizzes with (Quiz type, Duration (sec), max nbr questions)
Create questions and assign them to a picked Quiz (add answers, duration, image …)
A short code for every quiz

Template System
The Quizy template system is pretty similar to the Woocommerce template system :
If you need overwrite the Quizy template pages, you just need to copy the templates folder from the Quizy directory to your theme or child theme directory and rename it to quizy.
Shortcode
You should use [quizy id=1234] where 1234 is the quiz id to show.
Add the list=yes if you need to list all the quiz questions in one single page [quizy id=1234 list=yes ], otherwise the one question per screen mode will be the default mode for your current quiz.
Hooks
Action Hooks
* do_action(‘quizy_before_questions‘, $quiz_post)
* do_action(‘quizy_before_question‘, $question)
* do_action(‘quizy_after_question‘, $question)
* do_action(‘quizy_after_questions‘, $quiz_post, $questions)
Filter Hooks
* apply_filters(‘quizy_locate_template‘, $template, $template_name, $template_path )
* apply_filters(‘quizy_stylesheet_url‘, QUIZY_PLUGIN_URL . ‘assets/style.css’)
* apply_filters(‘quizy_script_url‘, QUIZY_PLUGIN_URL . ‘assets/quizy.js’);

延伸相關外掛

文章
Filter
Apply Filters
Mastodon