Plugin Directory

Changeset 2853149


Ignore:
Timestamp:
01/23/2023 10:29:53 PM (3 years ago)
Author:
LeoPeo
Message:

release 1.1.5

Location:
easy-panorama/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • easy-panorama/trunk/admin/class-easy-panorama-admin.php

    r1919238 r2853149  
    251251    ?>
    252252    <label>
    253       <input id="easyPanorama_panorama[containerHeight]" type="number" name="easyPanorama_panorama[containerHeight]" value="<?php echo $this->options_panorama['containerHeight']; ?>" />
     253      <input id="easyPanorama_panorama[containerHeight]" type="number" name="easyPanorama_panorama[containerHeight]" value="<?php echo esc_attr($this->options_panorama['containerHeight']); ?>" />
    254254      <?php _e('px', $this->plugin_name); ?><br>
    255255      <em><?php _e('Insert the height for all panoramic images container (Default: 400px).', $this->plugin_name); ?></em>
     
    272272    ?>
    273273    <label>
    274       <input id="easyPanorama_panorama[failureMessage]" type="text" name="easyPanorama_panorama[failureMessage]" value="<?php echo $this->options_panorama['failureMessage']; ?>" /><br>
     274      <input id="easyPanorama_panorama[failureMessage]" type="text" name="easyPanorama_panorama[failureMessage]" value="<?php echo esc_attr($this->options_panorama['failureMessage']); ?>" /><br>
    275275      <em><?php _e('This message will appear in mobile devices with no gyroscopic data or no physical orientation support. (Default: <code>Scroll left/right to pan through panorama.</code>).', $this->plugin_name); ?></em>
    276276    </label>
     
    300300    ?>
    301301    <label>
    302       <input id="easyPanorama_panorama[minimumOverflow]" type="number" name="easyPanorama_panorama[minimumOverflow]" value="<?php echo $this->options_panorama['minimumOverflow'];?>" />
     302      <input id="easyPanorama_panorama[minimumOverflow]" type="number" name="easyPanorama_panorama[minimumOverflow]" value="<?php echo esc_attr($this->options_panorama['minimumOverflow']);?>" />
    303303      <?php _e('px', $this->plugin_name); ?><br>
    304304      <em><?php _e('The excess width the picture must have before Paver kicks in (Default: 0px).', $this->plugin_name); ?></em>
  • easy-panorama/trunk/block/class-easy-panorama-block.php

    r1919238 r2853149  
    7979      'containerHeight' => absint($this->options_panorama['containerHeight']),
    8080      'startPosition' => absint($this->options_panorama['startPosition'] * 10),
    81       'gracefulFailure' => (bool)$this->options_panorama['gracefulFailure'],
     81      'gracefulFailure' => (bool)esc_attr($this->options_panorama['gracefulFailure']),
    8282      'failureMessage' => esc_attr($this->options_panorama['failureMessage']),
    8383      'failureMessageInsert' => esc_attr($this->options_panorama['failureMessageInsert']),
    8484      'minimumOverflow' => absint($this->options_panorama['minimumOverflow']),
    85       'displayMeta' => (bool)$this->options_panorama['meta'],
     85      'displayMeta' => (bool)esc_attr($this->options_panorama['meta']),
    8686    );
    8787    return $defaultSettings;
  • easy-panorama/trunk/easy-panorama.php

    r1995612 r2853149  
    1212 * Plugin URI: https://github.com/leopuleo
    1313 * Description: Embed interactive wide/panoramic images on your site. Optimised for responsive layouts, it works great with devices equipped with motion sensors.
    14  * Version:           1.1.4
     14 * Version:           1.1.5
    1515 * Author: Leonardo Giacone
    1616 * Author URI: https://github.com/leopuleo
  • easy-panorama/trunk/includes/class-easy-panorama.php

    r1995612 r2853149  
    9999
    100100    $this->plugin_name = 'easy-panorama';
    101     $this->version = '1.1.4';
     101    $this->version = '1.1.5';
    102102    $this->plugin_basename = plugin_basename(plugin_dir_path(__DIR__) . $this->plugin_name . '.php');
    103103
  • easy-panorama/trunk/public/class-easy-panorama-public.php

    r1867796 r2853149  
    145145    $localize_var = array(
    146146      'panorama' => array(
    147         'gracefulFailure' => (bool)$this->options_panorama['gracefulFailure'],
     147        'gracefulFailure' => (bool)esc_attr($this->options_panorama['gracefulFailure']),
    148148        'failureMessage' => esc_attr($this->options_panorama['failureMessage']),
    149149        'failureMessageInsert' => esc_attr($this->options_panorama['failureMessageInsert']),
    150         'meta' => (bool)$this->options_panorama['meta'],
     150        'meta' => (bool)esc_attr($this->options_panorama['meta']),
    151151        'minimumOverflow' => absint($this->options_panorama['minimumOverflow']),
    152         'startPosition' => (float)$this->options_panorama['startPosition'],
     152        'startPosition' => (float)number_format($this->options_panorama['startPosition'], 1, '.', ''),
    153153      )
    154154    );
     
    171171      'alt'                     => '',
    172172      'container_height'        => absint($this->options_panorama['containerHeight']),
    173       'graceful_failure'        => (bool)$this->options_panorama['gracefulFailure'],
     173      'graceful_failure'        => (bool)esc_attr($this->options_panorama['gracefulFailure']),
    174174      'failure_message'         => esc_attr($this->options_panorama['failureMessage']),
    175175      'failure_message_insert'  => esc_attr($this->options_panorama['failureMessageInsert']),
    176       'meta'                    => (bool)$this->options_panorama['meta'],
     176      'meta'                    => (bool)esc_attr($this->options_panorama['meta']),
    177177      'minimum_overflow'        => absint($this->options_panorama['minimumOverflow']),
    178       'start_position'          => (float)$this->options_panorama['startPosition']
     178      'start_position'          => (float)number_format($this->options_panorama['startPosition'], 1, '.', '')
    179179    );
    180180
     
    212212    echo '
    213213      <div class="easy-panorama"
    214         data-graceful-failure="' . (bool)$graceful_failure . '"
     214        data-graceful-failure="' . (bool)esc_url($graceful_failure) . '"
    215215        data-failure-message="' . esc_attr($failure_message) . '"
    216216        data-failure-message-insert="' . esc_attr($failure_message_insert) . '"
    217         data-meta="' . (bool)$meta . '"
     217        data-meta="' . (bool)esc_url($meta) . '"
    218218        data-minimum-overflow="' . absint($minimum_overflow) . '"
    219219        data-start-position="' . floatval($start_position) . '"
  • easy-panorama/trunk/readme.txt

    r1995849 r2853149  
    66Tested up to: 5.0
    77Requires PHP: 5.6
    8 Stable tag: 1.1.4
     8Stable tag: 1.1.5
    99License: GPL-2.0+
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    117117== Changelog ==
    118118
     119= 1.1.5 (23/01/2023) =
     120* Bug fix: Sanitize and escape admin input fields. Thanks to [riodrwn](https://twitter.com/riodrwn)
     121
    119122= 1.1.4 (15/12/2018) =
    120123* Bug fix: Added <code><MediaUploadCheck></code> + <code>allowedType</code> control
Note: See TracChangeset for help on using the changeset viewer.