本文整理汇总了PHP中SiteHelper::get_user_picture方法的典型用法代码示例。如果您正苦于以下问题:PHP SiteHelper::get_user_picture方法的具体用法?PHP SiteHelper::get_user_picture怎么用?PHP SiteHelper::get_user_picture使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SiteHelper
的用法示例。
在下文中一共展示了SiteHelper::get_user_picture方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: donothing
}
}
);
function donothing(){}
});
</script>
<?php
$this->pageTitle = Yii::app()->name . ' - ' . $model->firstname . ' ' . $model->lastname . ' (' . $model->username . ')';
?>
<div id="left_container" class="form">
<div style="float:left;" class="nyroModal"><?php
echo SiteHelper::get_user_picture((int) $model->id, 'medium_', 'image');
?>
</div>
<div id="profile_user_head_info" style="float:left; padding-left:10px">
<h2 style="padding:0px"><?php
echo $model->firstname . ' ' . $model->lastname;
?>
</h2>
<?php
echo CHtml::link($model->username, array('mysub/' . $model->username));
?>
</div>
<div class="clear_both"></div>
<br><br>
<div class="detail_section">
示例2: array
<div id="column_2_container">
<div id="column_left">
<div><?php
echo SiteHelper::get_user_picture((int) $model->user_id, 'small_', 'profile');
?>
</div>
<div>
<?php
$user = User::model()->with('ucountry')->findByPk($model->user_id);
echo CHtml::link($user->username, array('profile/' . $user->username));
?>
<br>
<?php
echo $user->firstname . ' ' . $user->lastname;
?>
<?php
if ($user->sex) {
echo "<br><h4>" . Yii::t('user', 'Sex') . ":</h4>";
echo $user->sex == 1 ? Yii::t('site', 'Male') : Yii::t('site', 'Female');
}
?>
<?php
if ($user->country_id) {
echo "<br><h4>" . Yii::t('site', 'Country') . ":</h4>";
echo ucwords(strtolower($user->ucountry->name));
}
?>
<?php
if ($user->about and $user->share_about == 1) {
echo "<br><h4>" . Yii::t('user', 'About') . ":</h4>";
示例3: array
echo Yii::t('site', 'LIVE NOW: {1}', array('{1}' => '<a target="_top" style="color: #046381;" href="' . Yii::app()->createUrl('site/index') . '">\' + json.title + \'</a>'));
?>
');
if(callback === undefined) {
setTimeout(function (){$("#header_top_frame").contents().find('body, body a').css("color", "white");},500);
setTimeout(function (){$("#header_top_frame").contents().find('body, body a').css("color", "");},1000);
setTimeout(function (){$("#header_top_frame").contents().find('body, body a').css("color", "white");},1500);
setTimeout(function (){$("#header_top_frame").contents().find('body, body a').css("color", "");},2000);
}else{
$('#header_top_frame').contents().find('head').append('<style> a, a:link, a:visited { text-decoration: none; color: #046381;font-weight: bold; font-size: 13px;}a:hover { text-decoration: underline; }</style>');
$('#header_top_frame').contents().find('body').attr('style','margin:3px 1px 1px 1px; border:0px;padding:0px;text-align:right; font: bold 13px Trebuchet MS, Arial, Helvetica, sans-serif; color: #686868;');
if(callback == "firsttime"){
if( typeof json.session_username !== 'undefined' ) {
$('#menu_right').html('<?php
echo SiteHelper::get_user_picture((int) Yii::app()->user->id, 'icon_', 'profile');
?>
<select style="vertical-align:middle" onchange="if (this.value) window.location.href=this.value"><option value="" selected><?php
echo Yii::t('site', 'My Account:');
?>
</option><option value="<?php
echo Yii::app()->createUrl("profile/" . Yii::app()->user->name);
?>
"><?php
echo Yii::t('site', 'Profile');
?>
</option><option value="<?php
echo Yii::app()->createUrl('site/logout');
?>
"><?php
echo Yii::t('site', 'Logout');
示例4: Subjects
</div><!-- comment -->
<?php
}
?>
<br>
<div class="flash-notice" style="border:none"><?php
echo Yii::t('subject', 'NOTE: Comments are allowed only on Live Subjects({link_begin}homepage{link_end}).', array('{link_begin}' => '<a href ="' . Yii::app()->createUrl('site/index') . '">', '{link_end}' => '</a>'));
?>
</div>
</div><!-- form -->
<div id="right_container">
<div id="sub_info_column" style="padding-left:30px;">
<div class="detail_section">
<h3 class="detail_header">Author</h3>
<div style="float:left;"><?php
echo SiteHelper::get_user_picture((int) $model->user_id, 'small_', 'mysub');
?>
</div>
<div style="float:left; padding-left:10px">
<?php
$user = User::model()->with('ucountry')->findByPk($model->user_id);
echo $user->firstname . ' ' . $user->lastname . '<br>';
echo CHtml::link($user->username, array('mysub/' . $user->username));
?>
<br>
</div>
<div class="clear_both"></div>
</div>
<div class="detail_section">
<h3 class="detail_header"><?php