<?php  
class ControllerModulePavcustom extends Controller {
	protected function index($setting) {
		$this->language->load('module/pavcustom');
		
    	$this->data['heading_title'] = sprintf($this->language->get('heading_title'), $this->config->get('config_name'));
    	
		$description = isset( $setting['description'][$this->config->get('config_language_id')] ) ? $setting['description'][$this->config->get('config_language_id')]:"";
		$title = isset( $setting['title'][$this->config->get('config_language_id')] ) ? $setting['title'][$this->config->get('config_language_id')]:"";
		
		$this->data['message'] = html_entity_decode($description,  ENT_QUOTES, 'UTF-8'  ) ;
		$this->data['title'] = html_entity_decode( $title, ENT_QUOTES, 'UTF-8' );
		$this->data['module_class'] = isset($setting['module_class'])? " ".$setting['module_class']:"";
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/pavcustom.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/pavcustom.tpl';
		} else {
			$this->template = 'default/template/module/pavcustom.tpl';
		}
		
		$this->render();
	}
}
?>