skala
Juan Carlos Raña 15 years ago
commit e172ff0dcf
  1. 15
      main/inc/lib/social.lib.php
  2. 11
      main/social/profile.php
  3. BIN
      tests/procedures/spanish/chat.xls
  4. BIN
      tests/procedures/spanish/courses.xls
  5. BIN
      tests/procedures/spanish/dropbox.xls
  6. BIN
      tests/procedures/spanish/group.xls
  7. BIN
      tests/procedures/spanish/work.xls

@ -442,12 +442,11 @@ class SocialManager extends UserManager {
if (count($feeds)==0) { return ''; }
foreach ($feeds as $url) {
if (empty($url)) { continue; }
$rss = @fetch_rss($url);
$res .= '<h2>'.$rss->channel['title'].'</h2>';
$res .= '<div class="social-rss-channel-items">';
$i = 1;
if (is_array($rss->items)) {
$rss = @fetch_rss($url);
$i = 1;
if (!empty($rss->items)) {
$res .= '<h2>'.$rss->channel['title'].'</h2>';
$res .= '<div class="social-rss-channel-items">';
foreach ($rss->items as $item) {
if ($limit>=0 and $i>$limit) {break;}
$res .= '<h3><a href="'.$item['link'].'">'.$item['title'].'</a></h3>';
@ -455,8 +454,8 @@ class SocialManager extends UserManager {
$res .= '<div class="social-rss-item-content">'.$item['description'].'</div><br />';
$i++;
}
}
$res .= '</div>';
$res .= '</div>';
}
}
return $res;
}

@ -9,7 +9,7 @@
$language_file = array('registration','messages','userInfo','admin','forum','blog');
$cidReset = true;
require '../inc/global.inc.php';
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'usermanager.lib.php';
require_once api_get_path(LIBRARY_PATH).'social.lib.php';
require_once api_get_path(LIBRARY_PATH).'array.lib.php';
@ -477,7 +477,6 @@ echo '<div id="social-profile-container">';
$html_actions .= '&nbsp;<a href="'.api_get_path(WEB_PATH).'main/messages/send_message_to_userfriend.inc.php?view_panel=2&height=260&width=610&user_friend='.$user_id.'" class="thickbox" title="'.get_lang('SendInvitation').'">'.Display :: return_icon('add_multiple_users.gif', get_lang('SocialInvitationToFriends')).'&nbsp;'.get_lang('SendInvitation').'</a>';
}
}
if (!empty($html_actions )) {
echo '<div class="actions" style="margin-right:5px;">';
@ -487,7 +486,6 @@ echo '<div id="social-profile-container">';
}
// Extra information
if ($show_full_profile) {
//-- Extra Data
$t_uf = Database :: get_main_table(TABLE_MAIN_USER_FIELD);
@ -696,17 +694,16 @@ echo '<div id="social-profile-container">';
}
}
}
echo '</ul><br />';
echo '</ul><br />';
$user_feeds = SocialManager::get_user_feeds($user_id);
if (is_array($user_feeds )) {
if (!empty($user_feeds )) {
echo '<div class="sectiontitle">'.get_lang('RSSFeeds').'</div>';
echo '<div class="social-content-training">';
echo $user_feeds;
echo '</div>';
echo '<div class="clear"></div><br />';
echo '</div>';
}
}
}
//Load plugin center

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save