
內容簡介
WP Teacher 是一個外掛,允許老師利用 WordPress 將課程內容整合到他們的個人網站中,以增強學生的學習效果。 WP Teacher 具有易於使用的功能,可以使老師的 WordPress 體驗更輕鬆。
WP Teacher 的功能類似於典型的部落格文章,但提供了額外的功能以最大化學生學習。 所有功能都可以協同使用。該外掛最大化了自定義選項,非常適合多站 WordPress 安裝。
功能:
2 種文章類型
作業
文檔上傳
作業截止日期
事件
全天
日期範圍
選擇時間
2 種小部件
作業清單
顯示 X 個文章
選擇要顯示的課程類別
選擇要顯示的作業類型
事件清單
顯示 X 個文章
選擇要顯示的課程類別(適用於特定課程)
選擇要顯示的事件類型
3 種分類方式(文章分類)
課程
事件類型
作業類型
日曆
外掛選項
日曆視圖設置
選擇要顯示的具體課程/事件
為課程分類選擇顏色
基本用法
此插件的功能類似於典型的部落格文章,但只有一些額外的功能。
安裝外掛/啟用它(參見上方)
創建一些課程
創建一些作業類型
創建一些事件類型
添加一些作業
添加一些事件
將小部件添加到側邊欄
設置標題
設置要顯示的課程類別(或保留預設值)
設置要顯示的類型(或保留預設值)
創建一個日曆頁面
設置日曆的顯示頁面或在頁面中添加 [wpt-class-calendar] 短標籤
檢視結果!
日曆用法
在外掛的設置中選擇要在哪個頁面顯示日曆,或者將 [wpt-class-calendar] 複製/粘貼到您的日曆頁面中。
訪問作業元信息
要獲取作業截止日期:
$assignmentDueDate = get_post_meta($post->ID, 'wpt_assignment_dueDate', true);
要獲取作業文檔:
$assignmentDocs = get_post_meta($post->ID, 'wpt_assignment_docs');
$assignmentDocs = $assignmentDocs[0];
// 返回的值是 Array ( 0 => Array( 0 => Array('name', 'fileLink'), 1 => Array('name', 'fileLink') ... ) )
訪問事件元信息
要獲取事件開始日期:
$eventStartDate = get_post_meta($post->ID, 'wpt_event_date', true);
要獲取其他所有文章元信息:
$eventMeta = get_post_meta($post->ID, 'wpt_event');
$eventMeta = $eventMeta[0];
// 返回的值是 Array ( 0 => Array('end-date', 'time', 'end-time', 'time-mark', 'end-time-mark', 'all-day') )
外掛標籤
開發者團隊
原文外掛簡介
WP Teacher is a plugin that allows teachers to use WordPress to their advantage by integrating course
content into their personal website to enhance student learning. WP Teacher is built with easy-to-use
features that will make his or her WordPress experience easier.
WP Teacher functions like typical blog postings, but it provides additional features to maximize student learning. All the features work
together. The plugin is maximized for customization, which makes it perfect for multi-site WordPress installation.
Features:
2 Post Types
Assignments
Document Uploading
Due Date for assignments
Events
All Day
Date Range
Time selection
2 Widgets
Assignments List
Display X amount of posts
Choose a course category to display
Choose a assignment type to display
Events List
Display X amount of posts
Choose a course category to display (That applies to a specific course)
Choose a event type to display
3 Taxonomies (Post Categories)
Course
Event Type
Assignment Type
Calendar
Plugin Options
Calendar view settings
Select Specific courses/events to display on calendar
Color choices for the courses taxonomy
Basic Usage
This plugin functions like typical blog postings, but with only a few additional features.
Install Plugin/Activate it (see above)
Create some courses
Create some assignment types
Create some event types
Add some assignments
Add some events
Add the widgets to the sidebar
Set a title
Set a course category to display (or leave default)
Set a type to display (or leave default)
Create a Calendar page
Set the display page for the calendar OR Add the [wpt-class-calendar] short tag into a page
View the results!
Calendar Use
Select a page to display the calendar on within the plugin’s settings OR copy/paste [wpt-class-calendar] to your calendar page.
Accessing Assignment Meta Information
To get the assignment due date:
$assignmentDueDate = get_post_meta($post->ID, 'wpt_assignment_dueDate', true);
To get the assignment docs:
$assignmentDocs = get_post_meta($post->ID, 'wpt_assignment_docs');
$assignmentDocs = $assignmentDocs[0];
// return Array ( 0 => Array( 0 => Array('name', 'fileLink'), 1 => Array('name', 'fileLink') ... ) )
Accessing Event Meta Information
To get the event start date:
$eventStartDate = get_post_meta($post->ID, 'wpt_event_date', true);
To get the all other post meta:
$eventMeta = get_post_meta($post->ID, 'wpt_event');
$eventMeta = $eventMeta[0];
// return Array ( 0 => Array('end-date', 'time', 'end-time', 'time-mark', 'end-time-mark', 'all-day') )
