Advertisement
Guest User

Untitled

a guest
Apr 14th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.91 KB | None | 0 0
  1. <div class="userpro userpro-<?php echo $i; ?> userpro-id-<?php echo $user_id; ?> userpro-<?php echo $layout; ?>" <?php userpro_args_to_data( $args ); ?>>
  2.  
  3. <a href="#" class="userpro-close-popup"><?php _e('Close','userpro'); ?></a>
  4.  
  5. <div class="userpro-centered <?php if (isset($args['header_only']) && $args['header_only']) { echo 'userpro-centered-header-only'; } ?>">
  6.  
  7. <?php if ( userpro_get_option('lightbox') && userpro_get_option('profile_lightbox') ) { ?>
  8. <div class="userpro-profile-img" data-key="profilepicture"><a href="<?php echo $userpro->profile_photo_url($user_id); ?>" class="userpro-tip-fade lightview" data-lightview-caption="<?php echo $userpro->profile_photo_title( $user_id ); ?>" title="<?php _e('View member photo','userpro'); ?>"><?php echo get_avatar( $user_id, $profile_thumb_size ); ?></a></div>
  9. <?php } else { ?>
  10. <div class="userpro-profile-img" data-key="profilepicture"><a href="<?php echo $userpro->permalink($user_id); ?>" title="<?php _e('View Profile','userpro'); ?>"><?php echo get_avatar( $user_id, $profile_thumb_size ); ?></a></div>
  11. <?php } ?>
  12. <div class="userpro-profile-img-after">
  13. <div class="userpro-profile-name">
  14. <a href="<?php echo $userpro->permalink($user_id); ?>"><?php echo userpro_profile_data('display_name', $user_id); ?></a><?php
  15. if(userpro_get_option('show_badges_profile')=='1')
  16. echo userpro_show_badges( $user_id );
  17. else
  18. {?>
  19. <?php
  20. if(userpro_show_badges( $user_id )!='<span class="userpro-badges"></span>') {?>
  21.  
  22. <span class="badges"></span>
  23. <i onclick="userpro_show_user_badges(<?php echo $user_id;?>);" class="fa fa-arrow-circle-right display_badges"></i>
  24. <?php }}?>
  25. </div>
  26. <?php do_action('userpro_after_profile_img' , $user_id);
  27.  
  28.  
  29. ?>
  30. <?php if ( userpro_can_edit_user( $user_id ) || userpro_get_edit_userrole() ) {
  31.  
  32. ?>
  33. <div class="userpro-profile-img-btn">
  34. <?php if (isset($args['header_only']) && $args['header_only']){ ?>
  35. <a href="<?php echo $userpro->permalink($user_id, 'edit'); ?>" class="userpro-button secondary"><?php _e('Edit Profile','userpro') ?></a>
  36. <?php } else { ?>
  37. <a href="#" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" data-template="edit" class="userpro-button secondary"><?php _e('Edit Profile','userpro'); ?></a>
  38. <?php } ?>
  39. <img src="<?php echo $userpro->skin_url(); ?>loading.gif" alt="" class="userpro-loading" />
  40. </div>
  41. <?php } ?>
  42. </div>
  43.  
  44. <div class="userpro-profile-icons top">
  45. <?php if (isset($args['permalink'])) {
  46. userpro_logout_link( $user_id, $args['permalink'], $args['logout_redirect'] );
  47. } else {
  48. userpro_logout_link( $user_id );
  49. } ?>
  50. </div>
  51.  
  52. <?php echo $userpro->show_social_bar( $args, $user_id, 'userpro-centered-icons' ); ?>
  53.  
  54. <div class="userpro-clear"></div>
  55.  
  56. </div>
  57.  
  58. <?php if (!isset($args['header_only'] ) || (isset($args['header_only']) && ! $args['header_only'] )) { ?>
  59.  
  60. <?php
  61. // action hook after user header
  62. if (!isset($args['disable_head_hooks'])){
  63. if (!isset($user_id)) $user_id = 0;
  64. $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
  65. do_action('userpro_after_profile_head', $hook_args);
  66. }
  67. ?>
  68.  
  69. <div class="userpro-body">
  70.  
  71. <?php do_action('userpro_pre_form_message'); ?>
  72.  
  73. <form action="" method="post" data-action="<?php echo $template; ?>">
  74.  
  75. <input type="hidden" name="user_id-<?php echo $i; ?>" id="user_id-<?php echo $i; ?>" value="<?php echo $user_id; ?>" />
  76.  
  77. <?php // Hook into fields $args, $user_id
  78. if (!isset($user_id)) $user_id = 0;
  79. $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
  80. do_action('userpro_before_fields', $hook_args);
  81. ?>
  82.  
  83. <?php foreach( userpro_fields_group_by_template( $template, $args["{$template}_group"] ) as $key => $array ) { ?>
  84.  
  85. <?php if ($array) echo userpro_show_field( $key, $array, $i, $args, $user_id ) ?>
  86.  
  87. <?php } ?>
  88.  
  89. <?php // Hook into fields $args, $user_id
  90. if (!isset($user_id)) $user_id = 0;
  91. $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
  92. do_action('userpro_after_fields', $hook_args);
  93. ?>
  94.  
  95. <?php // Hook into fields $args, $user_id
  96. if (!isset($user_id)) $user_id = 0;
  97. $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
  98. do_action('userpro_before_form_submit', $hook_args);
  99. ?>
  100.  
  101. <?php if ( userpro_can_delete_user($user_id) || $userpro->request_verification($user_id) || isset( $args["{$template}_button_primary"] ) || isset( $args["{$template}_button_secondary"] ) ) { ?>
  102. <div class="userpro-field userpro-submit userpro-column">
  103.  
  104. <?php if ( $userpro->request_verification($user_id) ) { ?>
  105. <input type="button" value="<?php _e('Request Verification','userpro'); ?>" class="popup-request_verify userpro-button secondary" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" />
  106. <?php } ?>
  107.  
  108. <?php if ( userpro_can_delete_user($user_id) ) { ?>
  109. <input type="button" value="<?php _e('Delete Profile','userpro'); ?>" class="userpro-button red" data-template="delete" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" />
  110. <?php } ?>
  111.  
  112. <?php if (isset($args["{$template}_button_primary"]) ) { ?>
  113. <input type="submit" value="<?php echo $args["{$template}_button_primary"]; ?>" class="userpro-button" />
  114. <?php } ?>
  115.  
  116. <?php if (isset( $args["{$template}_button_secondary"] )) { ?>
  117. <input type="button" value="<?php echo $args["{$template}_button_secondary"]; ?>" class="userpro-button secondary" data-template="<?php echo $args["{$template}_button_action"]; ?>" />
  118. <?php } ?>
  119.  
  120. <img src="<?php echo $userpro->skin_url(); ?>loading.gif" alt="" class="userpro-loading" />
  121. <div class="userpro-clear"></div>
  122.  
  123. </div>
  124. <?php } ?>
  125.  
  126. </form>
  127.  
  128. </div>
  129.  
  130. <?php } ?>
  131.  
  132. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement