ビルドステータス

Disciple.Tools - ダッシュボード

このプラグインは、弟子の作成者が取るべき最も重要なアクション (新しい連絡先、更新が必要な連絡先など) を知るのに役立つ美しいスタート ページを追加します。

目的

アクセスミニストリーでは、フォローアップが必要な連絡先が大量に届くため、この開始ダッシュボードは、弟子が最も緊急の問題に対処するためにサインインした瞬間から明確にするのに役立ちます.

それはあなたがすぐに答えるのに役立ちます:

  1. 自分に割り当てられた新しい連絡先はありますか?
  2. フォローアップが必要な連絡先はありますか?
  3. 未処理のタスクは?
  4. 私のペースと進歩はどうですか?

使用法

しましょう

  • 多数の連絡先、新しく割り当てられた連絡先、および更新が必要な連絡先へのクイック アクセス。
  • より多くの連絡先の割り当ての可用性へのクイック アクセス
  • タスクへのクイック アクセス。
  • 信仰のマイルストーン、個人のベンチマーク、探求者の進歩に関する主要な指標にすばやくアクセスできます。

しません

  • 直接編集は行いません。 注目すべき重要な項目のみが表示されます。

要件

  • 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
         ]
    ));

フック

  dt_dashboard_tiles フィルターを使用して、タイルの登録を解除したり、使用せずに新しいタイルを追加したりできます DT_Dashboard_Plugin_Tiles::instance()->register.

内容

貢献を歓迎します。 で問題やバグを報告できます。 問題 レポのセクション。 でアイデアを発表できます。 ディヴェート レポのセクション。 また、コードの寄稿は、 プルリクエスト git 用のシステム。 貢献の詳細については、 貢献ガイドライン.

スクリーンショット

screenshot.png