@@ 59-63 (lines=5) @@ | ||
56 | $tpl->assign('channel_language', _LANGCODE); |
|
57 | $tpl->assign('image_url', XOOPS_URL.'/images/logo.gif'); |
|
58 | $dimention = getimagesize(XOOPS_ROOT_PATH.'/images/logo.gif'); |
|
59 | if (empty($dimention[0])) { |
|
60 | $width = 128; |
|
61 | } else { |
|
62 | $width = ($dimention[0] > 128) ? 128 : $dimention[0]; |
|
63 | } |
|
64 | if (empty($dimention[1])) { |
|
65 | $height = 128; |
|
66 | } else { |
|
@@ 64-68 (lines=5) @@ | ||
61 | } else { |
|
62 | $width = ($dimention[0] > 128) ? 128 : $dimention[0]; |
|
63 | } |
|
64 | if (empty($dimention[1])) { |
|
65 | $height = 128; |
|
66 | } else { |
|
67 | $height = ($dimention[1] > 128) ? 128 : $dimention[1]; |
|
68 | } |
|
69 | $tpl->assign('image_width',$width); |
|
70 | $tpl->assign('image_height',$height); |
|
71 | } else { |
|
@@ 83-87 (lines=5) @@ | ||
80 | $tpl->assign('channel_language', _LANGCODE); |
|
81 | $tpl->assign('image_url', XOOPS_URL.'/images/logo.gif'); |
|
82 | $dimention = getimagesize(XOOPS_ROOT_PATH.'/images/logo.gif'); |
|
83 | if (empty($dimention[0])) { |
|
84 | $width = 128; |
|
85 | } else { |
|
86 | $width = ($dimention[0] > 128) ? 128 : $dimention[0]; |
|
87 | } |
|
88 | if (empty($dimention[1])) { |
|
89 | $height = 128; |
|
90 | } else { |
|
@@ 88-92 (lines=5) @@ | ||
85 | } else { |
|
86 | $width = ($dimention[0] > 128) ? 128 : $dimention[0]; |
|
87 | } |
|
88 | if (empty($dimention[1])) { |
|
89 | $height = 128; |
|
90 | } else { |
|
91 | $height = ($dimention[1] > 128) ? 128 : $dimention[1]; |
|
92 | } |
|
93 | $tpl->assign('image_width',$width); |
|
94 | $tpl->assign('image_height',$height); |
|
95 | } |