Changeset 2632036
- Timestamp:
- 11/18/2021 11:19:40 AM (4 years ago)
- File:
-
- 1 edited
-
crypto-voucher-widget/trunk/cv_widget_image.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
crypto-voucher-widget/trunk/cv_widget_image.php
r2631280 r2632036 62 62 public function form( $instance ) { 63 63 if ( isset( $instance[ 'label' ] ) ) { 64 $label = $instance[ 'label' ];64 $label = esc_attr($instance[ 'label' ]); 65 65 } 66 66 else { … … 69 69 70 70 if ( isset( $istance[ 'referenceId'] ) ) { 71 $referenceId = $instance[ 'referenceId' ];71 $referenceId = esc_attr($instance[ 'referenceId' ]); 72 72 } else { 73 73 $referenceId = null; … … 83 83 > 84 84 <label for="<?php echo esc_attr($this->get_field_name( 'label' )); ?>"><?php _e( 'Enter title:' ); ?></label> 85 <input class="widefat" id="<?php echo esc_attr($this->get_field_id( 'label' )); ?>" name="<?php echo esc_attr($this->get_field_name( 'label' )); ?>" type="text" value="<?php echo esc_attr( $label ); ?>" />85 <input class="widefat" id="<?php echo$this->get_field_id( 'label' ); ?>" name="<?php echo esc_attr($this->get_field_name( 'label' )); ?>" type="text" value="<?php echo esc_attr( $label ); ?>" /> 86 86 </div> 87 87 … … 90 90 > 91 91 <label for="<?php echo esc_attr($this->get_field_name( 'referenceId' )); ?>"><?php _e( 'Enter your reference identificator (required):' ); ?></label> 92 <input class="widefat" placeholder="widget token" id="<?php echo esc_attr($this->get_field_id( 'referenceId' )); ?>" name="<?php echo esc_attr($this->get_field_name( 'referenceId' )); ?>" type="text" value="<?php echo esc_attr( $referenceId ); ?>" />92 <input class="widefat" placeholder="widget token" id="<?php echo $this->get_field_id( 'referenceId' ); ?>" name="<?php echo esc_attr($this->get_field_name( 'referenceId' )); ?>" type="text" value="<?php echo esc_attr( $referenceId ); ?>" /> 93 93 </div> 94 94 … … 97 97 > 98 98 <label for="<?php echo esc_attr($this->get_field_name( 'primaryColor' )); ?>"><?php _e( 'Enter primary color of widget (optional):' ); ?></label> 99 <input class="widefat" id="<?php echo esc_attr($this->get_field_id( 'primaryColor' )); ?>" name="<?php echo esc_attr($this->get_field_name( 'primaryColor' )); ?>" type="text" value="<?php echo esc_attr( $primaryColor ); ?>" />99 <input class="widefat" id="<?php echo $this->get_field_id( 'primaryColor' ); ?>" name="<?php echo esc_attr($this->get_field_name( 'primaryColor' )); ?>" type="text" value="<?php echo esc_attr( $primaryColor ); ?>" /> 100 100 </div> 101 101 … … 104 104 > 105 105 <label for="<?php echo esc_attr($this->get_field_name( 'logo' )); ?>"><?php _e( 'Enter URL to your logo (optional):' ); ?></label> 106 <input class="widefat" id="<?php echo esc_attr($this->get_field_id( 'logo' )); ?>" name="<?php echo esc_attr($this->get_field_name( 'logo' )); ?>" type="text" value="<?php echo esc_attr( $logo ); ?>" />106 <input class="widefat" id="<?php echo $this->get_field_id( 'logo' ); ?>" name="<?php echo esc_attr($this->get_field_name( 'logo' )); ?>" type="text" value="<?php echo esc_attr( $logo ); ?>" /> 107 107 </div> 108 108 </div>
Note: See TracChangeset
for help on using the changeset viewer.