- if (substr($url, -6) == ":thumb")
- $size = 150;
- if (substr($url, -6) == ":small")
- $size = 340;
- if (substr($url, -7) == ":medium")
+ if (substr($url, -6) == ":micro") {
+ $size = 48;
+ $sizetype = ":micro";
+ $url = substr($url, 0, -6);
+ } elseif (substr($url, -6) == ":thumb") {
+ $size = 80;
+ $sizetype = ":thumb";
+ $url = substr($url, 0, -6);
+ } elseif (substr($url, -6) == ":small") {
+ $size = 175;
+ $url = substr($url, 0, -6);
+ $sizetype = ":small";
+ } elseif (substr($url, -7) == ":medium") {