Plugin Directory

Changeset 2632036


Ignore:
Timestamp:
11/18/2021 11:19:40 AM (4 years ago)
Author:
alexx123939
Message:

widget changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • crypto-voucher-widget/trunk/cv_widget_image.php

    r2631280 r2632036  
    6262  public function form( $instance ) {
    6363      if ( isset( $instance[ 'label' ] ) ) {
    64         $label = $instance[ 'label' ];
     64        $label = esc_attr($instance[ 'label' ]);
    6565      }
    6666      else {
     
    6969
    7070      if ( isset( $istance[ 'referenceId'] ) ) {
    71         $referenceId = $instance[ 'referenceId' ];
     71        $referenceId = esc_attr($instance[ 'referenceId' ]);
    7272      } else {
    7373        $referenceId = null;
     
    8383        >
    8484            <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 ); ?>" />
    8686        </div>
    8787
     
    9090        >
    9191            <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 ); ?>" />
    9393        </div>
    9494
     
    9797        >
    9898            <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 ); ?>" />
    100100        </div>
    101101
     
    104104        >
    105105            <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 ); ?>" />
    107107        </div>
    108108     </div>
Note: See TracChangeset for help on using the changeset viewer.