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


PHP mc_user_display_name函数代码示例

本文整理汇总了PHP中mc_user_display_name函数的典型用法代码示例。如果您正苦于以下问题:PHP mc_user_display_name函数的具体用法?PHP mc_user_display_name怎么用?PHP mc_user_display_name使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了mc_user_display_name函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: date

        ?>
</a>
											<i class="glyphicon glyphicon-time"></i><?php 
        echo date('Y-m-d H:i:s', $val['date']);
        ?>
										</p>
									</div>
								</div>
							</div>
							<div class="col-sm-6 col-md-5 col-lg-4 text-right">
								<ul class="list-inline">
								<?php 
        if (mc_last_comment_user($val['id'])) {
            ?>
								<li>最后:<?php 
            echo mc_user_display_name(mc_last_comment_user($val['id']));
            ?>
</li>
								<?php 
        }
        ?>
								<li>点击:<?php 
        echo mc_views_count($val['id']);
        ?>
</li>
								</ul>
							</div>
						</div>
					</li>
					<?php 
    }
开发者ID:dalinhuang,项目名称:shouzhangmall,代码行数:31,代码来源:group.php

示例2: U

				<a class="pull-left img-div" href="<?php 
echo U('user/index/index?id=' . $_GET['id']);
?>
">
					<img class="media-object" src="<?php 
echo mc_user_avatar($_GET['id']);
?>
" alt="<?php 
echo mc_user_display_name($_GET['id']);
?>
">
				</a>
				<div class="media-body">
					<h4 class="media-heading">
						<?php 
echo mc_user_display_name($_GET['id']);
?>
 
						<?php 
echo mc_guanzhu_btn($_GET['id']);
?>
						<?php 
if (mc_is_admin() && !mc_is_admin($_GET['id'])) {
    ?>
						<button class="btn btn-default btn-sm user-delete" user-data="<?php 
    echo U('home/perform/delete?id=' . $val['id']);
    ?>
" data-toggle="modal" data-target="#myModal">
							<i class="glyphicon glyphicon-trash"></i> 删除
						</button>
						<button class="btn btn-default btn-sm user-ip-false" user-data="<?php 
开发者ID:dalinhuang,项目名称:shouzhangmall,代码行数:31,代码来源:head-user.php

示例3: mc_template_part

	<div class="container">
		<?php 
mc_template_part('head-control-nav');
?>
		<div class="row">
			<div class="col-lg-12" id="pro-all-list">
				<?php 
foreach ($page as $trade) {
    ?>
				<div class="panel panel-default">
				<div class="panel-heading">
					<a href="<?php 
    echo U('user/index/index?id=' . $trade['user_id']);
    ?>
"><?php 
    echo mc_user_display_name($trade['user_id']);
    ?>
</a> <?php 
    echo date('Y-m-d H:i:s', $trade['date']);
    ?>
					<?php 
    $conis = M('action')->where("action_key='conis_wait_finished' AND date='" . $trade['date'] . "'")->getField('action_value');
    if ($conis > 0) {
        ?>
					<span class="pull-right">
						使用积分:<?php 
        echo $conis;
        ?>
					</span>
					<?php 
    }
开发者ID:dalinhuang,项目名称:shouzhangmall,代码行数:31,代码来源:pro_all.php

示例4: M

			<?php 
        $comment2 = M('action')->where("page_id='" . $val['id'] . "' AND action_key='comment2'")->select();
        if ($comment2) {
            ?>
			<ul class="mt-20 list-unstyled">
				<?php 
            foreach ($comment2 as $val2) {
                ?>
				<li id="comment-<?php 
                echo $val2['id'];
                ?>
"><a href="<?php 
                echo U('user/index/index?id=' . $val2['user_id']);
                ?>
"><?php 
                echo mc_user_display_name($val2['user_id']);
                ?>
</a>:<?php 
                echo $val2['action_value'];
                ?>
</li>
				<?php 
            }
            ?>
			</ul>	
			<?php 
        }
        ?>
		</div>
	</div>
	<?php 
开发者ID:xiaowei521,项目名称:vamshop,代码行数:31,代码来源:comment.php

示例5: mc_get_url

										<div class="media-body">
											<h4 class="media-heading">
												<a class="wto" href="<?php 
    echo mc_get_url($val['id']);
    ?>
"><?php 
    echo $val['title'];
    ?>
</a>
											</h4>
											<p class="post-info wto">
												<i class="glyphicon glyphicon-user"></i><a href="<?php 
    echo mc_get_url($author);
    ?>
"><?php 
    echo mc_user_display_name($author);
    ?>
</a>
												<i class="glyphicon glyphicon-home"></i><a href="<?php 
    echo mc_get_url(mc_get_meta($val['id'], 'group'));
    ?>
"><?php 
    echo mc_get_page_field(mc_get_meta($val['id'], 'group'), 'title');
    ?>
</a>
												<i class="glyphicon glyphicon-time"></i><?php 
    echo date('m/d H:i', mc_get_meta($val['id'], 'time'));
    ?>
											</p>
										</div>
									</div>
开发者ID:xiaowei521,项目名称:vamshop,代码行数:31,代码来源:index.php

示例6: mc_user_avatar

">
						<img width="100" class="media-object" src="<?php 
    echo mc_user_avatar($val['id']);
    ?>
" alt="<?php 
    echo mc_user_display_name($val['id']);
    ?>
">
					</a>
					<div class="media-body">
						<h4 class="media-heading">
							<a href="<?php 
    echo U('user/index/index?id=' . $val['id']);
    ?>
"><?php 
    echo mc_user_display_name($val['id']);
    ?>
</a>
						</h4>
						<?php 
    echo mc_cut_str(strip_tags(mc_get_page_field($val['id'], 'content')), 80);
    ?>
					</div>
				</li>
				<?php 
}
?>
				</ul>
				<?php 
echo mc_pagenavi($count, $page_now);
?>
开发者ID:dalinhuang,项目名称:shouzhangmall,代码行数:31,代码来源:fans.php

示例7: mc_get_meta

				            用户名
				        </label>
				        <input type="text" class="form-control" value="<?php 
echo mc_get_meta(mc_user_id(), 'user_name', true, 'user');
?>
" disabled>
				        <p class="help-block">
				            用户名无法修改
				        </p>
				    </div>
				    <div class="form-group">
				        <label>
				            昵称
				        </label>
				        <input name="title" type="text" class="form-control" value="<?php 
echo mc_user_display_name(mc_user_id());
?>
">
				        <p class="help-block">
				            您在本站显示的名字
				        </p>
				    </div>
				    <div class="form-group">
				        <label>
				            邮箱
				        </label>
				        <input name="user_email" type="text" class="form-control" value="<?php 
echo mc_get_meta(mc_user_id(), 'user_email', true, 'user');
?>
">
				        <p class="help-block">
开发者ID:xiaowei521,项目名称:vamshop,代码行数:31,代码来源:edit.php

示例8: mc_seo

function mc_seo()
{
    $nofollow = false;
    if (MODULE_NAME == 'Home') {
        if (CONTROLLER_NAME == 'Index') {
            if (ACTION_NAME == 'index') {
                if ($_GET['keyword'] || $_GET['page']) {
                    $nofollow = true;
                } else {
                    $keywords = mc_option('home_keywords');
                    $description = mc_option('home_description');
                }
            } else {
                $nofollow = true;
            }
        } else {
            $nofollow = true;
        }
    } elseif (MODULE_NAME == 'Pro') {
        if (ACTION_NAME == 'index') {
            $keywords = mc_option('pro_keywords');
            $description = mc_option('pro_description');
        } elseif (ACTION_NAME == 'term') {
            $keywords = mc_get_page_field($_GET['id'], 'title');
            $description = '';
        } elseif (ACTION_NAME == 'single') {
            if (mc_get_meta($_GET['id'], 'keywords')) {
                $keywords = mc_get_meta($_GET['id'], 'keywords');
            } else {
                $keywords = mc_get_page_field($_GET['id'], 'title');
            }
            if (mc_get_meta($_GET['id'], 'description')) {
                $description = mc_cut_str(strip_tags(mc_get_meta($_GET['id'], 'description')), 152);
            } else {
                $description = mc_cut_str(strip_tags(mc_magic_out(mc_get_page_field($_GET['id'], 'content'))), 152);
            }
        } else {
            $nofollow = true;
        }
    } elseif (MODULE_NAME == 'Post') {
        if (CONTROLLER_NAME == 'Group') {
            if (ACTION_NAME == 'index') {
                $keywords = mc_option('group_keywords');
                $description = mc_option('group_description');
            } elseif (ACTION_NAME == 'single') {
                $keywords = mc_get_page_field($_GET['id'], 'title');
                $description = mc_cut_str(strip_tags(mc_magic_out(mc_get_page_field($_GET['id'], 'content'))), 152);
            } else {
                $nofollow = true;
            }
        } else {
            $keywords = mc_get_page_field($_GET['id'], 'title');
            $description = mc_cut_str(strip_tags(mc_magic_out(mc_get_page_field($_GET['id'], 'content'))), 152);
        }
    } elseif (MODULE_NAME == 'Article') {
        if (ACTION_NAME == 'index') {
            $keywords = mc_option('article_keywords');
            $description = mc_option('article_description');
        } elseif (ACTION_NAME == 'term') {
            $keywords = mc_get_page_field($_GET['id'], 'title');
            $description = '';
        } elseif (ACTION_NAME == 'single') {
            $keywords = mc_get_page_field($_GET['id'], 'title');
            $description = mc_cut_str(strip_tags(mc_magic_out(mc_get_page_field($_GET['id'], 'content'))), 152);
        } else {
            $nofollow = true;
        }
    } elseif (MODULE_NAME == 'User') {
        if (CONTROLLER_NAME == 'Index') {
            $display_name = mc_user_display_name($_GET['id']);
            if (ACTION_NAME == 'index') {
                $keywords = mc_get_page_field($_GET['id'], 'title');
                $description = mc_cut_str(strip_tags(mc_magic_out(mc_get_page_field($_GET['id'], 'content'))), 152);
            } else {
                $nofollow = true;
            }
        } else {
            $nofollow = true;
        }
    } else {
        $nofollow = true;
    }
    if ($nofollow) {
        $meta .= '<meta name="robots" content="noindex,nofollow" />
';
    } else {
        $meta .= '<meta name="keywords" content="' . $keywords . '">
';
        $meta .= '<meta name="description" content="' . $description . '">
';
    }
    return $meta;
}
开发者ID:xiaowei521,项目名称:vamshop,代码行数:93,代码来源:function.php


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