Teaser($MaxLength);
$Image = $Entry->Image();
# if there is no image associated with the blog entry
if (is_null($Image))
{
return $Teaser;
}
# create the image tag
$SafeImage = defaulthtmlentities($Entry->ThumbnailForDisplay());
$SafeImageAlt = defaulthtmlentities($Entry->ImageAltForDisplay());
$ImageInsert = '
';
$ImageInsert .= '';
$ImageInsert .= '
';
# return the teaser with the image inserted at the beginning
return substr_replace($Teaser, $ImageInsert, 0, 0);
}
# ----- MAIN -----------------------------------------------------------------
$SafeSchemaId = defaulthtmlentities($H_SchemaId);
$SafeBlogName = defaulthtmlentities($H_BlogName);
$NotificationsEnabled = $H_Blog->NotificationsCouldBeSent();
$UserIsLoggedIn = $GLOBALS["G_User"]->IsLoggedIn();
$UserIsSubscribed = $H_Blog->UserIsSubscribedToNotifications($GLOBALS["G_User"]);
?>