Changeset 2230759
- Timestamp:
- 01/21/2020 08:09:00 AM (6 years ago)
- Location:
- emailscrambler
- Files:
-
- 8 added
- 3 edited
-
tags/1.2 (added)
-
tags/1.2/classes (added)
-
tags/1.2/classes/action.class.php (added)
-
tags/1.2/classes/wpes.class.php (added)
-
tags/1.2/emailscrambler.php (added)
-
tags/1.2/js (added)
-
tags/1.2/js/emailprotection.js (added)
-
tags/1.2/readme.txt (added)
-
trunk/classes/action.class.php (modified) (1 diff)
-
trunk/classes/wpes.class.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
emailscrambler/trunk/classes/action.class.php
r1924669 r2230759 11 11 abstract class Action { 12 12 13 public static function wp_enqueue_scripts() {13 public static function wp_enqueue_scripts() : void { 14 14 15 15 wp_enqueue_script('wpes_js', plugins_url('emailscrambler/js/emailprotection.js')); 16 16 17 17 } // public static function wp_enqueue_scripts() 18 18 19 public static function wp_head() : void { 20 21 ob_start(['\wpes\wpes', 'filter']); 22 23 } // public static function wp_head() : void 24 25 public static function wp_foot() : void { 26 27 ob_end_flush(); 28 29 } // public static function wp_foot() : void 30 19 31 } // abstract class action -
emailscrambler/trunk/classes/wpes.class.php
r1924669 r2230759 42 42 43 43 public static function match($match) { 44 45 if (preg_match('/^mailto:/i', $match[0])) {46 47 return 'javascript:wpes_linkTo_UnCryptMailto(\''.self::MailEncrypt(preg_replace('/^mailto:/i', '', $match[0])).'\');';48 49 } else if (!preg_match('/^value/i', $match[0])) {50 51 return preg_replace('/@/', '(at)', $match[0]);52 53 } else return $match[0];44 45 if (preg_match('/^mailto:/i', $match[0])) { 46 47 return '" onclick="wpes_linkTo_UnCryptMailto(\''.self::MailEncrypt(preg_replace('/^mailto:/i', '', $match[0])).'\');'; 48 49 } else if (!preg_match('/^value/i', $match[0])) { 50 51 return preg_replace('/@/', '(at)', $match[0]); 52 53 } else return $match[0]; 54 54 55 55 } // function match($match) -
emailscrambler/trunk/readme.txt
r1924669 r2230759 2 2 Contributors: Daschmi 3 3 Donate link: http://daschmi.de/ 4 Tags: antispam,spam,email,protection,encrypt 4 Tags: antispam,spam,email,protection,encrypt,daschmi,mailprotection,filter,mail 5 5 Requires at least: 3.0.1 6 Tested up to: 5.0 7 Stable tag: 1.1 6 Tested up to: 5.3.2 7 Stable tag: 1.2 8 Requires PHP: 7.0 8 9 License: GPLv2 or later 9 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 28 29 * Compatible with Gutenberg 29 30 * No replacement of input value fields 31 32 = 1.2 = 33 * Use of one filter for the whole content (included footer/header) 34 * use onclick attribute instead of javascript: in href
Note: See TracChangeset
for help on using the changeset viewer.