mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Fix Social Links
This commit is contained in:
@@ -36,6 +36,15 @@
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Only show members who have uploaded a cover photo','ultimatemember'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_has_cover_photo'); ?>
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Sort users by','ultimatemember'); ?> <?php $this->tooltip('Sort users by a specific parameter in the directory'); ?></label>
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<p class="reveal-options">
|
||||
<label class="um-admin-half"><?php _e('Show social connect icons','ultimatemember'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
|
||||
@@ -96,7 +96,9 @@
|
||||
*/
|
||||
|
||||
.um-members {
|
||||
|
||||
-ms-word-break: break-all;
|
||||
word-break: break-word;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.um-member {
|
||||
@@ -226,12 +228,7 @@
|
||||
- Member meta
|
||||
*/
|
||||
|
||||
.um-member-meta-main {
|
||||
|
||||
}
|
||||
|
||||
.um-member-more { margin: 10px 0 0 0 }
|
||||
|
||||
.um-member-less { display: none }
|
||||
|
||||
.um-member-more a, .um-member-less a {
|
||||
@@ -245,15 +242,13 @@
|
||||
vertical-align: middle;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.um-member-more a:hover, .um-member-less a:hover{color: #3ba1da}
|
||||
|
||||
.um-member-meta {
|
||||
display: none;
|
||||
margin: 20px 30px 0 30px;
|
||||
padding: 15px 0 15px 0;
|
||||
text-align: left;
|
||||
border-top: 1px solid #eee;
|
||||
margin: 20px 15px 0 15px;
|
||||
padding: 15px 0;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.um-member-meta.no-animate {
|
||||
@@ -278,7 +273,7 @@
|
||||
*/
|
||||
|
||||
.um-member-connect {
|
||||
padding: 10px 0;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.um-member-connect a{
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
.um-profile.um-viewing .um-field-label {
|
||||
display: block;
|
||||
margin: 0 0 8px 0;
|
||||
color: #999;
|
||||
border-bottom: solid 2px #eee;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
@@ -235,11 +235,14 @@ p.um-notice.err {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.um-field-label { display: block; margin: 0 0 8px 0 }
|
||||
|
||||
.um-field-label {
|
||||
display: block;
|
||||
margin: 0 0 8px 0;
|
||||
font-weight: bold;
|
||||
font-weight: 500;
|
||||
}
|
||||
.um-field-label .um-field-label-icon { float: left; margin: 0 8px 0 0; vertical-align: middle !important; height: 22px; }
|
||||
.um-field-label .um-field-label-icon i { font-size: 22px; height: 22px; line-height: 22px; vertical-align: middle; }
|
||||
|
||||
.um-field-label label { display: inline-block; height: 22px; font-size: 16px; line-height: 22px !important; }
|
||||
|
||||
.um-field-area {
|
||||
|
||||
@@ -275,22 +275,22 @@
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if ( $show_social ) { ?>
|
||||
<div class="um-member-connect">
|
||||
|
||||
<?php $ultimatemember->fields->show_social_urls(); ?>
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="um-member-less"><a href="#"><i class="um-icon-chevron-up-1"></i></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( $show_social ) { ?>
|
||||
<div class="um-member-connect">
|
||||
|
||||
<?php $ultimatemember->fields->show_social_urls(); ?>
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -117,7 +117,10 @@
|
||||
} else {
|
||||
$value = implode(', ', $value);
|
||||
}
|
||||
|
||||
|
||||
$value = str_replace('https://https://','https://',$value);
|
||||
$value = str_replace('http://https://','https://',$value);
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
|
||||
@@ -87,6 +87,15 @@
|
||||
);
|
||||
}
|
||||
|
||||
// must have a cover photo
|
||||
if ( $has_cover_photo == 1 ) {
|
||||
$query_args['meta_query'][] = array(
|
||||
'key' => 'cover_photo',
|
||||
'value' => '',
|
||||
'compare' => '!='
|
||||
);
|
||||
}
|
||||
|
||||
// add roles to appear in directory
|
||||
if ( !empty( $roles ) ) {
|
||||
|
||||
|
||||
+2
-1
@@ -34,6 +34,7 @@ class UM_Setup {
|
||||
'_um_template' => 'members',
|
||||
'_um_mode' => 'directory',
|
||||
'_um_has_profile_photo' => 0,
|
||||
'_um_has_cover_photo' => 1,
|
||||
'_um_show_social' => 0,
|
||||
'_um_show_userinfo' => 0,
|
||||
'_um_show_tagline' => 0,
|
||||
@@ -72,7 +73,7 @@ class UM_Setup {
|
||||
'_um_active_color' => '#3ba1da',
|
||||
'_um_secondary_color' => '#44b0ec',
|
||||
'_um_form_text_color' => '#666',
|
||||
'_um_form_field_label' => '#888',
|
||||
'_um_form_field_label' => '#555',
|
||||
'_um_form_icon_color' => '#aaa',
|
||||
'_um_form_bg_color' => '#fff',
|
||||
'_um_form_placeholder' => '#aaa',
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
} else if ( strpos($value, 'http') !== 0 ) {
|
||||
$value = $match . $value;
|
||||
}
|
||||
$value = str_replace('https://https://','https://',$value);
|
||||
$value = str_replace('http://https://','https://',$value);
|
||||
return $value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user