[wordpress插件] Choc Chip EU Cookie PluginChoc Chip EU Cookie插件

wordpress 插件 文章 2020-03-23 05:20 469 0 全屏看文

AI助手支持GPT4.0

评分
40
描述

The EU cookie directive may not be the most welcome law, but as Voltaire said ‘in order to be free we must all be slaves to the law’.

欧盟cookie指令可能不是最受欢迎的法律,但正如伏尔泰(Voltaire)所说,“为了自由,我们都必须成为法律的奴隶”。

I’m not sure how true that is either, but in any case it has caused me to sit down and write this WordPress plugin to make abiding by the rules that bit easier.

我也不知道这是多么真实,但是无论如何,它使我坐下来写了这个WordPress插件,以遵守一些容易的规则。

It gives your visitors the option to opt in to any third party applications such as Google Analytics or Ad Sense.

它使访问者可以选择加入任何第三方应用程序,例如Google Analytics(分析)或Ad Sense。

The Choc Chip Cookie Plugin then leaves a cookie of its own to remember them next time.

然后,Choc Chip Cookie插件会留下自己的Cookie,以备下次使用。

The cookie willl expire after one year.

饼干将在一年后过期。

There are a few options with this little badger to help you comply with the EU cookie directive and also pimp it up to suit your website.

这个小badge有多种选择,可以帮助您遵守EU cookie指令并根据您的网站进行调整。

If you would like to ask a question go to http://www.christiansenior.co.uk/talkin-shop/choc-chip-eu-cookie-wordpress-plugin

如果您要提出问题,请访问http://www.christiansenior.co.uk/talkin-shop/choc-chip-eu-cookie-wordpress-plugin

安装步骤

To install the plugin manually:

要手动安装插件:

    1. Extract the contents of the archive (zip file)
    2. 提取存档(zip文件)的内容

    3. Upload the folder and its contents to your ?/wp-content/plugins?

    4. 将文件夹及其内容上传到您的?/ wp-content / plugins?

      folder

    5. 文件夹

    6. Activate the plugin through the Plugins section in your WordPress admin panel
    7. 通过WordPress管理面板中的“插件”部分激活插件

    Usage

    用法

    Choc Chip Cookie EU Cookie Plugin Widget

    Choc Chip Cookie EU Cookie插件

    This plugin comes with an opt-in widget for your sidebar.

     此插件随附有用于侧边栏的“选择加入”小部件。

    Anything added to the Choc Chip EU Cookie Plugin widget is opt in. So if you insert your Adsense code here it will only show if the visitor has accepted cookies.

    可以选择加入Choc Chip EU Cookie插件小部件中的所有内容。因此,如果您在此处插入Adsense代码,则仅在访客已接受Cookie时显示。

    Cool uh?!

    酷吧?!

    Options

    选件

    Button Bar Text

    按钮栏文字

    Edit the warning text as shown on the button bar.

    编辑警告文本,如按钮栏上所示。

    Try something like 'Hey you, you are browsing my website so you are having cookies'.

    尝试类似“嘿,您正在浏览我的网站,所以您有Cookie”。

    OK maybe not qute that but something similar.

    好的,也许不是,但是类似的东西。

    Cookie Information Page

    Cookie信息页

    Create a page that contains your cookie information such as what cookies are and what you use them for.

    创建一个页面,其中包含您的cookie信息,例如什么是cookie,以及它们的用途。

    Select your cookie information page from the list and this will link to the 'More info' button on the button bar.

    从列表中选择您的cookie信息页面,这将链接到按钮栏上的“更多信息”按钮。

    Opt in header code

    选择加入标头代码

    Third party applications such as Google Analytics leave a cookie in order to be able to track your visitors.

    第三方应用程序(例如Google Analytics(分析))会留下Cookie,以便能够跟踪您的访客。

    The EU Cookie Directive wants you to warn people of this and even have them 'opt in' so you shouldnt track them unless they agree to it.

    欧盟Cookie指令希望您向人们发出警告,甚至让他们“选择加入”,因此除非他们同意,否则您不应跟踪他们。

    Any text/code that you enter in the 'opt in header code' field will only be activated once the 'allow' button has been clicked.

    您在“选择加入标头代码”字段中输入的任何文本/代码仅在单击“允许”按钮后才会被激活。

    Any text/code in this field will be placed just above the </head>

    此字段中的任何文本/代码都将放在&lt; / head&gt;上方。

    tag.

    标签。

    Comment Form Warning

    评论表警告

    Wordpress leaves a cookie when a comment is left (to save the form information so it doesnt have to be filled in next time) so give your visitors a warning and let them whats going down.

    当留下评论时,Wordpress会留下一个Cookie(以保存表单信息,以便下次不必填写),因此请向访问者发出警告并让他们知道发生了什么。

    Try something like 'By leaving a comment you are agreeing to have a new friend in the same shape as a cookie popped onto your hard drive'.

    尝试类似“通过发表评论,您同意有一个新朋友的形状与Cookie弹出您的硬盘驱动器”这样的内容。

    Appearance

    出现

    Bar Position

    酒吧位置

    Select the position for your button bar

    选择按钮栏的位置

    Background Colour

    背景色

    Change the background of your button bar by entering the name of the colour or if youre a smarty pants you can enter a hex value.

    通过输入颜色名称来更改按钮栏的背景,或者,如果您是聪明的裤子,则可以输入十六进制值。

    Text Colour

    文字颜色

    Change the main text colour on the button bar by entering the name of the colour, now try to be sensible as 'off white' aint gonna cut the mustard sonny Jim.

    通过输入颜色名称来更改按钮栏上的主要文本颜色,现在请尽量使用“灰白色”字样,以便将芥末桑尼·吉姆切掉。

    Accept Button Text Colour

    接受按钮文字颜色

    Have a guess what this does?

    猜猜这是做什么的?

    Thats right it changes the accept button text colour.

    没错,它会更改接受按钮文本的颜色。

    Pop your favourite colour in the box.

    在框中弹出您喜欢的颜色。

    Accept Button Background Colour

    接受按钮背景色

    Make that button stand out with a smashing background colour.

    使该按钮具有惊人的背景色。

    Accept Button Border Colour

    接受按钮边框颜色

    Thats right you can even change the colour of the border of the button.

    没错,您甚至可以更改按钮边框的颜色。

    Your visitors will be sad to see it disappear when they click the button.

    你的访问者会难过的看到当他们按一下按钮就消失了。

    More Info Button Text Colour

    更多信息按钮文本颜色

    We've moved on to the next button so make this one just as important as the last one as it points to important information

    我们已经移至下一个按钮,因此使该按钮与指向重要信息的最后一个按钮一样重要

    More Info Button Background Colour

    更多信息按钮背景色

    Make it shine man, make it shine

    让它发光的人,让它发光的

    More Info Button Border Colour

    更多信息按钮边框颜色

    Come on this is the last colour change so make it count

    来吧,这是最后一次颜色更改,因此请数一数

    Now dont forget to press save after you make any changes.

    现在,进行任何更改后,请不要忘记按保存。

下载地址
https://downloads.wordpress.org/plugin/choc-chip-eu-cookie-plugin.zip
-EOF-

AI助手支持GPT4.0