{include file='_head.tpl'} {include file='_header.tpl'} {if !$user->_logged_in}

{__("Welcome to")} {$system['system_title']}

{__("Share your memories, connect with others, make new friends")}

{if $random_users} {foreach $random_users as $random_user} {/foreach} {/if}
{if $system['system_public']} {include file='_directory.tpl'} {/if} {else}
{if $view == "" || $view == "saved"} {/if} {if $view == ""} {include file='_publisher.tpl' _handle="me" _privacy=true}
{include file='_posts.tpl' _get="newsfeed"}
{elseif $view == "saved"} {* {include file='_posts.tpl' _get="saved" _title=__("Saved Posts")} *}
{include file='_posts.tpl' _get="saved"}
{elseif $view == "pages"}
{__("Your Pages")}
{if count($pages) > 0}
    {foreach $pages as $_page} {include file='__feeds_page.tpl'} {/foreach}
{else}

{__("No pages available")}

{/if} {if count($pages) >= $system['max_results']}
{__("See More")}
{/if}
{elseif $view == "groups"}
{__("Groups")}
{__("YOUR GROUPS")}
{if count($groups) > 0}
    {foreach $groups as $_group} {include file='__feeds_group.tpl'} {/foreach}
{else}

{__("No groups available")}

{/if} {if count($groups) >= $system['max_results']}
{__("See More")}
{/if}
{__("SUGGESTED")}
{if count($new_groups) > 0}
    {foreach $new_groups as $_group} {include file='__feeds_group.tpl'} {/foreach}
{else}

{__("No groups available")}

{/if}
{if count($profile_groups) > 0}
{foreach $profile_groups as $_group} {/foreach}
{/if} {elseif $view == "create_page"}
{__("Create Page")}
{include file='_create_page_map.tpl'}
{elseif $view == "create_group"}
{__("Create Group")}
{include file='_create_group_map.tpl'}
{elseif $view == "games"}
{__("Games")}
{if count($games) > 0}
    {foreach $games as $_game} {include file='__feeds_game.tpl'} {/foreach}
{else}

{__("No games available")}

{/if} {if count($games) >= $system['max_results']}
{__("See More")}
{/if}
{elseif $view == "discover"} {include file='_discover_location.tpl'} {include file='_discover_people.tpl'} {include file='_discover_group.tpl'} {include file='_discover_hashtag.tpl'} {* {include file='_discover_region.tpl'} *} {include file='_discover_post.tpl' _get="newsfeed1"} {include file='_discover_js.tpl'} {/if}
{include file='_announcements.tpl'} {include file='_ads.tpl'} {include file='_widget.tpl'} {if count($new_people) > 0}
{__("People you may know")}
    {foreach $new_people as $_user} {include file='__feeds_user.tpl' _connection="add" _small=true} {/foreach}
{/if} {if count($new_pages) > 0}
{__("Suggested Pages")}
    {foreach $new_pages as $_page} {include file='__feeds_page.tpl'} {/foreach}
{/if} {if count($new_groups) > 0}
{__("Suggested Groups")}
    {foreach $new_groups as $_group} {include file='__feeds_group.tpl'} {/foreach}
{/if} {if ($view == "" || $view == "saved") && (count($new_people) > 0 || count($new_pages) > 0 || count($new_groups) > 0)} {/if}
{if $view == ""}
{/if}
{/if} {include file='_footer.tpl'}