View file vkclone-0.0.1/protected/modules/publics/views/public/_reader.php

File size: 500B
<div class="post">
	<?= Theme::icon(Theme::ICON_USER, 'subscriber') ?> <?= Theme::username($data->user) ?><br />
	<!-- Reader role -->
	<?php if ($data->role == PublicReader::ADMINISTRATOR): ?>
		<?= CHtml::tag('span', array('style' => 'color: red'), Yii::t('Publics', '[Administrator]')); ?>
	<?php elseif ($data->public->creator_id == $data->user_id): ?>
		<?= CHtml::tag('span', array('style' => 'color: red'), Yii::t('Publics', '[Creator]')); ?>
	<?php endif; ?>
	<!-- Reader role off -->
</div>