Changeset 1046 for devel/mod/profile_photo
- Timestamp:
- 03/26/07 12:27:53 (2 years ago)
- Files:
-
- devel/mod/profile_photo/lib.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/mod/profile_photo/lib.php
r1036 r1046 35 35 } 36 36 if (!empty($parameter[1])) { 37 $html .= "<img src=\"{$CFG->wwwroot}mod/profile_photo/img.php?id={$parameter[4]}& constraint1=w&size1=250&constraint2=h&size2=200\" /><br />";38 $html .= "< input name=\"".$parameter[0]."\" type=\"checkbox\" id=\"$cleanid\" value=\"photo\" />";37 $html .= "<img src=\"{$CFG->wwwroot}mod/profile_photo/img.php?id={$parameter[4]}&constraint1=w&size1=250&constraint2=h&size2=200\" alt=\"Profile photo\" /><br />"; 38 $html .= "<label for=\"$cleanid\"><input name=\"".$parameter[0]."\" type=\"checkbox\" id=\"$cleanid\" value=\"photo\" />"; 39 39 $html .= __gettext("Click here to remove this photo."); 40 $html .= "</label>"; 40 41 } else { 41 42 $html .= "<input name=\"profile_photo_".$parameter[3]."\" type=\"file\" /><br />"; 42 $html .= "< input name=\"".$parameter[0]."\" type=\"checkbox\" id=\"$cleanid\" value=\"photo\" />";43 $html .= "<label for=\"$cleanid\"><input name=\"".$parameter[0]."\" type=\"checkbox\" id=\"$cleanid\" value=\"photo\" />"; 43 44 $html .= __gettext("Click here to verify that this is a photo of you and that it is not obscene or abusive."); 45 $html .= "</label>"; 44 46 } 45 47 } … … 49 51 function profile_photo_display_output_field($parameter) { 50 52 global $CFG, $profile_id; 53 $html = ''; 51 54 if ($parameter[1] == "profile_photo") { 52 if (!empty($parameter[4]) 53 && $parameter[0] != "photo") { 54 $html .= "<img class=\"profile-photo\" src=\"{$CFG->wwwroot}mod/profile_photo/img.php?id={$parameter[4]}&constraint1=w&size1=250\" />"; 55 if (!empty($parameter[4]) && $parameter[0] != "photo") { 56 $html .= "<img class=\"profile-photo\" src=\"{$CFG->wwwroot}mod/profile_photo/img.php?id={$parameter[4]}&constraint1=w&size1=250\" alt=\"Profile photo\" />"; 55 57 } else { 56 58 $pictureglyph = __gettext("Click here to upload a photo"); 57 59 $html = <<< END 58 60 </p> 59 <style >61 <style type="text/css"> 60 62 div#default-profile-icon { 61 63 width:250px; … … 82 84 <div id="default-profile-icon"> 83 85 <p><a href="{$CFG->wwwroot}profile/edit.php?profile_id={$profile_id}">{$pictureglyph}</a></p> 84 </div> 86 </div> 85 87 <p> 86 88 END;
