当前位置: 首页>>代码示例>>PHP>>正文


PHP um_filtered_value函数代码示例

本文整理汇总了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">&bull;</span>';
         }
     }
     if (isset($items)) {
         array_pop($items);
         foreach ($items as $item) {
             $output .= $item;
         }
     }
     return $output;
 }
开发者ID:smithsa,项目名称:daily-job-hunter,代码行数:29,代码来源:um-profile.php

示例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 '';
 }
开发者ID:Ksajikyan,项目名称:poiskuslug,代码行数:41,代码来源:um-fields.php

示例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';
                }
开发者ID:dracudakid,项目名称:WP_TrungTamTinHoc,代码行数:67,代码来源:um-actions-members.php

示例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')) {
开发者ID:CoolWP,项目名称:ultimatemember,代码行数:67,代码来源:um-actions-profile.php

示例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 
}
开发者ID:Ksajikyan,项目名称:poiskuslug,代码行数:101,代码来源:um-actions-profile.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 
}
开发者ID:KKRTEAM,项目名称:cis_admq,代码行数:101,代码来源:functions.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 
            }
开发者ID:jonfalcon,项目名称:ultimatemember,代码行数:31,代码来源:members-grid.php


注:本文中的um_filtered_value函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。