Plugin Directory

Changeset 1822601


Ignore:
Timestamp:
02/15/2018 09:52:07 AM (8 years ago)
Author:
killua99
Message:

New release version supporting GDPR

Location:
custom-cookie-message/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • custom-cookie-message/trunk/custom-cookie-message.php

    r1715181 r1822601  
    11<?php
    2 
    32/**
    4  * Plugin Name: Custom Cookie Message
    5  * Plugin URI: https://angrycreative.se/
    6  * Description: A customizable cookie message.
    7  * Version: 1.6.6
    8  * Author: Johan Sylvan, angrycreative
    9  * Author URI: https://angrycreative.se/
    10  * Domain: cookie-message
    11  **/
     3 * Custom Cookie Message.
     4 *
     5 * @author            Angry Creative AB
     6 * @link              https://github.com/Angrycreative/custom-cookie-message
     7 * @since             2.0.0
     8 * @package           CustomCookieMessage
     9 *
     10 * @wordpress-plugin
     11 * Plugin Name:       Custom Cookie Message
     12 * Plugin URI:        https://github.com/Angrycreative/custom-cookie-message
     13 * Description:       A customizable cookie message, compatible with GDPR compliance.
     14 * Text Domain:       custom-cookie-message
     15 * Domain Path:       /languages/
     16 * Version:           2.0.0
     17 * Tested up to:      4.9
     18 * Requires PHP:      5.6
     19 * Author:            Angry Creative AB
     20 * Contributors:      Johan Sylvan, kylegard, Luigi Guevara @killua99
     21 * Author URI:        https://angrycreative.se/
     22 * License:           GPL-2.0+
     23 * License URI:       https://www.gnu.org/licenses/gpl-2.0.txt
     24 */
    1225
    1326if ( ! defined( 'ABSPATH' ) ) {
     
    1528}
    1629
     30use CustomCookieMessage\Main;
     31
    1732define( 'CUSTOM_COOKIE_MESSAGE_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
    1833define( 'CUSTOM_COOKIE_MESSAGE_PLUGIN_URL', plugins_url( '', __FILE__ ) . '/' );
    1934
    20 define( 'CUSTOM_COOKIE_MESSAGE_PLUGIN_SLUG', 'custom-cookie-message-list' );
     35define( 'CUSTOM_COOKIE_MESSAGE_FILE', __FILE__ );
     36define( 'CUSTOM_COOKIE_MESSAGE_BASENAME', plugin_basename( CUSTOM_COOKIE_MESSAGE_FILE ) );
     37define( 'CUSTOM_COOKIE_MESSAGE_DIR', dirname( CUSTOM_COOKIE_MESSAGE_FILE ) );
    2138
    22 require_once( 'includes/ac-cookie-message.php' );
     39include_once CUSTOM_COOKIE_MESSAGE_DIR . '/src/class-main.php';
    2340
    24 add_action( 'plugins_loaded', function () {
    25     $GLOBALS['CustomCookie'] = new AC_Custom_Cookie_Message();
    26 } );
    27 
    28 register_activation_hook( __FILE__, array( 'AC_Custom_Cookie_Message', 'plugin_activation' ) );
     41Main::single();
  • custom-cookie-message/trunk/wpml-config.xml

    r1710123 r1822601  
    11<wpml-config>
    22    <admin-texts>
    3         <key name="cookies_content_options">
     3        <key name="custom_cookie_message">
     4            <key name="textarea_warning_text"/>
     5            <key name="input_link_text"/>
    46            <key name="input_button_text"/>
    5             <key name="input_link_text"/>
    6             <key name="textarea_warning_text"/>
     7            <key name="save_settings_button"/>
     8            <key name="shortcode_text"/>
     9            <key name="headline"/>
     10            <key name="required_cookies_message"/>
     11            <key name="functional_cookies_message"/>
     12            <key name="advertising_cookies_message"/>
    713        </key>
    814    </admin-texts>
Note: See TracChangeset for help on using the changeset viewer.