| 17 |
|
|
| 18 |
<div class="carousel_container"> |
<div class="carousel_container"> |
| 19 |
<?php |
<?php |
| 20 |
if($imagefield && $node->$imagefield){ |
// print("<pre>"); print($imagefield); print_r($node); die; |
| 21 |
|
if($imagefield && is_array($node->$imagefield)){ |
| 22 |
?> |
?> |
| 23 |
<ul class="jcarousel-skin-<?php print $skin;?>" id="mycarousel"> |
<ul class="jcarousel-skin-<?php print $skin;?>" id="mycarousel"> |
| 24 |
<?php |
<?php |
| 25 |
foreach($node->$imagefield as $key=>$image){ |
foreach($node->$imagefield as $key=>$image){ |
| 26 |
|
if($imagefield_type == 'imceimage'){ |
| 27 |
?> |
?> |
| 28 |
<li><a href="<?php print $image[$imagefield_path] ?>" rel="<?php print $image_rel; ?>"><img width="<?php print $image[$imagefield_width];?>" height="<?php print $image[$imagefield_height];?>" alt="<?php print $image[$imagefield_alt];?>" src="<?php print $image[$imagefield_path];?>" /></a></li> |
<li><a href="<?php print $image[$imagefield_path] ?>" rel="<?php print $image_rel; ?>"><img width="<?php print $image[$imagefield_width];?>" height="<?php print $image[$imagefield_height];?>" alt="<?php print $image[$imagefield_alt];?>" src="<?php print $image[$imagefield_path];?>" /></a></li> |
| 29 |
<?php |
<?php |
| 30 |
|
}elseif($imagefield_type == 'imagefield'){ |
| 31 |
|
$thumb_path = imagefield_file_admin_thumb_path($image); |
| 32 |
|
list($width, $height, $type, $image_attributes) = @getimagesize($thumb_path); |
| 33 |
|
?> |
| 34 |
|
<li><a href="/<?php print $image[$imagefield_path] ?>" rel="<?php print $image_rel; ?>"><img width="<?php print $width;?>" height="<?php print $height;?>" alt="<?php //TODO ?>" src="/<?php print $thumb_path;?>" /></a></li> |
| 35 |
|
<?php |
| 36 |
|
} |
| 37 |
} // foreach |
} // foreach |
| 38 |
?> |
?> |
| 39 |
</ul> |
</ul> |