[wordpress插件] Collapsing Objects折叠物体

wordpress 插件 文章 2020-03-27 13:10 0 24 全屏看文
评分
0
描述

Collapsing objects wraps anything enclosed in expand tags into a collapsible div.

折叠对象将扩展标签中包含的所有内容包装到可折叠的div中。

This is a work in progress and may be a little bit messy due to me not having done much with PHP in a while and being new to wordpress.

这是一项正在进行中的工作,由于我一段时间未使用PHP且对wordpress还是陌生的,因此可能有点混乱。

Please note that this requires javascript, if you expect visitors with javascript disabled please do NOT use this plugin!

请注意,这需要javascript,如果您希望禁用javascript的访问者,请不要使用此插件!

I made a couple of mistakes before when submitting such as leaving a wrong hardcoded path in the script and messing up the versioning due to not knowing how WordPress plugin indexing worked.

在提交之前,我犯了一些错误,例如在脚本中留下了错误的硬编码路径,并且由于不知道WordPress插件索引的工作方式而弄乱了版本控制。

This is now fixed and I have added a working example on my blog.

现在,此问题已解决,我在博客上添加了一个工作示例。

Sorry for any inconvenience, please inform me if there are still issues

造成不便之处,敬请见谅。

Usage

用法

Wrap your text/content in [expand] tags with a title eg:

在[expand]标记中用标题包裹文本/内容,例如:

[expand title=hello]This is my expanding content[/expand]

[expand title = hello]这是我的扩展内容[/ expand]

You MUST specify a title!

您必须指定标题!

Example

示例

http://tinyurl.com/3vjavq

http://tinyurl.com/3vjavq

Changes

更改

22nd May 2008:

2008年5月22日:

Fixed expanding or collapsing pushing back to the top of page

修正了展开或折叠后返回页面顶部的问题

21st May 2008:

2008年5月21日:

Fixed problems with readme

修复自述文件问题

安装步骤

Copy the collapsing objects folder into wp-content/plugins and activate in the plugins section of the admin panel.

将折叠的对象文件夹复制到wp-content / plugins并在管理面板的“插件”部分中激活。

下载地址
https://downloads.wordpress.org/plugin/collapsing-objects.0.2.zip
-EOF-