{strip} {assign var=limit value=0} {assign var=mystory value=$stories->getMyStory()} {assign var=friend_stories value=$stories->getFriendsStories()} {if isset($mystory.story_id)} {assign var=story_id value=$mystory.story_id} {assign var=m_story_obj value=$stories->getMyStoryObject($mystory.story_id)} {else} {assign var=story_id value=0} {/if} {if $mystory.exist == 'yes'}
{/if}

- {if $mystory.exist == 'yes'}
  {else}
  {/if}
  {$this->lang['Uploading_please_wait']}
  {if $mystory.exist == 'yes'} {else} {/if}
  {if $mystory.exist == 'yes'}
  {$this->lang['View_your_story']}
  {$mystory.time_ago}
  {else}
  {$this->lang['add_your_story']}
  {$this->lang['add_story_descr']}
  {/if}
{assign var=friends_stories_obj value=array()} {if count($friend_stories)}
{foreach $friend_stories as $story} {assign var=d_story value=($story.obj)} {assign var=seen value=$stories->seen($d_story.id)}
- 5}style="display:none;"{/if} data-story-by-user="{$d_story.author.id}" class="li_story with {if $seen}_seen{/if}">
  {$d_story.author.name}
  {$story.time_ago}
{$friends_stories_obj[] = $story.obj} {$limit = $limit+1} {/foreach} {/if} {if $limit > 6} + {$this->lang['Stories-show-more']} {/if}

{/strip}