Нет описания

dynamic_profile.php 1012B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
  2. <style type="text/css">
  3. <?php if ( ! $photosize || $photosize == 'original' ) {
  4. //cannot be more than metadefault value
  5. $photosize = um_get_metadefault( 'profile_photosize' );
  6. }
  7. $photosize = filter_var( $photosize, FILTER_SANITIZE_NUMBER_INT );
  8. $photosize_up = ( $photosize / 2 ) + 10;
  9. $meta_padding = ( $photosize + 60 ) . 'px';
  10. if ( $area_max_width ) {
  11. print "
  12. .um-$form_id.um .um-profile-body {
  13. max-width: $area_max_width;
  14. }
  15. ";
  16. }
  17. print "
  18. .um-$form_id.um .um-profile-photo a.um-profile-photo-img {
  19. width: ".$photosize."px;
  20. height: ".$photosize."px;
  21. }
  22. ";
  23. print "
  24. .um-$form_id.um .um-profile-photo a.um-profile-photo-img {
  25. top: -".$photosize_up."px;
  26. }
  27. ";
  28. if ( is_rtl() ) {
  29. print "
  30. .um-$form_id.um .um-profile-meta {
  31. padding-right: $meta_padding;
  32. }
  33. ";
  34. } else {
  35. print "
  36. .um-$form_id.um .um-profile-meta {
  37. padding-left: $meta_padding;
  38. }
  39. ";
  40. }
  41. ?>
  42. </style>