Changeset 2984506
- Timestamp:
- 10/26/2023 03:06:02 PM (2 years ago)
- Location:
- animated-typing-effect/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
typingeffect.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
animated-typing-effect/trunk/README.txt
r2636927 r2984506 3 3 Tags: animated typing effect, typewriter effect, typing effect plugin 4 4 Requires at least: 3.5 5 Tested up to: 5.45 Tested up to: 6.3.2 6 6 Stable tag: trunk 7 7 License: GPL v3 … … 52 52 == Changelog == 53 53 54 = 1.3.7 = 55 * Security patch. Tested with WordPress v6.3.2 56 54 57 = 1.3.6 = 55 58 * Plugin abandoned and not longer supported! We are keeping it publicly available due to its popularity. We hope to start developing a v2 in the coming year or so. -
animated-typing-effect/trunk/typingeffect.php
r2636926 r2984506 2 2 /** 3 3 * Plugin Name: Typing Effect 4 * Version: 1.3. 64 * Version: 1.3.7 5 5 * Plugin URI: http://93digital.co.uk/ 6 6 * Description: Animated typing effect plugin, allowing you to generate a shortcode that 'types' out words on your page or post. Based on Typed.js by Matt Boldt. … … 84 84 $options = array(); 85 85 86 /** 87 * List of allowed attributes. 88 * 89 * @version 1.3.7 90 */ 91 $allowed_settings = [ 92 'typespeed', 93 'startdelay', 94 'backspeed', 95 'backdelay', 96 'loopcount', 97 'loop', 98 'shuffle', 99 ]; 100 86 101 //WP Convert the parameters in lowercase format, but I need in camel case 87 102 $params = array( 88 103 'typespeed' => 'type-speed', 89 104 'backdelay' => 'back-delay', 105 'backspeed' => 'back-speed', 90 106 'startdelay' => 'start-delay', 91 107 'loopcount' => 'loop-count', 92 108 'shuffle' => 'shuffle', 93 109 ); 94 110 95 111 //Generate the javascript code 96 112 foreach( $atts as $key => $value ) { 113 if ( strpos( $key, 'string' ) !== 0 && ! in_array( $key, $allowed_settings ) ) { 114 // Attribute not recognised so skip adding it as a HTML attr. 115 continue; 116 } 97 117 $key = isset( $params[ $key ] ) ? $params[$key] : $key; 98 $span .= " data-{$key}=\"" . $value. '"';118 $span .= " data-{$key}=\"" . esc_attr( $value ) . '"'; 99 119 } 100 120
Note: See TracChangeset
for help on using the changeset viewer.