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


class CNewslettersWidgetForm extends CWidget {

	/**
	* description
	*
	* @var type
	*
	* @access type
	*/
	var $meta = array(
		"type"	=> "1",
		"name"	=> "Subscribe Form",
	);

	/**
	* description
	*
	* @param
	*
	* @return
	*
	* @access
	*/
	function Render($widget) {

		return $this->tpl->BlockReplace(
				"Main" , 
				array(
					"title"	=> $widget["widget_name"],
					"w"		=> $widget["widget_id"],

					"script"=> $this->module->plugins["modules"]->ScriptLink("newsletters.ajax.subscribe.php"),
					"captcha"  => $this->plugins["antispam"]->GetCaptchaField(
						$widget["mod_settings"]["set_post_capcha"] , 
						"newsletters",
						$this->tpl,
						"Captcha"
					)

				),
				$widget["mod_settings"],
				$widget["settings"]
		);

	}
			

}


?>