Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2009 06:56:42 PM (17 years ago)
Author:
apeatling
Message:

Merging last few trunk changes and stripping all whitespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bp-themes/bp-sn-parent/profile/change-avatar.php

    r1905 r2076  
    66
    77        <div id="content">
    8        
     8
    99                <h2><?php _e( 'Change Avatar', 'buddypress' ) ?></h2>
    10                
     10
    1111                <?php do_action( 'template_notices' ) ?>
    12        
     12
    1313                <?php do_action( 'bp_before_profile_avatar_upload_content' ) ?>
    1414
    1515                <p><?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a <a href="http://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress') ?></p>
    16                
    17                 <form action="" method="post" id="avatar-upload-form" enctype="multipart/form-data">   
    18                        
     16
     17                <form action="" method="post" id="avatar-upload-form" enctype="multipart/form-data">
     18
    1919                        <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    20                        
     20
    2121                                <h3><?php _e( 'Your Current Avatar', 'buddypress' ) ?></h3>
    22                
     22
    2323                                <p id="current-avatar">
    2424                                        <?php bp_displayed_user_avatar( 'type=full') ?>
    2525                                        <?php bp_displayed_user_avatar( 'type=thumb' ) ?>
    2626                                </p>
    27                                
     27
    2828                                <?php if ( bp_get_user_has_avatar() ) : ?>
    2929                                        <div class="generic-button" id="delete-avatar-button">
    … …  
    3131                                        </div>
    3232                                <?php endif; ?>
    33                                
     33
    3434                                <h3><?php _e( 'Upload a New Avatar', 'buddypress' ) ?></h3>
    3535
    3636                                <p><?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ) ?></p>
    37                                
     37
    3838                                <p id="avatar-upload">
    39                                         <input type="file" name="file" id="file" /> 
     39                                        <input type="file" name="file" id="file" />
    4040                                        <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
    4141                                        <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    … …  
    4343
    4444                                <?php wp_nonce_field( 'bp_avatar_upload' ) ?>
    45                                
     45
    4646                        <?php endif; ?>
    47                        
     47
    4848                        <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    49                        
     49
    5050                                <h3><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h3>
    51                                
     51
    5252                                <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" />
    53                                
     53
    5454                                <div id="avatar-crop-pane">
    5555                                        <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" />
    … …  
    5757
    5858                                <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" />
    59                                
     59
    6060                                <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />
    6161                                <input type="hidden" id="x" name="x" />
    … …  
    6565
    6666                                <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?>
    67                                
     67
    6868                        <?php endif; ?>
    69                        
     69
    7070                </form>
    71                
     71
    7272                <?php do_action( 'bp_after_profile_avatar_upload_content' ) ?>
    73                
     73
    7474        </div>
    7575
Note: See TracChangeset for help on using the changeset viewer.