Plugin.php

2016-07-18 03:12:30 -0400

class Ping_Plugin implements Typecho_Plugin_Interface {

public static function activate()

{

    Helper::addAction('contents-post-edit', 'Ping_Action');

}

public static function deactivate(){}

public static function config(Typecho_Widget_Helper_Form $form)

{

    $servers = <<<EOF

http://blogsearch.google.com/ping/RPC2

http://ping.baidu.com/ping/RPC2

EOF;

    $name = new Typecho_Widget_Helper_Form_Element_Textarea('servers', NULL, $servers, _t('Ping服务URL'), _t('一行一个'));

    $form->addInput($name);

}

public static function personalConfig(Typecho_Widget_Helper_Form $form){}

}

«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | N