AI助手支持GPT4.0
Code to Widget Plugin uses PHP files from a specified directory, and (if the file has the proper template tags) adds a Widget.
小部件插件的代码使用指定目录中的PHP文件,并且(如果该文件具有正确的模板标签)添加小部件。 p>
Code to Widget provides an easy way to create widgets, without having to deal with writing the widget class everytime
代码到窗口小部件提供了一种创建窗口小部件的简便方法,而不必每次都要编写窗口小部件类 p>
The plugin provides an interface for selecting a specific folder to search for widgets in. The folder path entered into the settings page must be an absolute path.
该插件提供了一个界面,用于选择要在其中搜索小部件的特定文件夹。在设置页面中输入的文件夹路径必须是绝对路径。
Then the widgets are easily configurable similar to all other widgets.
然后,这些小部件就可以像所有其他小部件一样容易地进行配置。 p>
The files in the specified folder need to have specific template tags to be added as widgets.
指定文件夹中的文件需要具有特定的模板标记才能添加为小部件。
The following code will need to be added to the top of the files:
以下代码将需要添加到文件顶部: p>
<?php/*/ *Widget Name: Test Widget 1小部件名称:测试小部件1Widget Description: Test 1 widget小部件描述:测试1小部件*/* /?>?> code> pre>A “Widget Title:” field can also be added.还可以添加“窗口小部件标题:”字段。That title will be set as the default widget title when the file is selected on the widget settings screen.在窗口小部件设置屏幕上选择文件时,该标题将被设置为默认窗口小部件标题。 p>
<?php/*/ *Widget Name: Test Widget 1小部件名称:测试小部件1Widget Description: Test 1 widget小部件描述:测试1小部件*/* /?>?>
/*
/ *
Widget Name: Test Widget 1
小部件名称:测试小部件1
Widget Description: Test 1 widget
小部件描述:测试1小部件
*/
* /
?>
?>
code> pre>
A “Widget Title:” field can also be added.
还可以添加“窗口小部件标题:”字段。
That title will be set as the default widget title when the file is selected on the widget settings screen.
在窗口小部件设置屏幕上选择文件时,该标题将被设置为默认窗口小部件标题。 p>
The directory to search for widgets must be an absolute path.
搜索窗口小部件的目录必须是绝对路径。
There are some helpful paths included on the Settings page.
“设置”页面上包含一些有用的路径。 li>
ol>
原文出处:http://www.sanshu.cn/a/7756.html
群主管理都是支付大佬