I think I see why...both of zen carts' image functions read the height and width and feed the tag back with them embedded. I changed my event_flink_small function to feed the tag back with no height and width (this is set as the default)...just replace the old one with the new one below. It is located in:
/home/shootwise.com/www/includes/functions/extra_functions/events_calendar_functions.php
Code:
//**rus.02:start
//** function to decipher images verses docs
//** a different version of this function is also used (at the end of file) in admin/events_manager.php
function event_flink_small($inff, $alt='', $params='', $usew=false) {
$events_img_exts = strtolower(trim(EVENTS_IMAGE_EXTS));
$events_oth_exts = strtolower(trim(EVENTS_OTHER_EXTS));
$events_all_exts = trim($events_img_exts . ' ' . $events_oth_exts);
$orf = trim($inff);
$wf = DIR_WS_IMAGES .'events_images/' . $orf;
if ($orf=='') {
return '';
} else {
$fileext = strtolower(strrchr($orf, "."));
if ($events_all_exts=='' || in_array($fileext,explode(" ",$events_img_exts))) { //** it's an image or everything is considered an image
$dumi = ($usew ? zen_image_OLD($wf, $alt, '', '', $params) : ('<img src="'.$wf.'" alt="'.$alt.'" title=" '.$alt.' " '.$params.' />'));
return $dumi;
} else { //** must be other file type
$dumi = '<a href="' . $wf . '" target="_blank">' . zen_image(DIR_WS_IMAGES .'events_images/event_cal_info_doc.png', $alt, '', '', $params) . '</a>';
return $dumi;
}
}
}
//**rus.02:stop
Then...
in: includes/templates/your_template/templates/tpl_events_calendar_default.php
Code:
<div class="event_image_outer">
<div class="event_image_inner">
<?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="c1" hspace="0" vspace="0"'); ?>
</div>
<div class="clearLeft"> </div>
</div>
...will work.
For those who still want to utilize the auto size detection feature of zen carts' image functions, they should use:
Code:
<div class="event_image_outer">
<div class="event_image_inner">
<?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="c1" hspace="0" vspace="0"',true); ?>
</div>
<div class="clearLeft"> </div>
</div>
Thanks,
Rus