2
430
<?php $link = get_post_meta($post->ID, "link1", true); if(strlen($link) > 40){ echo substr($link,0,27).'...'.substr($link,-10); } ?>