[wordpress插件] CLI SwitchCLI开关

wordpress 插件 文章 6 天前 0 12 全屏看文
评分
0
描述

This plugin uses Rod McFarland's

此插件使用Rod McFarland的

>WordPress CLI theme as an alternative option without hacking singe line of code.

> WordPress CLI主题作为替代选项,而无需修改单行代码。

After the plugin is activated, “{your-blog-url}/{cli-path}” will be directed to the CLI mode.

激活插件后,“ {your-blog-url} / {cli-path}”将被定向到CLI模式。

And the CLI theme option will be displayed for configuration even the themes is not activated.

即使未激活主题,也将显示CLI主题选项进行配置。

Make sure you have put the CLI theme files under “wp-content/themes”.

确保已将CLI主题文件放在“ wp-content / themes”下。

It works with CLI 2.3 or above.

它适用于CLI 2.3或更高版本。

This plugin is originally modified from

此插件最初是从

PipperL's plugin — PL's alternative theme

PipperL的插件— PL的替代主题

Now it adds support to CLI 2.3.

现在,它增加了对CLI 2.3的支持。

And the support URL is http:

并且支持URL为http:

//blog.gmap2.net/2007/04/09/wordpress-plugin-cli-switch/

//blog.gmap2.net/2007/04/09/wordpress-plugin-cli-switch/

安装步骤

    1. Upload cli-switch.php to the /wp-content/plugins/ directory
    2. cli-switch.php 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Configurate the CLI theme through ‘CLI Options’ section in the ‘Theme’ menu in WordPress
    6. 通过WordPress“主题”菜单中“ CLI选项”部分配置CLI主题

    7. Place a link like “{your-blog-url}/{cli-path}” in your templates (replace {your-blog-url} and {cli-path} with your own blog url)
    8. 在模板中放置“ {your-blog-url} / {cli-path}”之类的链接(将{your-blog-url}和{cli-path}替换为您自己的博客URL)

    9. Or you can use function cli_get_url() to get the CLI path
    10. 或者您可以使用函数 cli_get_url()获取CLI路径

下载地址
https://downloads.wordpress.org/plugin/cli-switch.1.2.zip
-EOF-