mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 03:36:28 +09:00
Fix dynamic CSS options in member directory
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<style type="text/css">
|
||||
<?php
|
||||
|
||||
if ( isset( $css_profile_card_bg ) ) {
|
||||
if ( isset( $css_profile_card_bg ) && ! empty( $css_profile_card_bg ) ) {
|
||||
|
||||
print ".um-$form_id .um-member {
|
||||
background: $css_profile_card_bg;
|
||||
@@ -9,7 +9,7 @@ print ".um-$form_id .um-member {
|
||||
|
||||
}
|
||||
|
||||
if ( isset( $css_card_thickness ) ) {
|
||||
if ( isset( $css_card_thickness ) && ! empty( $css_card_thickness ) ) {
|
||||
|
||||
print ".um-$form_id .um-member {
|
||||
border-width: $css_card_thickness;
|
||||
@@ -17,7 +17,7 @@ print ".um-$form_id .um-member {
|
||||
|
||||
}
|
||||
|
||||
if ( isset( $css_profile_card_text ) ) {
|
||||
if ( isset( $css_profile_card_text ) && ! empty( $css_profile_card_text ) ) {
|
||||
|
||||
print ".um-$form_id .um-member-card * {
|
||||
color: $css_profile_card_text;
|
||||
@@ -25,7 +25,7 @@ print ".um-$form_id .um-member-card * {
|
||||
|
||||
}
|
||||
|
||||
if ( isset( $css_card_bordercolor ) ) {
|
||||
if ( isset( $css_card_bordercolor ) && ! empty( $css_card_bordercolor ) ) {
|
||||
|
||||
print ".um-$form_id .um-member {
|
||||
border-color: $css_card_bordercolor;
|
||||
@@ -33,7 +33,7 @@ print ".um-$form_id .um-member {
|
||||
|
||||
}
|
||||
|
||||
if ( isset( $css_img_bordercolor ) ) {
|
||||
if ( isset( $css_img_bordercolor ) && ! empty( $css_img_bordercolor ) ) {
|
||||
|
||||
print ".um-$form_id .um-member-photo img {
|
||||
border-color: $css_img_bordercolor;
|
||||
|
||||
Reference in New Issue
Block a user