Changeset 1822601
- Timestamp:
- 02/15/2018 09:52:07 AM (8 years ago)
- Location:
- custom-cookie-message/trunk
- Files:
-
- 2 edited
-
custom-cookie-message.php (modified) (2 diffs)
-
wpml-config.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
custom-cookie-message/trunk/custom-cookie-message.php
r1715181 r1822601 1 1 <?php 2 3 2 /** 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 */ 12 25 13 26 if ( ! defined( 'ABSPATH' ) ) { … … 15 28 } 16 29 30 use CustomCookieMessage\Main; 31 17 32 define( 'CUSTOM_COOKIE_MESSAGE_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); 18 33 define( 'CUSTOM_COOKIE_MESSAGE_PLUGIN_URL', plugins_url( '', __FILE__ ) . '/' ); 19 34 20 define( 'CUSTOM_COOKIE_MESSAGE_PLUGIN_SLUG', 'custom-cookie-message-list' ); 35 define( 'CUSTOM_COOKIE_MESSAGE_FILE', __FILE__ ); 36 define( 'CUSTOM_COOKIE_MESSAGE_BASENAME', plugin_basename( CUSTOM_COOKIE_MESSAGE_FILE ) ); 37 define( 'CUSTOM_COOKIE_MESSAGE_DIR', dirname( CUSTOM_COOKIE_MESSAGE_FILE ) ); 21 38 22 require_once( 'includes/ac-cookie-message.php' );39 include_once CUSTOM_COOKIE_MESSAGE_DIR . '/src/class-main.php'; 23 40 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' ) ); 41 Main::single(); -
custom-cookie-message/trunk/wpml-config.xml
r1710123 r1822601 1 1 <wpml-config> 2 2 <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"/> 4 6 <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"/> 7 13 </key> 8 14 </admin-texts>
Note: See TracChangeset
for help on using the changeset viewer.