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


PHP Student::get_avatar方法代码示例

本文整理汇总了PHP中Student::get_avatar方法的典型用法代码示例。如果您正苦于以下问题:PHP Student::get_avatar方法的具体用法?PHP Student::get_avatar怎么用?PHP Student::get_avatar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Student的用法示例。


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

示例1: Student

				<div class="row">
					<?php 
$buddy_ids = $student->get_all_buddy_ids();
foreach ($buddy_ids as $buddy_id) {
    $buddy = new Student($buddy_id);
    ?>
						<div class="buddy-list-entry col-lg-2 col-md-2 col-sm-3 col-xs-4">
							<a href="<?php 
    echo BASE;
    ?>
student/<?php 
    echo strtolower($buddy->get_username());
    ?>
/">
								<img src="<?php 
    echo $buddy->get_avatar();
    ?>
" class="student-avatar">
								<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
									<h3 class="student-name text-center">
										<?php 
    echo $buddy->get_fullname();
    ?>
									</h3>
								</div>
							</a>
						</div>
						<?php 
}
?>
				</div>
开发者ID:DonBananos,项目名称:studyteam,代码行数:31,代码来源:buddies.php

示例2: Student

                $member = new Student($student_id);
                ?>
											<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
												<div class="row">
													<div class="group-member-block">
														<a href="<?php 
                echo BASE;
                ?>
student/<?php 
                echo strtolower($member->get_username());
                ?>
/">
															<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
																<div class="row">
																	<img src="<?php 
                echo $member->get_avatar();
                ?>
" class="student-avatar">
																</div>
															</div>
															<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
																<div class="row">
																	<h4 class="student-name">
																		<?php 
                echo $member->get_username();
                ?>
																	</h4>
																	<span class="student-info">
																		Former <?php 
                echo get_member_level_name_from_level($member_data['level']);
                ?>
开发者ID:DonBananos,项目名称:studyteam,代码行数:31,代码来源:details.php

示例3: strtolower

    }
} elseif (isset($_POST['rem_tu']) && isset($_POST['post_id'])) {
    $post_id = sanitize_int($_POST['post_id']);
    if ($post_id == $post->get_id()) {
        $post->remove_thumbs_up($student->get_id());
    }
}
?>
<div class="content-box" id="post_<?php 
echo $feed_post['post_id'];
?>
">
	<div class="row">
		<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
			<img src="<?php 
echo $poster->get_avatar();
?>
" class="student-avatar-thumb">
			<div class="post-header">
				<a href="<?php 
echo BASE;
?>
student/<?php 
echo strtolower($poster->get_username());
?>
/"><?php 
echo $poster->get_username();
?>
</a>
				<?php 
echo $header;
开发者ID:DonBananos,项目名称:studyteam,代码行数:31,代码来源:single_post_view.php

示例4: glob

			<div class="container">
				<div class="page-header">
					<h1>StudyTeam Settings</h1>
				</div>
				<div class="row" id="avatar">
					<label>Select your Avatar</label><br/>
					<?php 
$path = ROOT_PATH . "includes/_media/_images/avatars/*.png";
$avatars = glob($path, GLOB_BRACE);
if (count($avatars) > 0) {
    ?>
						<form action="" method="POST" name="selectAvatar">
							<?php 
    foreach ($avatars as $avatar) {
        $status = "";
        if (AVATAR_LOCATION . basename($avatar) == $student->get_avatar()) {
            $status = "checked";
        }
        $avatar_id = substr(basename($avatar), 0, -4);
        ?>
								<div class="col-lg-2 col-md-2 col-sm-3 col-xs-4">
									<label style="cursor: pointer">
										<img src="<?php 
        echo AVATAR_LOCATION . basename($avatar);
        ?>
" class="student-avatar"><br/>
										<div class="text-center">
											<input type="radio" name="avatarSelected" value="<?php 
        echo $avatar_id;
        ?>
" <?php 
开发者ID:DonBananos,项目名称:studyteam,代码行数:31,代码来源:settings.php


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