[WordPress] 外掛分享: Light Weight Cookie Popup

WordPress 外掛 Light Weight Cookie Popup 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Light Weight Cookie Popup」是 2018-06-26 上架。
  • 目前有 20 個安裝啟用數。
  • 上一次更新是 2024-10-31,距離現在已有 185 天。
  • 外掛最低要求 WordPress 3.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.2.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

tusharkapdi |

外掛標籤

GDPR | notice for GDPR | cookie compliance | display within countries | eu cookie law regulations |

內容簡介

在您的免費測試網站上試用此外掛程式:點此 => https://tastewp.com/new?pre-installed-plugin-slug=light-weight-cookie-popup&redirect=options-general.php%3Fpage%3Dlwcp&ni=true

此「輕量級 Cookie 彈出視窗」外掛程式功能為,您可以通知使用者您的網站使用 cookie,以遵從歐盟 Cookie 法規。

選項

訊息(選擇性)
Cookie 到期日(選擇性):預設 - 1 天
國家(顯示在所選擇的國家內)(選擇性):預設 – 所有國家
位置:頂部/底部(選擇性):預設 – 底部
彈出框空間填充(選擇性):預設 – 15px
彈出框背景顏色(選擇性):灰色
彈出框文字顏色(選擇性):預設 – 黑色
彈出框字體大小(選擇性):預設 – 13px
隱藏關閉按鈕(選擇性):預設 – 顯示
關閉按鈕文字(選擇性):預設 – x
隱藏接受按鈕(選擇性):預設 – 顯示
接受按鈕文字(選擇性):預設 – OK
接受按鈕底色(選擇性):預設 – 繼承自按鈕標籤
接受按鈕文字顏色(選擇性):預設 – 繼承自按鈕標籤
接受按鈕類別(選擇性)
隱藏閱讀更多連結(選擇性):預設 – 顯示
閱讀更多文字顏色(選擇性):預設 – 繼承自主題樣式
閱讀更多文字內容(選擇性):預設 – 閱讀更多...
閱讀更多連結(選擇性):預設 – #
閱讀更多連結目標(選擇性):預設 – _self
閱讀更多連結類別(選擇性)
多語言相容
含 .pot 檔案供翻譯使用

篩選器和函式

請將程式碼置於 WP 主題 functions.php 或自訂外掛程式。

如果 cookie 已接受,您想要執行什麼操作?

if ( function_exists('LWCP_cookie_accepted') && LWCP_cookie_accepted() ) {
// 在此輸入您的程式碼
}
?>

以下是使用篩選器'lwcp_options_args'覆寫選項的範例方法。

function my_popup_options_args_filter( $options ) {
// 以 $options 做某事
return $options;
}
add_filter( 'lwcp_options_args', 'my_popup_options_args_filter', 10, 1 );
?>

以下是使用篩選器'lwcp_cookie_output'覆寫輸出的範例方法。

function my_popup_output_filter( $output, $options ) {
// 以 $output 和 $options 做某事
return $output;
}
add_filter( 'lwcp_cookie_output', 'my_popup_output_filter', 10, 2 );
?>

進一步資訊

如需協助,請造訪 wordpress.org
在 Github 上協助開發或參照現有程式碼
造訪 我們的網站 以瞭解更多資訊
追蹤我在 Twitter 上的最新消息
查看我的其他 WordPress 外掛程式

支援

您喜歡此外掛程式嗎?請 捐款支持。

原文外掛簡介

Try it out on your free dummy site: Click here => https://tastewp.com/new?pre-installed-plugin-slug=light-weight-cookie-popup&redirect=options-general.php%3Fpage%3Dlwcp&ni=true
Light Weight Cookie Popup where you can inform to users that your site uses cookies and to comply with the EU cookie law regulations.
Options

Message (optional)
Cookie Expiry (optional) : Default – 1 day
Country (Display within selected countries) (optional) : Default – All Countries
Position: Top/Bottom (optional) : Default – Bottom
Popup Padding (optional) : Default – 15px
Popup Background Color (optional) : Gray
Popup Text Color (optional) : Default – Black
Popup Font Size (optional) : Default – 13px
Hide Close Button (optional) : Default – Show
Close Button Text (optional) : Default – x
Hide Accept Button (optional) : Default – Show
Accept Button Text (optional) : Default – Ok
Accept Button Background Color (optional) : Default – inherited from button tag
Accept Button Text Color (optional) : Default – inherited from button tag
Accept Button Class (optional)
Hide Read More Link (optional) : Default – Show
Read More Color (optional) : Default – inherited from theme style
Read More Text (optional) : Default – Read more…
Read More Link (optional) : Default – #
Reamore Link Target (optional) : Default – _self
Reamore Link class (optional)
Multi language compatible
.pot file included for translations

Filters and Functions
The code would be placed in your theme functions.php file or a custom plugin.
Would you like to do something if cookie accepted

This example for the override options by filtering ‘lwcp_options_args’ filter.

This example for the override output by filtering ‘lwcp_cookie_output’ filter.

More Information

For help use wordpress.org
Fork or contribute on Github
Visit our website for more
Follow me on Twitter
View my other WordPress Plugins

Support
Did you enjoy this plugin? Please donate to support ongoing development. Your contribution would be greatly appreciated.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Light Weight Cookie Popup」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon