<?php if(ts_get_option('ts_welcome_title') || ts_get_option('ts_welcome_text')) : ?>
<div id="welcome" class="clearfix">

	<?php if(ts_get_option('ts_welcome_title')) : ?>
		<?php if(ts_get_option('ts_welcome_url')) : ?>
    	<h2 class="post-title"><a href="<?php echo get_permalink(ts_get_option('ts_welcome_url')); ?>"><?php echo ts_get_option('ts_welcome_title') ?></a></h2>
    	<?php else : ?>
    	<h2 class="post-title"><?php echo ts_get_option('ts_welcome_title') ?></h2>
    	<?php endif; ?>
    <?php endif; ?>
    
    <?php if(ts_get_option('ts_welcome_text')) : ?>
    <p><?php echo stripslashes(nl2br(ts_get_option('ts_welcome_text'))); ?></p>
    <?php endif; ?>
    
	<?php if(ts_get_option('ts_welcome_url')) : ?>
    <p class="more-link clearfix"><a href="<?php echo get_permalink(ts_get_option('ts_welcome_url')); ?>" class="button"><?php _e('Read more',TS_DOMAIN); ?></a></p>
    <?php endif; ?>

</div><!-- end post -->
<div class="content-space"></div>
<?php endif; ?>