<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[BuddyPress][9757] trunk/src: Avatar UI: Add Backbone templates and adapt the legacy avatar templates.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://buddypress.trac.wordpress.org/changeset/9757">9757</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://buddypress.trac.wordpress.org/changeset/9757","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>imath</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-04-16 22:36:38 +0000 (Thu, 16 Apr 2015)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Avatar UI: Add Backbone templates and adapt the legacy avatar templates.

The Backone templates will be in a new "assets" sub directory of `bp-templates\bp-legacy\buddypress`. For the introduction of the feature we are advising you *to not override* these specific templates from your theme. The underscore in each sub folder names of this "assets" directory is informing we wish to restrict the content of the sub folder to Core use only.

We are introducing a new template tag to load these Backbone templates : `bp_avatar_get_templates()`. We recommand that you update the avatar templates of your theme if you are overriding `groups/create`, `groups/single/admin` or `members/single/profile/change-avatar` once 2.3 will be released. If this new template tag is not into the template, then `bp_avatar_template_check()` will try to load them using template hooks.

Props johnjamesjacoby, hnla, r-a-y.

See <a href="http://buddypress.trac.wordpress.org/ticket/6290">#6290</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcbpcorebpcoreavatarsphp">trunk/src/bp-core/bp-core-avatars.php</a></li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressgroupscreatephp">trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php</a></li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressgroupssingleadminphp">trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php</a></li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressmemberssingleprofilechangeavatarphp">trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/src/bp-templates/bp-legacy/buddypress/assets/</li>
<li>trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/</li>
<li>trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/</li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressassets_attachmentsavatarscameraphp">trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/camera.php</a></li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressassets_attachmentsavatarscropphp">trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/crop.php</a></li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressassets_attachmentsavatarsindexphp">trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/index.php</a></li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressassets_attachmentsuploaderphp">trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/uploader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcbpcorebpcoreavatarsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-core/bp-core-avatars.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-core/bp-core-avatars.php     2015-04-16 22:25:09 UTC (rev 9756)
+++ trunk/src/bp-core/bp-core-avatars.php       2015-04-16 22:36:38 UTC (rev 9757)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1437,3 +1437,35 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        return apply_filters( 'bp_avatar_use_webcam', true );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+/**
+ * Template function to load the Avatar UI javascript templates
+ *
+ * @since  BuddyPress (2.3.0)
+ */
+function bp_avatar_get_templates() {
+       if ( ! bp_avatar_is_front_edit() ) {
+               return;
+       }
+
+       bp_attachments_get_template_part( 'avatars/index' );
+}
+
+/**
+ * Trick to check if the theme's BuddyPress templates are up to date
+ *
+ * If the "avatar templates" are not including the new template tag, this will
+ * help users to get the avatar UI and inform the most curious that their
+ * templates are out of date.
+ *
+ * @since  BuddyPress (2.3.0)
+ */
+function bp_avatar_template_check() {
+       if ( ! bp_avatar_is_front_edit() ) {
+               return;
+       }
+
+       if ( ! did_action( 'bp_attachments_avatar_check_template' ) ) {
+               bp_attachments_get_template_part( 'avatars/index' );
+       }
+}
</ins></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressassets_attachmentsavatarscameraphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/camera.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/camera.php                                (rev 0)
+++ trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/camera.php  2015-04-16 22:36:38 UTC (rev 9757)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,26 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * BuddyPress Avatars camera template
+ *
+ * This template is used to create the camera Backbone views
+ *
+ * @since 2.3
+ *
+ * @package BuddyPress
+ * @subpackage bp-attachments
+ */
+?>
+<script id="tmpl-bp-avatar-webcam" type="text/html">
+       <# if ( ! data.user_media ) { #>
+               <div id="bp-webcam-message">
+                       <p class="warning"><?php esc_html_e( 'Your browser does not support the camera feature', 'buddypress' );?></p>
+               </div>
+       <# } else { #>
+               <div id="avatar-to-crop"></div>
+               <div id="avatar-crop-pane" class="avatar" style="width:{{data.w}}px; height:{{data.h}}px"></div>
+               <div id="avatar-crop-actions">
+                       <a class="button avatar-webcam-capture" href="#"><?php esc_html_e( 'Capture', 'buddypress' );?></a>
+                       <a class="button avatar-webcam-save hide" href="#"><?php esc_html_e( 'Save', 'buddypress' );?></a>
+               </div>
+       <# } #>
+</script>
</ins></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressassets_attachmentsavatarscropphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/crop.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/crop.php                          (rev 0)
+++ trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/crop.php    2015-04-16 22:36:38 UTC (rev 9757)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,23 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * BuddyPress Avatars crop template
+ *
+ * This template is used to create the crop Backbone views
+ *
+ * @since 2.3
+ *
+ * @package BuddyPress
+ * @subpackage bp-attachments
+ */
+?>
+<script id="tmpl-bp-avatar-item" type="text/html">
+       <div id="avatar-to-crop">
+               <img src="{{data.url}}"/>
+       </div>
+       <div id="avatar-crop-pane" class="avatar" style="width:{{data.full_w}}px; height:{{data.full_h}}px">
+               <img src="{{data.url}}" id="avatar-crop-preview"/>
+       </div>
+       <div id="avatar-crop-actions">
+               <a class="button avatar-crop-submit" href="#"><?php esc_html_e( 'Crop Image', 'buddypress' ); ?></a>
+       </div>
+</script>
</ins></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressassets_attachmentsavatarsindexphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/index.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/index.php                         (rev 0)
+++ trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/index.php   2015-04-16 22:36:38 UTC (rev 9757)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,47 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * BuddyPress Avatars main template
+ *
+ * This template is used to inject the BuddyPress Backbone views
+ * dealing with avatars.
+ * It's also used to create the common Backbone views
+ *
+ * @since 2.3
+ *
+ * @package BuddyPress
+ * @subpackage bp-attachments
+ */
+
+
+/**
+ * This action is for internal use, please do not use it
+ */
+do_action( 'bp_attachments_avatar_check_template' );
+?>
+<div class="bp-avatar-nav"></div>
+<div class="bp-avatar"></div>
+<div class="bp-avatar-status"></div>
+
+<script type="text/html" id="tmpl-bp-avatar-nav">
+       <a href="{{data.href}}" class="bp-avatar-nav-item" data-nav="{{data.id}}">{{data.name}}</a>
+</script>
+
+<?php bp_attachments_get_template_part( 'uploader' ); ?>
+
+<?php bp_attachments_get_template_part( 'avatars/crop' ); ?>
+
+<?php bp_attachments_get_template_part( 'avatars/camera' ); ?>
+
+<script id="tmpl-bp-avatar-delete" type="text/html">
+       <# if ( 'user' === data.object ) { #>
+               <p><?php _e( "If you'd like to delete your current profile photo but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p>
+               <p><a class="button edit" id="bp-delete-avatar" href="#" title="<?php esc_attr_e( 'Delete Profile Photo', 'buddypress' ); ?>"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p>
+       <# } else if ( 'group' === data.object ) { #>
+               <p><?php _e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p>
+               <p><a class="button edit" id="bp-delete-avatar" href="#" title="<?php esc_attr_e( 'Delete Group Profile Photo', 'buddypress' ); ?>"><?php esc_html_e( 'Delete Group Profile Photo', 'buddypress' ); ?></a></p>
+       <# } else { #>
+               <?php do_action( 'bp_attachments_avatar_delete_template' ); ?>
+       <# } #>
+</script>
+
+<?php do_action( 'bp_attachments_avatar_main_template' ); ?>
</ins></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressassets_attachmentsuploaderphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/uploader.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/uploader.php                              (rev 0)
+++ trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/uploader.php        2015-04-16 22:36:38 UTC (rev 9757)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,38 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * BuddyPress Uploader templates
+ *
+ * This template is used to create the BuddyPress Uploader Backbone views
+ *
+ * @since 2.3
+ *
+ * @package BuddyPress
+ * @subpackage bp-attachments
+ */
+?>
+<script type="text/html" id="tmpl-upload-window">
+       <?php if ( ! _device_can_upload() ) : ?>
+               <h3 class="upload-instructions"><?php esc_html_e( 'The web browser on your device cannot be used to upload files.', 'buddypress' ); ?></h3>
+       <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?>
+               <h3 class="upload-instructions"><?php esc_html_e( 'Upload Limit Exceeded', 'buddypress' ); ?></h3>
+       <?php else : ?>
+               <div id="{{data.container}}">
+                       <div id="{{data.drop_element}}">
+                               <div class="drag-drop-inside">
+                                       <p class="drag-drop-info"><?php esc_html_e( 'Drop your file here', 'buddypress' ); ?></p>
+                                       <p><?php _ex( 'or', 'Uploader: Drop your file here - or - Select your File', 'buddypress' ); ?></p>
+                                       <p class="drag-drop-buttons"><input id="{{data.browse_button}}" type="button" value="<?php esc_attr_e( 'Select your File', 'buddypress' ); ?>" class="button" /></p>
+                               </div>
+                       </div>
+               </div>
+       <?php endif; ?>
+</script>
+
+<script type="text/html" id="tmpl-progress-window">
+       <div id="{{data.id}}">
+               <div class="progress">
+                       <div class="bar"></div>
+               </div>
+               <div class="filename">{{data.filename}}</div>
+       </div>
+</script>
</ins></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressgroupscreatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php     2015-04-16 22:25:09 UTC (rev 9756)
+++ trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php       2015-04-16 22:36:38 UTC (rev 9757)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,7 +60,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                        <label>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                <input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         <input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 <strong><?php _e( 'This is a private group', 'buddypress' ); ?></strong>
</span><span class="cx" style="display: block; padding: 0 10px">                                        </label>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <ul>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -71,7 +71,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                        <label>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                <input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         <input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 <strong><?php _e('This is a hidden group', 'buddypress' ); ?></strong>
</span><span class="cx" style="display: block; padding: 0 10px">                                        </label>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <ul>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -153,6 +153,14 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                <p><?php _e( 'To skip the group profile photo upload process, hit the "Next Step" button.', 'buddypress' ); ?></p>
</span><span class="cx" style="display: block; padding: 0 10px">                                        </div><!-- .main-column -->
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                        <?php
+                                       /**
+                                        * Load the Avatar UI templates
+                                        *
+                                        * @since  BuddyPress (2.3.0)
+                                        */
+                                       bp_avatar_get_templates(); ?>
+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -306,4 +314,4 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php do_action( 'bp_after_create_group_page' ); ?>
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php do_action( 'bp_after_create_group_page' ); ?>
</ins></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressgroupssingleadminphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php       2015-04-16 22:25:09 UTC (rev 9756)
+++ trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php 2015-04-16 22:36:38 UTC (rev 9757)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -140,6 +140,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        <?php
+                       /**
+                        * Load the Avatar UI templates
+                        *
+                        * @since  BuddyPress (2.3.0)
+                        */
+                       bp_avatar_get_templates(); ?>
+
</ins><span class="cx" style="display: block; padding: 0 10px">                         <?php wp_nonce_field( 'bp_avatar_upload' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        <?php endif; ?>
</span></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressmemberssingleprofilechangeavatarphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php      2015-04-16 22:25:09 UTC (rev 9756)
+++ trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php        2015-04-16 22:36:38 UTC (rev 9757)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -50,6 +50,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        </form>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        <?php
+       /**
+        * Load the Avatar UI templates
+        *
+        * @since  BuddyPress (2.3.0)
+        */
+       bp_avatar_get_templates(); ?>
+
</ins><span class="cx" style="display: block; padding: 0 10px"> <?php else : ?>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        <p><?php _e( 'Your profile photo will be used on your profile and throughout the site. To change your profile photo, please create an account with <a href="http://gravatar.com">Gravatar</a> using the same email address as you used to register with this site.', 'buddypress' ); ?></p>
</span></span></pre>
</div>
</div>

</body>
</html>