Adding RSS icon in the social profile + other UI changes in the social profile

skala
Julio Montoya 14 years ago
parent cf5ac4041e
commit f01497def5
  1. 6
      main/inc/lib/social.lib.php
  2. 6
      main/social/profile.php

@ -354,7 +354,11 @@ class SocialManager extends UserManager {
$rss = @fetch_rss($url); $rss = @fetch_rss($url);
$i = 1; $i = 1;
if (!empty($rss->items)) { if (!empty($rss->items)) {
$res .= '<h2>'.$rss->channel['title'].'</h2>'; $icon_rss = '';
if (!empty($feed)) {
$icon_rss = Display::url(Display::return_icon('rss.png', '', array(), 32), Security::remove_XSS($feed['rssfeeds']), array('target'=>'_blank'));
}
$res .= '<h2>'.$rss->channel['title'].''.$icon_rss.'</h2>';
$res .= '<div class="social-rss-channel-items">'; $res .= '<div class="social-rss-channel-items">';
foreach ($rss->items as $item) { foreach ($rss->items as $item) {
if ($limit>=0 and $i>$limit) {break;} if ($limit>=0 and $i>$limit) {break;}

@ -537,12 +537,10 @@ if ($show_full_profile) {
// user feeds // user feeds
$user_feeds = SocialManager::get_user_feeds($user_id); $user_feeds = SocialManager::get_user_feeds($user_id);
if (!empty($user_feeds)) { if (!empty($user_feeds)) {
echo '<div class="rounded_div">'; echo '<div class="rounded_div" style="width:90%">';
echo '<div class="social-box-content2">';
echo '<div><h3>'.get_lang('RSSFeeds').'</h3></div>'; echo '<div><h3>'.get_lang('RSSFeeds').'</h3></div>';
echo '<div class="social-content-training">'.$user_feeds.'</div>'; echo '<div class="social-content-training">'.$user_feeds.'</div>';
//echo '<div class="clear"></div>';
echo '</div>';
echo '</div>'; echo '</div>';
} }

Loading…
Cancel
Save