Plugin Directory

Changeset 1251028


Ignore:
Timestamp:
09/22/2015 09:26:07 AM (11 years ago)
Author:
93digital
Message:

Fixed typed script parameters

Location:
animated-typing-effect/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • animated-typing-effect/trunk/README.txt

    r1250418 r1251028  
    88License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
    99
    10 Create an animated typing effect that allows words to be 'typed out on to a post or page.
     10Create an animated typing effect that allows words to be 'typed out' on to a post or page.
    1111
    1212== Description ==
     
    2222== Installation ==
    2323
    24 1. Upload the typing-effect folder to the /wp-content/plugins/ directory
    25 2. Activate the Typing Effect plugin through the \'Plugins\' menu in WordPress
     241. Upload the animated-typing-effect folder to the /wp-content/plugins/ directory
     252. Activate the Typing Effect plugin through the 'Plugins' menu in WordPress
    26263. Generate a shortcode by going to Typing Effect on the main menu
    2727
     
    3434Can I edit the settings of the animation?
    3535
    36 You can change a variety of settings such as the speed that the text is typed out, a delay before the animation begins, the speed at which the text is backspaced (deleted) and a delay before the backspacing begins. Ticking the 'Loop' box will mean the animation continues to repeat over and over. Entering a number in the 'Loop count' box will define how many times it will repeat - e.g. entering '3/’ would type out and then backspace the text 3 times.
     36You can change a variety of settings such as the speed that the text is typed out, a delay before the animation begins, the speed at which the text is backspaced (deleted) and a delay before the backspacing begins. Ticking the 'Loop' box will mean the animation continues to repeat over and over. Entering a number in the 'Loop count' box will define how many times it will repeat - e.g. entering '3’ would type out and then backspace the text 3 times.
    3737
    3838Can I preview my animation?
     
    4747
    48481. Generate a shortcode screen
     49
     50== Changelog ==
     51
     52= 1.1 =
     53* Fixed typed script parameters
     54
     55= 1.0 =
     56* First release
  • animated-typing-effect/trunk/assets/js/typed.fe.js

    r1250213 r1251028  
    77          strings.push( this.dataset[ key ] );
    88        } else {
    9           options[ key ] = this.dataset[ key ];
     9          options[ key ] = parseInt( this.dataset[ key ] );
    1010        }
    1111      }
     
    1616      $( this ).typed( options );
    1717    });
    18   })
     18  });
    1919})(jQuery);
  • animated-typing-effect/trunk/typingeffect.php

    r1250213 r1251028  
    22/**
    33 * Plugin Name: Typing Effect
    4  * Version: 1.0
     4 * Version: 1.1
    55 * Plugin URI: http://93digital.co.uk/
    66 * 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.
     
    8585    $options = array();
    8686
     87    //WP Convert the parameters in lowercase format, but I need in camel case
     88    $params = array(
     89      'typespeed' => 'type-speed',
     90      'backdelay' => 'back-delay',
     91      'startdelay' => 'start-delay',
     92      'loopcount' => 'loop-count',
     93    );
     94
    8795    //Generate the javascript code
    8896    foreach( $atts as $key => $value ) {
     97      $key = isset( $params[ $key ] ) ? $params[$key] : $key;
    8998      $span .= " data-{$key}=\"" . htmlentities( $value ) . '"';
    9099    }
Note: See TracChangeset for help on using the changeset viewer.