當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SiteHelper::get_user_picture方法代碼示例

本文整理匯總了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">
開發者ID:jjsub,項目名稱:samesub,代碼行數:31,代碼來源:view.php

示例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>";
開發者ID:jjsub,項目名稱:samesub,代碼行數:31,代碼來源:index.php

示例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');
開發者ID:jjsub,項目名稱:samesub,代碼行數:31,代碼來源:site.php

示例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 
開發者ID:jjsub,項目名稱:samesub,代碼行數:31,代碼來源:view.php


注:本文中的SiteHelper::get_user_picture方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。