if($data->user==Yii::app()->user->getName() || $data->associationId==Yii::app()->user->getId()) echo CHtml::link('[x]',array('deletePost','id'=>$data->id,'redirect'=>Yii::app()->controller->action->id)); //,array('class'=>'x2-button') ?> </div> <?php echo CHtml::link(Yii::t('profile','Reply'),'#',array('onclick'=>"$('#addReply-".$data->id."').toggle();",'class'=>'x2-button float')); ?> <?php if($authorRecord->id != $data->associationId && $data->associationId != 0) { $temp=Profile::model()->findByPk($data->associationId); $recipient=$temp->fullName; $modifier=' » '; } else { $recipient=''; $modifier=''; } ?> <?php echo CHtml::link($author,array('profile/view','id'=>$authorRecord->id)).$modifier.CHtml::link($recipient,$data->associationId); ?> <span class="comment-age"><?php echo x2base::timestampAge(date("Y-m-d H:i:s",$data->timestamp)); ?></span><br /> <?php echo x2base::convertLineBreaks($this->convertUrls($data->data)); ?><br /> <?php if(count($commentDataProvider->getData())>0){ $this->widget('zii.widgets.CListView', array( 'dataProvider'=>$commentDataProvider, 'itemView'=>'../social/_view', 'template'=>'{items}' )); } echo CHtml::beginForm( 'addComment', 'get', array( 'style'=>'display:none;',
* * In accordance with Section 7(b) of the GNU General Public License version 3, * these Appropriate Legal Notices must retain the display of the "Powered by * X2Engine" logo. If the display of the logo is not reasonably feasible for * technical reasons, the Appropriate Legal Notices must display the words * "Powered by X2Engine". ********************************************************************************/ $authorRecord = Users::model()->findByPk($data->createdBy); $author = $authorRecord->firstName.' '.$authorRecord->lastName; ?> <div class="view"> <div class="deleteButton"> <?php echo CHtml::link('[x]',array('deleteNote','id'=>$data->id)); //,array('class'=>'x2-button') ?> </div> <?php echo CHtml::link($author,array('users/view','id'=>$authorRecord->id)); ?> <span class="comment-age"><?php echo x2base::timestampAge($data->createDate); ?></span><br /> <?php echo CHtml::encode($data->note); ?> </div> <?php /* <div class="view"> <div class="deleteButton"> <?php echo CHtml::link('[x]',array('deleteNote','id'=>$data->id)); //,array('class'=>'x2-button') ?> <?php //echo CHtml::link("<img src='".Yii::app()->request->baseUrl."/images/deleteButton.png' />",array("deleteNote","id"=>$data->id)); ?> </div> <b><?php echo CHtml::encode($data->getAttributeLabel('createdBy')); ?>:</b> <?php echo CHtml::encode($data->createdBy); ?> <br />
?> <div class="view"> <div class="deleteButton"> <?php $parent = Social::model()->findByPk($data->associationId); if ($data->user == Yii::app()->user->getName() || $parent->associationId == Yii::app()->user->getId()) { echo CHtml::link('[x]', array('deletePost', 'id' => $data->id, 'redirect' => Yii::app()->controller->action->id)); } //,array('class'=>'x2-button') ?> </div> <?php echo CHtml::link($author, array('profile/view', 'id' => $authorRecord->id)); ?> <span class="comment-age"><?php echo x2base::timestampAge(date("Y-m-d H:i:s", $data->timestamp)); ?> </span><br /> <?php echo $this->convertUrls(CHtml::encode($data->data)); ?> </div> <?php /* <div class="view"> <div class="deleteButton"> <?php echo CHtml::link('[x]',array('deleteNote','id'=>$data->id)); //,array('class'=>'x2-button') ?> <?php //echo CHtml::link("<img src='".Yii::app()->request->baseUrl."/images/deleteButton.png' />",array("deleteNote","id"=>$data->id)); ?> </div>
********************************************************************************/ $authorRecord = User::model()->findByPk($data->createdBy); $author = $authorRecord->firstName . ' ' . $authorRecord->lastName; ?> <div class="view"> <div class="deleteButton"> <?php echo CHtml::link('[x]', array('deleteNote', 'id' => $data->id)); //,array('class'=>'x2-button') ?> </div> <?php echo CHtml::link($author, array('users/view', 'id' => $authorRecord->id)); ?> <span class="comment-age"><?php echo x2base::timestampAge($data->createDate); ?> </span><br /> <?php echo CHtml::encode($data->note); ?> </div> <?php /* <div class="view"> <div class="deleteButton"> <?php echo CHtml::link('[x]',array('deleteNote','id'=>$data->id)); //,array('class'=>'x2-button') ?> <?php //echo CHtml::link("<img src='".Yii::app()->request->baseUrl."/images/deleteButton.png' />",array("deleteNote","id"=>$data->id)); ?> </div>