<?php
/*
	Stempora Web Framework
	Copyright (c) 2002-2016 Stempora. 
	All rights reserved.
		web:  www.stempora.com
		mail: support@stempora.com				
*/


class CWidgetsWidgetRichTextEditor extends CWidget {

	/**
	* description
	*
	* @var type
	*
	* @access type
	*/
	var $meta = array(
		"type"	=> "1",
		"name"	=> "Rich Text Editor",
		"module"	=> array(
			"name"	=> "",
			"id"	=> "",
			"type"	=> "",
		)
	);

	

	/**
	* description
	*
	* @param
	*
	* @return
	*
	* @access
	*/
	function Render($widget) {
		
		return $this->tpl->blockReplace(
			"Main" , 
			array(
				"body"	=> $widget["settings"]["lang_body"],
				"image"	=> $widget["settings"]["lang_image"] ? $this->tpl->blockReplace("Image" , $widget["settings"] , $widget ) : "",
			),
			$this->module->WidgetButtons($widget , $this->tpl),
			$widget
		);
	}
	
}


?>