love your plugin! can i ask for a feature? :) (1 post)

  1. asafche
    Posted 4 years ago #

    I've added a feature to the login widget, so i can customise the size of the shown avatar. Here is the code that I added to specific lines in widget-login-form.php. I hope you'll except this change of code, and implement it in the next update. but if you won't please notice me, so I could add it myself. thanks.

    Line 64:
    'avatar-size' => !empty( $instance['avatar-size']) ? 96 : $instance['avatar-size'],

    Line 89:

    echo get_avatar( $user_ID , $instance['avatar-size'] );

    Line 101:

    echo get_avatar( $user_ID , $instance['avatar-size'] );

    Line 132:
    $instance['avatar-size'] = strip_tags( $new_instance['avatar-size'] );

    Line 171:
    'avatar-size' => '96',

    Line 250 - Line 253:

    			<label for="<?php echo $this->get_field_id( 'avatar-size' ); ?>"><code>Only digits, in px</code></label>
    			<input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'avatar-size' ); ?>" name="<?php echo $this->get_field_name( 'avatar-size' ); ?>" value="<?php echo $instance['avatar-size']; ?>" />


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Members
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic