src/User/User.php 1 location
|
@@ 138-144 (lines=7) @@
|
135 |
|
$url = 'https://www.gravatar.com/avatar/'; |
136 |
|
$url .= md5(strtolower(trim($this->email))); |
137 |
|
$url .= "?s=$size&d=$default&r=$rating"; |
138 |
|
if ($img) { |
139 |
|
$url = '<img src="' . $url . '" alt="' . $this->email . '"'; |
140 |
|
foreach ($atts as $key => $val) { |
141 |
|
$url .= ' ' . $key . '="' . $val . '"'; |
142 |
|
} |
143 |
|
$url .= ' />'; |
144 |
|
} |
145 |
|
return $url; |
146 |
|
} |
147 |
|
} |
src/User/UserController.php 1 location
|
@@ 152-158 (lines=7) @@
|
149 |
|
$url = 'https://www.gravatar.com/avatar/'; |
150 |
|
$url .= md5(strtolower(trim($email))); |
151 |
|
$url .= "?s=$size&d=$default&r=$rating"; |
152 |
|
if ($img) { |
153 |
|
$url = '<img src="' . $url . '" alt="' . $email . '"'; |
154 |
|
foreach ($atts as $key => $val) { |
155 |
|
$url .= ' ' . $key . '="' . $val . '"'; |
156 |
|
} |
157 |
|
$url .= ' />'; |
158 |
|
} |
159 |
|
return $url; |
160 |
|
} |
161 |
|
} |