本文整理汇总了PHP中UserController::getProfileUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP UserController::getProfileUrl方法的具体用法?PHP UserController::getProfileUrl怎么用?PHP UserController::getProfileUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserController
的用法示例。
在下文中一共展示了UserController::getProfileUrl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
<div class="nm">
<?php if ($this -> can_edit) { ?>
<input type="hidden" name="photo_id[<?php echo $item['id'];?>]" value="<?php echo $item['id'];?>" />
<input type="text" name="photo_name[<?php echo $item['id'];?>]" value="<?php echo $item['name'];?>" />
<?php } else { ?>
<a href="<?php echo PhotoController::getPhotoUrl($item['id'], $item['login']);?>"><?php echo $item['name'];?></a>
<?php } ?>
</div>
<div class="av">
<a href="<?php echo PhotoController::getPhotoUrl($item['id'], $item['login']);?>">
<img class="avatar" src="<?php echo ($item['thumbnail'] ===false)?$this -> image_url.'noimage.gif' :$item['thumbnail'];?>" />
</a>
</div>
<div class="meta">
<div class="auth">
<a href="<?php echo UserController::getProfileUrl($item['login']);?>"><?php echo $item['login'];?></a>
<i class="arrow-icon bid-arrow-icon"></i>
</div>
<div class="date"><?php echo date("j F Y", strtotime($item['creation_date']));?></div>
</div>
<?php if ($this -> can_edit) { ?>
<ul class="actions">
<li>
<select style="" name="photo_access[<?php echo $item['id'];?>]">
<?php foreach ($this -> access_list as $key=>$value){?>
<option value="<?php echo $key;?>" <?php if ((int)$key === (int)$item['access']) {echo 'selected';} ?>><?php echo $value;?></option>
<?php } ?>
</select>
</li>
<li>
<input id="cover-1" type="radio" value="<?php echo $item['id'];?>" name="thumb_photo" <?php if ((int)$item['id'] === (int)$this -> thumbnail_id) {echo 'checked="checked"';} ?> /><label for="cover-1">Обложка</label>
示例2: void
<li>| <a href="javascript: void(0);" onclick="showChangeComment(<?php echo $item['id']; ?>);">редактировать</a></li>
<?php } ?>
<?php if ($item['del_link'] !== false && ($item['user_id'] == $this -> user_id || $this->isAdmin)){ ?>
<li>| <a href="<?php echo $item['del_link'];?>">удалить</a></li>
<?php }?>
</ul>
<? } ?>
<ul class="info">
<li>
<?php
if ($item['avatar_id'] && $item['base_avatar_id']){
$avatar_path = ($item['sys_av_id'])?$item['sys_av_path']:$item['avatar_path'];
?>
<img class="avatar" style="width: 28px; height: 25px;" alt="<?php echo $item['avatar_name'];?>" src="<?php echo $this->image_url."avatar/".$avatar_path; ?>" />
<? } ?>
<a href="<?php echo UserController::getProfileUrl($item['login']);?>"><?php echo $item['login'];?></a><i class="arrow-icon vcard-icon"></i></li>
<li class="date"><?php echo date("j F Y H:i", strtotime($item['creation_date']));?></li>
</ul>
</div>
<div class="c-content">
<?php
if ($item['mood_text'] || ($item['mood'] && $item['mood_name'])){
$mood_text = ($item['mood_text'])?$item['mood_text']:$item['mood_name'];
?>
<blockquote>
<div class="cite">цитата <span><?=$item['mood_name']; ?></span></div>
<div class="quote">
<p>
<?php echo $mood_text; ?>
</p>
</div>
示例3: viewQuestionPage
function viewQuestionPage($user_id)
{
/* $htmlPage = '
<table class="questions">
<tr>
<td style="width: 100%; text-align: left;"><b>Вопросы пользователей</b></td>
<td><b>Автор</b></td>
<!--<td><b>Ответов</b></td>-->
<td><b>Дата создания</b></td>
</tr>'; */
$user_id = (int) $user_id;
$questionModel = new QuestionModel();
$aQuestions = $questionModel->loadWhere();
$htmlPage = '<ul class="question-preview-list clearfix">';
foreach ($aQuestions as $question) {
/* $htmlPage .= '
<tr id="cmod_tab2">
<td style="width: 100%; text-align: left;"><img height="14" width="14" id="ico2" src="'.$this->image_url.'faq.png"/> <a href="'.Project::getRequest()->createUrl('QuestionAnswer', 'ViewQuestion').'/'.$question['id'].'">'.$question['q_text'].'</a></td>
<td><a href="'.UserController::getProfileUrl($question['login']).'">'.$question['login'].'</a></td>
<!--<td>'.$question['a_count'].'</td>-->
<td>'.$question['creation_date'].'</td>
</tr>
'; */
$htmlPage .= '<li>
<dl>
<dt><a href="' . UserController::getProfileUrl($question['login']) . '" class="with-icon-s"><i class="icon-s user-icon"></i>' . $question['login'] . '</a> спрашивает</dt>
<dd class="question"><a href="' . Project::getRequest()->createUrl('QuestionAnswer', 'ViewQuestion') . '/' . $question['id'] . '">' . $question['q_text'] . '</a></dd>
<dd class="reply"><a href="' . Project::getRequest()->createUrl('QuestionAnswer', 'ViewQuestion') . '/' . $question['id'] . '">' . $question['a_count'] . ' ответов</a></dd>
</dl>
</li>';
}
// $htmlPage .= '</table>';
$htmlPage .= '</ul>';
return $htmlPage;
}