Changeset 1827713
- Timestamp:
- 02/23/2018 12:49:54 PM (7 years ago)
- Location:
- scramble-email/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
scramble-email/trunk/README.txt
r1827657 r1827713 3 3 Tags: email, anti-spam, shortcode 4 4 Requires at least: 4.4 5 Tested up to: 4. 7.26 Stable tag: 1. 0.15 Tested up to: 4.9.2 6 Stable tag: 1.1.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 30 30 == Changelog == 31 31 32 = 1.1.0 - 29/01/2018 = 33 * Add: Possibility to use as a function in addition to a shortcode. 34 32 35 = 1.0.1 - 08/02/2017 = 33 36 * Fix: Undefined `currentScript` variable when document loaded via ajax -
scramble-email/trunk/admin/class-scramble-email-admin.php
r1827657 r1827713 3 3 * The admin-specific functionality of the plugin. 4 4 * 5 * @link http ://opusmagnum.ch5 * @link https://github.com/Kuuak/scramble-email 6 6 * @since 1.0.0 7 7 * … … 18 18 * @package Scramble_Email 19 19 * @subpackage Scramble_Email/admin 20 * @author Felipe Paul Martins <[email protected]>20 * @author Felipe Paul Martins 21 21 */ 22 22 if ( !class_exists( 'Scramble_Email_Admin' ) ) { -
scramble-email/trunk/scramble-email.php
r1827657 r1827713 3 3 * Plugin Name: Scramble Email 4 4 * Description: Protect your email addresses from being harvested by automatic bots. Simply replace the emails in your post or page content by an unique shortcode. 5 * Author: Felipe Paul Martins - Opus Magnum5 * Author: Felipe Paul Martins 6 6 * Version: 1.0.1 7 * Author URI: https:// opusmagnum.ch7 * Author URI: https://github.com/Kuuak 8 8 * License: GPL-2.0+ 9 9 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 17 17 * 18 18 * @package Scramble_Email 19 * @author Felipe Paul Martins <[email protected]>19 * @author Felipe Paul Martins 20 20 * @license GPL-2.0+ 21 * @link https:// opusmagnum.ch21 * @link https://github.com/Kuuak/scramble-email 22 22 */ 23 23 … … 169 169 $title = base64_encode($title); 170 170 171 return "<script>scem_unscramble( '$email' , '$title'". ( (!empty($classes) || !empty($subject)) ? ', '. (!empty($ subject) ? "'$classes'" : "'null'") . (!empty($subject) ? ", '$subject'" : '') : '' ) .');</script>';171 return "<script>scem_unscramble( '$email' , '$title'". ( (!empty($classes) || !empty($subject)) ? ', '. (!empty($classes) ? "'$classes'" : "'null'") . (!empty($subject) ? ", '$subject'" : '') : '' ) .');</script>'; 172 172 } 173 173 … … 205 205 } 206 206 207 new Scramble_Email(); 207 $scrambleEmail = new Scramble_Email(); 208 209 /** 210 * Scramble the given email and allows the email 211 * to be rendered in JS on the Frontend 212 * 213 * @since 1.1.0 214 * 215 * @param string $email The email to scramble. 216 * @param string $title The label of the link. 217 * @param string $subject Optional. The subject to be inserted in the email when mailto is clicked. 218 * @param array $classes Optional. HTML classes for the <a> element. 219 * @return string The HTML string to echo 220 */ 221 function scramble_email( $email, $title, $subject, $classes = array() ) { 222 global $scrambleEmail; 223 224 return $scrambleEmail->render_shortcode( array( 225 'email' => $email, 226 'title' => $title, 227 'subject' => $subject, 228 'classes' => $classes, 229 )); 230 }
Note: See TracChangeset
for help on using the changeset viewer.