<?php  
class ControllerModulebackgroundimage extends Controller {
	protected function index($setting) {
  	 $image = (HTTPS_IMAGE!="")?HTTPS_IMAGE:HTTP_IMAGE;
  	 $image.=$setting['image'];
  	 $this->data['image'] =$image;
  	 $this->data['repeat'] = $setting['repeat'];
  	 $this->data['attachment'] = $setting['attachment'];
  	 $this->data['position_x'] = $setting['position_x'];
  	 $this->data['position_y'] = $setting['position_y'];  	   	
  	 $this->data['link'] = $setting['link'];
  	 $this->data['target'] = $setting['target'];
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/backgroundimage.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/backgroundimage.tpl';
		} else {
			$this->template = 'default/template/module/backgroundimage.tpl';
		}
		
		$this->render();
	}
}
?>