Skip to:
Content

BuddyPress.org

Ticket #6290: 6290.tpl.01

File 6290.tpl.01, 1.6 KB (added by hnla, 4 years ago)

Update avatar templates

Line 
1Index: src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/camera.php
2===================================================================
3--- src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/camera.php        (revision 9785)
4+++ src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/camera.php        (working copy)
5@@ -17,10 +17,12 @@
6                </div>
7        <# } else { #>
8                <div id="avatar-to-crop"></div>
9+               <div class="avatar-crop-management">
10                <div id="avatar-crop-pane" class="avatar" style="width:{{data.w}}px; height:{{data.h}}px"></div>
11                <div id="avatar-crop-actions">
12                        <a class="button avatar-webcam-capture" href="#"><?php esc_html_e( 'Capture', 'buddypress' );?></a>
13                        <a class="button avatar-webcam-save" href="#"><?php esc_html_e( 'Save', 'buddypress' );?></a>
14                </div>
15+               </div>
16        <# } #>
17 </script>
18Index: src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/crop.php
19===================================================================
20--- src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/crop.php  (revision 9785)
21+++ src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/crop.php  (working copy)
22@@ -14,10 +14,12 @@
23        <div id="avatar-to-crop">
24                <img src="{{data.url}}"/>
25        </div>
26+       <div class="avatar-crop-management">
27        <div id="avatar-crop-pane" class="avatar" style="width:{{data.full_w}}px; height:{{data.full_h}}px">
28                <img src="{{data.url}}" id="avatar-crop-preview"/>
29        </div>
30        <div id="avatar-crop-actions">
31                <a class="button avatar-crop-submit" href="#"><?php esc_html_e( 'Crop Image', 'buddypress' ); ?></a>
32        </div>
33+       </div>
34 </script>