Animate It! - Version 2.4.0

Version Description

Download this release

Release Info

Developer eleopard
Plugin Icon 128x128 Animate It!
Version 2.4.0
Comparing to
See all releases

Code changes from version 2.3.9 to 2.4.0

assets/helper/class-eds-mobile-detect.php CHANGED
@@ -713,7 +713,7 @@ class EDS_Mobile_Detect
713
  // start with HTTP_.
714
  foreach ($httpHeaders as $key => $value) {
715
  if (substr($key, 0, 5) === 'HTTP_') {
716
- $this->httpHeaders[$key] = $value;
717
  }
718
  }
719
 
@@ -801,7 +801,7 @@ class EDS_Mobile_Detect
801
  $response = false;
802
  foreach ($cfHeaders as $key => $value) {
803
  if (substr(strtolower($key), 0, 16) === 'http_cloudfront_') {
804
- $this->cloudfrontHeaders[strtoupper($key)] = $value;
805
  $response = true;
806
  }
807
  }
713
  // start with HTTP_.
714
  foreach ($httpHeaders as $key => $value) {
715
  if (substr($key, 0, 5) === 'HTTP_') {
716
+ $this->httpHeaders[sanitize_text_field( $key )] = sanitize_text_field( $value );
717
  }
718
  }
719
 
801
  $response = false;
802
  foreach ($cfHeaders as $key => $value) {
803
  if (substr(strtolower($key), 0, 16) === 'http_cloudfront_') {
804
+ $this->cloudfrontHeaders[sanitize_text_field( strtoupper($key) )] = sanitize_text_field( $value );
805
  $response = true;
806
  }
807
  }
assets/helper/edsanimate-tinymce-popup.php CHANGED
@@ -9,9 +9,9 @@ $scroll_offset = get_option ( 'eds_scroll_offset', '75' );
9
  <meta name="viewport"
10
  content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
11
  <link rel="stylesheet"
12
- href="<?php echo plugin_dir_url(__FILE__).'../css/animate-animo.css'; ?>" />
13
  <link rel="stylesheet"
14
- href="<?php echo plugin_dir_url(__FILE__).'../css/style.css'; ?>" />
15
  </head>
16
  <body
17
  onload="document.body.style.display='';"
@@ -483,7 +483,7 @@ $scroll_offset = get_option ( 'eds_scroll_offset', '75' );
483
  <div class="edsai-form-control">
484
  <input id="options-scroll-offset" name="options-scroll-offset"
485
  class="half-size" placeholder="Custom Offset % e.g. 20.7"
486
- value="<?php echo $scroll_offset; ?>" />
487
  </div>
488
  </div>
489
  </div>
@@ -517,7 +517,7 @@ $scroll_offset = get_option ( 'eds_scroll_offset', '75' );
517
  var jQuery = args['jquery'];
518
  </script>
519
  <script type="text/javascript"
520
- src="<?php echo plugin_dir_url(__FILE__).'../js/animo.min.js'; ?>"></script>
521
  <script type="text/javascript">
522
  ( function( $ ) {
523
 
@@ -564,7 +564,7 @@ $scroll_offset = get_option ( 'eds_scroll_offset', '75' );
564
  $.find('.options-scroll-settings-wrapper').show();
565
  } else {
566
  $.find('.options-scroll-settings-wrapper').hide()
567
- $.find('input[name="options-scroll-offset"]').val('<?php echo $scroll_offset; ?>');
568
  }
569
 
570
  } );
@@ -671,7 +671,7 @@ $scroll_offset = get_option ( 'eds_scroll_offset', '75' );
671
  if( 'scroll' == animate_on ) {
672
  scroll_offset = $.find('#options-scroll-offset').val();
673
  if( ! jQuery.isNumeric( scroll_offset ) ) {
674
- scroll_offset = '<?php echo $scroll_offset; ?>';
675
  }
676
  }
677
  settings.scroll_offset = scroll_offset;
9
  <meta name="viewport"
10
  content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
11
  <link rel="stylesheet"
12
+ href="<?php echo esc_attr( plugin_dir_url(__FILE__).'../css/animate-animo.css' ); ?>" />
13
  <link rel="stylesheet"
14
+ href="<?php echo esc_attr( plugin_dir_url(__FILE__).'../css/style.css' ); ?>" />
15
  </head>
16
  <body
17
  onload="document.body.style.display='';"
483
  <div class="edsai-form-control">
484
  <input id="options-scroll-offset" name="options-scroll-offset"
485
  class="half-size" placeholder="Custom Offset % e.g. 20.7"
486
+ value="<?php echo esc_attr( $scroll_offset ); ?>" />
487
  </div>
488
  </div>
489
  </div>
517
  var jQuery = args['jquery'];
518
  </script>
519
  <script type="text/javascript"
520
+ src="<?php echo esc_attr( plugin_dir_url(__FILE__).'../js/animo.min.js' ); ?>"></script>
521
  <script type="text/javascript">
522
  ( function( $ ) {
523
 
564
  $.find('.options-scroll-settings-wrapper').show();
565
  } else {
566
  $.find('.options-scroll-settings-wrapper').hide()
567
+ $.find('input[name="options-scroll-offset"]').val('<?php echo esc_attr( $scroll_offset ); ?>');
568
  }
569
 
570
  } );
671
  if( 'scroll' == animate_on ) {
672
  scroll_offset = $.find('#options-scroll-offset').val();
673
  if( ! jQuery.isNumeric( scroll_offset ) ) {
674
+ scroll_offset = '<?php echo esc_attr( $scroll_offset ); ?>';
675
  }
676
  }
677
  settings.scroll_offset = scroll_offset;
edsanimate.php CHANGED
@@ -5,7 +5,7 @@
5
  * Domain Path: /lang
6
  * Plugin URI: http://www.eleopard.in
7
  * Description: Add cool CSS3 animations to your content.
8
- * Version: 2.3.8
9
  * Author: eLEOPARD Design Studios
10
  * Author URI: http://www.eleopard.in
11
  * License: GNU General Public License version 2 or later; see LICENSE.txt
@@ -196,11 +196,11 @@ class EDS_Animate {
196
  if(isset($_REQUEST['eds_scroll_offset'])
197
  && isset($_REQUEST['eds_enable_on_phone'])
198
  && isset($_REQUEST['eds_enable_on_tab'])){
199
- update_option('eds_scroll_offset', $_REQUEST['eds_scroll_offset']);
200
- update_option('eds_enable_on_phone', $_REQUEST['eds_enable_on_phone']);
201
- update_option('eds_hide_overflow_x', $_REQUEST['eds_hide_overflow_x']);
202
- update_option('eds_hide_overflow_y', $_REQUEST['eds_hide_overflow_y']);
203
- update_option('eds_enable_on_tab', $_REQUEST['eds_enable_on_tab']);
204
  $ok=true;
205
  }
206
  $custom_css = sanitize_textarea_field(isset($_REQUEST['eds_custom_css'])?$_REQUEST['eds_custom_css']:'');
@@ -226,11 +226,11 @@ class EDS_Animate {
226
  ?>
227
  <a href="https://wordpress.org/support/view/plugin-reviews/animate-it" target="_blank"
228
  style="display: inline-block; margin-top: 10px; padding-top: 4px;">
229
- <img src="<?php echo plugins_url( '/assets/images/banner.jpg', self::$abs_file )?>" />
230
  </a>
231
  <a href="https://wordpress.org/plugins/corona-awareness-popup/" target="_blank"
232
  style="display: inline-block; margin-top: 10px; padding-top: 4px;">
233
- <img src="<?php echo plugins_url( '/assets/images/corona-plugin-banner.png', self::$abs_file )?>" />
234
  </a>
235
  <form method="post">
236
  <?php wp_nonce_field( 'eds_animateit_options' ); ?>
@@ -240,7 +240,7 @@ class EDS_Animate {
240
  <label for="eds_scroll_offset"><?php _e( 'Scroll Offset (in percentage)', 'eds-animate' ); ?>:</label>
241
  </td>
242
  <td colspan="2">
243
- <input type="text" name="eds_scroll_offset" value="<?php echo get_option('eds_scroll_offset', '75'); ?>" />
244
  </td>
245
 
246
  </tr>
@@ -250,8 +250,8 @@ class EDS_Animate {
250
  </td>
251
  <td>
252
  <select name="eds_enable_on_phone">
253
- <option value="1" <?php echo (get_option('eds_enable_on_phone')=='1')?'selected="selected"':'';?>><?php _e( 'Yes', 'eds-animate' ); ?></option>
254
- <option value="0" <?php echo (get_option('eds_enable_on_phone')=='0')?'selected="selected"':'';?>><?php _e( 'No', 'eds-animate' ); ?></option>
255
  </select>
256
  </td>
257
  </tr>
@@ -261,8 +261,8 @@ class EDS_Animate {
261
  </td>
262
  <td>
263
  <select name="eds_enable_on_tab">
264
- <option value="1" <?php echo (get_option('eds_enable_on_tab')=='1')?'selected="selected"':'';?>><?php _e( 'Yes', 'eds-animate' ); ?></option>
265
- <option value="0" <?php echo (get_option('eds_enable_on_tab')=='0')?'selected="selected"':'';?>><?php _e( 'No', 'eds-animate' ); ?></option>
266
  </select>
267
  </td>
268
  </tr>
@@ -272,8 +272,8 @@ class EDS_Animate {
272
  </td>
273
  <td>
274
  <select name="eds_hide_overflow_x">
275
- <option value="1" <?php echo (get_option('eds_hide_overflow_x')=='1')?'selected="selected"':'';?>><?php _e( 'Yes', 'eds-animate' ); ?></option>
276
- <option value="0" <?php echo (get_option('eds_hide_overflow_x')=='0')?'selected="selected"':'';?>><?php _e( 'No', 'eds-animate' ); ?></option>
277
  </select>
278
  </td>
279
  </tr>
@@ -283,8 +283,8 @@ class EDS_Animate {
283
  </td>
284
  <td>
285
  <select name="eds_hide_overflow_y">
286
- <option value="1" <?php echo (get_option('eds_hide_overflow_y')=='1')?'selected="selected"':'';?>><?php _e( 'Yes', 'eds-animate' ); ?></option>
287
- <option value="0" <?php echo (get_option('eds_hide_overflow_y')=='0')?'selected="selected"':'';?>><?php _e( 'No', 'eds-animate' ); ?></option>
288
  </select>
289
  </td>
290
  </tr>
@@ -293,7 +293,7 @@ class EDS_Animate {
293
  <label for="eds_custom_css"><?php _e( 'Custom CSS', 'eds-animate' ); ?>:</label>
294
  </td>
295
  <td>
296
- <textarea name="eds_custom_css" id="eds_custom_css" cols="25" rows="10"><?php echo get_option('eds_custom_css'); ?></textarea>
297
  </td>
298
  </tr>
299
  <tr>
@@ -530,8 +530,8 @@ class EDS_Animate {
530
  $instance['eds_animation_class'] = null;
531
  ?>
532
  <p>
533
- <label for="<?php echo $t->get_field_id('eds_animation_class'); ?>"><?php _e( 'Animate It Classes', 'eds-animate' ); ?></label>
534
- <input type="text" name="<?php echo $t->get_field_name('eds_animation_class'); ?>" id="<?php echo $t->get_field_id('eds_animation_class'); ?>" value="<?php echo $instance['eds_animation_class'];?>" />
535
  </p>
536
  <?php
537
  $retrun = null;
5
  * Domain Path: /lang
6
  * Plugin URI: http://www.eleopard.in
7
  * Description: Add cool CSS3 animations to your content.
8
+ * Version: 2.4.0
9
  * Author: eLEOPARD Design Studios
10
  * Author URI: http://www.eleopard.in
11
  * License: GNU General Public License version 2 or later; see LICENSE.txt
196
  if(isset($_REQUEST['eds_scroll_offset'])
197
  && isset($_REQUEST['eds_enable_on_phone'])
198
  && isset($_REQUEST['eds_enable_on_tab'])){
199
+ update_option('eds_scroll_offset', sanitize_text_field( $_REQUEST['eds_scroll_offset'] ) );
200
+ update_option('eds_enable_on_phone', sanitize_text_field( $_REQUEST['eds_enable_on_phone'] ) );
201
+ update_option('eds_hide_overflow_x', sanitize_text_field( $_REQUEST['eds_hide_overflow_x'] )) ;
202
+ update_option('eds_hide_overflow_y', sanitize_text_field( $_REQUEST['eds_hide_overflow_y'] ) );
203
+ update_option('eds_enable_on_tab', sanitize_text_field( $_REQUEST['eds_enable_on_tab'] ) );
204
  $ok=true;
205
  }
206
  $custom_css = sanitize_textarea_field(isset($_REQUEST['eds_custom_css'])?$_REQUEST['eds_custom_css']:'');
226
  ?>
227
  <a href="https://wordpress.org/support/view/plugin-reviews/animate-it" target="_blank"
228
  style="display: inline-block; margin-top: 10px; padding-top: 4px;">
229
+ <img src="<?php echo esc_attr( plugins_url( '/assets/images/banner.jpg', self::$abs_file ) ); ?>" />
230
  </a>
231
  <a href="https://wordpress.org/plugins/corona-awareness-popup/" target="_blank"
232
  style="display: inline-block; margin-top: 10px; padding-top: 4px;">
233
+ <img src="<?php echo esc_attr( plugins_url( '/assets/images/corona-plugin-banner.png', self::$abs_file ) ); ?>" />
234
  </a>
235
  <form method="post">
236
  <?php wp_nonce_field( 'eds_animateit_options' ); ?>
240
  <label for="eds_scroll_offset"><?php _e( 'Scroll Offset (in percentage)', 'eds-animate' ); ?>:</label>
241
  </td>
242
  <td colspan="2">
243
+ <input type="text" name="eds_scroll_offset" value="<?php echo esc_attr( get_option('eds_scroll_offset', '75') ); ?>" />
244
  </td>
245
 
246
  </tr>
250
  </td>
251
  <td>
252
  <select name="eds_enable_on_phone">
253
+ <option value="1" <?php echo ( esc_attr( get_option('eds_enable_on_phone') ) == '1' )?'selected="selected"':'';?>><?php _e( 'Yes', 'eds-animate' ); ?></option>
254
+ <option value="0" <?php echo ( esc_attr( get_option('eds_enable_on_phone') ) == '0' )?'selected="selected"':'';?>><?php _e( 'No', 'eds-animate' ); ?></option>
255
  </select>
256
  </td>
257
  </tr>
261
  </td>
262
  <td>
263
  <select name="eds_enable_on_tab">
264
+ <option value="1" <?php echo ( esc_attr( get_option('eds_enable_on_tab') ) == '1' )?'selected="selected"':'';?>><?php _e( 'Yes', 'eds-animate' ); ?></option>
265
+ <option value="0" <?php echo ( esc_attr( get_option('eds_enable_on_tab') ) == '0' )?'selected="selected"':'';?>><?php _e( 'No', 'eds-animate' ); ?></option>
266
  </select>
267
  </td>
268
  </tr>
272
  </td>
273
  <td>
274
  <select name="eds_hide_overflow_x">
275
+ <option value="1" <?php echo ( esc_attr( get_option('eds_hide_overflow_x') ) == '1' )?'selected="selected"':'';?>><?php _e( 'Yes', 'eds-animate' ); ?></option>
276
+ <option value="0" <?php echo ( esc_attr( get_option('eds_hide_overflow_x') ) == '0' )?'selected="selected"':'';?>><?php _e( 'No', 'eds-animate' ); ?></option>
277
  </select>
278
  </td>
279
  </tr>
283
  </td>
284
  <td>
285
  <select name="eds_hide_overflow_y">
286
+ <option value="1" <?php echo ( esc_attr( get_option('eds_hide_overflow_y') ) == '1' )?'selected="selected"':'';?>><?php _e( 'Yes', 'eds-animate' ); ?></option>
287
+ <option value="0" <?php echo ( esc_attr( get_option('eds_hide_overflow_y') ) == '0' )?'selected="selected"':'';?>><?php _e( 'No', 'eds-animate' ); ?></option>
288
  </select>
289
  </td>
290
  </tr>
293
  <label for="eds_custom_css"><?php _e( 'Custom CSS', 'eds-animate' ); ?>:</label>
294
  </td>
295
  <td>
296
+ <textarea name="eds_custom_css" id="eds_custom_css" cols="25" rows="10"><?php echo esc_attr( get_option('eds_custom_css') ); ?></textarea>
297
  </td>
298
  </tr>
299
  <tr>
530
  $instance['eds_animation_class'] = null;
531
  ?>
532
  <p>
533
+ <label for="<?php echo esc_attr( $t->get_field_id('eds_animation_class') ); ?>"><?php _e( 'Animate It Classes', 'eds-animate' ); ?></label>
534
+ <input type="text" name="<?php echo esc_attr( $t->get_field_name('eds_animation_class') ); ?>" id="<?php echo esc_attr( $t->get_field_id('eds_animation_class') ); ?>" value="<?php echo esc_attr( $instance['eds_animation_class'] );?>" />
535
  </p>
536
  <?php
537
  $retrun = null;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: eleopard
3
  Tags: css3 animation, animate.css, jquery, on scroll animation, delay, infinite, entry exit, iteration
4
  Requires at least: 4.7.0
5
  Tested up to: 5.9.2
6
- Stable tag: 2.3.9
7
  License: GNU General Public License version 2 or later
8
  License URI: http://www.gnu.org/copyleft/gpl.html
9
 
@@ -82,6 +82,9 @@ Add duration class ( duration1 to duration20 ) along with the other classes. or
82
 
83
  == Changelog ==
84
 
 
 
 
85
  = Version 2.3.9 =
86
  * Security Fixes
87
 
3
  Tags: css3 animation, animate.css, jquery, on scroll animation, delay, infinite, entry exit, iteration
4
  Requires at least: 4.7.0
5
  Tested up to: 5.9.2
6
+ Stable tag: 2.4.0
7
  License: GNU General Public License version 2 or later
8
  License URI: http://www.gnu.org/copyleft/gpl.html
9
 
82
 
83
  == Changelog ==
84
 
85
+ = Version 2.4.0 =
86
+ * Security Fixes
87
+
88
  = Version 2.3.9 =
89
  * Security Fixes
90