[wordpress插件] Code to Widget代码到小部件

wordpress 插件 文章 2020-03-26 18:30 507 0 全屏看文

AI助手支持GPT4.0

评分
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文件,并且(如果该文件具有正确的模板标签)添加小部件。

Details

详细信息

Code to Widget provides an easy way to create widgets, without having to deal with writing the widget class everytime

代码到窗口小部件提供了一种创建窗口小部件的简便方法,而不必每次都要编写窗口小部件类

Configuration

配置

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.

然后,这些小部件就可以像所有其他小部件一样容易地进行配置。

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:

以下代码将需要添加到文件顶部:

  <?php

/*

/ *

Widget Name: Test Widget 1

小部件名称:测试小部件1

Widget Description: Test 1 widget

小部件描述:测试1小部件

*/

* /

?>

?>

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.

在窗口小部件设置屏幕上选择文件时,该标题将被设置为默认窗口小部件标题。

安装步骤

    1. Download the plugin archive and expand it.
    2. 下载插件档案并进行扩展。

    3. Put the code-to-widget directory into your wp-content/plugins/ directory
    4. 将code-to-widget目录放入您的wp-content / plugins /目录

    5. Go to the Plugins page in your WordPress Administration area and click ‘Activate’ for Code to Widget.
    6. 转到WordPress管理区域中的“插件”页面,然后单击“激活”以获取代码到小部件。

    7. Go to the Code to Widget Options page (Settings > Code to Widget) to set the directory for the plugin to search for widgets.

    8. 转到“代码到窗口小部件选项”页面(“设置”>“代码到窗口小部件”),设置插件的目录以搜索窗口小部件。

      The directory to search for widgets must be an absolute path.

      搜索窗口小部件的目录必须是绝对路径。

      There are some helpful paths included on the Settings page.

    9. “设置”页面上包含一些有用的路径。

下载地址
https://downloads.wordpress.org/plugin/code-to-widget.1.2.zip
-EOF-

AI助手支持GPT4.0


三叔工具箱

摸鱼人热门新闻聚合

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Add &#039;Code&#039; and &#039;Next Page&#039; buttons to Visual Editor将“代码”和“下一页”按钮添加到可视编辑器
[wordpress插件] Code Pixelz Simple Responsive Image Gallery PluginCode Pixelz简单响应式图片库插件
[wordpress插件] Customize Pro Engine自订Pro Engine
[wordpress插件] Car Rental by BestWebSoftBestWebSoft租车
[wordpress插件] Automatically Empty Trash自动清空垃圾箱
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 7941
问题? 7167
如何快速搭建抽奖助手小程序(无需代码知识) 4972
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 5929
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5458
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5157
如何解决渲染层网络错误Failed to load media? 16509
小程序找号找回 释放昵称? 2392
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2475
删除部分微信用户个人数据的通知,怎么删除? 5504