Show
Ignore:
Timestamp:
05/17/07 16:25:43 (5 years ago)
Author:
fproulx
Message:

2007-05-17 François Proulx <francois.proulx@…>

  • WARNING: This has not been fully tested. Full testing to be completed on 2006-05-18 but I'm pretty confident that it works pretty well.
  • Added automatic resize on Avatars
  • Added FavoriteHotspots? content (mostly used for Profiles)
  • Added new features to Content and File
  • Fixed URL regexp bug in HyperlinkUtils?
  • Updated French translations
  • Updates profiles template
  • TODO: Add getNewUI et processNewUI to FavoriteHotspots? to simplify input
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/ProfileField.php

    r1192 r1226  
    219219        else 
    220220        $content_id = "'".$db->escapeString($content->getId())."'"; 
    221           
     221 
    222222        $_retVal = $db->execSqlUpdate("UPDATE profile_fields SET content_id = $content_id WHERE profile_field_id = '{$this->getId()}'", false); 
    223223        $this->refresh(); 
     
    286286        throw new Exception("Could not retrieve the associated content type filter."); 
    287287 
    288           
     288 
    289289        return $html; 
    290290    } 
     
    324324        //echo "ProfileField::getUserUI()"; 
    325325        $html = ""; 
     326        $template_field = $this->getProfileTemplateField(); 
     327        $html .=  "<div class='user_ui_profile_field ".$template_field->getSemanticId()."'>\n"; 
     328 
     329        $content_label = $template_field->getDisplayLabelContent(); 
     330        if(!empty($content_label)){ 
     331            $html .=  "<div class='profile_field_label'>".$content_label->getUserUI()."</div>\n"; 
     332        } 
     333 
    326334        $content_field = $this->getContentField(); 
    327335        if(!empty($content_field)) { 
    328             $template_field = $this->getProfileTemplateField(); 
    329             $html .=  "<div class='user_ui_profile_field ".$template_field->getSemanticId()."'>\n"; 
    330             $content_label = $template_field->getDisplayLabelContent(); 
    331             if(!empty($content_label)){ 
    332                 $html .=  "<div class='profile_field_label'>".$content_label->getUserUI()."</div>\n"; 
    333             } 
    334336            // Display the actual value from the profile field 
    335337            $html .=  "<div class='profile_field_content'>".$content_field->getUserUI()."</div>\n"; 
    336             $html .=  "</div>\n"; 
    337         } 
     338        } 
     339        $html .=  "</div>\n"; 
    338340 
    339341        return $html;