Haha Boemo

Disciple.Tools - dashboard

Plugin ena e eketsa leqephe le letle la ho qala ho thusa baetsi ba barutuoa ho tseba hore na ke mehato efe ea bohlokoa eo ba ka e nkang (Mabitso a Macha, Mabitso a Hlokang Nchafatso, joalo-joalo).

morero

Tšebeletsong ea phihlello, moo u nang le mabitso a mangata a kenang a hlokang ho lateloa dashboard ena e thusa ho hlakisa ho tloha ha morutuoa a etsa lipontšo ho rarolla mathata a potlakileng.

E thusa ka potlako ho araba:

  1. Na ke na le mabitso a macha ao ke abetsoeng?
  2. Ke na le mabitso a mang a hlokang ho lateloa?
  3. Ke mesebetsi efe eo ke sa e tsebeng?
  4. Lebelo la ka le tsoelo-pele ea ka li joang?

tšebeliso

Ke tla etsa joalo

  • Ho fihlella kapele palo ea mabitso, mabitso a sa tsoa abeloa, le mabitso a hlokang ho ntlafatsoa.
  • Ho fihlella kapele ho fumaneha bakeng sa likabelo tse ling tsa mabitso
  • Ho fihlella kapele mesebetsing.
  • Ho fihlella kapele ho lintlha tsa bohlokoa tsa tumelo, litekanyetso tsa hau, le tsoelo-pele ea motho ea batlang.

E ke ke ea Etsa

  • Ha e etse tokiso e tobileng. E hlahisa feela lintho tsa bohlokoa bakeng sa ho tsepamisa maikutlo.

litlhokahalo

  • Disciple.Tools Theme e kentsoe ho Seva ea Wordpress

kenya

  • Kenya joalo ka maemo Disciple.Tools/Wordpress plugin sebakeng sa Tsamaiso / Li-plugins tsa sistimi.
  • E hloka karolo ea mosebelisi ea Mookameli.

Lithaele tse ikhethileng

Lithaele li ka ngolisoa ka ho sebelisa dt_dashboard_register_tile sebetsa.

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

Lithaele tse tloaelehileng tse rarahaneng li ka etsoa ka ho atolosa DT_Dashboard_Plugin_Tile.

Mohlala ke ona:

/**
* 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
         ]
    ));

Hooks

The dt_dashboard_tiles filthara e ka sebelisoa ho hlakola lithaele, kapa ho eketsa lithaele tse ncha ntle le ho sebelisa DT_Dashboard_Plugin_Tiles::instance()->register.

Chelete

Menehelo e amohelehile. U ka tlaleha mathata le liphoso ho litokollo karolo ea repo. U ka fana ka maikutlo ho Lipuisano karolo ea repo. 'Me menehelo ea khoutu e amoheleha ho sebelisa Kopa Kopo sistimi bakeng sa git. Bakeng sa lintlha tse ling mabapi le monehelo bona litataiso tsa monehelo.

Screenshots

skrini.png