<?php
extract($this->_data);

if ($this->_editable)
{
?>
<div class="<?php echo (isset ($class)) ? $class . ' textimage ' : ''; ?>grid_40col wrapper" id="content_textimage_<?php echo $text_image_id; ?>" data-editable="textimage">
	<?php
	}
	else
	{
	?>
	<div class="grid_40col wrapper">
		<?php
		}
		?>
		<div class="grid_40col">
			<img class="grid_13col floatright" id="content_image_<?php echo $content_image_id; ?>" <?php echo ($this->_editable) ? 'data-editable="image"' : ''; ?>src="<?php echo PATH_MED . $this->_prefix . '/' . $this->_siteId . '/' . $imgName . '.' . $imgExtension; ?>" title="<?php echo $imgTitle; ?>"/>
			<div class="content" id="content_text_<?php echo $content_text_id; ?>" <?php echo ($this->_editable) ? 'data-editable="text"' : ''; ?>>
				<?php echo $content; ?>
			</div>
			<br class="fix"/>
		</div>
	</div>