[wordpress插件] Compatible Post Sharing System兼容的帖子共享系统

wordpress 插件 文章 2020-03-29 21:10 457 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

IMPORTANT!!!

重要!!!

To support usage in a loop, this update changes the id #cpss-form to unique ids (i.e. #cpss-form-1, cpss-form-2, etc.).

为了支持循环使用,此更新将ID#cpss-form更改为唯一ID(即#cpss-form-1,cpss-form-2等)。

This was addressed in the CSS that ships with the plugin.

该问题在插件随附的CSS中得到了解决。

However, if you are using the id #cpss-form in your custom CSS, you will need to change it from #cpss-form to form[id*=’cpss-form-‘].

但是,如果您在自定义CSS中使用ID#cpss-form,则需要将其从#cpss-form更改为form [id * =’cpss-form-’]。

The Compatible Post Sharing System plugin provides a shortcode that can be used in the post editor or in a template file with the do_shortcode() function.

兼容的帖子共享系统插件提供了可以在帖子编辑器中或通过do_shortcode()函数在模板文件中使用的短代码。

This shortcode outputs a link that opens a modal window on click that contains a form that will allow a site visitor to send an email.

该简码输出一个链接,该链接在单击时打开一个模式窗口,该窗口包含允许站点访问者发送电子邮件的表单。

The link name and popup heading can be customized with the link and title shortcode attributes.

可以使用链接和标题简码属性自定义链接名称和弹出标题。

The defaults are ‘Email’ and ‘Email This Page’ respectively.

默认设置分别为“电子邮件”和“通过电子邮件发送此页面”。

The subject and message can be customized via the plugin’s settings page.

您可以通过插件的设置页面自定义主题和消息。

Why Compatible Post Sharing System?

为什么要使用兼容的帖子共享系统?

With the introduction of MIT’s Compatible Time-Sharing System (CTSS) in 1961 multiple users were able to log into a central system from remote dial-up terminals, and to store and share files on the central disk.

随着1961年麻省理工学院的兼容时间共享系统(CTSS)的引入,多个用户能够从远程拨号终端登录中央系统,并在中央磁盘上存储和共享文件。

Informal methods of using this to pass messages developed and were expanded to create the first system worthy of the name “email”.

使用非正式方法传递消息的非正式方法得到了发展,并得到了扩展,以创建第一个名称为“ email”的系统。

Notes:

注意:

* This plugin works in tandem with Akismet to help ensure that the form is not used to send spam email.

*此插件与Akismet协同工作,可帮助确保该表单不用于发送垃圾邮件。

In order to take advantage of spam protection, you’ll need to be using Akismet 3.0.0+.

为了利用垃圾邮件防护功能,您需要使用Akismet 3.0.0+。

* The modal functionality is built using the Magnific Popup jQuery plugin by Dmitry Semenov.

*模态功能是使用Dmitry Semenov的Magnific Popup jQuery插件构建的。

* The form fields use standard Bootstrap 3 markup.

*表单字段使用标准的Bootstrap 3标记。

The form specific CSS ships with the plugin and can be loaded depending on user input in the plugin’s settings pane.

插件随附了特定于表单的CSS,可以根据插件设置面板中的用户输入来加载。

* The plugin utilizes standard browser validation to ensure that both the To Email Address and From Email Address fields are filled with a valid email address before submitting.

*该插件利用标准的浏览器验证来确保在提交之前,“收件人电子邮件地址”和“发件人电子邮件地址”字段均填写了有效的电子邮件地址。

* The banner image is of the operator’s console of an IBM 7094, one of the systems at MIT that ran the CTSS.

*标语图片是IBM 7094的操作员控制台的图像,IBM 7094是运行CTSS的MIT系统之一。

More information on the IBM 7094 and CTSS can be found at multicians.org.

有关IBM 7094和CTSS的更多信息,请访问 multicians.org

The original image is by Arnold Reinhold and is licensed under the CC BY-SA 3.0.

原始图片由Arnold Reinhold提供,并根据 CC BY-SA 3.0 许可。

Usage

用法

To add a Compatible Post Sharing System link to a post or page, use the [cpss] shortcode.

要将兼容的帖子共享系统链接添加到帖子或页面,请使用[cpss]短代码。

To use in a template, wrap the shortcode in the do_shortcode() function.

要在模板中使用,请将简短代码包装在 do_shortcode()函数中。

To use in a Timber template, which we highly recommend, use the shortcodes filter like so {

要在我们强烈建议的木材模板中使用,请使用 {

{ '[cpss]' |

{'[cpss]'|

shortcodes }}.

简码}}

The shortcode allows for the following options:

简码允许以下选项:

    • link (e.g [cpss link=”Email a Friend”]) – This allows you to set the name of the link that opens the CPSS pop-up form.

      链接(例如[cpss link =“向朋友发送电子邮件”])–这使您可以设置打开CPSS弹出表单的链接的名称。

      The default is ‘Email’.

      默认值为“电子邮件”。

    • title (e.g [cpss title=”Email a Friend This Page”]) – This allows you to set the name of the title that appears at the top of the CPSS pop-up form.

      标题(例如[cpss title =“通过电子邮件发送给朋友此页面”])–这使您可以设置显示在CPSS弹出式窗体顶部的标题的名称。

      The defualt is ‘Email This Page’.

      默认为“通过电子邮件发送此页面”。

    The default values of the Subject and Message fields in the CPSS pop-up form can be set via the CPSS settings pane.

    可以通过CPSS设置窗格设置CPSS弹出表单中“主题”和“消息”字段的默认值。

    These fields support two tags, [page_title] and [url], which will be replaced by the page name and url on the front end.

    这些字段支持两个标签[page_title]和[url],它们将由前端的页面名称和url代替。

安装步骤

    1. Install through the WordPress admin or upload the plugin folder to your /wp-content/plugins/ directory
    2. 通过WordPress管理员安装或将插件文件夹上传到您的/ wp-content / plugins /目录

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

    See the Usage section for information on incorporating into your theme.

    有关结合到主题中的信息,请参见“用法”部分。

下载地址
https://downloads.wordpress.org/plugin/compatible-post-sharing-system.zip
-EOF-

AI助手支持GPT4.0