本文整理汇总了PHP中um_filtered_value函数的典型用法代码示例。如果您正苦于以下问题:PHP um_filtered_value函数的具体用法?PHP um_filtered_value怎么用?PHP um_filtered_value使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了um_filtered_value函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show_meta
function show_meta($array)
{
global $ultimatemember;
$output = '';
foreach ($array as $key) {
$data = '';
if ($key && um_filtered_value($key)) {
if (isset($ultimatemember->builtin->all_user_fields[$key]['icon'])) {
$icon = $ultimatemember->builtin->all_user_fields[$key]['icon'];
} else {
$icon = '';
}
$icon = isset($icon) && !empty($icon) ? '<i class="' . $icon . '"></i>' : '';
if (!um_get_option('profile_show_metaicon')) {
$icon = '';
}
$value = um_filtered_value($key);
$items[] = '<span>' . $icon . $value . '</span>';
$items[] = '<span class="b">•</span>';
}
}
if (isset($items)) {
array_pop($items);
foreach ($items as $item) {
$output .= $item;
}
}
return $output;
}
示例2: field_value
function field_value($key, $default = false, $data = null)
{
global $ultimatemember;
if (isset($_SESSION) && isset($_SESSION['um_social_profile'][$key]) && isset($this->set_mode) && $this->set_mode == 'register') {
return $_SESSION['um_social_profile'][$key];
}
$type = isset($data['type']) ? $data['type'] : '';
// preview in backend
if (isset($ultimatemember->user->preview) && $ultimatemember->user->preview) {
$submitted = um_user('submitted');
if (isset($submitted[$key]) && !empty($submitted[$key])) {
return $submitted[$key];
} else {
return 'Undefined';
}
}
// normal state
if (isset($ultimatemember->form->post_form[$key])) {
if (strstr($key, 'user_pass') && $this->set_mode != 'password') {
return '';
}
return $ultimatemember->form->post_form[$key];
} else {
if (um_user($key) && $this->editing == true) {
if (strstr($key, 'user_pass')) {
return '';
}
return um_user($key);
} else {
if ((um_user($key) || isset($data['show_anyway'])) && $this->viewing == true) {
$value = um_filtered_value($key, $data);
return $value;
} else {
if ($default) {
return $default;
}
}
}
}
return '';
}
示例3: um_members_directory_display
//.........这里部分代码省略.........
echo 'no-photo';
}
?>
">
<?php
if ($show_name) {
?>
<div class="um-member-name"><a href="<?php
echo um_user_profile_url();
?>
" title="<?php
echo um_user('display_name');
?>
"><?php
echo um_user('display_name', 'html');
?>
</a></div>
<?php
}
?>
<?php
do_action('um_members_just_after_name', um_user('ID'), $args);
?>
<?php
do_action('um_members_after_user_name', um_user('ID'), $args);
?>
<?php
if ($show_tagline && is_array($tagline_fields)) {
foreach ($tagline_fields as $key) {
if ($key && um_filtered_value($key)) {
$value = um_filtered_value($key);
?>
<div class="um-member-tagline"><?php
echo $value;
?>
</div>
<?php
}
}
}
?>
<?php
if ($show_userinfo) {
?>
<div class="um-member-meta-main">
<?php
if ($userinfo_animate) {
?>
<div class="um-member-more"><a href="#"><i class="um-faicon-angle-down"></i></a></div>
<?php
}
?>
<div class="um-member-meta <?php
if (!$userinfo_animate) {
echo 'no-animate';
}
示例4: um_profile_header
//.........这里部分代码省略.........
<?php
do_action('um_after_profile_header_name_args', $args);
?>
<?php
do_action('um_after_profile_header_name');
?>
</div>
<?php
if (isset($args['metafields']) && !empty($args['metafields'])) {
?>
<div class="um-meta">
<?php
echo $ultimatemember->profile->show_meta($args['metafields']);
?>
</div>
<?php
}
?>
<?php
if ($ultimatemember->fields->viewing == true && um_user('description') && $args['show_bio']) {
?>
<div class="um-meta-text">
<?php
if (um_get_option('profile_show_html_bio')) {
?>
<?php
echo um_clickable_links(strip_tags(um_filtered_value('description'), '<p><a><img><br><strong><b><em><i><quote><sub><sup>'));
?>
<?php
} else {
?>
<?php
echo um_clickable_links(wp_strip_all_tags(um_filtered_value('description')));
?>
<?php
}
?>
</div>
<?php
} else {
if ($ultimatemember->fields->editing == true && $args['show_bio']) {
?>
<div class="um-meta-text">
<textarea id="um-meta-bio" data-character-limit="<?php
echo um_get_option('profile_bio_maxchars');
?>
" placeholder="<?php
_e('Tell us a bit about yourself...', 'ultimatemember');
?>
" name="<?php
echo 'description-' . $args['form_id'];
?>
" id="<?php
echo 'description-' . $args['form_id'];
?>
"><?php
if (um_user('description')) {
示例5: um_profile_header
//.........这里部分代码省略.........
?>
</div>
<?php
}
?>
<div class="um-clear"></div>
<?php
do_action('um_after_profile_header_name_args', $args);
?>
<?php
do_action('um_after_profile_header_name');
?>
</div>
<?php
if (isset($args['metafields']) && !empty($args['metafields'])) {
?>
<div class="um-meta">
<?php
echo $ultimatemember->profile->show_meta($args['metafields']);
?>
</div>
<?php
}
?>
<?php
if ($ultimatemember->fields->viewing == true && um_user('description') && $args['show_bio']) {
?>
<div class="um-meta-text"><?php
echo um_filtered_value('description');
?>
</div>
<?php
} else {
if ($ultimatemember->fields->editing == true && $args['show_bio']) {
?>
<div class="um-meta-text">
<textarea placeholder="<?php
_e('Расскажите нам немного о себе ...', 'ultimatemember');
?>
" name="<?php
echo 'description-' . $args['form_id'];
?>
" id="<?php
echo 'description-' . $args['form_id'];
?>
"><?php
if (um_user('description')) {
echo um_user('description');
}
?>
</textarea>
<?php
if ($ultimatemember->fields->is_error('description')) {
echo $ultimatemember->fields->field_error($ultimatemember->fields->show_error('description'), true);
}
?>
</div>
<?php
}
}
?>
<div class="um-profile-status <?php
echo um_user('account_status');
?>
">
<span><?php
printf(__('This user account status is %s', 'ultimatemember'), um_user('account_status_name'));
?>
</span>
</div>
<?php
do_action('um_after_header_meta', um_user('ID'), $args);
?>
</div><div class="um-clear"></div>
<?php
do_action('um_after_header_info', um_user('ID'), $args);
?>
</div>
<?php
}
示例6: custom_um_profile_header
//.........这里部分代码省略.........
?>
<a href="javascript:void(0);" class="hb-button" id="um-upgrade">Upgrade to become an Advisor</a>
<?php
}
?>
<?php
}
?>
</div>
<?php
}
?>
<div class="um-clear"></div>
<?php
do_action('um_after_profile_header_name_args', $args);
?>
<?php
do_action('um_after_profile_header_name');
?>
</div>
<?php
if (isset($args['metafields']) && !empty($args['metafields'])) {
?>
<div class="um-meta">
<?php
echo $ultimatemember->profile->show_meta($args['metafields']);
?>
</div>
<?php
}
?>
<?php
if ($ultimatemember->fields->viewing == true && um_user('description') && $args['show_bio']) {
?>
<div class="um-meta-text"><?php
echo um_filtered_value('description');
?>
</div>
<?php
} else {
if ($ultimatemember->fields->editing == true && $args['show_bio']) {
?>
<div class="um-meta-text">
<textarea placeholder="<?php
_e('Tell us a bit about yourself...', 'ultimatemember');
?>
" name="<?php
echo 'description-' . $args['form_id'];
?>
" id="<?php
echo 'description-' . $args['form_id'];
?>
"><?php
if (um_user('description')) {
echo um_user('description');
}
?>
</textarea>
<?php
if ($ultimatemember->fields->is_error('description')) {
echo $ultimatemember->fields->field_error($ultimatemember->fields->show_error('description'), true);
}
?>
</div>
<?php
}
}
?>
<div class="um-profile-status <?php
echo um_user('account_status');
?>
">
<span><?php
printf(__('This user account status is %s', 'ultimatemember'), um_user('account_status_name'));
?>
</span>
</div>
</div><div class="um-clear"></div>
</div>
<?php
}
示例7: foreach
<div class="um-member-more"><a href="#"><i class="um-faicon-angle-down"></i></a></div>
<?php
}
?>
<div class="um-member-meta <?php
if (!$userinfo_animate) {
echo 'no-animate';
}
?>
">
<?php
foreach ($reveal_fields as $key) {
if ($key && um_filtered_value($key)) {
$value = um_filtered_value($key);
?>
<div class="um-member-metaline um-member-metaline-<?php
echo $key;
?>
"><span><strong><?php
echo $ultimatemember->fields->get_label($key);
?>
:</strong> <?php
echo $value;
?>
</span></div>
<?php
}