<?php


class ControllerModuletgpaymentimages extends Controller {

	protected function index() {
		
		$this->language->load('module/tg_paymentimages');
	
		$this->data['text_footer'] = sprintf($this->language->get('text_footer'), $this->config->get('config_name'), date('Y', time()));
		$this->data['text_store'] = sprintf($this->language->get('text_store'), $this->config->get('config_name'), date('Y', time()));

        $this->data['config_url'] = $this->config->get('config_url');

        $this->data['slide_images'] = unserialize($this->config->get('tg_paymentimages_slide_image'));

		$this->id = 'tg_paymentimages';

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/tg_paymentimages.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/tg_paymentimages.tpl';
		} else {
			$this->template = 'default/template/module/tg_paymentimages.tpl';
		}

		$this->render();
    }
}
?>