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. 12
      main/social/profile.php

@ -354,7 +354,11 @@ class SocialManager extends UserManager {
$rss = @fetch_rss($url);
$i = 1;
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">';
foreach ($rss->items as $item) {
if ($limit>=0 and $i>$limit) {break;}

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

Loading…
Cancel
Save