Disciple.Tools - 대시보드
이 플러그인은 제자 제작자가 취해야 할 가장 중요한 조치(새 연락처, 업데이트가 필요한 연락처 등)를 알 수 있도록 아름다운 시작 페이지를 추가합니다.
목적
후속 조치가 필요한 많은 수신 연락처가 있는 액세스 사역에서 이 시작 대시보드는 제자가 가장 긴급한 문제를 해결하기 위해 로그인하는 순간부터 명확히 하는 데 도움이 됩니다.
신속하게 답변하는 데 도움이 됩니다.
- 나에게 할당된 새 연락처가 있습니까?
- 후속 조치가 필요한 연락처가 있습니까?
- 미해결 작업은 무엇입니까?
- 내 속도와 진행 상황은 어떻습니까?
용법
할 것이다
- 연락처 수, 새로 할당된 연락처 및 업데이트가 필요한 연락처에 빠르게 액세스합니다.
- 더 많은 연락처 할당을 위한 가용성에 대한 빠른 액세스
- 작업에 대한 빠른 액세스.
- 신앙 이정표, 개인 벤치마크 및 구도자 진행 상황에 대한 주요 지표에 빠르게 액세스할 수 있습니다.
하지 않을 것
- 직접 편집을 하지 않습니다. 초점을 맞출 핵심 항목만 표면화합니다.
요구조건 니즈
- Disciple.Tools Wordpress 서버에 설치된 테마
설치
- 표준으로 설치 Disciple.Tools시스템 관리자/플러그인 영역의 /Wordpress 플러그인.
- 관리자의 사용자 역할이 필요합니다.
맞춤 타일
타일은 다음을 사용하여 등록할 수 있습니다. dt_dashboard_register_tile
기능.
dt_dashboard_register_tile(
'Your_Custom_Tile', //handle
__('Custom Tile Label', 'your-plugin'), //label
function() { //Register any assets the tile needs or do anything else needed on registration.
wp_enqueue_script( $this->handle, 'path-to-your-tiles-script.js', [], null, true);
},
function() { //Render the tile
get_template_part( 'whatever-slug', 'whatever-file', [
'handle' => $this->handle,
'label' => $this->label,
'tile' => $this
]);
}
);
확장하여 더 복잡한 사용자 지정 타일을 만들 수 있습니다. DT_Dashboard_Plugin_Tile
.
다음은 예제입니다 :
/**
* Your custom tile class
*/
class Your_Custom_Tile extends DT_Dashboard_Tile
{
/**
* Register any assets the tile needs or do anything else needed on registration.
* @return mixed
*/
public function setup() {
wp_enqueue_script( $this->handle, 'path-t0-your-tiles-script.js', [], null, true);
}
/**
* Render the tile
*/
public function render() {
get_template_part( 'whatever-slug', 'whatever-file', [
'handle' => $this->handle,
'label' => $this->label,
'tile' => $this
]);
}
}
/**
* Next, register our class. This can be done in the after_setup_theme hook.
*/
DT_Dashboard_Plugin_Tiles::instance()->register(
new Your_Custom_Tile(
'Your_Custom_Tile', //handle
__('Custom Tile Label', 'your-plugin'), //label
[
'priority' => 1,
'span' => 1
]
));
후크
XNUMXD덴탈의 dt_dashboard_tiles
필터를 사용하여 타일 등록을 취소하거나 사용하지 않고 새 타일을 추가할 수 있습니다. DT_Dashboard_Plugin_Tiles::instance()->register
.
기부
기여를 환영합니다. 문제 및 버그를 보고할 수 있습니다. 문제 레포 섹션. 에서 아이디어를 제시할 수 있습니다. 토론 레포 섹션. 코드 기여는 다음을 사용하여 환영합니다. 당김 요청 자식 시스템. 기여에 대한 자세한 내용은 다음을 참조하십시오. 기여 지침.