<p><?php _e('Upload an image to use as an avatar for this link. The image will be shown on the main link page, and in search results.', 'buddypress-links'); ?> </p> <p> <input type="file" name="file" id="file" /> <input type="submit" name="upload" id="upload" value="<?php _e('Upload Image', 'buddypress-links'); ?> " /> <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> </p> <?php if (bp_get_link_avatar_form_embed_html_display()) { ?> <div> <p> <?php printf('-- %1$s --', __('OR', 'buddypress-links')); ?> </p> <div> <?php printf(__('Paste Image Embed Code (%1$s and %2$s are supported)', 'buddypress-links'), '<a href="http://www.picapp.com/" target="_blank">PicApp</a>', '<a href="http://www.fotoglif.com/" target="_blank">Fotoglif</a>'); ?> </div> <textarea name="embed-html" id="embed-html" cols="50" rows="4"><?php bp_link_avatar_form_embed_html(); ?>
function bp_link_avatar_form_embed_html_display() { echo bp_get_link_avatar_form_embed_html_display(); }