<?php /** * Open Source Social Network * * @packageOpen Source Social Network * @author Open Social Website Core Team <*****@*****.**> * @copyright 2014 iNFORMATIKON TECHNOLOGIES * @license General Public Licence http://www.opensource-socialnetwork.org/licence * @link http://www.opensource-socialnetwork.org/licence */ $wall = new OssnWall(); $accesstype = ossn_get_homepage_wall_access(); if ($accesstype == 'public' || ossn_isAdminLoggedin()) { $posts = $wall->GetPosts(); $count = $wall->GetPosts(array('count' => true)); } elseif ($accesstype == 'friends') { $posts = $wall->getFriendsPosts(); } if ($posts) { foreach ($posts as $post) { if (!isset($post->poster_guid)) { $post = ossn_get_object($post->guid); } $data = json_decode(html_entity_decode($post->description)); $text = ossn_restore_new_lines($data->post, true); $location = ''; if (isset($data->location)) { $location = '- ' . $data->location; } if (isset($post->{'file:wallphoto'})) {
*/ ?> <label><?php echo ossn_print('settings'); ?> (<?php echo ossn_print('ossn:wall:admin:notice'); ?> )</label> <select name="type"> <?php $friends = ''; $public = ''; if (ossn_get_homepage_wall_access() == 'friends') { $friends = 'selected'; } elseif (ossn_get_homepage_wall_access() == 'public') { $public = 'selected'; } ?> <option value="friends" <?php echo $friends; ?> ><?php echo ossn_print('ossn:wall:friends:posts'); ?> </option> <option value="public" <?php echo $public; ?> ><?php echo ossn_print('ossn:wall:allsite:posts');