[WordPress] 外掛分享: TP Education

首頁外掛目錄 › TP Education
WordPress 外掛 TP Education 的封面圖片
900+
安裝啟用
★★★★★
5/5 分(3 則評價)
294 天前
最後更新
問題解決
WordPress 4.7+ PHP 5.6+ v4.6 上架:2016-10-27

內容簡介

= '' ); // Team Designation
tp_team_email( $post_id = '' ); // Team Email
tp_team_phone( $post_id = '' ); // Team Phone
tp_team_social_links( $post_id = '' ); // Team Social Links

TP Education 是一個外掛,可在教育網站上添加自定義文章類型(活動,課程,班級,遠足,團隊,推薦和聯盟),以及相應的必填元字段。該外掛專為教育主題製作。

前端提交
TP Eduacation 允許您從前端對文章進行點贊,並查看該特定文章的讚數。

自定義和靈活性
TP Education 外掛非常靈活可定製。該外掛提供了鉤子,可以很容易地定製輸出格式。只需使用 CSS 更新設計即可。

模板覆寫
* 創建名為“tp-education”的文件夾,按照以下指示進行所有覆蓋。
* 封存頁面
- 您可以覆蓋此插件中可用的所有封存頁面。即:tp-archive-class.php
* 搜索頁面
- 您可以通過 tp-archive-search.php 覆蓋此插件中可用的所有搜索頁面。
* 單頁
- 您可以覆蓋此插件中所有可用的單頁。即:tp-single-class.php

短代碼

= 預設 Atts:=-
* category = "”,
* no_of_posts = 2,
* post_ids = "”(應以“,”分隔。即:15、27)
* column = 2(最大數值為 4)

班級短代碼:
[TP_EDUCATION_CLASS] 或 [TP_EDUCATION_CLASS category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

活動短代碼:
[TP_EDUCATION_EVENT] 或 [TP_EDUCATION_EVENT category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

課程短代碼:
[TP_EDUCATION_COURSE] 或 [TP_EDUCATION_COURSE category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

團隊短代碼:
[TP_EDUCATION_TEAM] 或 [TP_EDUCATION_TEAM category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

遠足短代碼:
[TP_EDUCATION_EXCURSION] 或 [TP_EDUCATION_EXCURSION category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

聯盟短代碼:
[TP_EDUCATION_AFFILIATION] 或 [TP_EDUCATION_AFFILIATION category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

推薦短代碼:
[TP_EDUCATION_TESTIMONIAL] 或 [TP_EDUCATION_TESTIMONIAL no_of_posts="2" post_ids="217, 115" column="2"]

搜索標籤短代碼:
[TP_EDUCATION_SEARCH_TAB]<h3>Functions to Call Meta Values</h3>

檢查加載的頁面是否是 TP Education 所在的區域
is_tp_education();

活動詳細信息
tp_event_date( $post_id = '' ); // 活動日期
tp_event_start_time( $post_id = '' ); // 活動開始時間
tp_event_end_time( $post_id = '' ); // 活動結束時間
tp_event_location( $post_id = '' ); // 活動地點

班級詳細信息
tp_class_cost( $post_id = '' ); // 班級費用
tp_class_period( $post_id = '' ); // 班級時段
tp_class_size( $post_id = '' ); // 班級規模
tp_class_age_group( $post_id = '' ); // 班級年齡組別

遠足詳細信息
tp_excursion_start_date( $post_id = '' ); // 遠足開始日期
tp_excursion_end_date( $post_id = '' ); // 遠足結束日期
tp_excursion_location( $post_id = '' ); // 遠足地點

團隊詳細信息
tp_team_designation( $post_id = '' ); // 團隊職務
tp_team_email( $post_id = '' ); // 團隊電子郵件
tp_team_phone( $post_id = '' ); // 團隊電話
tp_team_social_links( $post_id = '' ); // 團隊社交鏈接

外掛標籤

開發者團隊

⬇ 下載最新版 (v4.6) 或搜尋安裝

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

原文外掛簡介

A plugin to add custom post type ( Events, Courses, Classes, Excursions, Team, Testimonial, Affiliation ) and it’s required meta fields for educational sites. This plugin is dedicated for educational themes.
Frontend Submission
TP Eduacation allows you to like post from frontend and view the no of likes for that particular post.

Customization and Flexibility
TP Education plugin is highly flexible and customizable. This Plugin provides hooks that makes very easy for you to customize the output format. You just need to update design with css.

Template Overwrite
* Create a folder named "tp-education" and do all the overwrites inside the folder as instructed below.
* Archive Pages
- you can overwrite all archive pages for post types available in this plugin. ie: tp-archive-class.php
* Search Page
- you can overwrite search page for post types available in this plugin by tp-archive-search.php
* Single Pages
- you can overwrite all single pages for post types available in this plugin. ie: tp-single-class.php

Shortcodes
= Defaults Atts :- =
* category = ”,
* no_of_posts = 2,
* post_ids = ”, ( should be seperated by ‘,’. ie: 15, 27 )
* column = 2 ( max num value 4 )
Class shortcode:
[TP_EDUCATION_CLASS] OR [TP_EDUCATION_CLASS category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

Event shortcode:
[TP_EDUCATION_EVENT] OR [TP_EDUCATION_EVENT category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

Course shortcode:
[TP_EDUCATION_COURSE] OR [TP_EDUCATION_COURSE category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

Team shortcode:
[TP_EDUCATION_TEAM] OR [TP_EDUCATION_TEAM category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

Excursion shortcode:
[TP_EDUCATION_EXCURSION] OR [TP_EDUCATION_EXCURSION category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

Affiliation shortcode:
[TP_EDUCATION_AFFILIATION] OR [TP_EDUCATION_AFFILIATION category="cat-slug" no_of_posts="2" post_ids="217, 115" column="2"]

Testimonial shortcode:
[TP_EDUCATION_TESTIMONIAL] OR [TP_EDUCATION_TESTIMONIAL no_of_posts="2" post_ids="217, 115" column="2"]

Search Tabs shortcode:
[TP_EDUCATION_SEARCH_TAB]

Functions to Call Meta Values

Check if the page loaded is TP Education territorial
is_tp_education();

Event Details
tp_event_date( $post_id = '' ); // Event Date
tp_event_start_time( $post_id = '' ); // Event Start Time
tp_event_end_time( $post_id = '' ); // Event End Time
tp_event_location( $post_id = '' ); // Event Location

Class Details
tp_class_cost( $post_id = '' ); // Class Cost
tp_class_period( $post_id = '' ); // Class Period
tp_class_size( $post_id = '' ); // Class Size
tp_class_age_group( $post_id = '' ); // Class Age Group

Excursion Details
tp_excursion_start_date( $post_id = '' ); // Excursion Start Date
tp_excursion_end_date( $post_id = '' ); // Excursion End Date
tp_excursion_location( $post_id = '' ); // Excursion Location

Team Details
tp_team_designation( $post_id = '' ); // Team Designation
tp_team_email( $post_id = '' ); // Team Email
tp_team_phone( $post_id = '' ); // Team Phone
tp_team_skype( $post_id = '' ); // Team Skype
tp_team_website( $post_id = '' ); // Team Website
tp_team_courses( $post_id = '' ); // Team Courses
tp_team_social( $post_id = '' ); // Team Social

Testimonial Details
tp_testimonial_rating( $post_id = '' ); // Testimonail Rating
tp_testimonial_designation( $post_id = '' ); // Testimonail Designation

Affiliation Details
tp_affiliation_link( $post_id = '' ); // Affiliation Link

Course Details
tp_course_type( $post_id = '' ); // Course Type
tp_course_duration( $post_id = '' ); // Course Duration
tp_course_price( $post_id = '' ); // Course Price
tp_course_students( $post_id = '' ); // Course no of Students
tp_course_language( $post_id = '' ); // Course Language
tp_course_assessment( $post_id = '' ); // Course assessment
tp_course_skills( $post_id = '' ); // Course skills
tp_course_professor( $post_id = '' ); // Course Professor
tp_course_counselors( $post_id = '' ); // Course Counselors

Get Terms with Link
tp_education_get_terms( $taxonomy = '', $post_id = '' ); // Get Terms with link

Post Like Button
tp_education_like_button( $post_id = '' ); // Like Button ( this function only returns output. )

Post Meta
tp_education_posted_on(); // Post Meta

Functions to Return Meta Values

Event Details
get_tp_event_date( $post_id = '' ); // Event Date
get_tp_event_start_time( $post_id = '' ); // Event Start Time
get_tp_event_end_time( $post_id = '' ); // Event End Time
get_tp_event_location( $post_id = '' ); // Event Location

Class Details
get_tp_class_cost( $post_id = '' ); // Class Cost
get_tp_class_period( $post_id = '' ); // Class Period
get_tp_class_size( $post_id = '' ); // Class Size
get_tp_class_age_group( $post_id = '' ); // Class Age Group

Excursion Details
get_tp_excursion_start_date( $post_id = '' ); // Excursion Start Date
get_tp_excursion_end_date( $post_id = '' ); // Excursion End Date
get_tp_excursion_location( $post_id = '' ); // Excursion Location

Team Details
get_tp_team_designation( $post_id = '' ); // Team Designation
get_tp_team_email( $post_id = '' ); // Team Email
get_tp_team_phone( $post_id = '' ); // Team Phone
get_tp_team_skype( $post_id = '' ); // Team Skype
get_tp_team_website( $post_id = '' ); // Team Website

Testimonial Details
get_tp_testimonial_designation( $post_id = '' ); // Testimonail Designation

Affiliation Details
get_tp_affiliation_link( $post_id = '' ); // Affiliation Link

Course Details
get_tp_course_type( $post_id = '' ); // Course Type
get_tp_course_duration( $post_id = '' ); // Course Duration
get_tp_course_price( $post_id = '' ); // Course Price
get_tp_course_students( $post_id = '' ); // Course no of Students
get_tp_course_language( $post_id = '' ); // Course Language
get_tp_course_assessment( $post_id = '' ); // Course assessment
get_tp_course_skills( $post_id = '' ); // Course skills

Hooks

Event Details
do_action( 'tp_event_date_action', $post_id = '' ); // Event Date
do_action( 'tp_event_start_time_action', $post_id = '' ); // Event Start Time
do_action( 'tp_event_end_time_action', $post_id = '' ); // Event End Time
do_action( 'tp_event_location_action', $post_id = '' ); // Event Location

Class Details
do_action( 'tp_class_cost_action', $post_id = '' ); // Class Cost
do_action( 'tp_class_period_action', $post_id = '' ); // Class Period
do_action( 'tp_class_size_action', $post_id = '' ); // Class Size
do_action( 'tp_class_age_group_action', $post_id = '' ); // Class Age Group

Excursion Details
do_action( 'tp_excursion_start_date_action', $post_id = '' ); // Excursion Start Date
do_action( 'tp_excursion_end_date_action', $post_id = '' ); // Excursion End Date
do_action( 'tp_excursion_location_action', $post_id = '' ); // Excursion Location

Team Details
do_action( 'tp_team_designation_action', $post_id = '' ); // Team Designation
do_action( 'tp_team_email_action', $post_id = '' ); // Team Email
do_action( 'tp_team_phone_action', $post_id = '' ); // Team Phone
do_action( 'tp_team_skype_action', $post_id = '' ); // Team Skype
do_action( 'tp_team_website_action', $post_id = '' ); // Team Website
do_action( 'tp_team_courses_action', $post_id = '' ); // Team Courses
do_action( 'tp_team_social_action', $post_id = '' ); // Team Social Links

Testimonial Details
do_action( 'tp_testimonial_rating_action', $post_id = '' ); // Testimonial Rating
do_action( 'tp_testimonial_designation_action', $post_id = '' ); // Testimonial Designation
do_action( 'tp_testimonial_social_action', $post_id = '' ); // Testimonial Social Links

Course Details
do_action( 'tp_course_type_action', $post_id = '' ); // Course Type
do_action( 'tp_course_duration_action', $post_id = '' ); // Course Duration
do_action( 'tp_course_price_action', $post_id = '' ); // Course Price
do_action( 'tp_course_students_action', $post_id = '' ); // Course no of Students
do_action( 'tp_course_language_action', $post_id = '' ); // Course Language
do_action( 'tp_course_assessment_action', $post_id = '' ); // Course Assessment
do_action( 'tp_course_skills_action', $post_id = '' ); // Course Skills
do_action( 'tp_course_professor_action', $post_id = '' ); // Course Professor
do_action( 'tp_course_counselors_action', $post_id = '' ); // Course Counselors

Affiliation Details
do_action( 'tp_affiliation_link_action', $post_id = '' ); // Affiliation Link

Meta Details
do_action( 'tp_education_posted_on_action' ); // Post Meta

Sidebar Condition Filter Hook
apply_filters( 'tp_education_is_sidebar_enable_filter', true );
add_filter( 'tp_education_is_sidebar_enable_filter', 'custom_function' ); // Use your custom sidebar enable condition function

Archive Pagination Action Hook
do_action( 'tp_education_pagination_action' );
add_action( 'tp_education_pagination_action', 'custom_function' ); //add your custom pagination function

Single Pagination Action Hook
do_action( 'tp_education_post_pagination_action' );
add_action( 'tp_education_post_pagination_action', 'custom_function' ); //add your custom post pagination function

Files

Font Awesome 4.2.0 by @davegandy
License: http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
Source: http://fontawesome.io

jQuery UI - v1.12.0
License: https://jquery.org/license/ ( Copyright jQuery Foundation and other contributors; Licensed MIT )
Source: http://jqueryui.com

jquery-timepicker v1.11.5 by Jon Thornton
License: https://github.com/jonthornton/jquery-timepicker MIT License © 2014
source: http://jonthornton.github.com/jquery-timepicker/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon