Hiding \"My production images\" title from social network if it's empty

skala
Julio Montoya 16 years ago
parent 33e634b36a
commit b098d8a0db
  1. 11
      main/inc/lib/usermanager.lib.php
  2. 9
      main/social/profile.php

@ -1,11 +1,11 @@
<?php // $Id: usermanager.lib.php 22378 2009-07-26 19:58:38Z yannoo $
/* For licensing terms, see /dokeos_license.txt */
<?php
/* For licensing terms, see /license.txt */
/**
==============================================================================
* This library provides functions for user management.
* Include/require it in your code to use its functionality.
*
* @package dokeos.library
* @package chamilo.library
* @author Julio Montoya <gugli100@gmail.com> Social network groups added 2009/12
==============================================================================
*/
@ -1960,10 +1960,9 @@ class UserManager
* Get the users files upload from his share_folder
* @param string User ID
* @param string course directory
* @param int deprecated
* @return int User ID (or false if not found)
*/
public static function get_user_upload_files_by_course($user_id, $course, $column = 2) {
public static function get_user_upload_files_by_course($user_id, $course) {
$return = '';
if (!empty($user_id) && !empty($course)) {
$user_id = intval($user_id);
@ -1986,9 +1985,11 @@ class UserManager
foreach ($file_list as $file) {
$return .= '<li><a href="'.$web_path.urlencode($file).'" target="_blank">'.htmlentities($file).'</a>';
}
if (count($file_list) > 0) {
$return .= '</ul>';
}
}
}
return $return;
}

@ -1,10 +1,10 @@
<?php //$id: $
/* For licensing terms, see /dokeos_license.txt */
/* For licensing terms, see /license.txt */
/**
* This is the profile social main page
* @author Julio Montoya <gugli100@gmail.com>
* @author Isaac Flores Paz <florespaz_isaac@hotmail.com>
* @package dokeos.social
* @package chamilo.social
*/
$language_file = array('userInfo');
@ -516,6 +516,7 @@ echo '<div id="social-content-right">';
}
// COURSES LIST
if ($show_full_profile) {
if ( is_array($list) ) {
echo '<div class="social-box-main1">';
@ -530,8 +531,6 @@ echo '<div id="social-content-right">';
foreach($list as $key=>$value) {
if ( empty($value[2]) ) { //if out of any session
echo $value[1];
//echo '<div id="loading'.$i.'">&nbsp;</div>';
//class="social-profile-rounded maincourse"
echo '<div id="social_content'.$i.'" style="background : #EFEFEF; padding:0px; ">';
echo '</div>';
$i++;
@ -548,6 +547,7 @@ echo '<div id="social-content-right">';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
}
}
@ -624,6 +624,7 @@ echo '<div id="social-content-right">';
echo '</div>';
}
// Images uploaded by course
if (!empty($file_list)) {
echo '<div><h3>'.get_lang('ImagesUploaded').'</h3></div>';
echo '<div class="social-content-information">';

Loading…
Cancel
Save