[wordpress插件] Alligator Popup鳄鱼皮弹出

wordpress 插件 文章 2020-02-16 09:50 664 0 全屏看文

AI助手支持GPT4.0

评分

98

98

描述

This plugin allows you to enter a shortcode to add links to pages/posts which will be opened in a popup window.

此插件可让您输入简码以添加指向页面/帖子的链接,这些链接将在弹出窗口中打开。

The only options in Alligator popup are entered in the shortcode, so there is no admin page for this plugin.

短吻鳄中会显示“鳄鱼”弹出窗口中的唯一选项,因此该插件没有管理页面。

Shortcode:

简码:

Add a popup shortcode where you would like a link to appear within your post or page text.

添加一个弹出式简码,您希望在其中的链接出现在帖子或页面文字中。

The shortcode has parameters for url, height and width and should be in the format:

简码具有网址,高度和宽度的参数,其格式应为:

[popup url="http://cubecolour.co.uk/wp" height="300" width="300" scrollbars="yes" alt="popup"]Link Text[/popup]

  [弹出网址=“ http://cubecolour.co.uk/wp” height =“ 300” width =“ 300” scrollbars =“ yes” alt =“ popup”]链接文本[/ popup]

Include your own Link Text and values for the url the width & height of the popup, and the alt text fot the link.

包括您自己的链接文本和URL值,即弹出窗口的宽度和高度,以及链接的替代文本。

If no values are entered for the alt text and the height and width, defaults of 400px are used for the width & height of the popup window.

如果未为替代文本以及高度和宽度输入任何值,则默认400px用于弹出窗口的宽度和高度。

Scrollbars are enabled by default and will show if the scrollbars parameter is not added to the shortcode.

滚动条默认情况下处于启用状态,并且将显示滚动条参数是否未添加到简码中。

If you do not want scrollbars on your popup window, add the scrollbars parameter with the value “no” to the shortcode: scrollbars="no"

如果您不希望在弹出窗口上使用滚动条,请将带有“ no”值的scrollbars参数添加到短代码中: scrollbars =“ no”

If no value is entered for the alt text, an empty alt tag will be used in the link.

如果未为替代文本输入任何值,则链接中将使用一个空的替代标签。

HTML Link:

HTML链接:

Instead of using the shortcode you can include your link in the format:

您可以使用以下格式添加链接,而不使用简码:

  

="my link text">Link Text

=“ my link text”>链接文本

This might be useful in a text widget, or you can build the link in a template file of your theme.

这在文本小部件中可能很有用,或者您可以在主题的模板文件中建立链接。

Note:

注意:

If you are using any other plugin (or a theme) that uses a shortcode with the name ‘popup’, you will not be able to use this plugin.

如果您使用的其他任何插件(或主题)使用的短代码名为“ popup”,则将无法使用此插件。

This is not because of any shortcoming in this plugin, but because shortcodes such as those to create popup links should always be implemented in a plugin not a theme.

这不是因为此插件有任何缺点,而是因为诸如短消息之类的用于创建弹出链接的短代码应始终在不是主题的插件中实现。

On mobile devices such as iPads which don’t use browser windows, the link will open in a new tab.

在不使用浏览器窗口的iPad等移动设备上,该链接将在新标签页中打开。

This plugin was written in response to a post by a WordPress.org forum user who promised to wrestle an alligator if his problem with creating popups was solved.

此插件是为响应WordPress.org论坛用户的帖子而编写的,该用户承诺如果解决了创建弹出窗口的问题,将与鳄鱼搏斗。

安装步骤

    1. Upload the plugin folder to the ‘/wp-content/plugins/’ directory
    2. 将插件文件夹上传到“ / wp-content / plugins /”目录

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

    5. Add a popup link to a page by including the shortcode to your content in the format:

    6. 通过将简短代码包括在内容中,以以下格式添加到页面的弹出链接:

      [popup url=”http://cubecolour.co.uk/wp” height=”300″ width=”300″ scrollbars=”0″]Link Text[/popup]

    7. [popup url =” http://cubecolour.co.uk/wp” height =“ 300” width =” 300” scrollbars =“ 0”]链接文本[/ popup]

下载地址

https://downloads.wordpress.org/plugin/alligator-popup.1.2.0.zip

https://downloads.wordpress.org/plugin/alligator-popup.1.2.0.zip

-EOF-

AI助手支持GPT4.0