Files
ultimatemember/assets/dynamic_css/dynamic_profile.php
T

109 lines
2.0 KiB
PHP
Raw Normal View History

2014-12-15 22:38:07 +02:00
<style type="text/css">
<?php
$photosize = str_replace('px','',$photosize);
$photosize_up = ( $photosize / 2 ) + 10;
$meta_padding = ( $photosize + 60 ) . 'px';
if ( $photocorner == 1 ) {
2014-12-29 15:51:55 +02:00
print "
.um-$form_id.um .um-profile-photo a.um-profile-photo-img,
.um-$form_id.um .um-profile-photo img,
.um-$form_id.um .um-profile-photo span.um-profile-photo-overlay
{ border-radius: 999px !important }";
2014-12-15 22:38:07 +02:00
}
if ( $photocorner == 2 ) {
2014-12-29 15:51:55 +02:00
print "
.um-$form_id.um .um-profile-photo a.um-profile-photo-img,
.um-$form_id.um .um-profile-photo img,
.um-$form_id.um .um-profile-photo span.um-profile-photo-overlay
{ border-radius: 4px !important }";
2014-12-15 22:38:07 +02:00
}
if ( $photocorner == 3 ) {
2014-12-29 15:51:55 +02:00
print "
.um-$form_id.um .um-profile-photo a.um-profile-photo-img,
.um-$form_id.um .um-profile-photo img,
.um-$form_id.um .um-profile-photo span.um-profile-photo-overlay
{ border-radius: 0px !important }";
}
print "
.um-$form_id.um .um-profile-photo {
width: $meta_padding;
2014-12-15 22:38:07 +02:00
}
2014-12-29 15:51:55 +02:00
";
2014-12-15 22:38:07 +02:00
print "
.um-$form_id.um .um-profile-photo a.um-profile-photo-img {
width: ".$photosize."px;
height: ".$photosize."px;
}
";
print "
.um-$form_id.um .um-profile-photo a.um-profile-photo-img {
top: -".$photosize_up."px;
}
";
print "
.um-$form_id.um .um-profile-meta {
padding-left: $meta_padding;
}
";
if ( $main_bg ) {
print ".um-$form_id.um-profile {
2014-12-16 21:57:13 +02:00
background-color: $main_bg !important;
2014-12-15 22:38:07 +02:00
}";
}
if ( $header_bg ) {
print ".um-$form_id.um .um-header {
background-color: $header_bg;
}";
}
if ( $header_text ) {
print ".um-$form_id.um .um-profile-meta {
color: $header_text;
}";
}
if ( $header_link_color ) {
print "
.um-$form_id.um .um-name a {
color: $header_link_color;
}
";
}
if ( $header_link_hcolor ) {
print "
.um-$form_id.um .um-name a:hover {
color: $header_link_hcolor;
}
";
}
if ( $header_icon_color ) {
print "
.um-$form_id.um .um-profile-headericon a {
color: $header_icon_color;
}
";
}
if ( $header_icon_hcolor ) {
print "
2015-01-05 01:33:17 +02:00
.um-$form_id.um .um-profile-headericon a:hover,
.um-$form_id.um .um-profile-edit-a.active {
2014-12-15 22:38:07 +02:00
color: $header_icon_hcolor;
}
";
}
?>
</style>