Location: PHPKode > projects > Anahita Social Engine > dependencies/plg_system_socialengine/socialengine/uikit/story/tmpl/story_list_item.php
<?php defined('KOOWA') or die ?>
<!-- Story as a list item -->
<div class="an-se-story-list-item an-se-record an-se-removable an-se-rounded rounded an-se-entity">
	<div class="wrapper">
		<?php if (@$story->getIconUrl()) : ?>
			<div class="an-se-story-icon" style="background-image:url(<?= KFactory::get('lib.joomla.uri')->base().@$story->iconUrl ?>) ">&nbsp;</div>
		<?php else : ?>
			<div class="an-se-story-avatar">
				<?= @uikit_actor_avatar(@$story->subject)->setSize(AnModelAvatar::SizeSquare) ?>
			</div>			
		<?php endif; ?>
		
		<div class="an-se-story-meta"> 
			<h4 class="an-se-story-title"><?= @$story->getTitle() ?></h4>
			<?php if ( @$story->hasBody() ) : ?>
				<div class="an-se-story-body"><?= stripcslashes(@$story->getBody()) ?></div>
			<?php endif; ?>
			
			<div class="an-se-story-timestamp"><?= @uikit_date(@$story->date) ?></div>
		
			<?php if(count(@$story->getActions())): ?>
			<ul class="an-se-actions">
				<?php foreach(@$story->getActions() as $action) : ?>
				<li class="an-se-action"><?= $action ?></li>
				<?php endforeach; ?>
				
				<?php if(@$story->numOfComments > 0 && @$story->numOfComments > @$story->comments->getLimit()) : ?>
				<li class="an-se-action">
					<a href="<?= 'index.php?option=com_socialengine&view=story&id='.@$story->id?>">
						<?= sprintf( @text('AN-SE-STORY-VIEW-ALL-COMMENTS'), @$story->numOfComments ) ?>
					</a>
				</li>
				<?php endif; ?>
			</ul>
			<?php endif; ?>
			
			<div class="an-se-story-comments-wrapper">
				<div id="an-se-story-comments-<?=@$story->id?>" class="an-se-comments an-se-story-comments">
					<?php foreach(@$story->comments as $comment) : ?>
						<?= @uikit('comment')->setComment($comment) ?>
					<?php endforeach; ?>
				</div>
				<div id="an-se-story-comment-form-<?=@$story->id?>" class="an-se-story-comment-form an-se-hide">
					<form class="an-se-story-comment-box" action="<?=@$parent_view->createRoute('view=story')?>" method="POST">
						<input type="hidden" value="comment" name="action" />
						<input type="hidden" value="<?=@$story->id?>" name="id" />
						<input type="hidden" value="story" name="node_type" />
						<textarea name="body"></textarea>
						<button class="an-se-button button" type="submit"><?= @text('AN-SE-ACTION-POST-COMMENT') ?></button>
					</form>
				</div>
			</div>
		</div>
		<div class="an-se-clr"></div>
	</div>
</div>
Return current item: Anahita Social Engine