updated plgntls :

- renamed PLGNTLS_class -> Plgntls
- changed method 'add_to_front()' to static method
- moved fetch script as inline script, so the plgntls file is single
- improved the way inline script and styles are added
This commit is contained in:
asus
2024-03-29 21:56:12 +01:00
parent 42e8cbc4e9
commit ade0be87ce
41 changed files with 457 additions and 421 deletions

View File

@@ -17,8 +17,8 @@ if (!defined('ABSPATH')) {
*
*/
function get_date_limit_CIPF($user_id = null) {
PLGNTLS_class::debug_infos();
$acf_card_expiration = PLGNTLS_class::ACF_CARD_EXPIRATION;
Plgntls::debug_infos();
$acf_card_expiration = Plgntls::ACF_CARD_EXPIRATION;
/*
* define ids
@@ -71,7 +71,7 @@ function get_date_limit_CIPF($user_id = null) {
*
*/
function card_date_diff_CIPF($user_id = null) {
PLGNTLS_class::debug_infos();
Plgntls::debug_infos();
/*
* get date limit as DateTime object
*
@@ -99,7 +99,7 @@ function card_date_diff_CIPF($user_id = null) {
*
*/
function is_card_date_expired_CIPF($user_id = null) {
PLGNTLS_class::debug_infos();
Plgntls::debug_infos();
/*
* define user_id
@@ -131,8 +131,8 @@ function is_card_date_expired_CIPF($user_id = null) {
*
*/
function card_date_exists_CIPF($user_id = null) {
PLGNTLS_class::debug_infos();
$acf_card_expiration = PLGNTLS_class::ACF_CARD_EXPIRATION;
Plgntls::debug_infos();
$acf_card_expiration = Plgntls::ACF_CARD_EXPIRATION;
/*
* define ids
@@ -168,9 +168,9 @@ function card_date_exists_CIPF($user_id = null) {
*
*/
function update_card_expiration_CIPF($user_id = null) {
PLGNTLS_class::debug_infos();
$acf_card_expiration = PLGNTLS_class::ACF_CARD_EXPIRATION;
$card_duration = PLGNTLS_class::CARD_VALIDITY_TIME;
Plgntls::debug_infos();
$acf_card_expiration = Plgntls::ACF_CARD_EXPIRATION;
$card_duration = Plgntls::CARD_VALIDITY_TIME;
/*
* define acf id and acf date format