|
@@ 806-810 (lines=5) @@
|
| 803 |
|
$item['image_height'] = $dimensions[1]; |
| 804 |
|
$item['image_path'] = XOOPS_URL . '/uploads/' . $images['main']->getVar('image_name'); |
| 805 |
|
// check to see if GD function exist |
| 806 |
|
if (!function_exists('imagecreatetruecolor')) { |
| 807 |
|
$item['image_thumb'] = XOOPS_URL . '/uploads/' . $images['main']->getVar('image_name'); |
| 808 |
|
} else { |
| 809 |
|
$item['image_thumb'] = PUBLISHER_URL . '/thumb.php?src=' . XOOPS_URL . '/uploads/' . $images['main']->getVar('image_name') . '&h=180'; |
| 810 |
|
} |
| 811 |
|
$item['image_name'] = $images['main']->getVar('image_nicename'); |
| 812 |
|
} |
| 813 |
|
|
|
@@ 833-837 (lines=5) @@
|
| 830 |
|
$item['images'][$i]['height'] = $dimensions[1]; |
| 831 |
|
$item['images'][$i]['path'] = XOOPS_URL . '/uploads/' . $image->getVar('image_name'); |
| 832 |
|
// check to see if GD function exist |
| 833 |
|
if (!function_exists('imagecreatetruecolor')) { |
| 834 |
|
$item['images'][$i]['thumb'] = XOOPS_URL . '/uploads/' . $image->getVar('image_name'); |
| 835 |
|
} else { |
| 836 |
|
$item['images'][$i]['thumb'] = PUBLISHER_URL . '/thumb.php?src=' . XOOPS_URL . '/uploads/' . $image->getVar('image_name') . '&w=240'; |
| 837 |
|
} |
| 838 |
|
$item['images'][$i]['name'] = $image->getVar('image_nicename'); |
| 839 |
|
++$i; |
| 840 |
|
} |